@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap");

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

:root {
  /* VidyaNex Brand Colors */
  --brand-orange: #FF7A00;
  --brand-yellow: #FFB703;
  --brand-pink: #E84393;
  --brand-purple: #7B2CBF;
  --brand-violet: #5A189A;
  --brand-white: #FFFFFF;
  --primary-green: #22c55e;
  /* Added for success/verify actions */

  /* Mappings */
  --primary-color: #E84393;
  /* Pink for primary actions if solid needed */
  --primary-gradient: linear-gradient(135deg, #FF7A00, #E84393);
  /* Gradient: Purple -> Violet */
  --secondary-gradient: linear-gradient(135deg, #7B2CBF, #5A189A);

  /* Gradient Divider for Footer */
  --gradient-divider: linear-gradient(to right, #FF7A00, #E84393, #7B2CBF);

  --icon-gradient: linear-gradient(135deg, #FF7A00, #E84393, #7B2CBF);

  --bg-white: #ffffff;
  --bg-primary: #ffffff;
  /* Alias for compatibility */
  --bg-secondary: #f9f9f9;
  --text-primary: #1f1f1f;
  --text-secondary: #5f6368;
  --border-color: #e0e0e0;
  --card-bg: #ffffff;

  /* UI Elements */
  --border-radius: 12px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --border-glow: 0 0 10px rgba(232, 67, 147, 0.3);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hide Scrollbar Globally */
::-webkit-scrollbar {
  display: none;
}

html {
  scrollbar-width: none;
}

/* Force Light Mode Default */
body {
  background-color: var(--bg-white);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  /* Applied Inter globally */
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* Dark Mode Palette */
/* Dark Mode Palette - Refined for Clarity */
body.dark-mode {
  /* Premium Neutral Dark (Zinc Palette) */
  --bg-white: #09090b;
  /* Deepest Black/Gray */
  --bg-secondary: #18181b;
  /* Slightly lighter bg for sections */

  --text-primary: #fafafa;
  /* Almost white */
  --text-secondary: #a1a1aa;
  /* Muted gray */

  --border-color: #27272a;
  /* Subtle border */

  --card-bg: #222225;
  /* Distinct Card Background (Lighter than BG) */
  --bg-primary: #222225;
  /* Match card bg for primary elements in dark mode */

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  line-height: 1.8;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #E84393, #FF7A00);
  /* Reverse gradient on hover */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(232, 67, 147, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--brand-purple);
  border: 2px solid var(--brand-purple);
}

.btn-secondary:hover {
  background: var(--brand-purple);
  color: white;
  box-shadow: 0 5px 15px rgba(123, 44, 191, 0.3);
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

.navbar .btn {
  padding: 8px 20px;
  font-size: 0.9rem;
}

body.dark-mode .navbar {
  background-color: rgba(31, 31, 31, 0.95);
}

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

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

.logo img {
  height: 65px;
  width: auto;
  object-fit: contain;
}

/* Dark Mode Logo Swap */
body.dark-mode .logo img {
  content: url("images/vidyanex-logo-dark.png");
  mix-blend-mode: screen;
  filter: contrast(2.0) brightness(0.6);
  /* Aggr. filter to hide background box */
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: var(--text-primary);
  font-weight: 500;
  padding: 8px 0;
}

.nav-links a:hover {
  color: var(--brand-pink);
  background: -webkit-linear-gradient(0deg, #FF7A00, #E84393);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dropdown {
  position: relative;
}

/* Cursor Bubble */
.cursor-bubble {
  position: fixed;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 44, 191, 0.3), transparent);
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease;
  transform: translate(-50%, -50%);
}

/* Card Glow */
.card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e0e0e0;
  transition: var(--transition);
}

body.dark-mode .card {
  background-color: var(--card-bg);
  border-color: var(--border-color);
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border-color);
}

body.dark-mode input:focus,
body.dark-mode select:focus,
body.dark-mode textarea:focus {
  border-color: var(--brand-pink);
  background-color: var(--card-bg);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--border-glow), var(--shadow-lg);
  /* Purple glow on hover */
  border-color: var(--brand-pink);
}

.card-tilt {
  transition: transform 0.3s ease;
}

/* Chatbot Recolor */
.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: white;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10001;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--border-glow);
  animation: wiggle 1s ease-in-out infinite;
}

.chatbot-header {
  background: var(--secondary-gradient);
  color: white;
  padding: 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-chatbot {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.close-chatbot:hover {
  opacity: 0.8;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message {
  padding: 10px 14px;
  border-radius: var(--border-radius);
  max-width: 80%;
  word-wrap: break-word;
}

.message.bot {
  background-color: var(--bg-secondary);
  align-self: flex-start;
}

.message.user {
  background: var(--primary-gradient);
  color: white;
  align-self: flex-end;
}

.chatbot-input {
  display: flex;
  padding: 16px;
  border-top: 1px solid #e0e0e0;
}

.chatbot-input input {
  flex: 1;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius);
  font-family: "Inter", sans-serif;
}

.chatbot-input button {
  margin-left: 8px;
  padding: 10px 20px;
  background: var(--brand-purple);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.chatbot-input button:hover {
  background: var(--brand-violet);
}

.floating-buttons {
  position: fixed;
  bottom: 100px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9997;
}

.toast {
  position: fixed;
  top: 100px;
  right: -400px;
  background: var(--primary-gradient);
  color: white;
  padding: 16px 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  transition: right 0.3s ease;
}

.toast.show {
  right: 20px;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  margin-top: 8px;
  border-top: 3px solid var(--brand-pink);
}

body.dark-mode .dropdown-content {
  background-color: var(--card-bg);
  /* Use dark card background */
  box-shadow: var(--shadow-lg);
  /* Ensure shadow is visible */
  border: 1px solid var(--border-color);
  /* Add border for contrast */
  border-top: 3px solid var(--brand-pink);
  /* Keep the accent top border */
}

/* Ensure links inside dropdown are white in dark mode */
body.dark-mode .dropdown-content a {
  color: var(--text-primary);
}

body.dark-mode .dropdown-content a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  /* Slight lightening on hover */
  color: var(--brand-pink);
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content a {
  display: block;
  padding: 12px 20px;
  color: var(--text-primary);
  transition: var(--transition);
}

.dropdown-content a:hover {
  background-color: rgba(232, 67, 147, 0.05);
  /* Light pink tint */
  color: var(--brand-purple);
  -webkit-text-fill-color: initial;
}

/* Lightbulb Theme Toggle */
.theme-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  width: 48px;
  height: 48px;
  position: relative;
  transition: transform 0.2s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.theme-toggle input {
  display: none;
}

.theme-toggle-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.theme-toggle__lightbulb {
  width: 100%;
  height: 100%;
  color: var(--text-primary);
  /* Default color */
  transition: color 0.3s ease;
}

.theme-toggle__lightbulb path {
  transition: stroke-dashoffset 0.4s ease, opacity 0.4s ease;
}

/* Rays Animation */
@keyframes pulse-rays {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(0.95);
  }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--brand-purple);
  /* Primary heading color */
}

h1 span,
h2 span,
h3 span {
  background: var(--primary-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Lightbulb Theme Toggle - Recolor */
.theme-toggle__lightbulb {
  width: 100%;
  height: 100%;
  color: var(--brand-orange);
  /* Default to orange */
  transition: color 0.3s ease;
}

body:not(.dark-mode) .theme-toggle__lightbulb {
  color: var(--brand-yellow);
  /* Golden yellow when "on" */
}

/* Footer */
.footer {
  background-color: #000000;
  color: #e0e0e0;
  padding: 50px 0 20px;
  /* Reduced padding */
  margin-top: 100px;
  border-top: none;
  position: relative;
}

/* Force light text in footer since background is black */
.footer p,
.footer li,
.footer a {
  color: #b0b0b0 !important;
}

.footer a:hover {
  color: #ffffff !important;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 30px;
  margin-bottom: 40px;
  text-align: left;
}

/* Brand Section */
.footer-section h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-purple);
  /* Reverted to Purple */
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.footer-section p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 280px;
}

/* Headings */
.footer-section h4 {
  color: var(--brand-orange);
  /* Changed to Orange as requested */
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: capitalize;
}

/* Lists */
.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 10px;
  /* Tighter spacing */
  display: flex;
  align-items: center;
}

/* Links */
/* Links - Removed Dots */
.footer-section:not(.brand-section):not(.contact-section) li::before {
  display: none;
}

.footer-section a {
  color: var(--text-secondary);
  transition: all 0.3s ease;
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  /* Separates icon and text */
}

/* Brand Hover with Glow */
.footer-section a:hover {
  color: var(--brand-purple);
  /* Brand Purple */
  text-shadow: 0 0 15px rgba(123, 44, 191, 0.3);
  transform: translateX(5px);
}

/* Radial Glow Behind Text */
.footer-section a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(123, 44, 191, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  pointer-events: none;
}

.footer-section a:hover::before {
  opacity: 1;
}

/* Arrow on Hover */
.footer-section a::after {
  content: "\f061";
  /* FontAwesome Arrow Right */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-left: -10px;
  opacity: 0;
  transition: all 0.3s ease;
  color: var(--brand-pink);
  /* Brand Pink */
  font-size: 0.8rem;
}

.footer-section a:hover::after {
  margin-left: 8px;
  opacity: 1;
}



/* Contact Section */
.contact-section li {
  align-items: center;
  /* Changed from flex-start to center for better icon alignment */
  gap: 10px;
  /* Consistent spacing */
  margin-bottom: 14px;
}

.contact-section i {
  /* color: var(--brand-pink);  <-- Removed to match other pages (White/Gray) */
  font-size: 0.95rem;
  /* Slightly smaller icons */
  margin-top: 4px;
  min-width: 18px;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #333;
  /* Default fallback */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Individual Brand Colors */
.social-icons a:nth-child(1) {
  background: #1877F2;
}

/* Facebook */
.social-icons a:nth-child(2) {
  background: #1DA1F2;
}

/* Twitter */
.social-icons a:nth-child(3) {
  background: #0A66C2;
}

/* LinkedIn */
.social-icons a:nth-child(4) {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888, #2315fa);
}

/* Instagram */
.social-icons a:nth-child(5) {
  background: #FF0000;
}

/* YouTube */

.social-icons a:hover {
  background: var(--brand-orange);
  /* Orange on hover to match headers */
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(232, 67, 147, 0.3);
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 20px;
}

body.dark-mode .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.05);
}

