/* Modern Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Modern CSS Reset and Variables */
:root {
    /* Color Scheme */
    --primary: #5b5ef7;
    --primary-dark: #4338ca;
    --secondary: #1d4ed8;
    --accent: #0891b2;
    --background: #0a0a0a;
    --surface: #121420;
    --surface-2: #1e1f31;
    --text: #f8fafc;
    --text-secondary: #a5b4fc;
    --border: rgba(255, 255, 255, 0.1);

    /* Gradients */
    --gradient-1: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-2: linear-gradient(45deg, var(--primary-dark) 0%, var(--accent) 100%);
    
    /* Effects */
    --blur-sm: blur(8px);
    --blur-md: blur(12px);
    --blur-lg: blur(16px);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    
    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --header-height: 80px;
    --max-width: 1400px;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;

    /* Animation Durations */
    --animation-fast: 0.3s;
    --animation-medium: 0.6s;
    --animation-slow: 1s;
    --animation-slower: 1.4s;
    
    /* Easing Functions */
    --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    
    /* Animation Delays */
    --delay-stagger: 0.1s;
}

/* Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px);
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    padding-top: var(--header-height);
    font-family: var(--font-body);
    background: transparent !important;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

.hero + .main-container, .main-container:not(:first-child) {
    background: linear-gradient(135deg, rgba(18, 20, 32, 0.85) 0%, rgba(13, 13, 25, 0.75) 100%) !important;
}

/* Main container style */
.main-container {
    position: relative;
    min-height: 100vh;
    background: transparent !important;
}

/* Navigation */
.main-nav {
    position: fixed !important; /* Force fixed position */
    top: 0 !important; /* Ensure it sticks to top */
    left: 0;
    right: 0;
    z-index: 9999; /* Very high z-index to ensure it's on top */
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 15, 20, 0.95); /* Slightly more opaque */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    will-change: transform, background, padding;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    width: 100%; /* Ensure full width */
    box-sizing: border-box; /* Include padding in width calculation */
}

.main-nav.scrolled {
    background: rgba(15, 20, 25, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    padding: 10px 30px;
    border-bottom: 1px solid rgba(0, 234, 255, 0.15);
}

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

.nav-logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-section-title {
    color: #fff;
    font-size: 16px;
    opacity: 0.8;
    margin: 0 20px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-links a:not(.cta-button),
.nav-links .nav-link {
    color: #fff !important;
    text-decoration: none !important;
    font-size: 16px;
    padding: 8px 0;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    font-weight: 500;
}

.nav-links a:not(.cta-button):hover,
.nav-links .nav-link:hover {
    color: #00ff88 !important;
    text-decoration: none !important;
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    margin-left: 4px;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 15, 20, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 10px;
    padding: 15px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 234, 255, 0.15);
    z-index: 10;
    pointer-events: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    transition: all 0.3s ease;
    font-size: 14px;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    padding-left: 25px;
    border-left: 3px solid #00ff88;
}

/* CTA Button in Nav */
.cta-button {
    background: linear-gradient(45deg, #00ff88, #00b8ff);
    color: #000 !important;
    padding: 10px 25px !important;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 10px rgba(0, 255, 136, 0.2);
    text-decoration: none !important;
    border: none;
    outline: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
    color: #000 !important;
    text-decoration: none !important;
}

/* Mobile Navigation */
@media (max-width: 1024px) {
    .nav-section-title {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: relative;
        z-index: 100;
    }

    .nav-logo {
        height: 35px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 15, 20, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 25px 20px;
        gap: 18px;
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
        height: calc(100vh - 70px);
        overflow-y: auto;
        z-index: 999;
        border-top: 1px solid rgba(0, 234, 255, 0.15);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        border-bottom: 1px solid rgba(0, 234, 255, 0.15);
    }

    .nav-links.active {
        display: flex !important;
        flex-direction: column;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 12px 0;
        font-size: 16px;
    }

    .dropdown-menu {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        width: 100vw;
        min-width: unset;
        background: #181818;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.4);
        border: 1px solid rgba(0,0,0,0.15);
        padding: 0;
        margin: 0;
        opacity: 1;
        visibility: visible;
        display: none;
        z-index: 9999;
        transform: none !important;
        transition: none !important;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu li {
        width: 100%;
        list-style: none;
    }

    .dropdown-menu a {
        padding: 18px 24px;
        font-size: 1.1rem;
        color: #fff;
        border-left: none;
        border-bottom: 1px solid rgba(255,255,255,0.07);
        background: none;
        display: block;
    }

    .dropdown-menu a:last-child {
        border-bottom: none;
    }

    .dropdown-arrow {
        margin-left: 8px;
    }

    .dropdown-menu a:hover {
        background: rgba(0,255,136,0.08);
        color: #00ff88;
    }

    .hamburger {
        display: block;
    }

    .cta-button {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}

/* Ensure hamburger shows on all mobile/tablet breakpoints */
@media (max-width: 1024px), (max-width: 992px), (max-width: 768px) {
    .hamburger {
        display: block !important;
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 12px;
    z-index: 1002;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0);
}

.hamburger:hover {
    background: rgba(0, 234, 255, 0.1);
}

.hamburger:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 234, 255, 0.5);
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    transform-origin: center;
    position: relative;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: #00eaff;
    width: 28px;
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: #00eaff;
    width: 28px;
}


/* Buttons */
.primary-button, .secondary-button {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-family: var(--font-heading);
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 1.05rem;
}

.primary-button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.primary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.45);
}

