/* EO Robotics Lab - Modern Apple-Inspired Stylesheet */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #2B7A9B;
    --primary-dark: #1A5F7A;
    --accent-black: #000000;
    --text-dark: #1d1d1f;
    --text-gray: #6e6e73;
    --text-light: #86868b;
    --bg-light: #f5f5f7;
    --bg-white: #FFFFFF;
    --border-light: #d2d2d7;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    min-height: 100vh;
    font-size: 17px;
    font-weight: 400;
    background: var(--bg-white);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 0.75rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.7;
}

.logo-icon {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.company-name {
    font-weight: 600;
    font-size: 20px;
    color: var(--accent-black);
    letter-spacing: -0.5px;
}

.tagline {
    font-weight: 300;
    font-size: 14px;
    color: var(--text-gray);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
}

/* Updated nav-link: subtle centered underline and refined hover/active states */
.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.25s ease, transform 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-dark));
    border-radius: 999px;
    transition: width 0.28s cubic-bezier(.2,.9,.2,1);
}

.nav-link:hover {
    color: var(--primary-dark);
}

.nav-link:hover::after {
    width: 56%;
}

/* Active / current page */
.nav-link.active {
    color: var(--primary-dark);
    font-weight: 700;
}

.nav-link.active::after {
    width: 56%;
}

/* Standard Dropdown (for mobile fallback) */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(20px);
    min-width: 240px;
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

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

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.2s ease;
    font-size: 14px;
    font-weight: 400;
    border-radius: 6px;
}

.dropdown-menu a:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* Apple-Style Mega Menu */
.mega-dropdown {
    position: static;
}

.mega-dropdown-menu {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--bg-light);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.25s ease-out, visibility 0.25s ease-out, transform 0.25s ease-out;
    z-index: 999;
    pointer-events: none;
    padding-top: 0;
}

.mega-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-menu-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 40px;
    display: grid;
    grid-template-columns: 280px repeat(2, 1fr) 200px;
    gap: 48px;
}

/* Main Menu Column (Title & Subtitle) */
.mega-menu-main {
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    padding-right: 24px;
}

.mega-menu-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.mega-menu-subtitle {
    font-size: 16px;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

/* Menu Columns */
.mega-menu-column {
    display: flex;
    flex-direction: column;
}

.mega-menu-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: none;
}

.mega-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mega-menu-links li {
    margin: 0;
    padding: 0;
}

.mega-menu-links a {
    display: block;
    padding: 12px 0;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    transition: color 0.18s ease;
    cursor: pointer;
}

.mega-menu-links a:hover {
    color: var(--primary-blue);
}

/* Secondary Column */
.mega-menu-secondary {
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    padding-left: 24px;
}

/* Mega Menu Hover State */
.mega-dropdown:hover .mega-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Hide chevron icon on mega dropdown items */
.mega-dropdown .nav-link i {
    display: none;
}

/* Remove active state background from mega dropdown items */
.mega-dropdown .nav-link.active {
    background: transparent;
    color: var(--text-dark);
}

/* Remove focus outline from mega dropdown items on mobile */
.mega-dropdown .nav-link:focus,
.mega-dropdown .nav-link:active {
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Keep dropdown menu hidden on desktop when mega menu is present */
@media (min-width: 768px) {
    .mega-dropdown .dropdown-menu {
        display: none;
    }
}

/* Auth Section */
.auth-section {
    display: flex;
    align-items: center;
    margin-left: 1rem;
    position: relative;
}

.sign-in-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 14px;
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-weight: 400;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.sign-in-btn:hover {
    background: rgba(0, 0, 0, 0.04);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 1rem;
}

.profile-picture {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.profile-picture:hover {
    opacity: 0.7;
}

/* Account Dropdown */
.account-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    min-width: 420px;
    display: none;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.account-dropdown.show {
    display: block;
}

.dropdown-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
}

.dropdown-signin-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-blue);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 10px;
    font-family: 'Outfit', sans-serif;
}

.dropdown-signin-btn:hover {
    background: var(--primary-dark);
}

.dropdown-new-customer {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 400;
}

.dropdown-new-customer a {
    color: var(--primary-blue);
    text-decoration: none;
}

.dropdown-new-customer a:hover {
    text-decoration: underline;
}

.dropdown-user-info {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--bg-light);
}

.dropdown-greeting {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-blue);
}

.dropdown-greeting-text {
    margin: 0;
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 400;
}

.dropdown-greeting-text span {
    font-weight: 600;
    color: var(--text-dark);
}

.dropdown-content {
    display: flex;
    padding: 20px;
    gap: 20px;
}

.dropdown-section {
    flex: 1;
}

.dropdown-section:not(:last-child) {
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    padding-right: 20px;
}

.dropdown-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.dropdown-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-section ul li {
    margin-bottom: 8px;
}

