/* Modern Reset and Custom Properties */
:root {
  --primary: #2dd4bf;
  --secondary: #0ea5e9;
  --accent: #f471b5;
  --dark: #0f172a;
  --darker: #0a0f1d;
  --light: #f8fafc;
  --glass: rgba(255, 255, 255, 0.1);
  --glass-dark: rgba(15, 23, 42, 0.8);
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --gradient-alt: linear-gradient(135deg, var(--secondary), var(--accent));
  --primary-color: #b61924;
  --secondary-color: #ffffff;
  --text-color: #333333;
  --transition-speed: 0.3s;
  --spacing-unit: 1rem;
  --border-radius: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Remove default browser focus outlines */
button, a, input, select, textarea {
  outline: none !important;
}

/* Remove tap highlight color on mobile */
* {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: linear-gradient(135deg, var(--dark), var(--darker));
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Main Content Wrapper */
main {
  position: relative;
  z-index: 2;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* Particles Background */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  background: linear-gradient(135deg, var(--dark), var(--darker));
}

/* Header and Navigation */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  background: var(--glass-dark);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--light);
  font-weight: 700;
  font-size: 1.5rem;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.logo i {
  color: var(--primary);
  font-size: 2rem;
  transition: transform 0.3s ease;
}

.logo:hover i {
  transform: rotate(360deg);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-top: 80px;
  position: relative;
  z-index: 2;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: 2rem;
  position: relative;
  z-index: 3;
}

.glitch-text {
  font-size: 3.5rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.5rem;
  position: relative;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--light);
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

/* Features Section */
#features {
  background: var(--glass-dark);
  position: relative;
  z-index: 2;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.feature {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(45, 212, 191, 0.2);
}

.feature i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

/* Courses Section */
#courses {
  position: relative;
  z-index: 2;
  background: var(--darker);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.course-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.course-card:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
  box-shadow: 0 15px 35px rgba(45, 212, 191, 0.2);
}

/* Video Player Styles */
.video-container {
  max-width: 900px;
  width: 90%;
  margin: 4rem auto;
  background: var(--glass);
  padding: 2rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.plyr {
  --plyr-color-main: var(--primary);
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
}

.plyr video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive Video Player */
@media (max-width: 768px) {
  .video-container {
    width: 95%;
    padding: 1rem;
    margin: 2rem auto;
  }
}

/* About Section */
#about {
  background: var(--glass-dark);
  position: relative;
  z-index: 2;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 4rem;
}

.highlight-text {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 2rem;
  font-weight: 500;
}

.about-image {
  text-align: center;
}

/* Contact Section */
#contact {
  position: relative;
  z-index: 2;
  background: var(--darker);
}

.contact-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  margin-top: 4rem;
}

.contact-form {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 3rem;
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  color: var(--light);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group label {
  position: absolute;
  left: 0;
  top: 1rem;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  pointer-events: none;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
  top: -20px;
  font-size: 0.8rem;
  color: var(--primary);
}

/* Footer */
footer {
  background: var(--glass-dark);
  padding: 2rem 0;
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.social-links a {
  color: var(--light);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--primary);
}

.copyright {
  text-align: center;
  color: var(--light);
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.credit {
  text-align: center;
  color: var(--light);
  opacity: 0.8;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.credit .fa-heart {
  color: #ff4d4d;
  margin: 0 0.2rem;
  animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Buttons */
.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--gradient);
  color: var(--light);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cta-button.secondary {
  background: transparent;
  border: 2px solid var(--primary);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(45, 212, 191, 0.2);
}

/* Section Titles */
.section-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--light);
  position: relative;
  z-index: 2;
}

/* Responsive Design */
@media (max-width: 768px) {
  section {
    padding: 80px 0;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--glass-dark);
    padding: 2rem;
    flex-direction: column;
    align-items: center;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 99;
  }
  
  .nav-links.active {
    transform: translateY(0);
  }
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .logo-img {
    width: 32px;
    height: 32px;
  }
}

/* Custom Cursor */
.cursor, .cursor-follower {
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  display: none;
}

@media (min-width: 769px) {
  .cursor, .cursor-follower {
    display: block;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--darker);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-alt);
}

/* 3D Logo Spin */
#logo-spin {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  perspective: 1000px;
  z-index: 9999;
  display: none;
}

#logo-spin.show {
  display: block;
}

#logo-spin img {
  width: 100px;
  height: 100px;
  animation: spin 2s ease-out forwards;
}

