/* Modern Reset & Base */
:root {
  --primary: #ffc83f;
  /* New Yellow */
  --secondary: #0053a0;
  /* New Navy */
  --accent: #3b82f6;
  --dark-bg: #0b1121;
  /* Deep Navy-Black */
  --darker-bg: #020617;
  --light-bg: #eef2f6;
  /* Soft Blue-White */
  --white: #ffffff;

  /* Soft Gloss Variables */
  --glass: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(0, 83, 160, 0.05);
  /* Navy tinted shadow */

  --text-main: #1e293b;
  --text-light: #64748b;
  --card-bg: rgba(255, 255, 255, 0.6);
}

body.dark-mode {
  --light-bg: #0b1121;
  /* Main dark background */
  --white: #1e293b;

  /* Dark Gloss Variables */
  --glass: rgba(11, 17, 33, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

  --text-main: #f8fafc;
  /* White-ish text */
  --text-light: #cbd5e1;
  --primary: #ffc83f;
  /* Keep Yellow */
  --secondary: #1d1a16;
  /* Updated as requested, originally #60a5fa */
  /* Light Blue for secondary elements in dark mode? Or White? */
  /* User said Logo is White/Yellow. So text should be White. */
  /* But --secondary usually used for Headings. Let's make it White or Light Blue. */
  /* If I set --secondary to #fff, it matches logo text. */

  --card-bg: rgba(30, 41, 59, 0.4);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--light-bg);
  color: var(--text-main);
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
  line-height: 1.6;
}

html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.hero-section {
  scroll-snap-align: start;
  min-height: 100vh;
  /* Ensure it has physical height for snap target */
  position: relative;
  /* layout context */
}

/* --- Utilities --- */
/* --- Utilities --- */
.glass-effect {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  /* Subtle border for gloss definition */
  box-shadow: var(--glass-shadow);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

ul {
  list-style: none;
}

.mobile-break {
  display: none;
}

/* --- Header --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  height: 90px;
  /* Removed shadow/border to integrate with hero as requested */
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  /* "Bant gereksiz" -> Removing any distinct bottom line */
  box-shadow: none;
  /* Explicitly remove shadow */
}

body.dark-mode .main-header {
  background: rgba(15, 23, 42, 0.85);
}

.header-left {
  flex-shrink: 0;
}

.header-left {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand-wrapper {
  position: relative;
  height: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.header-logo {
  height: auto;
  max-height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Logo Toggles */
.logo-light {
  display: block !important;
}

.logo-dark {
  display: none !important;
}

body.dark-mode .logo-light {
  display: none !important;
}

body.dark-mode .logo-dark {
  display: block !important;
}

/* Mega Menu */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mega-menu {
  display: flex;
  gap: 10px;
  /* Reduced gap to fit */
  flex-wrap: nowrap;
  /* Ensure menu items stay side-by-side */
}

.menu-item-card {
  display: flex;
  flex-direction: column;
  padding: 6px 12px;
  /* Compact */
  background: rgba(0, 0, 0, 0.04);
  /* Soft background for light mode */
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
  min-width: auto;
  /* Allow shrink */
}

body.dark-mode .menu-item-card {
  background: rgba(255, 255, 255, 0.15);
  /* Distinct button look in dark mode */
  border-color: rgba(255, 255, 255, 0.05);
}

.menu-item-card:hover {
  background: var(--card-bg);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.menu-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--secondary);
}

body.dark-mode .menu-title {
  color: #fbbf24;
  /* Yellow in dark mode as requested */
}

.menu-item-card:hover .menu-title {
  color: var(--primary);
}

.menu-desc {
  font-size: 0.7rem;
  color: var(--text-light);
  white-space: nowrap;
}

/* Theme Toggle */
/* Theme Toggle */
.theme-btn {
  background: rgba(255, 255, 255, 0.5);
  /* Slight back for visibility */
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--secondary);
  /* Dark icon */
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.theme-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: rotate(15deg);
}

body.dark-mode .theme-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* --- Main Content --- */
.main-content {
  padding-top: 0px;
  /* Full screen hero */
  padding-bottom: 0px;
  /* Footer handled by scroll content */
  min-height: 100vh;
  display: block;
  /* changed from flex center */
  width: 100%;
}

.hero-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 0;
  padding: 100px 0 60px 0;
  /* Header/Footer awareness */
  pointer-events: auto;
}