.dropdown-section ul li a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 13px;
    display: block;
    padding: 4px 0;
    transition: color 0.2s ease;
    font-weight: 400;
}

.dropdown-section ul li a:hover {
    color: var(--text-dark);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: var(--text-dark);
    margin: 2px 0;
    transition: 0.3s;
}

/* Hamburger -> X animation when active */
.hamburger span {
    transition: transform 0.28s cubic-bezier(.2,.9,.2,1), opacity 0.18s ease, background 0.18s ease;
    transform-origin: center;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
    background: var(--primary-dark);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    background: var(--primary-dark);
}

/* Mobile Auth Section (hidden on desktop) */
.mobile-auth {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    background: #000;
}

.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-video.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 650px;
    margin-left: 0;
    margin-right: auto;
    padding: 80px 0;
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
    line-height: 1.05;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: -0.3px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 400;
    font-size: 17px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
}

.btn-primary {
    background: white;
    color: var(--text-dark);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 56px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.section-subtitle {
    font-size: 21px;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
    font-weight: 400;
}

/* Services Section */
.services {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-white);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-card-content {
    padding: 50px 40px;
}

.service-card h3 {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.service-card p {
    font-size: 19px;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 24px;
    font-weight: 400;
}

.service-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    transition: opacity 0.3s ease;
}

.service-link:hover {
    opacity: 0.7;
}

/* About Section */
.about {
    background: var(--bg-white);
}

.about-content {
    max-width: 980px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
    margin-bottom: 80px;
}

.about-text p {
    font-size: 21px;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 24px;
    font-weight: 400;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.mv-card {
    background: var(--bg-light);
    padding: 50px 40px;
    border-radius: 18px;
    text-align: center;
}

.mv-card h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.mv-card p {
    font-size: 19px;
    color: var(--text-gray);
    line-height: 1.5;
    font-weight: 400;
}

.values-section {
    text-align: center;
}

.values-section h3 {
    font-size: 40px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 50px;
    letter-spacing: -1px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: start;
}

.value-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 18px;
    text-align: center;
    height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.value-card h4 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.value-card p {
    font-size: 17px;
    color: var(--text-gray);
    line-height: 1.5;
    font-weight: 400;
}

/* Footer */
.footer {
    background: var(--bg-light);
    color: var(--text-gray);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-light);
}

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

.company-info {
    max-width: 350px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .company-name {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 20px;
}

.footer-logo .tagline {
    color: var(--text-gray);
    font-weight: 300;
}

.company-info p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    font-weight: 400;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    font-weight: 400;
}

.footer-section ul li a:hover {
    color: var(--text-dark);
}

.footer-contact p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 10px;
    font-weight: 400;
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 400;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 400;
}

.footer-links a:hover {
    color: var(--text-dark);
}

/* Loading States */
.auth-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 1rem;
}

.auth-loading.hidden {
    display: none;
}

/* Offline Indicator */
.offline-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ff6b6b;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 400;
    z-index: 10000;
}

.offline-indicator.show {
    display: flex;
}

.offline-indicator.online {
    background: #51cf66;
}

/* Focus Styles */
*:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Remove focus outline from all nav elements across all browsers */
.nav-link:focus,
.nav-link:focus-visible,
.nav-menu a:focus,
.nav-menu a:focus-visible,
.auth-section button:focus,
.auth-section button:focus-visible,
.sign-in-btn:focus,
.sign-in-btn:focus-visible,
.hamburger:focus,
.hamburger:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 32px;
    }
    
    .nav-container {
        padding: 0 32px;
    }
    
    .hero-content h1 {
        font-size: 56px;
    }
    
    .hero-subtitle {
        font-size: 22px;
    }
}