@keyframes spin {
  0% {
    transform: rotateY(0) scale(0.5);
    opacity: 0;
  }
  100% {
    transform: rotateY(720deg) scale(1);
    opacity: 1;
  }
}

/* Ripple Effect */
#ripple-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.4;
  transform: scale(0);
  animation: ripple 0.8s ease-out;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Google Login Button */
.google-login-button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.google-logo {
  width: 20px;
  height: 20px;
}

.google-text {
  color: var(--light);
  font-weight: 500;
}

/* User profile styling - enhanced professional design */
.user-info {
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-left: 0.5rem;
  gap: 0;
}

.user-info:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.user-info.active {
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 5px 15px rgba(45, 212, 191, 0.2);
}

/* User photo styling */
.user-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
  border: 2px solid var(--primary);
  box-shadow: 0 2px 8px rgba(45, 212, 191, 0.3);
  transition: transform 0.3s ease;
}

.user-info:hover .user-photo {
  transform: scale(1.05);
}

/* User name styling */
.user-name {
  color: var(--light);
  font-weight: 500;
  margin-right: 6px;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* Dropdown caret icon */
.user-name::after {
  content: '\f107'; /* Font Awesome chevron-down */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 12px;
  margin-left: 8px;
  display: inline-block;
  transition: transform 0.3s ease;
  color: var(--primary);
  opacity: 0.8;
}

.user-info.active .user-name::after {
  transform: rotate(180deg);
  opacity: 1;
}

/* Logout dropdown menu */
#logout {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: linear-gradient(145deg, rgba(16, 33, 65, 0.95), rgba(10, 25, 47, 0.9));
  border: 1px solid rgba(45, 212, 191, 0.2);
  color: var(--light);
  padding: 12px 18px;
  border-radius: 8px;
  width: 160px;
  min-width: 140px;
  display: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(12px);
  z-index: 10;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-10px);
}

/* Logout icon for desktop */
#logout::before {
  content: '\f2f5'; /* Font Awesome logout icon */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  margin-right: 10px;
  display: inline-block;
  transition: transform 0.3s ease;
  color: var(--primary);
}

/* Dropdown arrow indicator for desktop */
#logout::after {
  content: '';
  position: absolute;
  top: -8px;
  right: 15px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgba(45, 212, 191, 0.2);
  z-index: 1;
}

#logout:hover {
  background: linear-gradient(145deg, rgba(22, 44, 86, 0.95), rgba(14, 35, 65, 0.9));
  border-color: rgba(45, 212, 191, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.1),
              0 0 0 3px rgba(45, 212, 191, 0.1);
}

/* Add subtle glow effect on hover */
#logout:hover::before {
  transform: translateX(3px);
  text-shadow: 0 0 8px rgba(45, 212, 191, 0.5);
}

/* Mobile styles */
@media (max-width: 768px) {
  .user-info {
    margin-right: 10px;
    padding: 0.5rem;
    border-radius: 50%;
    background-color: transparent;
    border: none;
  }
  
  .user-info:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .user-name {
    display: none;
  }
  
  .user-photo {
    margin-right: 0;
    width: 32px;
    height: 32px;
  }
  
  /* Logout button for mobile - override desktop styles */
  #logout {
    position: fixed;
    top: 80px;
    right: 20px;
    width: auto;
    min-width: 160px;
    background: linear-gradient(120deg, rgba(16, 33, 65, 0.98), rgba(10, 25, 47, 0.95));
    border: 1px solid var(--primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    padding: 14px 20px;
    border-radius: 10px;
    text-align: left;
    z-index: 200;
    display: flex;
    align-items: center;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: slideInDown 0.4s forwards;
  }
  
  /* Override desktop icon styles for mobile */
  #logout::before {
    content: '\f2f5'; /* Font Awesome logout icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 16px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(45, 212, 191, 0.1);
    border-radius: 50%;
    margin-right: 12px;
    color: var(--primary);
    animation: pulseIcon 1.5s infinite;
  }
  
  /* Special effect for mobile logout button - override desktop arrow */
  #logout::after {
    display: none;
  }
  
  @keyframes slideInDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Backdrop for the logout button on mobile */
  body.logout-visible::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.7);
    backdrop-filter: blur(5px);
    z-index: 150;
    animation: fadeIn 0.3s ease forwards;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  @keyframes pulseIcon {
    0% {
      box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.4);
    }
    70% {
      box-shadow: 0 0 0 6px rgba(45, 212, 191, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(45, 212, 191, 0);
    }
  }
  
  /* Enhanced hover effect for mobile */
  #logout:hover, #logout:active {
    background: linear-gradient(120deg, rgba(22, 44, 86, 0.98), rgba(14, 35, 65, 0.95));
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), 
                0 0 0 3px rgba(45, 212, 191, 0.2);
  }
}