.scroll-content {
  position: relative;
  z-index: 10;
  padding-top: 100vh;
  /* Replaced margin-top to prevent collapse */
  margin-top: 0;
  width: 100%;
  pointer-events: none;
  /* Allow clicks to pass through to hero in the padding area */
}

.content-card {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  max-width: 100vw;
  box-sizing: border-box;
  /* Explicitly ensure border-box */
  border: none;
  box-shadow: none;
  border-radius: 0;

  /* Full screen centered layout */
  min-height: 100vh;
  scroll-snap-align: start;
  /* Snap to card top */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  /* Center text content */
  padding: 110px 5% 80px 5%;
  /* Header/Footer spacing */

  /* Solid background to cover previous layer (parallax effect) */
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  /* Remove transition as full screen scroll is driven by user */
  margin: 0;
  pointer-events: auto;
  /* Re-enable pointer events for cards */
}

body.dark-mode .content-card {
  background: rgba(2, 6, 23, 0.95);
  /* Nearly solid dark */
  border: none;
}

.sticky-card {
  position: sticky;
  top: 0;
  /* Sticky to top for full screen overlay */
}

.hero-section {
  width: 90%;
  max-width: 900px;
  text-align: center;
}

/* Logo Area */
.logo-wrapper {
  margin-bottom: 30px;
}

.academy-logo {
  max-width: 280px;
  height: auto;
  margin-bottom: 15px;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

.sponsor-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Titles */
.program-title-wrapper {
  margin-bottom: 10px;
  /* Reduced from 40px to pull counter up */
}

.main-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  /* Increased from 5px to separate Badge and Title */
  margin-bottom: 5px;
  /* Reduced from 15px */
}

.title-top-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.period-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1px;
}

.sponsor-badge {
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
  background: rgba(11, 61, 145, 0.1);
  color: var(--secondary);
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 600;
  border: 1px solid rgba(11, 61, 145, 0.15);
  white-space: nowrap;
}

body.dark-mode .sponsor-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #ddd;
  border-color: rgba(255, 255, 255, 0.1);
}

.title-bottom {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--secondary) 0%, #2980b9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

body.dark-mode .title-bottom {
  background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* Countdown */
.countdown-section {
  margin-bottom: 50px;
}

.timer-display {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 25px;
}

.t-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.t-unit span {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.05);
}

body.dark-mode .t-unit span {
  color: #fff;
}

.t-unit label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 5px;
  letter-spacing: 1px;
}

.sep {
  font-size: 3rem;
  color: var(--text-light);
  line-height: 0.8;
  opacity: 0.3;
}

.countdown-msg-wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.count-line-1 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 5px;
}

.count-line-2 {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-main);
}

.highlight-date {
  color: var(--primary);
  font-weight: 700;
}

body.dark-mode .count-line-2 {
  color: #fff;
}

/* Info Content */
.program-info {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  padding: 40px;
  border-radius: 24px;
  margin-bottom: 40px;
  text-align: left;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
}

/* New Mission & Quote Styling */
.mission-text-1,
.mission-text-2 {
  font-size: 1rem;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 10px;
}

.mission-text-1.extra-spacing {
  margin-bottom: 20px;
}

.mission-text-2 {
  margin-bottom: 25px;
}

.future-quote {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  color: var(--secondary);
  text-align: center;
  font-style: italic;
  margin: 0 auto 25px auto;
  max-width: 100%;
  /* Allow full width to fit single line on desktop */
  position: relative;
  padding: 0 5px;
}

body.dark-mode .future-quote {
  color: var(--primary);
}

.mission-highlight {
  text-align: center;
  font-style: italic;
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 30px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}

.feature-list li i {
  color: var(--primary);
  font-size: 1.2rem;
}

.status-box {
  background: rgba(255, 194, 14, 0.1);
  border-left: 4px solid var(--primary);
  padding: 20px;
  border-radius: 8px;
}