/* Floating Elements Container - Positioned to not block content */
.floating-buttons {
  position: fixed;
  bottom: 100px;
  /* Align with Chatbot window bottom area */
  right: 20px;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  z-index: 9990;
  pointer-events: none;
}

.chatbot-window.active~.floating-buttons {
  display: none;
  /* Hide floating buttons when chat is open to prevent clutter */
}

/* Standardizing Floating Buttons */
.floating-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--brand-blue, #007bff);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  pointer-events: auto;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.floating-btn.whatsapp {
  background: #25D366;
}

.floating-btn.phone {
  background: var(--brand-purple);
}

/* Dark Mode - Floating Buttons */
body.dark-mode .floating-btn {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

body.dark-mode .floating-btn.whatsapp {
  background: #25D366;
  color: white;
}

body.dark-mode .floating-btn.whatsapp svg {
  fill: white;
}

body.dark-mode .floating-btn.phone {
  background: var(--brand-purple-light, #a78bfa);
  color: white;
}

body.dark-mode .floating-btn.phone i {
  color: white;
}

/* Chatbot Toggle */
.chatbot-toggle {
  position: fixed;
  bottom: 30px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: white;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(123, 44, 191, 0.4);
  z-index: 9995;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
}

/* Dark Mode - Chatbot Toggle */
body.dark-mode .chatbot-toggle {
  box-shadow: 0 4px 20px rgba(167, 139, 250, 0.4);
}

body.dark-mode .chatbot-toggle i {
  color: white;
}

/* Scroll to Top - Right Aligned (Above Floating Buttons) */
.scroll-to-top-btn {
  position: fixed;
  bottom: 230px;
  /* Above Chatbot (100) + Floating (160) approx, let's stack them. 
                    Chatbot Toggle is bottom:30. Floating Buttons bottom:100. 
                    So Scroll should be above that? 
                    User said: "scroller can add on the right side of call button above"
                    Call/Whatsapp container is .floating-buttons at bottom: 100px.
                    So this should be bottom: 230px or just above them. */
  right: 20px;
  /* Changed from left: 20px */
  width: 45px;
  height: 45px;
  background: var(--brand-purple);
  color: white;
  border: 0;
  border-radius: 50%;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top-btn:hover {
  background: var(--brand-violet);
  transform: translateY(-5px);
}

/* Mobile Navigation Styles (Wrapped in Media Query) */
@media (max-width: 968px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2000;
    /* Highest priority */
    padding: 0;
  }

  .hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--brand-purple);
    border-radius: 3px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
    pointer-events: none;
    /* Ignore clicks on lines */
  }

  /* Hamburger Animation */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    max-width: none;
    /* Full width */
    height: calc(100vh - 70px);
    background-color: var(--bg-white);
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20px;
    gap: 30px;
    transform: translateX(100%);
    /* Hide to right */
    transition: transform 0.3s ease-in-out;
    box-shadow: none;
    z-index: 1090;
  }

  /* Dark mode support */
  body.dark-mode .nav-links {
    background-color: var(--bg-secondary);
  }

  .nav-links.active {
    transform: translateX(0);
    /* Slide in */
    left: auto;
    /* Ensure left isn't overriding */
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    margin-bottom: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
    display: block;
    width: 100%;
    padding: 10px 0;
  }

  .nav-links .theme-toggle {
    transform: scale(1.2);
    margin: 20px auto 0;
    /* Center it */
  }
}

