.dashboard{
    display: flex;
    justify-content: center;
    align-items: center;
   
}



.containercccc {
  width: 95%;
  height: 800px;
  background-color: #1c1c1cea;
  background-image: url('../assets/MAin.png');
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 1;
}

/* Enhanced starfield background with glowing animation */
.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  background: #ffffff;
  border-radius: 50%;
  animation: enhancedTwinkle 3s infinite ease-in-out;
  /* Enhanced base glow */
  box-shadow: 0 0 10px rgba(255, 255, 255, 1), 0 0 20px rgba(255, 255, 255, 0.8),
    0 0 30px rgba(255, 255, 255, 0.6);
}

@keyframes enhancedTwinkle {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 1),
      0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.6);
  }
  50% {
    opacity: 1;
    transform: scale(1.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 1),
      0 0 30px rgba(255, 255, 255, 0.9), 0 0 45px rgba(255, 255, 255, 0.7),
      0 0 60px rgba(255, 255, 255, 0.5);
  }
}

/* Large bright stars */
.star.large {
  width: 4px;
  height: 4px;
  background: #fff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 1), 0 0 25px rgba(255, 255, 255, 0.8),
    0 0 35px rgba(255, 255, 255, 0.6), 0 0 45px rgba(255, 255, 255, 0.4);
}

/* Medium stars */
.star.medium {
  width: 3px;
  height: 3px;
  background: #fff;
}

/* Small but still bright stars */
.star.small {
  width: 2px;
  height: 2px;
  background: #fff;
}

/* Individual star positions with enhanced visibility */
.star:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}
.star:nth-child(2) {
  top: 30%;
  left: 25%;
  animation-delay: 0.5s;
}
.star:nth-child(3) {
  top: 15%;
  left: 40%;
  animation-delay: 1s;
}
.star:nth-child(4) {
  top: 45%;
  left: 15%;
  animation-delay: 1.5s;
}
.star:nth-child(5) {
  top: 60%;
  left: 35%;
  animation-delay: 0.8s;
}
.star:nth-child(6) {
  top: 25%;
  left: 65%;
  animation-delay: 0.3s;
}
.star:nth-child(7) {
  top: 70%;
  left: 20%;
  animation-delay: 1.2s;
}
.star:nth-child(8) {
  top: 80%;
  left: 45%;
  animation-delay: 0.7s;
}
.star:nth-child(9) {
  top: 35%;
  left: 75%;
  animation-delay: 1.8s;
}
.star:nth-child(10) {
  top: 50%;
  left: 85%;
  animation-delay: 0.2s;
}
.star:nth-child(11) {
  top: 10%;
  left: 80%;
  animation-delay: 0.9s;
}
.star:nth-child(12) {
  top: 65%;
  left: 70%;
  animation-delay: 1.3s;
}
.star:nth-child(13) {
  top: 40%;
  left: 5%;
  animation-delay: 0.4s;
}
.star:nth-child(14) {
  top: 85%;
  left: 25%;
  animation-delay: 1.7s;
}
.star:nth-child(15) {
  top: 5%;
  left: 55%;
  animation-delay: 0.6s;
}
.star:nth-child(16) {
  top: 75%;
  left: 60%;
  animation-delay: 1.1s;
}
.star:nth-child(17) {
  top: 90%;
  left: 80%;
  animation-delay: 0.1s;
}
.star:nth-child(18) {
  top: 55%;
  left: 95%;
  animation-delay: 1.6s;
}
.star:nth-child(19) {
  top: 12%;
  left: 30%;
  animation-delay: 0.85s;
}
.star:nth-child(20) {
  top: 78%;
  left: 8%;
  animation-delay: 1.4s;
}

.demo-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.8);
  font-family: Arial, sans-serif;
  text-align: center;
  z-index: 1;
  font-size: 24px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.second-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px;
}

.features-area {
  position: absolute;
  top: 0;
  left: 0;
  width: 70%;
  height: 100vh;
}

.feature-card {
  position: absolute;
  background-color: #260362;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 16px 20px;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 250px;
  min-height: 80px;
  animation: elegantFadeInUp 0.8s ease-out both;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
}

.card {
  position: absolute;
  background: transparent;
  border-radius: 12px;
  padding: 16px 20px;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 500px;
  min-height: 250px;
  animation: elegantFadeInUp 0.8s ease-out both;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
}