.status-warning {
  color: #b45309;
  /* Dark orange */
  font-weight: 700;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.dark-mode .status-warning {
  color: var(--primary);
}

.status-info {
  font-size: 0.9rem;
  opacity: 0.9;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 10px;
  text-transform: uppercase;
}

body.dark-mode .card-title {
  color: var(--primary);
  /* Visible in Dark Mode */
}

.content-separator {
  height: 2px;
  width: 100px;
  background: var(--glass-border);
  margin: 0 auto 40px auto;
}

/* About Section */
.about-section {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.about-section h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--secondary);
}

body.dark-mode .about-section h2 {
  color: #fff;
}

.about-section p {
  color: var(--text-light);
}

/* --- Social Bar --- */
/* --- Footer --- */
.main-footer {
  background: var(--secondary);
  color: #fff;
  padding: 5px 5%;
  /* Compact padding */
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .main-footer {
  background: #020617;
  border-top: 1px solid var(--glass-border);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0px;
  /* Reduced gap from 30px to 0 for tighter desktop footer */
}

/* --- Desktop Bar Layout --- */
.footer-bar-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 5px 0;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.footer-group {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  /* Occupy side space */
}

.group-left {
  justify-content: flex-start;
}

.group-right {
  justify-content: flex-end;
}

.footer-center-highlight {
  flex: 0 0 auto;
  margin: 0 20px;
  z-index: 10;
}

/* Social Icons (Global) */
/* Social Icons (Global) */
/* Social Icons and Mini Buttons Shared Styles */
.social-icon,
.mini-contact-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  transition: all 0.3s ease;
  padding: 0;
}

.social-icon:hover,
.mini-contact-btn:hover {
  transform: translateY(-3px);
  background: #fff;
  color: var(--secondary);
}



.mini-contact-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mini-contact-btn.whatsapp:hover {
  background: #25D366;
  color: #fff;
  /* Whatsapp white text on hover usually */
}

/* Call Center Button (Desktop) */
.main-call-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--primary);
  color: var(--text-main);
  padding: 10px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(255, 194, 14, 0.3);
}

.main-call-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 194, 14, 0.5);
  background: #fff;
}

body.dark-mode .main-call-btn {
  background: #1d1a16;
  color: var(--primary);
  /* Ensure text is consistent with dark theme */
}

.call-icon-circle {
  font-size: 1.6rem;
  display: flex;
  align-items: center;
}

.call-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.call-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  font-weight: 700;
}

.call-text {
  font-size: 1.3rem;
  font-weight: 900;
}


/* Right Utils (WhatsApp, Mail, Location) - EQUAL TO SOCIALS */
/* Mini Contact Button Specifics consolidated above */

.mini-contact-btn i {
  font-size: 1.3rem;
}

.mini-contact-btn i {
  font-size: 1.3rem;
}

.footer-bottom {
  text-align: center;
  /* border-top removed as requested */
  /* padding reduced for compact look */
  padding-top: 0px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  /* Make inline-block or similar if want strictly single line, but block is fine for bottom */
}

.footer-copyright-mobile {
  display: none;
}