@media (min-width: 969px) {
  .hamburger {
    display: none;
    /* Hide hamburger on desktop */
  }

  .nav-links {
    position: static;
    flex-direction: row;
    background: transparent;
    height: auto;
    width: auto;
    padding: 0;
    box-shadow: none;
    left: auto;
    transform: none;
    overflow: visible;
  }

  .nav-links li {
    margin: 0;
  }
}

/* Chatbot Window - Fixed Side Panel */
/* Chatbot Window - Fixed Side Panel */
.chatbot-window {
  position: fixed;
  bottom: 100px;
  right: 20px;
  /* Fixed right position to avoid off-screen issues */
  width: 380px;
  height: 500px;
  max-height: 70vh;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  display: none;
  /* Hidden by default */
  flex-direction: column;
  z-index: 10000;
  border: 1px solid var(--border-color);
}

.chatbot-window.active {
  display: flex !important;
  /* Force show */
  visibility: visible;
  opacity: 1;
}

body.dark-mode .chatbot-window {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

/* Chatbot Typing Indicator */
.message.typing {
  font-style: italic;
  color: var(--text-secondary);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.5;
  }
}

/* Hamburger styles are now handled in the media query block above */

/* Footer Adjustment was here - Removed to allow 4 columns on larger screens */
@media (max-width: 768px) {
  .container {
    max-width: 100%;
    /* Allow full width on mobile but with padding */
    padding: 0 20px !important;
    /* Ensure content doesn't touch edges */
  }

  h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 16px;
    /* Consistent padding for mobile */
    width: 100%;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .section {
    padding: 40px 0;
    /* Tighter sections on mobile */
  }

  .btn {
    width: 100%;
    /* Full width buttons on mobile are often better for touch */
    display: block;
    margin-bottom: 10px;
  }

  .navbar-container {
    padding: 12px 16px;
  }

  /* Footer Stack - Strict Single Column */
  .footer-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding: 0 10px;
  }

  .footer-section {
    width: 100%;
  }

  .footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Force center align for links */
  }

  .footer-section p,
  .footer-section a {
    text-align: center;
    justify-content: center;
  }

  .footer-section h4::after {
    left: 50%;
    transform: translateX(-50%);
    /* Center the underline */
  }

  .social-icons {
    justify-content: center;
  }

  /* Reset link alignment hover effect for centered footer */
  .footer-section a:hover {
    transform: translateY(-2px);
    /* Only move up, not right */
  }

  /* Mobile Floating Buttons Positioning */
  .floating-buttons {
    bottom: 90px;
    right: 16px;
    gap: 12px;
  }

  .chatbot-toggle {
    bottom: 20px;
    right: 16px;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .chatbot-window {
    position: fixed;
    width: auto;
    left: 16px;
    right: 16px;
    bottom: 80px;
    height: 60vh;
    max-height: 500px;
    z-index: 10000;
  }
}