/* Section Spacing Fix */
section {
  position: relative;
  padding: 100px 0;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  z-index: 2;
}

/* Card Fixes */
.feature h3, .course-card h3 {
  margin: 1rem 0;
  color: var(--light);
  font-size: 1.5rem;
}

.feature p, .course-card p {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Contact Form Fixes */
.contact-info {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.contact-info i {
  color: var(--primary);
  font-size: 1.5rem;
}

/* Course Page Specific Styles */
.syllabus-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
}

.syllabus-list li {
  padding: 0.5rem 0;
  color: var(--light);
  opacity: 0.9;
  position: relative;
  padding-left: 1.5rem;
}

.syllabus-list li::before {
  content: '•';
  color: var(--primary);
  position: absolute;
  left: 0;
  top: 0.5rem;
}

.schedule-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.schedule-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s ease;
}

.schedule-card h3 {
  color: var(--light);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.schedule-card p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.schedule-card i {
  color: var(--primary);
}

.schedule-card .cta-button {
  margin-top: 1.5rem;
}

/* Course Form Styles */
select {
  width: 100%;
  padding: 1rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  color: var(--light);
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  outline: none;
}

select option {
  background: var(--darker);
  color: var(--light);
  padding: 0.5rem;
}

/* Course Navigation */
.nav-link[href^="index.html"] {
  position: relative;
}

.nav-link[href^="index.html"]::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-link[href^="index.html"]:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Responsive Adjustments for Course Pages */
@media (max-width: 768px) {
  .schedule-content {
    grid-template-columns: 1fr;
  }

  .syllabus-list {
    margin: 1rem 0;
  }

  .schedule-card {
    padding: 2rem;
  }
}

/* Hamburger Menu */
.hamburger {
  display: none;
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 100;
  padding: 0;
  background: transparent;
  border: none;
}

.hamburger-lines {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.line {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--light);
  border-radius: 3px;
  transition: transform 0.3s ease-in-out, opacity 0.2s ease-in-out;
}

.hamburger.active .line1 {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .line2 {
  opacity: 0;
}

.hamburger.active .line3 {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation Styles */
.hamburger {
  z-index: 1001; /* Ensure it's above other elements */
}
.nav-links {
  z-index: 1000; /* Ensure it's above other elements */
}
@media (max-width: 768px) {
  .nav-container {
    padding: 0.8rem 1rem;
    position: relative;
  }

  .hamburger {
    display: block;
    order: 1;
    position: relative;
    z-index: 1000;
  }

  .logo-container {
    order: 2;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .logo-text {
    display: none;
  }

  .logo-img {
    width: 35px;
    height: 35px;
  }

  .user-profile {
    order: 3;
    position: relative;
    z-index: 1000;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 15, 29, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 999;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 1.2rem;
    color: var(--light);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  }

  .nav-links.active .nav-link {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
  }

  .glitch-text {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }
}

/* Desktop Navigation */
@media (min-width: 769px) {
  .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1rem 2rem;
  }

  .logo-container {
    order: 1;
    flex: 1;
  }

  .nav-links {
    order: 2;
    flex: 2;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin: 0;
  }

  .user-profile {
    order: 3;
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }

  .google-login-button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .google-login-button:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .hamburger {
    display: none;
  }
}

/* Additional Mobile Optimizations */
@media (max-width: 480px) {
  .nav-container {
    padding: 0.6rem 0.8rem;
  }

  .logo-img {
    width: 30px;
    height: 30px;
  }
  
  .google-login-button img {
    width: 20px;
    height: 20px;
  }
  
  .hero {
    padding: 3rem 1rem;
    min-height: 80vh;
  }
  
  .glitch-text {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .features-grid, 
  .courses-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  section {
    padding: 2rem 1rem;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .founder-card {
    width: 100%;
    padding: 1rem;
  }
  
  .founder-image {
    width: 120px;
    height: 120px;
  }
  
  .founder-info {
    padding: 0.5rem;
  }
  
  .contact-form {
    padding: 1rem;
  }
  
  footer {
    padding: 1.5rem 1rem;
  }
  
  /* Fix for image display issues */
  img.logo-img, 
  img.google-logo, 
  img.founder-image {
    display: inline-block;
    object-fit: contain;
  }
  
  #logo-spin img {
    max-width: 100px;
    max-height: 100px;
  }
}

/* Ensure images load properly */
img {
  max-width: 100%;
  height: auto;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Dark mode optimization */
@media (prefers-color-scheme: dark) {
  :root {
    --text-color: #ffffff;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #ff0000;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Custom focus styles */
button:focus, 
a:focus, 
input:focus, 
select:focus, 
textarea:focus,
.cta-button:focus,
.mobile-nav-item:focus,
.nav-link:focus,
.google-login-button:focus,
*:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.4);
  transition: box-shadow 0.2s ease;
}

/* Remove focus outline for mouse users, keep for keyboard navigation */
:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.4) !important;
}

/* Founder Card Styles */
.founder-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.founder-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.founder-image-container {
  position: relative;
}

.founder-image {
  width: 250px;
  height: 300px;
  border-radius: 15px;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.founder-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.founder-social {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  backdrop-filter: blur(5px);
}

.founder-social a {
  color: white;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.founder-social a:hover {
  color: #4CAF50;
}

.founder-info {
  flex: 1;
}

.founder-info h3 {
  font-size: 1.8rem;
  margin: 0 0 0.5rem 0;
  color: #fff;
  font-weight: 600;
}

.founder-title {
  color: #4CAF50;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.founder-quote {
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  position: relative;
  padding-left: 1rem;
  border-left: 3px solid #4CAF50;
}

@media (max-width: 768px) {
  .founder-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .founder-image {
    width: 200px;
    height: 240px;
  }

  .founder-social {
    position: relative;
    margin-top: 1rem;
  }

  .founder-quote {
    padding-left: 0;
    border-left: none;
    border-top: 3px solid #4CAF50;
    padding-top: 1rem;
    margin-top: 1rem;
  }
}

/* Mobile optimizations */
.mobile-optimized.hero {
  min-height: unset;
  height: auto;
  padding: 2rem 1rem;
}

.mobile-optimized.about-content {
  gap: 1rem;
}

.mobile-optimized.features-grid,
.mobile-optimized.courses-grid {
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0;
}

@media (max-width: 480px) {
  .mobile-optimized .logo-img {
    max-width: 30px;
    max-height: 30px;
  }
  
  .mobile-optimized .feature,
  .mobile-optimized .course-card {
    padding: 1rem;
  }
}

/* Mobile Navigation Bar */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--glass-dark);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--light);
  text-decoration: none;
  padding: 6px 0;
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

.mobile-nav-item i {
  font-size: 1.25rem;
  margin-bottom: 4px;
  color: var(--primary);
}

.mobile-nav-item:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

.mobile-nav-item:active {
  transform: translateY(0);
}

/* Display mobile nav only on small screens */
@media (max-width: 768px) {
  .mobile-nav {
    display: flex;
  }
  
  /* Add padding to the bottom to avoid content being hidden behind the mobile nav */
  body {
    padding-bottom: 70px;
  }
  
  /* Adjust footer styling to accommodate mobile nav */
  footer {
    margin-bottom: 60px;
  }
  
  /* AI button adjustments for mobile */
  .ai-button {
    position: fixed;
    bottom: 80px; /* Position above the mobile nav bar */
    right: 20px;
    transform: scale(0.85); /* Make it slightly smaller */
    z-index: 99; /* Ensure it's above other content but below nav */
  }
}

/* Logout text styling */
.logout-text {
  position: relative;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

/* Add breathing animation to the logout button on hover */
#logout:hover .logout-text {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  /* Mobile styles for logout text */
  .logout-text {
    font-size: 15px;
  }
  
  /* Improve visibility with slight text shadow */
  #logout .logout-text {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }
}

/* Fixes for navbar and alignment */
@media (min-width: 769px) {
  .nav-container {
    gap: 1rem;
  }
  
  .logo-container {
    flex: 1.5;
  }
  
  .nav-links {
    flex: 3;
  }
  
  .user-profile {
    flex: 1.5;
    justify-content: flex-end;
  }
}

/* Ensure proper spacing in the user profile dropdown */
.user-info {
  gap: 0;
}

/* Improved mobile nav appearance */
@media (max-width: 768px) {
  .hamburger {
    margin-right: 5px;
  }
  
  .user-profile {
    margin-left: auto;
  }
  
  /* Center the logo better on mobile */
  .logo-container {
    left: 48%;
  }
}