/* Call Button Dark Mode - Inverted Scheme */
body.dark-mode .main-call-btn {
  background: var(--secondary);
  /* Navy Button */
  color: var(--primary);
  /* Yellow Text/Icon */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .main-call-btn:hover {
  background: #1e293b;
  /* Darker navy on hover */
  border-color: var(--primary);
}

body.dark-mode .call-sub {
  color: var(--primary);
  /* Yellow text */
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 1s ease forwards;
}

.animate-slide-up {
  opacity: 0;
  animation: slideUp 0.8s ease forwards;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .main-header {
    flex-direction: column;
    height: auto;
    position: fixed;
    /* Explicit sticky behavior */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1002;
    padding: 10px 5%;
    gap: 10px;
  }

  .hero-section {
    padding-top: 0;
  }

  /* Reset Mobile Padding from previous step */
  .main-content {
    padding-top: 0px;
  }

  /* Removed sticky-card top override for mobile */

  .header-right {
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    /* Keep row */
    gap: 10px;
    padding-bottom: 5px;
  }

  .mega-menu {
    flex-wrap: nowrap;
    /* Side by side */
    width: auto;
    overflow-x: auto;
    /* Scroll if needed */
    padding-bottom: 5px;
    /* Scrollbar space */
    justify-content: center;
  }

  .menu-item-card {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
  }

  .menu-title {
    font-size: 0.8rem;
  }

  .menu-desc {
    font-size: 0.7rem;
    display: block;
  }

  /* Theme toggle position on mobile? */
  /* Theme toggle position on mobile - Absolute Top Right */
  .theme-toggle-wrapper {
    position: absolute;
    top: 20px;
    /* Align with logo center (10px pad + 60px/2) - 20px (half toggle) = 20px */
    right: 5%;
    margin: 0;
    z-index: 1001;
  }

  .header-left {
    width: 100%;
    justify-content: flex-start;
    padding-right: 75px;
    /* Increased space for toggle button */
    overflow: hidden;
    position: relative;
  }

  .brand-wrapper {
    flex: 1;
    min-width: 0;
    justify-content: flex-start;
    max-width: calc(100% - 60px);
    /* Explicitly reserve space for absolute toggle */
  }

  /* Reset overlay styles if any remain */



  .title-top-row {
    margin-top: 10px;
  }

  .mobile-break {
    display: block;
    /* Force break */
  }

  .future-quote {
    font-size: 1.1rem;
    /* Ensure 2 lines on typical mobile */
    padding: 0;
  }

  /* Ensure header right is just menu now */
  .header-right {
    justify-content: center;
    padding-top: 5px;
  }

  .footer-bar-wrapper {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .group-left,
  .group-right {
    justify-content: center;
    width: 100%;
  }

  .footer-center-highlight {
    order: -1;
    width: 100%;
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .t-unit span {
    font-size: 1.8rem;
  }

  .desktop-text {
    display: none;
  }

  .mini-contact-btn,
  .social-icon {
    width: 40px;
    /* Reduced to 40px to fit single row */
    height: 40px;
    font-size: 1.3rem;
  }

  /* Fixed Bottom Bar Logic */
  .footer-bar-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 8px 10px;
    /* Reduced side padding */
    /* Thinner strip */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 9999;
    height: auto;
    min-height: 60px;
    z-index: 9999;

    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* Allow wrapping for copyright */
    gap: 0;
  }

  body.dark-mode .footer-bar-wrapper {
    background: rgba(15, 23, 42, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Left Group: Socials */
  .group-left {
    justify-content: flex-start;
    gap: 8px;
    /* Reduced gap to fit */
    width: auto;
    flex: 1;
  }

  .social-icon {
    color: var(--text-main);
    background: transparent;
  }

  .social-icon.instagram {
    color: #E1306C;
  }

  .social-icon.linkedin {
    color: #0077b5;
  }

  .social-icon.facebook {
    color: #1877F2;
  }

  /* Right Group: Utils */
  .group-right {
    justify-content: flex-end;
    gap: 8px;
    /* Reduced gap to fit */
    width: auto;
    flex: 1;
  }

  .mini-contact-btn {
    color: var(--text-main);
    background: transparent;
  }

  .mini-contact-btn:hover {
    background: transparent;
  }

  .mini-contact-btn.whatsapp {
    color: #25D366;
  }

  body.dark-mode .social-icon,
  body.dark-mode .mini-contact-btn {
    color: #fff;
  }

  /* Center: Call Button */
  .footer-center-highlight {
    order: 0;
    width: auto;
    flex: 0 0 auto;
    margin: 0 8px;
    position: relative;
    top: -25px;
    /* Move up so center aligns with border */
  }

  .main-call-btn {
    width: 65px;
    /* Slightly smaller to fit better */
    height: 65px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
    box-shadow: 0 -5px 20px rgba(255, 194, 14, 0.4);
    border: 4px solid var(--light-bg);
  }

  body.dark-mode .main-call-btn {
    border-color: #151b29;
    /* Updated border to match requested bg */
  }

  .call-info {
    display: none;
  }

  .call-icon-circle {
    font-size: 1.8rem;
  }

  /* Footer Content Padding for Scroll */
  .main-footer {
    padding-bottom: 30px;
    /* Reduced from 120px to make the dark strip thinner (70% less) */
    /* Ensure content clears fixed bar */
  }

  /* Copyright Styling for Mobile - Clean & Centered */
  .footer-copyright-mobile {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.65rem;
    /* Smaller for single line fit */
    padding: 2px 0 0 0;
    opacity: 0.7;
    color: var(--text-main);
    white-space: nowrap;
    /* Force single line if possible */
  }

  body.dark-mode .footer-copyright-mobile {
    color: #fff;
  }

  .desktop-only {
    display: none !important;
  }
}

/* PWA Install Popup */
.pwa-popup {
  position: fixed;
  bottom: 20px;
  left: 5%;
  width: 90%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  z-index: 99999;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pwa-popup.show {
  display: block;
  /* Ensure it's block when showing, handled by JS usually but good for backup */
  opacity: 1;
  transform: translateY(0);
}

body.dark-mode .pwa-popup {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
}

.pwa-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.pwa-close {
  position: absolute;
  top: -10px;
  right: -10px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: 0.2s;
}

.pwa-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-main);
}

body.dark-mode .pwa-close {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.pwa-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.pwa-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pwa-text h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
}

body.dark-mode .pwa-text h3 {
  color: #fff;
}

.pwa-text p {
  margin: 3px 0 0 0;
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.3;
}

/* Install Button */
.pwa-install-btn {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: var(--text-main);
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pwa-install-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(255, 194, 14, 0.3);
}

/* iOS Instructions */
.ios-instruction {
  font-size: 0.85rem;
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.03);
  padding: 10px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ios-instruction span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ios-instruction i {
  color: #007aff;
  /* iOS Blue */
  font-size: 1.2rem;
}

body.dark-mode .ios-instruction {
  background: rgba(255, 255, 255, 0.05);
  color: #ddd;
}

@media (min-width: 768px) {
  .pwa-popup {
    left: unset;
    right: 20px;
    bottom: 20px;
    width: 350px;
  }
}

/* --- SMALL MOBILE OPTIMIZATIONS (max-width: 380px) --- */
@media (max-width: 380px) {

  /* Compact Header */
  .main-header {
    padding: 8px 3% !important;
  }

  .header-logo {
    max-height: 45px !important;
  }

  .theme-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  /* Compact Content Cards */
  .content-card {
    padding: 95px 15px 100px 15px !important;
    /* Adjusted padding */
    justify-content: flex-start !important;
    /* Align to top to prevent title cutting */
  }

  /* Reduce spacing between elements to fit better */
  .card-title {
    font-size: 1.1rem;
    margin-bottom: 15px !important;
    margin-top: 10px !important;
  }

  .mission-text-1,
  .mission-text-2 {
    font-size: 0.9rem;
    margin-bottom: 10px !important;
  }

  .mission-text-1.extra-spacing {
    margin-bottom: 15px !important;
  }

  .feature-list {
    gap: 8px !important;
    margin-bottom: 20px !important;
  }

  .feature-list li {
    font-size: 0.9rem;
  }

  .status-box {
    padding: 15px !important;
    margin-top: 5px !important;
  }

  /* Compact Footer */
  .footer-bar-wrapper {
    flex-wrap: wrap !important;
    /* Allow wrap for copyright */
    padding: 5px 2px !important;
    gap: 2px !important;
    justify-content: space-evenly !important;
    /* Even distribution */
  }

  .group-left,
  .group-right {
    flex: 0 0 auto !important;
    /* Auto width */
    width: auto !important;
    gap: 5px !important;
  }

  /* Hide one social icon if space is too tight or just reduce size */
  .social-icon,
  .mini-contact-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 1.1rem !important;
  }

  /* Call Button - Make it smaller but still centered/prominent */
  .footer-center-highlight {
    margin: 0 4px !important;
    top: -15px !important;
    /* Less pop-up */
  }

  .main-call-btn {
    width: 50px !important;
    height: 50px !important;
    box-shadow: 0 -3px 10px rgba(255, 194, 14, 0.3) !important;
    border-width: 3px !important;
  }

  .call-icon-circle {
    font-size: 1.4rem !important;
  }

  /* Ensure copyright is tiny and on its own line */
  .footer-copyright-mobile {
    font-size: 0.6rem !important;
    padding-top: 5px;
    flex-basis: 100%;
    width: 100%;
  }
}

/* --- TABLET / COMPACT DESKTOP OVERRIDES (769px - 1100px) --- */
/* Force Single Line "Squeezed" Layout */
@media (min-width: 769px) and (max-width: 1100px) {

  /* 1. Header: Force Row & Remove Wrapping */
  .main-header {
    flex-direction: row !important;
    justify-content: space-between !important;
    height: 80px !important;
    padding: 0 20px !important;
    align-items: center !important;
    gap: 15px !important;
  }

  .header-left {
    width: auto !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
  }

  .brand-wrapper {
    width: auto !important;
    max-width: none !important;
  }

  .header-logo {
    max-height: 45px !important;
    /* Smaller logo */
  }

  .header-right {
    width: auto !important;
    padding: 0 !important;
    gap: 10px !important;
    justify-content: flex-end !important;
  }

  /* 2. Menu: Show Descriptions but Compact */
  .mega-menu {
    gap: 5px !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  .menu-item-card {
    padding: 4px 8px !important;
    /* Very tight padding */
    min-width: 0 !important;
    height: auto !important;
    justify-content: center !important;
  }

  .menu-desc {
    display: block !important;
    /* Show descriptions again */
    font-size: 0.6rem !important;
    /* Smaller text */
    line-height: 1 !important;
  }

  .menu-title {
    font-size: 0.75rem !important;
    /* Slightly smaller title */
    margin: 0 !important;
    line-height: 1.1 !important;
  }

  /* 3. Theme Toggle: Inline with menu */
  .theme-toggle-wrapper {
    position: static !important;
    margin-left: 2px !important;
    /* Tighter gap */
    top: auto !important;
    right: auto !important;
  }

  .theme-btn {
    width: 35px !important;
    height: 35px !important;
    font-size: 0.9rem !important;
  }

  /* 4. Footer: Force Row & Compact */
  .footer-bar-wrapper {
    position: relative !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    padding: 5px 0 !important;
    /* Add padding for copyright space */
    background: transparent !important;
    border: none !important;
    height: auto !important;
    width: 100% !important;
  }

  .main-footer {
    padding-bottom: 25px !important;
    /* Create space at bottom for copyright */
  }

  .footer-container {
    flex-direction: row !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  /* Hide Call Info Text */
  .call-info {
    display: none !important;
  }

  .main-call-btn {
    width: 45px !important;
    /* Slightly smaller */
    height: 45px !important;
    padding: 0 !important;
    justify-content: center !important;
    border-radius: 50% !important;
  }

  .call-icon-circle {
    font-size: 1.3rem !important;
  }

  .footer-center-highlight {
    order: 0 !important;
    margin: 0 10px !important;
    top: 0 !important;
    width: auto !important;
    flex: 0 0 auto !important;
  }

  .group-left,
  .group-right {
    width: auto !important;
    flex: 0 0 auto !important;
    gap: 5px !important;
    /* Tighter gap */
  }

  .desktop-only {
    display: none !important;
  }

  /* Copyright Absolute at Bottom Center */
  .footer-copyright-mobile {
    display: block !important;
    position: absolute;
    bottom: -20px;
    /* Position below the bar */
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.55rem !important;
    opacity: 0.6;
  }
}

/* --- MODAL OVERLAY SYSTEM --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
}

/* Modal Content */
.modal-content {
  background: var(--light-bg);
  width: 95%;
  max-width: 1200px;
  height: 90vh;
  /* Full height minus margins */
  border-radius: 20px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

body.dark-mode .modal-content {
  background: var(--dark-bg);
  border: 1px solid var(--glass-border);
}

/* Modal Header */
.modal-header {
  padding: 15px 20px;
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

body.dark-mode .modal-header {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

body.dark-mode .modal-title {
  color: #fff;
}

.modal-close-btn {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-light);
  transition: 0.2s;
}

.modal-close-btn:hover {
  background: var(--secondary);
  color: #fff;
  transform: rotate(90deg);
}

body.dark-mode .modal-close-btn:hover {
  background: var(--primary);
}

/* Iframe Container */
.iframe-container {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #fff;
  position: relative;
  overflow-y: auto;
  /* Allow scroll if needed */
  -webkit-overflow-scrolling: touch;
}

.modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Ensure PDF viewer takes full height */
.pdf-viewer-obj {
  width: 100%;
  height: 100%;
  display: block;
}

/* Loading Spinner */
.modal-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--secondary);
  font-size: 2rem;
  z-index: 1;
}