/* Floating WhatsApp Button */
.floating-btn.whatsapp {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25d366;
  /* WhatsApp green */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.floating-btn.whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

/* Floating Phone Button */
.floating-btn.phone {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #4169E1;
  /* Royal Blue */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.floating-btn.phone:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

/* Courses Grid Layout */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 20px 0;
}

@media (max-width: 1200px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }
}

/* Coming Soon Hover Effect - Crazy Animation */
.coming-soon {
  position: relative !important;
  overflow: hidden !important;
}

/* Glass Striped Overlay */
.coming-soon::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Glass effect */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(3px) grayscale(30%);
  z-index: 10;
  opacity: 0;
  /* Animated Stripes */
  background-image: linear-gradient(45deg,
      rgba(47, 141, 70, 0.15) 25%,
      transparent 25%,
      transparent 50%,
      rgba(47, 141, 70, 0.15) 50%,
      rgba(47, 141, 70, 0.15) 75%,
      transparent 75%,
      transparent);
  background-size: 40px 40px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

/* Moving animation for stripes */
@keyframes moveStripes {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 40px 40px;
  }
}

.coming-soon:hover::before {
  opacity: 1;
  transform: translateY(0);
  animation: moveStripes 1s linear infinite;
}

/* The "Crazy" Badge */
/* The "Crazy" Badge */
.coming-soon::after {
  content: "🚧 OPENING SOON 🚧";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0) rotate(-15deg);
  z-index: 20;
  background: var(--brand-purple);
  /* Changed to purple */
  color: white;
  padding: 12px 24px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 1px;
  border-radius: 50px;
  box-shadow: 0 0 20px rgba(123, 44, 191, 0.6);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  white-space: nowrap;
  pointer-events: none;
  border: 2px solid white;
}