@keyframes elegantFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  60% {
    opacity: 0.8;
    transform: translateY(-5px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.feature-card:hover,
.card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3),
    0 5px 15px rgba(255, 255, 255, 0.1);
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  color: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-icon,
.card:hover .feature-icon {
  transform: scale(1.15) rotate(5deg);
}

.icon-blue {
  background: linear-gradient(135deg, #4a90e2, #357abd);
}
.icon-purple {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}
.icon-green {
  background: linear-gradient(135deg, #10b981, #059669);
}
.icon-gray {
  background: linear-gradient(135deg, #6b7280, #4b5563);
}
.icon-orange {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.icon-red {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}
.icon-black {
  background: linear-gradient(135deg, #374151, #1f2937);
}

.feature-content {
  flex: 1;
}

.feature-title {
  color: white;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
  line-height: 1.3;
  opacity: 0;
  animation: slideInText 0.6s ease-out 0.4s both;
}

.feature-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  line-height: 1.4;
  opacity: 0;
  animation: slideInText 0.6s ease-out 0.6s both;
}

@keyframes slideInText {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Desktop positioning - preserved exactly as provided */
.card-bulk-message {
  top: 8%;
  left: -2%;
  animation-delay: 0.1s;
}

.card-centralized-data {
  top: 5%;
  left: 95%;
  animation-delay: 0.2s;
}

.card-ai-report {
  top: 16%;
  left: 50%;
  animation-delay: 0.3s;
}

.card-smart-attendance {
  top: 32%;
  left: 20%;
  animation-delay: 0.4s;
}

.card-data-security {
  top: 23%;
  left: 100%;
  animation-delay: 0.5s;
}

.card-role-based {
  top: 40%;
  left: 60%;
  animation-delay: 0.6s;
}

.card-ai-timetable {
  top: 50%;
  left: -2%;
  animation-delay: 0.7s;
}

.card-financial {
  top: 60%;
  left: 50%;
  animation-delay: 0.8s;
}

.card-bank {
  top: 47%;
  left: 90%;
  animation-delay: 0.9s;
}

.content-section {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  padding-left: 60px;
  animation: elegantSlideInRight 1s ease-out 0.3s both;
  opacity: 0;
}

@keyframes elegantSlideInRight {
  0% {
    opacity: 0;
    transform: translateX(60px) translateY(-50%) scale(0.9);
  }
  60% {
    opacity: 0.8;
    transform: translateX(-5px) translateY(-50%) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(-50%) scale(1);
  }
}

.main-title {
  color: white;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #e5e5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: titleReveal 0.8s ease-out 0.6s both;
}

@keyframes titleReveal {
  0% {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.main-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.8s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 500;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  display: inline-block;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 1s both;
}

.cta-text:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Enhanced responsive design - Desktop Large (1600px and up) - preserved */
@media (max-width: 1600px) {
  .second-container {
    max-width: 1200px;
  }
}

/* Desktop Medium (1400px and down) - preserved */
@media (max-width: 1400px) {
  .content-section {
    width: 380px;
    padding-left: 40px;
  }

  .main-title {
    font-size: 42px;
  }

  .card {
    width: 450px;
    min-height: 220px;
  }
}

/* Large Laptop (1200px and down) - where layout starts to change */
@media (max-width: 1200px) {
  .features-area {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 600px;
    margin-bottom: 40px;
  }

  .content-section {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    padding-left: 0;
    text-align: center;
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .containercccc {
    background-size: 1200px auto;
    background-position: left center;
  }

  .feature-card {
    width: 280px;
    min-height: 65px;
    padding: 14px 18px;
  }

  .main-title {
    font-size: 38px;
  }

  .card {
    width: 400px;
    min-height: 200px;
  }

  .feature-title {
    font-size: 15px;
  }

  .feature-subtitle {
    font-size: 13px;
  }

  /* Adjusted positions for laptop */
  .card-bulk-message {
    top: 5%;
    left: 1%;
  }
  .card-centralized-data {
    top: 4%;
    right: -1%;
    left: auto;
  }
  .card-ai-report {
    top: 18%;
    left: 40%;
  }
  .card-smart-attendance {
    top: 38%;
    left: 1%;
  }
  .card-data-security {
    top: 30%;
    right: 2%;
    left: auto;
  }
  .card-role-based {
    top: 45%;
    left: 40%;
  }
  .card-ai-timetable {
    top: 70%;
    left: 2%;
  }
  .card-financial {
    top: 90%;
    left: 20%;
  }
  .card-bank {
    top: 62%;
    right: 2%;
    left: auto;
  }
}

/* Tablet Landscape (992px and down) */
@media (max-width: 992px) {
  .second-container {
    padding: 30px 20px;
  }

  .features-area {
    min-height: 550px;
  }

  .feature-card {
    width: 220px;
    min-height: 65px;
    padding: 14px 18px;
  }

  .card {
    width: 350px;
    min-height: 180px;
    padding: 14px 18px;
  }

  .containercccc {
    background-size: 992px auto;
    background-position: left center;
  }

  .feature-icon {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .feature-title {
    font-size: 12px;
  }

  .feature-subtitle {
    font-size: 10px;
  }

  .main-title {
    font-size: 34px;
  }

  .main-description {
    font-size: 17px;
  }

  /* Adjusted positions for tablet landscape */
  .card-bulk-message {
    top: 4%;
    left: 2%;
  }
  .card-centralized-data {
    top: 4%;
    right: 2%;
    left: auto;
  }
  .card-ai-report {
    top: 20%;
    left: 35%;
  }
  .card-smart-attendance {
    top: 45%;
    left: 10%;
  }
  .card-data-security {
    top: 40%;
    right: 2%;
    left: auto;
  }
  .card-role-based {
    top: 60%;
    left: 40%;
  }
  .card-ai-timetable {
    top: 85%;
    left: 2%;
  }
  .card-financial {
    top: 120%;
    left: 15%;
  }
  .card-bank {
    top: 80%;
    right: -2%;
  }
}

/* Tablet Portrait (768px and down) */
@media (max-width: 768px) {
  .second-container {
    padding: 25px 15px;
  }

  .features-area {
    min-height: 500px;
  }

  .feature-card {
    width: 220px;
    min-height: 60px;
    padding: 12px 16px;
  }

  .containercccc {
    background-size: 768px auto;
    background-position: left center;
  }

  .card {
    width: 300px;
    min-height: 160px;
    padding: 12px 16px;
  }

  .feature-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .feature-title {
    font-size: 15px;
  }

  .feature-subtitle {
    font-size: 12px;
  }

  .main-title {
    font-size: 30px;
    margin-bottom: 20px;
  }

  .main-description {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .content-section {
    margin-top: 30px;
  }

  /* Repositioned for better tablet portrait layout */
  .card-bulk-message {
    top: 10%;
    left: 2%;
  }
  .card-centralized-data {
    top: 6%;
    right: 2%;
    left: auto;
  }
  .card-ai-report {
    top: 20%;
    left: 35%;
  }
  .card-smart-attendance {
    top: 50%;
    left: 20%;
  }
  .card-data-security {
    top: 45%;
    right: 2%;
    left: auto;
  }
  .card-role-based {
    top: 70%;
    left: 40%;
  }
  .card-ai-timetable {
    top: 85%;
    left: 2%;
  }
  .card-financial {
    top: 110%;
    left: 20%;
  }
  .card-bank {
    top: 90%;
    right: 2%;
    left: auto;
  }
}

/* Large Mobile (640px and down) */
@media (max-width: 640px) {
  .second-container {
    padding: 20px 12px;
  }

  .features-area {
    min-height: 450px;
  }

  .feature-card {
    width: 170px;
    min-height: 58px;
    padding: 10px 14px;
  }

  .card {
    width: 280px;
    min-height: 150px;
    padding: 10px 14px;
  }

  .main-title {
    font-size: 26px;
    margin-bottom: 18px;
  }

  .main-description {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .cta-text {
    font-size: 15px;
    padding: 10px 20px;
  }

  /* Adjusted for large mobile */
  .card-bulk-message {
    top: 3%;
    left: 1%;
  }
  .card-centralized-data {
    top: 3%;
    right: 1%;
    left: auto;
  }
  .card-ai-report {
    top: 22%;
    left: 20%;
  }
  .card-smart-attendance {
    top: 38%;
    left: 1%;
  }
  .card-data-security {
    top: 38%;
    right: 1%;
    left: auto;
  }
  .card-role-based {
    top: 54%;
    left: 20%;
  }
  .card-ai-timetable {
    top: 70%;
    left: 1%;
  }
  .card-financial {
    top: 86%;
    left: 20%;
  }
  .card-bank {
    top: 70%;
    right: 1%;
    left: auto;
  }
}

/* Standard Mobile (480px and down) */
@media (max-width: 480px) {
  .second-container {
    padding: 15px 10px;
  }

  .features-area {
    min-height: 400px;
  }

  .feature-card {
    width: 160px;
    min-height: 55px;
    padding: 10px 12px;
  }

  .card {
    width: 260px;
    min-height: 140px;
    padding: 10px 12px;
  }

  .feature-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .feature-title {
    font-size: 10px;
  }

  .main-title {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .main-description {
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
  }

  .cta-text {
    font-size: 14px;
    padding: 8px 16px;
  }

  .containercccc {
    background-size: 480px auto;
    background-position: left center;
  }

  /* Optimized for standard mobile */
  .card-bulk-message {
    top: 2%;
    left: 1%;
  }
  .card-centralized-data {
    top: 25%;
    right: 1%;
    left: 55%;
  }
  .card-ai-report {
    top: 2%;
    left: 55%;
  }
  .card-smart-attendance {
    top: 53%;
    left: 1%;
  }
  .card-data-security {
    top: 25%;
    left: 1%;
  }
  .card-role-based {
    top: 78%;
    left: 55%;
  }
  .card-ai-timetable {
    top: 78%;
    left: 1%;
  }
  .card-financial {
    top: 53%;
    left: 55%;
  }
  .card-bank {
    top: 105%;
    right: 16%;
  }
}

/* Small Mobile (360px and down) */
@media (max-width: 360px) {
  .second-container {
    padding: 12px 8px;
  }

  .features-area {
    min-height: 380px;
  }

  .feature-card {
    width: 145px;
    min-height: 50px;
    padding: 8px 10px;
  }

  .card {
    width: 240px;
    min-height: 130px;
    padding: 8px 10px;
  }

  .feature-icon {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }

  .feature-title {
    font-size: 10px;
  }

  .feature-subtitle {
    font-size: 8px;
  }

  .main-title {
    font-size: 22px;
    margin-bottom: 14px;
  }

  .main-description {
    font-size: 13px;
    margin-bottom: 18px;
  }

  .cta-text {
    font-size: 13px;
    padding: 7px 14px;
  }

  /* Compact layout for small mobile */
  .card-bulk-message {
    top: 2%;
    left: 1%;
  }
  .card-centralized-data {
    top: 25%;
    right: 1%;
    left: 55%;
  }
  .card-ai-report {
    top: 2%;
    left: 55%;
  }
  .card-smart-attendance {
    top: 53%;
    left: 1%;
  }
  .card-data-security {
    top: 25%;
    left: 1%;
  }
  .card-role-based {
    top: 78%;
    left: 55%;
  }
  .card-ai-timetable {
    top: 78%;
    left: 1%;
  }
  .card-financial {
    top: 53%;
    left: 55%;
  }
  .card-bank {
    top: 105%;
    right: 16%;
  }
}

/* Extra Small Mobile (320px and down) */
@media (max-width: 320px) {
  .second-container {
    padding: 10px 5px;
  }

  .features-area {
    min-height: 360px;
  }

  .feature-card {
    width: 135px;
    min-height: 45px;
    padding: 6px 8px;
  }

  .card {
    width: 220px;
    min-height: 120px;
    padding: 6px 8px;
  }

  .feature-icon {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .feature-title {
    font-size: 9px;
  }

  .feature-subtitle {
    font-size: 7px;
  }

  .main-title {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .main-description {
    font-size: 12px;
    margin-bottom: 16px;
  }

  .cta-text {
    font-size: 12px;
    padding: 6px 12px;
  }

  /* Ultra-compact layout */
  .card-bulk-message {
    top: 1%;
    left: 0.5%;
  }
  .card-centralized-data {
    top: 1%;
    right: 0.5%;
    left: auto;
  }
  .card-ai-report {
    top: 17%;
    left: 12%;
  }
  .card-smart-attendance {
    top: 32%;
    left: 0.5%;
  }
  .card-data-security {
    top: 32%;
    right: 0.5%;
    left: auto;
  }
  .card-role-based {
    top: 47%;
    left: 12%;
  }
  .card-ai-timetable {
    top: 62%;
    left: 0.5%;
  }
  .card-financial {
    top: 77%;
    left: 12%;
  }
  .card-bank {
    top: 62%;
    right: 0.5%;
    left: auto;
  }
}

/* iPhone SE (1st gen) and similar very small devices */
@media (max-width: 280px) {
  .second-container {
    padding: 8px 3px;
  }

  .features-area {
    min-height: 340px;
  }

  .feature-card {
    width: 125px;
    min-height: 40px;
    padding: 5px 6px;
    gap: 8px;
  }

  .card {
    width: 200px;
    min-height: 110px;
    padding: 5px 6px;
    gap: 8px;
  }

  .feature-icon {
    width: 22px;
    height: 22px;
    font-size: 9px;
  }

  .feature-title {
    font-size: 8px;
  }

  .feature-subtitle {
    font-size: 6px;
  }

  .main-title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .main-description {
    font-size: 11px;
    margin-bottom: 14px;
  }

  .cta-text {
    font-size: 11px;
    padding: 5px 10px;
  }
}