@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 52px;
    }
    
    .hero-subtitle {
        font-size: 21px;
    }
    
    .section-title {
        font-size: 48px;
    }
    
    .section-subtitle {
        font-size: 19px;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (max-width: 834px) {
    .container {
        padding: 0 24px;
    }
    
    .nav-container {
        padding: 0 24px;
    }
    
    .section-title {
        font-size: 44px;
    }
    
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-container {
        padding: 0 20px;
        position: relative;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    /* Hide desktop auth section on mobile */
    .auth-section {
        display: none;
    }
    
    /* Show mobile auth section */
    .mobile-auth {
        display: block;
        padding: 20px;
        background: var(--bg-light);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }
    
    .mobile-auth .sign-in-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 18px;
        font-size: 16px;
        border-radius: 12px;
        background: var(--primary-blue);
        color: white;
        border: none;
        box-shadow: 0 8px 20px rgba(43,122,155,0.15);
        font-weight: 700;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mobile-auth .sign-in-btn:active {
        transform: scale(0.98);
    }

    .mobile-auth .sign-in-btn i {
        font-size: 18px;
    }
    
    .mobile-auth .user-profile {
        display: flex;
        align-items: center;
        gap: 12px;
        margin: 0;
        padding: 12px;
        background: white;
        border-radius: 12px;
    }
    
    .mobile-auth .profile-picture {
        width: 48px;
        height: 48px;
    }
    
    .mobile-auth .user-info {
        flex: 1;
    }
    
    .mobile-auth .user-name {
        font-size: 15px;
        font-weight: 600;
        color: var(--text-dark);
        margin: 0;
    }
    
    .mobile-auth .user-email {
        font-size: 13px;
        color: var(--text-gray);
        margin: 0;
    }
    
    .mobile-auth .mobile-sign-out {
        width: 100%;
        padding: 12px 20px;
        margin-top: 12px;
        background: transparent;
        color: #c7511f;
        border: 1px solid #c7511f;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        font-family: 'Outfit', sans-serif;
    }
    
    .mobile-auth .mobile-sign-out:hover {
        background: rgba(199, 81, 31, 0.1);
    }

    /* Remove mobile dropdown/menu separators and improve active indicator */
    .nav-item {
        border-bottom: none; /* ensure no divider lines */
    }

    .dropdown-menu {
        border-top: none;
        border-bottom: none;
        box-shadow: none;
        background: rgba(247,247,247,0.98);
    }

    .dropdown-menu li {
        border-bottom: none;
    }

    /* Mobile Mega Menu - Convert to Expandable Accordion */
    .mega-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        background: rgba(247, 247, 247, 0.98);
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        border-radius: 0;
        transition: max-height 0.3s ease;
        pointer-events: auto;
        padding: 0;
        margin: 0;
    }

    .mega-dropdown-menu.show {
        max-height: 800px;
        padding: 20px 0;
    }

    .mega-menu-content {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 20px;
        max-width: 100%;
    }

    .mega-menu-column {
        display: flex;
        flex-direction: column;
        margin-bottom: 16px;
        border-right: none;
        padding-right: 0;
    }

    .mega-menu-column:first-child {
        margin-bottom: 24px;
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .mega-menu-main {
        border-right: none;
        padding-right: 0;
    }

    .mega-menu-title {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .mega-menu-subtitle {
        font-size: 14px;
    }

    .mega-menu-section-title {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .mega-menu-links a {
        padding: 10px 0;
        font-size: 15px;
    }

    .mega-menu-secondary {
        border-left: none;
        padding-left: 0;
    }

    /* Make mobile nav-links position relative so we can add an accent */
    .nav-link {
        position: relative;
    }

    /* Active mobile item: subtle background only */
    .nav-link.active {
        background: rgba(43,122,155,0.06);
        color: var(--primary-dark);
        font-weight: 700;
    }
    
    /* Mobile menu styles - IMPROVED */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px; /* Adjusted for smaller header */
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        width: 100%;
        text-align: left;
        transition: left 0.3s ease;
        padding: 0;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        gap: 0;
        align-items: stretch; /* Ensure full-width items */
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        width: 100%; /* Full width for each item */
        border-bottom: none;
    }
    
    .nav-link {
        width: 100%;
        padding: 18px 20px; /* Increased padding for better touch targets */
        font-size: 16px; /* Slightly larger for mobile */
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 400;
        color: var(--text-dark);
    }

    /* Hide desktop underline animation on mobile for clean layout */
    .nav-link::after {
        display: none;
    }
    
    .nav-link i {
        font-size: 12px;
        transition: transform 0.3s ease;
    }
    
    .dropdown.active .nav-link i {
        transform: rotate(180deg);
    }
    
    /* Mobile dropdown menu - IMPROVED */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(247, 247, 247, 0.98);
        border-radius: 0;
        border: none;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        padding: 0;
        min-width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }
    
    .dropdown-menu li {
        width: 100%;
    }
    
    .dropdown-menu a {
        width: 100%;
        padding: 14px 20px 14px 40px; /* Left indent for submenu items */
        font-size: 15px;
        font-weight: 400;
        color: var(--text-gray);
        border-radius: 0;
        transition: all 0.2s ease;
    }
    
    .dropdown-menu a:hover {
        background: rgba(0, 0, 0, 0.04);
        color: var(--text-dark);
    }
    
    /* Hero adjustments */
    .hero {
        padding-top: 80px;
        min-height: 100vh;
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 40px;
        letter-spacing: -1px;
    }
    
    .hero-subtitle {
        font-size: 19px;
    }
    
    .hero-buttons {
        flex-direction: column;
        justify-content: center;
        gap: 12px;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 320px;
    }
    
    /* Section adjustments */
    section {
        padding: 80px 0;
    }
    
    .section-header {
        margin-bottom: 60px;
    }
    
    .section-title {
        font-size: 40px;
        letter-spacing: -1px;
    }
    
    .section-subtitle {
        font-size: 18px;
        padding: 0 10px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        border-radius: 16px;
    }
    
    .service-card-content {
        padding: 40px 28px;
    }
    
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .value-card {
        height: auto;
        padding: 32px 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .account-dropdown {
        min-width: calc(100vw - 40px);
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-container {
        padding: 0 16px;
    }
    
    .logo-icon {
        width: 50px; /* Smaller logo on small screens */
        height: 50px;
    }
    
    .company-name {
        font-size: 18px;
    }
    
    .tagline {
        font-size: 12px;
    }
    
    /* Smaller hamburger for very small screens */
    .hamburger {
        padding: 4px;
    }
    
    .hamburger span {
        width: 18px;
    }
    
    /* Mobile menu adjustments for small screens */
    .nav-menu {
        top: 70px;
        max-height: calc(100vh - 70px);
    }
    
    .nav-link {
        padding: 16px 16px;
        font-size: 15px;
    }
    
    .dropdown-menu a {
        padding: 12px 16px 12px 32px;
        font-size: 14px;
    }
    
    /* Hero adjustments */
    .hero {
        min-height: 100vh;
        padding-top: 70px;
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
        padding: 40px 0;
    }
    
    .hero-content h1 {
        font-size: 32px;
        letter-spacing: -0.8px;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 17px;
        margin-bottom: 28px;
    }
    
    .hero-buttons {
        justify-content: center;
        gap: 12px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    /* Section adjustments */
    section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 48px;
    }
    
    .section-title {
        font-size: 32px;
        letter-spacing: -0.8px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .service-card-content {
        padding: 32px 24px;
    }
    
    .service-card h3 {
        font-size: 26px;
        letter-spacing: -0.4px;
    }
    
    .service-card p {
        font-size: 16px;
    }
    
    .mv-card {
        padding: 32px 24px;
    }
    
    .mv-card h3 {
        font-size: 24px;
    }
    
    .mv-card p {
        font-size: 16px;
    }
    
    .values-section h3 {
        font-size: 28px;
        margin-bottom: 32px;
    }
    
    .value-card {
        padding: 28px 20px;
    }
    
    .value-card h4 {
        font-size: 20px;
    }
    
    .value-card p {
        font-size: 15px;
    }
    
    .footer {
        padding: 48px 0 20px;
    }
    
    .account-dropdown {
        min-width: calc(100vw - 32px);
    }
    
    .dropdown-content {
        flex-direction: column;
        padding: 16px;
    }
    
    .dropdown-section:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        padding-right: 0;
        padding-bottom: 16px;
        margin-bottom: 16px;
    }
    
    /* Mobile auth section adjustments */
    .mobile-auth {
        padding: 16px;
    }
    
    .mobile-auth .sign-in-btn {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .mobile-auth .user-profile {
        padding: 10px;
    }
    
    .mobile-auth .profile-picture {
        width: 44px;
        height: 44px;
    }
    
    .mobile-auth .user-name {
        font-size: 14px;
    }
    
    .mobile-auth .user-email {
        font-size: 12px;
    }
}

/* Medium devices: 640px - 768px (tablets landscape) */
@media (min-width: 641px) and (max-width: 768px) {
    .nav-menu {
        padding: 12px 14px 20px 14px;
        gap: 6px;
    }

    .nav-item {
        margin-bottom: 8px;
    }

    .nav-link {
        padding: 19px 18px;
        font-size: 16px;
        font-weight: 500;
    }

    .mobile-auth {
        padding: 18px;
    }

    .mobile-auth .sign-in-btn {
        padding: 13px 18px;
        font-size: 16px;
        font-weight: 700;
    }

    .dropdown-menu a {
        padding: 14px 16px 14px 36px;
        font-size: 15px;
    }
}

/* Small devices: 480px - 640px (larger phones) */
@media (min-width: 481px) and (max-width: 640px) {
    .nav-menu {
        padding: 12px 10px 20px 10px;
        gap: 5px;
    }

    .nav-item {
        margin-bottom: 7px;
    }

    .nav-link {
        padding: 17px 16px;
        font-size: 15px;
        font-weight: 500;
    }

    .mobile-auth {
        padding: 17px;
    }

    .mobile-auth .sign-in-btn {
        padding: 13px 16px;
        font-size: 15px;
        font-weight: 700;
    }

    .dropdown-menu a {
        padding: 13px 14px 13px 32px;
        font-size: 14px;
    }
}

/* Smooth transitions for all screen sizes */
@media (prefers-reduced-motion: no-preference) {
    .nav-menu,
    .dropdown-menu,
    .hero-content,
    .service-card,
    .btn {
        transition: all 0.3s ease;
    }
}