.coming-soon:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

/* Navbar specific overrides */
.navbar .coming-soon::before {
  display: none;
}

.navbar .coming-soon::after {
  content: "Check Back Later!";
  font-size: 0.75rem;
  padding: 6px 10px;
  background: #333;
  box-shadow: none;
  border: none;
  animation: none;
  font-weight: 500;
}

.navbar .coming-soon:hover::after {
  transform: translate(-50%, 140%) scale(1);
}

.coming-soon:not(.navbar a):hover * {
  pointer-events: none !important;
}

/* Mobile Responsiveness for Footer */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }
}

@media (max-width: 576px) {
  .footer {
    padding-top: 40px;
  }

  .footer-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  /* Center align items on mobile */
  .footer-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-section p {
    text-align: center;
    margin: 0 auto 20px;
  }

  .footer-section li {
    justify-content: center;
  }

  /* Center the social icons */
  .social-icons {
    justify-content: center;
  }

  .contact-section li {
    justify-content: center;
    text-align: center;
  }

  /* Adjust Floating Buttons for Mobile */
  .floating-buttons {
    bottom: 90px;
    right: 16px;
    gap: 12px;
  }

  .chatbot-toggle {
    bottom: 20px;
    right: 16px;
    width: 50px;
    height: 50px;
  }

  .chatbot-window {
    width: auto;
    left: 10px;
    right: 10px;
    bottom: 80px;
  }
}

/* =========================================
   Global Promo Banner & Popup Styles
   ========================================= */

.top-notification-banner {
  background: linear-gradient(90deg, #ff9933, #ffffff, #138808);
  color: #000;
  text-align: center;
  padding: 8px 40px 8px 20px;
  font-weight: 700;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 10002;
  /* Above Navbar */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  min-height: 40px;
  transition: transform 0.3s ease;
}

.banner-close-btn {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: #333;
  transition: background 0.2s;
}

.banner-close-btn:hover {
  background: white;
  color: #000;
}

/* Adjustments when banner is active */
body.has-banner .navbar {
  top: 40px;
}

body.has-banner section.courses-header,
body.has-banner .hero-section {
  padding-top: 10px;
}

@media (max-width: 768px) {
  .top-notification-banner {
    font-size: 0.75rem;
    padding: 6px 35px 6px 10px;
  }

  body.has-banner .navbar {
    top: 35px;
    /* Approximate height on mobile */
  }
}

/* Popup Modal */
.promo-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10005;
  /* Highest */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.promo-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.promo-popup {
  background: var(--bg-primary);
  padding: 30px;
  border-radius: 20px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid var(--brand-pink);
}

.promo-popup-overlay.active .promo-popup {
  transform: scale(1);
}

.promo-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.2s;
  line-height: 1;
}