.secondary-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    margin-left: 1rem;
    backdrop-filter: blur(5px);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-3px);
}


/* Footer Section Styles */
.site-footer {
  background: #181a20;
  color: #eafcff;
  padding: 28px 0 0 0;
  font-family: var(--font-body, 'Inter', sans-serif);
  border-top: 2px solid #00eaff22;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 0 16px;
}
.footer-brand {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.footer-logo {
  width: 80px;
  height: auto;
  margin-bottom: 4px;
}
.footer-tagline {
  color: #00eaff;
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0;
}
.footer-nav {
  flex: 2 1 220px;
  margin: 0 16px;
}
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.footer-nav a {
  color: #eafcff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  transition: color 0.2s;
}
.footer-nav a:hover {
  color: #00eaff;
}
.footer-contact {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.98rem;
}
.footer-contact a {
  color: #00eaff;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact a:hover {
  text-decoration: underline;
  color: #00ff88;
}
.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.social-icon {
  width: 28px;
  height: 28px;
  font-size: 1rem;
}
.footer-bottom {
  text-align: center;
  padding: 14px 0 8px 0;
  color: #b2eaff;
  font-size: 0.92rem;
  background: #16171c;
  margin-top: 16px;
}
.footer-map {
  width: 100%;
  max-width: 300px;
  margin: 12px 0 0 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.footer-map iframe {
  width: 100%;
  height: 120px;
  border: 0;
  display: block;
}
@media (max-width: 900px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 0 4vw;
  }
  .footer-nav {
    margin: 0 0 8px 0;
  }
  .footer-map {
    max-width: 100%;
    margin: 10px 0 0 0;
  }
}
@media (max-width: 600px) {
  .site-footer {
    padding: 16px 0 0 0;
  }
  .footer-container {
    gap: 8px;
    padding: 0 1vw;
  }
  .footer-logo {
    width: 60px;
  }
  .footer-bottom {
    font-size: 0.88rem;
    padding: 8px 0 6px 0;
    margin-top: 8px;
  }
  .footer-map {
    border-radius: 6px;
    margin: 6px 0 0 0;
  }
  .footer-map iframe {
    height: 80px;
  }
}

/* iOS specific fixes */
body.ios-device .main-nav {
    /* Use hardware acceleration to fix iOS sticky bugs */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

/* Ensure placement section uses transparent background so global background shows through */
.placement-success-section {
    padding: 120px 2rem 100px;
    position: relative;
    backdrop-filter: blur(4px);
    background: transparent !important;
    background-image: none !important;
}

.placement-success-container {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.placement-success-content {
    display: flex;
    flex-direction: column;
    gap: 70px;
}

/* Placement Success Stats */
.placement-success-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 70px;
}

.placement-success-stat-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.07) 0%, rgba(0,255,136,0.04) 100%);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}

.placement-success-stat-item:hover::before {
    opacity: 1;
}

.placement-success-stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.placement-success-stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.4;
}

/* Animation Timing Variables for Consistency */
:root {
    /* Animation Durations */
    --animation-fast: 0.3s;
    --animation-medium: 0.6s;
    --animation-slow: 1s;
    --animation-slower: 1.4s;
    
    /* Easing Functions */
    --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    
    /* Animation Delays */
    --delay-stagger: 0.1s;
}

/* Apply consistent animation timing to various elements */
.placement-success-section .home-section-title-container,
.placement-success-stat-item,
.placement-features,
.story-card {
    transition-duration: var(--animation-slow);
    transition-timing-function: var(--ease-standard);
}

/* Add these styles to fix the achievement showcase on mobile */

.achievement-carousel .carousel-item {
  height: auto;
  min-height: auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.achievement-carousel .carousel-item img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Mobile layout for Achievements Section */
@media (max-width: 768px) {
    .achievements-container {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }
    .achievements-content,
    .achievement-showcase {
        width: 100%;
        max-width: 100%;
    }
    .achievement-showcase {
        padding: 10px;
    }
    
    .achievement-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    .stat-item {
        text-align: center;
        width: 100%;
    }
    
    .achievement-cta {
        display: block;
        margin: 1.5rem auto;
        text-align: center;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