.promo-close:hover {
  color: var(--brand-pink);
}

.promo-popup h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  background: var(--primary-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.promo-popup p {
  color: var(--text-primary);
  margin-bottom: 24px;
  font-size: 1rem;
  line-height: 1.5;
}

.promo-popup .btn {
  width: 100%;
  font-weight: 600;
  font-size: 1.1rem;
}

/* ============================================= */
/* GenAI Masterclass Simple Round Button & Popup */
/* ============================================= */

/* Round Button - Similar to WhatsApp/Call buttons */
.genai-floating-btn {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
  z-index: 9998;
  transition: all 0.3s ease;
}

.genai-floating-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.5);
}

/* AI Loader Animation - Orbiting Dots */
.ai-loader {
  width: 32px;
  height: 32px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-center {
  font-size: 16px;
  color: white;
  animation: centerPulse 2s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.ai-orbit {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: orbitSpin 3s linear infinite;
}

.ai-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 12px rgba(255, 255, 255, 0.4);
}

.ai-dot:nth-child(1) {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  animation: dotGlow 1.5s ease-in-out infinite;
}

.ai-dot:nth-child(2) {
  bottom: 3px;
  left: 3px;
  animation: dotGlow 1.5s ease-in-out infinite 0.5s;
}

.ai-dot:nth-child(3) {
  bottom: 3px;
  right: 3px;
  animation: dotGlow 1.5s ease-in-out infinite 1s;
}

@keyframes orbitSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes centerPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
    text-shadow: 0 0 15px rgba(255, 255, 255, 1), 0 0 25px rgba(255, 255, 255, 0.5);
  }
}

@keyframes dotGlow {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.6);
  }

  50% {
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(255, 255, 255, 1), 0 0 20px rgba(255, 255, 255, 0.5);
  }
}

/* Simple Popup Panel */
.genai-popup-panel {
  position: fixed;
  right: -400px;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  max-width: 90vw;
  background: var(--bg-white);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: right 0.35s ease;
  overflow: hidden;
}

.genai-popup-panel.active {
  right: 20px;
}

/* Popup Header */
.genai-popup-header {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: white;
  padding: 20px;
  position: relative;
}

.genai-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.genai-popup-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.genai-popup-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.genai-popup-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  color: white !important;
  -webkit-text-fill-color: white !important;
}

.genai-popup-subtitle {
  font-size: 0.85rem;
  margin-top: 6px;
  opacity: 0.9;
}

/* Popup Content */
.genai-popup-content {
  padding: 20px;
}

.genai-event-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.genai-event-info .info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.genai-event-info .info-row i {
  width: 24px;
  color: #7c3aed;
}

.genai-free-badge {
  display: inline-block;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}

/* CTA Buttons */
.genai-popup-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.genai-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.genai-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.genai-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  padding: 10px 20px;
  border: 2px solid rgba(124, 58, 237, 0.3);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.genai-btn-secondary:hover {
  border-color: #7c3aed;
  background: rgba(124, 58, 237, 0.05);
}

/* Dark Mode */
body.dark-mode .genai-popup-panel {
  background: var(--bg-secondary);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

body.dark-mode .genai-btn-secondary {
  border-color: rgba(124, 58, 237, 0.5);
}

/* Mobile Responsive */
@media (max-width: 576px) {
  .genai-floating-btn {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
    right: 16px;
  }

  .genai-popup-panel {
    width: calc(100% - 32px);
    right: -100%;
    top: auto;
    bottom: 100px;
    transform: none;
    border-radius: 16px;
  }

  .genai-popup-panel.active {
    right: 16px;
  }
}