﻿/* Homepage Styles - Non-Critical CSS Only */
/* Critical styles have been moved inline to improve PageSpeed */

/* REQUIRED: Cookie Banner Styles */
.cookie-banner {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #111827 !important;
    color: white !important;
    padding: 16px !important;
    z-index: 10001 !important;
    transform: translateY(100%) !important;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    border-top: 2px solid #2563EB !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important; /* Always visible in DOM */
    max-height: 200px !important; /* Prevent overflow */
}

    .cookie-banner.show {
        transform: translateY(0) !important;
    }

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cookie-text {
    flex: 1;
    font-size: 14px;
    color: #E5E7EB;
}

    .cookie-text a {
        color: #60A5FA;
        text-decoration: underline;
    }

.cookie-actions {
    display: flex;
    gap: 8px;
}

.cookie-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cookie-accept {
    background: #2563EB;
    color: white;
}

    .cookie-accept:hover {
        background: #1D4ED8;
    }

.cookie-reject {
    background: transparent;
    color: #9CA3AF;
    border: 1px solid #4B5563;
}

    .cookie-reject:hover {
        background: #374151;
        color: white;
    }

/* REQUIRED: Minimal Footer Styles */
.minimal-footer {
    background: #F9FAFB;
    border-top: 1px solid #E5E7EB;
    padding: 32px 0;
    margin-top: 0;
    margin-bottom: 0;
    text-align: center;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.company-legal {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.5;
    margin-bottom: 16px;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

    .legal-links a {
        color: #2563EB;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: color 0.2s ease;
    }

        .legal-links a:hover {
            color: #1D4ED8;
            text-decoration: underline;
        }

.copyright {
    font-size: 12px;
    color: #9CA3AF;
}


/* Navigation Hover Effects and Additional States */
.nav-center.mobile-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.brand-link:hover {
    opacity: 0.8;
}

.nav-link:hover {
    color: #0A2540;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #635BFF;
    transition: width 0.2s ease;
}

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

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 91, 255, 0.24);
}

.btn-login svg {
    transition: transform 0.2s ease;
}

.btn-login:hover svg {
    transform: translateX(2px);
}

.mobile-menu-toggle:hover span {
    background: #0A2540;
}

/* Mobile menu active state */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Scrolled state */
.homepage-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-sign-in:hover {
    background: #1D4ED8;
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

.btn-join:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Desktop + Mobile Mockup Animations (Non-Critical) */
.mobile-stats {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.mobile-stat {
    flex: 1;
    text-align: center;
    padding: 12px;
    background: #F9FAFB;
    border-radius: 8px;
}

.mobile-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.mobile-stat-label {
    font-size: 12px;
    color: #4B5563;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #F9FAFB;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.status-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.battery {
    width: 24px;
    height: 12px;
    border: 1px solid #4B5563;
    border-radius: 2px;
    position: relative;
}

    .battery::after {
        content: '';
        position: absolute;
        right: -3px;
        top: 3px;
        width: 2px;
        height: 6px;
        background: #4B5563;
        border-radius: 0 1px 1px 0;
    }

    .battery::before {
        content: '';
        position: absolute;
        left: 1px;
        top: 1px;
        width: 80%;
        height: 8px;
        background: #10B981;
        border-radius: 1px;
    }

.signal {
    width: 18px;
    height: 12px;
    background: repeating-linear-gradient( 90deg, #4B5563 0px, #4B5563 3px, transparent 3px, transparent 6px );
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #2563EB, #06B6D4);
    color: white;
}

.app-title {
    font-size: 20px;
    font-weight: 700;
}

.profile-icon {
    font-size: 24px;
    opacity: 0.9;
}

.app-content {
    padding: 20px;
    height: calc(100% - 120px);
    overflow-y: auto;
}

.dashboard-card {
    background: linear-gradient(135deg, #DBEAFE, #CFFAFE);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.dashboard-label {
    font-size: 14px;
    color: #4B5563;
    margin-bottom: 8px;
}

.dashboard-number {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.dashboard-change {
    font-size: 14px;
    color: #10B981;
    font-weight: 600;
}

/* FEATURES SECTION WITH SCREENSHOT */
.features-section {
    height: 100vh;
    display: flex;
    align-items: center;
    background: #F9FAFB;
    position: relative;
    overflow: hidden;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    height: 100%;
}

.features-content {
    z-index: 2;
    position: relative;
}

.features-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #111827;
    line-height: 1.1;
}

.features-subtitle {
    font-size: 20px;
    color: #4B5563;
    margin-bottom: 48px;
    line-height: 1.6;
}

/* Visual Section */
.features-visual {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Screenshot Phone Mockup */
.phone-container {
    position: relative;
    z-index: 3;
    animation: phoneFloat 6s ease-in-out infinite;
}

.phone-mockup-screenshot {
    width: 320px;
    height: 640px;
    background: #111827;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

    .phone-mockup-screenshot::before {
        content: '';
        position: absolute;
        top: 25px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 4px;
        background: #4B5563;
        border-radius: 2px;
        z-index: 1;
    }

.phone-screen-screenshot {
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 28px;
    transition: transform 0.3s ease;
}

.phone-container:hover .app-screenshot {
    transform: scale(1.02);
}

/* Animations */
@keyframes phoneFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

/* Section Base Styles */
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

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

    .section-header h2 {
        font-size: 48px;
        font-weight: 700;
        margin-bottom: 16px;
        color: #111827;
    }

    .section-header p {
        font-size: 20px;
        color: #4B5563;
        max-width: 600px;
        margin: 0 auto;
    }

/* Sandbox Colleges Section */
.sandbox-section {
    background: white;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    min-height: auto;
    padding: 120px 0;
}

.sandbox-content {
    text-align: center;
}

    .sandbox-content h2 {
        font-size: 48px;
        font-weight: 700;
        margin-bottom: 24px;
        color: #111827;
        line-height: 1.1;
    }

.sandbox-subtitle {
    font-size: 20px;
    color: #4B5563;
    margin-bottom: 80px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 80px;
}

.colleges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    align-items: center;
    justify-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.college-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: #F9FAFB;
    border-radius: 20px;
    transition: all 0.3s ease;
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
}

    .college-logo:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        background: white;
    }

.logo-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

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

/* Staggered animation for college logos */
.college-logo {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.8s ease forwards;
}

    .college-logo:nth-child(1) {
        animation-delay: 0.1s;
    }

    .college-logo:nth-child(2) {
        animation-delay: 0.2s;
    }

    .college-logo:nth-child(3) {
        animation-delay: 0.3s;
    }

    .college-logo:nth-child(4) {
        animation-delay: 0.4s;
    }

    .college-logo:nth-child(5) {
        animation-delay: 0.5s;
    }

    .college-logo:nth-child(6) {
        animation-delay: 0.6s;
    }

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

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

/* Team Section - Professional & Playful Airbnb Style */
.team-section {
    background: linear-gradient(135deg, #FAFBFC 0%, #F8FAFC 100%);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

    .team-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.03) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.03) 0%, transparent 50%);
        pointer-events: none;
    }

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.team-member {
    text-align: center;
    padding: 32px 20px 28px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

    .team-member::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #2563EB, #06B6D4);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .team-member:hover {
        transform: translateY(-12px) scale(1.02);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
        background: rgba(255, 255, 255, 0.95);
    }

    .team-member:hover::before {
        opacity: 1;
    }

.member-photo {
    margin-bottom: 24px;
    position: relative;
}

/* Enhanced profile images with playful touch */
.member-image {
    width: 120px;
    height: 120px;
    border-radius: 18px;
    object-fit: cover;
    object-position: center;
    border: 4px solid #FFFFFF;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

    .member-image::after {
        content: '';
        position: absolute;
        top: -4px;
        left: -4px;
        right: -4px;
        bottom: -4px;
        background: linear-gradient(135deg, #2563EB, #06B6D4);
        border-radius: 22px;
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

.team-member:hover .member-image {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
}

/* Team member without LinkedIn link */
.team-member-no-link {
    cursor: default;
}

    .team-member-no-link:hover {
        transform: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
        background: rgba(255, 255, 255, 0.9);
    }

    .team-member-no-link:hover::before {
        opacity: 0;
    }

    .team-member-no-link:hover .member-image {
        transform: none;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    }

.photo-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 44px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border: 4px solid #FFFFFF;
}

/* Hide placeholder when image is present */
.member-photo:has(.member-image) .photo-placeholder {
    display: none;
}

.member-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.member-role {
    font-size: 15px;
    font-weight: 500;
    color: #6B7280;
    margin-bottom: 20px;
    line-height: 1.4;
    opacity: 0.8;
}

.member-description {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.5;
    margin-top: 12px;
    opacity: 0.9;
}

/* Hide member descriptions on mobile */
.desktop-only {
    display: block;
}


@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .desktop-linkedin {
        pointer-events: none;
        text-decoration: none;
        color: inherit;
    }

    .team-member {
        cursor: pointer;
        position: relative;
    }

    .team-member.expanded .mobile-expanded-info {
        display: block;
    }

    .team-member:not(.team-member-no-link):hover {
        transform: none;
    }
}

.member-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563EB;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 16px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    position: relative;
    overflow: hidden;
}

    .social-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .social-link:hover {
        background: #2563EB;
        color: white;
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
    }

    .social-link:hover::before {
        left: 100%;
    }

/* Add subtle pulse animation */
@keyframes gentlePulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1; 
    }
    50% { 
        transform: scale(1.02); 
        opacity: 0.9; 
    }
}

.team-member:nth-child(even) .member-image {
    animation: gentlePulse 4s ease-in-out infinite;
    animation-delay: 1s;
}

.team-member:nth-child(odd) .member-image {
    animation: gentlePulse 4s ease-in-out infinite;
    animation-delay: 2s;
}

.team-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 80px;
}

.value-item {
    text-align: center;
    padding: 32px 24px;
    background: linear-gradient(135deg, #DBEAFE, #CFFAFE);
    border-radius: 16px;
}

.value-icon {
    width: 64px;
    height: 64px;
    background: #2563EB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 24px;
}

.value-item h4 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.value-item p {
    font-size: 14px;
    color: #4B5563;
    line-height: 1.6;
}

/* Team Introduction Section - Stripe Style */
.team-intro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    margin: 48px 0 64px 0;
    padding: 32px 0;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    background: rgba(249, 250, 251, 0.5);
}

.team-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 140px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #2563EB;
    line-height: 1;
    margin-bottom: 8px;
    display: block;
}

.stat-label {
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-expertise {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 500px;
}

.expertise-text {
    font-size: 18px;
    color: #374151;
    font-weight: 500;
    line-height: 1.4;
}

.team-mission {
    font-size: 16px;
    color: #6B7280;
    line-height: 1.5;
    font-style: italic;
}

/* Team section header - playful yet professional */
.team-section .section-header {
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

    .team-section .section-header h2 {
        font-size: 52px;
        font-weight: 800;
        color: #111827;
        margin-bottom: 24px;
        line-height: 1.1;
        letter-spacing: -0.03em;
        position: relative;
        display: inline-block;
    }

    .team-section .section-header p {
        font-size: 22px;
        color: #4B5563;
        margin-bottom: 0;
        line-height: 1.6;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        font-weight: 400;
        opacity: 0.9;
    }


/* Adjust team grid for better fit */
.team-grid {
    margin-bottom: 40px;
}

.team-member {
    padding: 20px 16px;
}

/* CTA Section */
/* Enhanced Contact Section */
.contact-section {
    background: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .contact-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="white" fill-opacity="0.03"><circle cx="30" cy="30" r="1.5"/></g></svg>');
        animation: float 20s ease-in-out infinite;
    }

.contact-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.contact-header {
    margin-bottom: 48px;
}

.contact-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-header h2 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-subtitle {
    font-size: 20px;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.contact-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 48px 0;
    padding: 32px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-stat {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-text {
    font-size: 14px;
    opacity: 0.8;
    font-weight: 500;
}

.contact-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin: 48px 0;
}

.btn-contact-primary {
    background: white;
    color: #2563EB;
    border: none;
    padding: 20px 40px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
}

    .btn-contact-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        transition: left 0.5s;
        pointer-events: none; /* Ensure the pseudo-element doesn't block clicks */
        z-index: 1; /* Keep it above the background but below the text */
    }

    .btn-contact-primary:hover::before {
        left: 100%;
    }

    .btn-contact-primary:hover {
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }

.btn-text {
    font-size: 18px;
    font-weight: 700;
    position: relative;
    z-index: 2; /* Ensure text is above the pseudo-element */
}

.btn-subtext {
    font-size: 14px;
    opacity: 0.7;
    font-weight: 500;
    position: relative;
    z-index: 2; /* Ensure text is above the pseudo-element */
}

.btn-contact-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 20px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

    .btn-contact-secondary:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.6);
        transform: translateY(-2px);
    }

.contact-trust {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-text {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 24px;
    font-weight: 500;
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.8;
    font-weight: 500;
}

    .trust-item i {
        font-size: 16px;
        opacity: 0.9;
    }

/* Contact Section Mobile Responsive */

.btn-primary {
    background: white;
    color: #2563EB;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-primary.large, .btn-secondary.large {
        padding: 20px 40px;
        font-size: 18px;
    }

.cta-note p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.cta-note a {
    color: white;
    text-decoration: underline;
}

/* Modal Styles - UPDATED for better viewport handling */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    /* Add padding and flex for better centering */
    padding: 20px;
    overflow-y: auto; /* Allow scrolling if needed */
}

    /* When modal is shown, use flexbox for centering */
    .modal[style*="display: block"],
    .modal.show {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

.modal-content {
    background-color: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh; /* Limit height to 90% of viewport */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease;
    display: flex;
    flex-direction: column;
    /* Remove the margin property as we're using flexbox centering */
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #E5E7EB;
    flex-shrink: 0; /* Prevent header from shrinking */
}

    .modal-header h3 {
        font-size: 24px;
        font-weight: 600;
        color: #111827;
        margin: 0;
    }

.close {
    font-size: 28px;
    font-weight: 300;
    color: #6B7280;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

    .close:hover {
        color: #111827;
    }

.modal-body {
    padding: 32px;
    overflow-y: auto; /* Allow scrolling within the body if content is too tall */
    flex: 1; /* Take up remaining space */
}

    .modal-body p {
        font-size: 16px;
        color: #4B5563;
        margin-bottom: 32px;
        text-align: center;
    }

/* Contact Options */
.contact-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-option {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #F3F4F6;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    cursor: pointer;
    background: none;
    width: 100%;
    text-align: left;
}

    .contact-option:hover {
        border-color: #2563EB;
        background-color: #F8FAFC;
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    }

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2563EB, #06B6D4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
}

.contact-details p {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
    text-align: left;
}

/* Contact Form Styles */
.contact-form {
    display: none;
}

.form-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.back-arrow {
    color: #6B7280;
    cursor: pointer;
    margin-right: 12px;
    transition: color 0.2s ease;
    font-size: 18px;
}

    .back-arrow:hover {
        color: #374151;
    }

.form-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
        color: #374151;
        font-size: 14px;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 12px 16px;
        border: 2px solid #E5E7EB;
        border-radius: 8px;
        font-size: 16px;
        transition: border-color 0.2s ease;
        font-family: inherit;
        box-sizing: border-box;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #2563EB;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }

    .form-group textarea {
        min-height: 120px;
        resize: vertical;
    }

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn-submit {
    background: linear-gradient(135deg, #2563EB, #06B6D4);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-submit:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    }

    .btn-submit:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

.btn-cancel {
    background: transparent;
    color: #6B7280;
    border: 2px solid #E5E7EB;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-cancel:hover {
        background: #F9FAFB;
        border-color: #D1D5DB;
    }

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    padding: 32px;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #10B981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 24px;
}

.success-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.success-text {
    color: #6B7280;
    margin-bottom: 24px;
}

/* Error Message */
.error-message {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: none;
}

.app-screenshot-mobile {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* =====================================================
   MOBILE RESPONSIVE DESIGN - NON-CRITICAL SECTIONS
   ===================================================== */

/* Mobile breakpoints */
@media (max-width: 1024px) {
    /* Tablet adjustments */
    .features-container {
        gap: 60px;
    }

    .colleges-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 36px;
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* HIDE HERO IMAGES ON MOBILE */
    .hero-visual {
        display: none !important;
    }

    /* HIDE TRUST INDICATORS ON MOBILE */
    .contact-trust {
        display: none !important;
    }

    /* FORCE EDUCATORS SECTION VERTICAL LAYOUT */
    .educators-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
        align-items: center !important;
        padding: 0 20px !important;
    }

    .educators-content {
        flex: none !important;
        width: 100% !important;
        order: 1 !important;
    }

    .educators-phone-container {
        flex: none !important;
        width: 100% !important;
        order: 2 !important;
    }

    .hero-content {
        grid-template-columns: 1fr !important;
        gap: 0;
        text-align: center;
        padding: 60px 20px 80px 20px;
        min-height: auto;
        justify-content: center;
        max-width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-text {
        align-items: center;
        max-width: 100%;
        width: 100%;
    }

    /* Cookie Banner Mobile */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
    }

    /* Footer Mobile */
    .legal-links {
        flex-direction: column;
        gap: 12px;
    }

    /* Features Section Mobile - with graphic cutoff effect */
    .features-section {
        min-height: auto;
        height: auto;
        padding: 60px 0 0 0;
        position: relative;
        overflow: visible;
    }

    .features-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding: 0;
        height: auto;
    }

    .features-content {
        order: 1;
        margin-bottom: 40px;
    }

    .features-title {
        font-size: 36px;
        margin-bottom: 20px;
        line-height: 1.1;
    }

    .features-subtitle {
        font-size: 18px;
        margin-bottom: 0;
        line-height: 1.5;
    }

    .features-visual {
        order: 2;
        position: relative;
        height: 480px;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        margin-bottom: -80px; /* Reduced cutoff - shows more of the phone */
        z-index: 5;
    }

    .phone-container {
        animation: none; /* Disable animation on mobile for better performance */
    }

    .phone-mockup-screenshot {
        width: 280px;
        height: 560px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }

    /* Sandbox Section Mobile - Square Grid Layout */
    .sandbox-section {
        padding: 100px 0 80px 0; /* Reduced top padding since phone shows more */
        position: relative;
        z-index: 1;
    }

    .sandbox-content h2 {
        font-size: 36px;
        margin-bottom: 20px;
        line-height: 1.1;
    }

    .sandbox-subtitle {
        font-size: 18px;
        margin-bottom: 60px;
        line-height: 1.5;
    }

    .colleges-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 100%;
        margin: 0 auto;
    }

    .college-logo {
        aspect-ratio: 1;
        height: auto;
        width: 100%;
        min-height: 140px;
        padding: 20px;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #F9FAFB;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

        .college-logo:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
            background: white;
        }

    .logo-image {
        max-width: 80%;
        max-height: 80%;
        width: auto;
        height: auto;
        object-fit: contain;
        transition: all 0.3s ease;
    }

    /* Team Section Mobile - Enhanced */
    .team-section {
        padding: 80px 0;
    }

    .team-section .section-header h2 {
        font-size: 36px;
        margin-bottom: 16px;
        line-height: 1.1;
    }


    .team-section .section-header p {
        font-size: 18px;
        line-height: 1.5;
        max-width: 100%;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        margin-bottom: 0;
    }

    .team-member {
        padding: 24px 16px 20px;
        border-radius: 16px;
    }

    .member-image {
        width: 90px;
        height: 90px;
        border-radius: 14px;
    }

    .photo-placeholder {
        width: 90px;
        height: 90px;
        font-size: 36px;
        border-radius: 14px;
    }

    .member-info h3 {
        font-size: 17px;
        margin-bottom: 6px;
    }

    .member-role {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .social-link {
        width: 36px;
        height: 36px;
        font-size: 14px;
        border-radius: 10px;
    }

    /* Disable animations on mobile for better performance */
    .team-member:nth-child(even) .member-image,
    .team-member:nth-child(odd) .member-image {
        animation: none;
    }

    .team-intro {
        flex-direction: column;
        gap: 24px;
        margin: 32px 0 48px 0;
        padding: 24px 16px;
    }

    .team-stats {
        min-width: auto;
    }

    .stat-number {
        font-size: 36px;
    }

    .expertise-text {
        font-size: 16px;
        text-align: center;
        line-height: 1.4;
    }

    .team-mission {
        font-size: 14px;
        text-align: center;
        line-height: 1.4;
    }

    .team-values {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 40px;
    }

    /* Contact Section Mobile */
    .contact-header h2 {
        font-size: 36px;
        margin-bottom: 16px;
        line-height: 1.1;
    }

    .contact-subtitle {
        font-size: 18px;
        margin-bottom: 32px;
        line-height: 1.5;
    }

    .contact-stats {
        flex-direction: column;
        gap: 24px;
        margin: 32px 0;
        padding: 24px;
    }

    .contact-actions {
        flex-direction: column;
        gap: 16px;
        margin: 32px 0;
    }

    .btn-contact-primary {
        width: 100%;
        max-width: 280px;
        padding: 18px 32px;
    }

    .btn-contact-secondary {
        width: 100%;
        max-width: 280px;
        padding: 18px 32px;
        justify-content: center;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    /* Ensure proper padding and spacing on mobile */
    .section-container {
        padding: 0 20px;
    }

    .contact-section {
        padding: 80px 0;
    }

    .team-section {
        padding: 80px 0;
    }

    /* Modal Mobile Responsive - UPDATED */
    .modal {
        padding: 10px; /* Reduce padding on mobile */
    }

        /* When modal is shown on mobile, align to top */
        .modal[style*="display: block"],
        .modal.show {
            align-items: flex-start !important; /* Align to top on mobile */
            padding-top: 20px !important; /* Add some top padding */
        }

    .modal-content {
        margin: 0;
        width: 95%;
        max-width: 500px;
        max-height: 85vh; /* Slightly less height on mobile */
    }

    .modal-header,
    .modal-body {
        padding: 20px;
    }

    .contact-option {
        flex-direction: column;
        text-align: center;
        padding: 24px 16px;
    }

    .contact-icon {
        margin-right: 0;
        margin-bottom: 16px;
    }

    .contact-details p {
        text-align: center;
    }

    /* Form Mobile Responsive - UPDATED */
    .form-actions {
        flex-direction: column;
        gap: 12px;
        position: sticky; /* Make buttons stick to bottom */
        bottom: 0;
        background: white;
        padding-top: 16px;
        margin-top: 24px;
        border-top: 1px solid #F3F4F6;
    }

    .btn-submit,
    .btn-cancel {
        width: 100%;
        padding: 14px 24px;
    }

    /* General Mobile Optimizations */
    .section-container {
        padding: 0 20px;
    }

    section {
        min-height: auto;
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile optimizations */
    .section-container {
        padding: 0 16px;
    }

    /* Hero Section Mobile Improvements */
    .hero-section {
        min-height: 100vh;
        padding: 100px 0 40px 0;
    }

    .hero-content {
        padding: 20px 16px 40px 16px;
        gap: 0;
        text-align: center;
    }

    .hero-title {
        font-size: 32px;
        margin-bottom: 20px;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 28px;
        line-height: 1.5;
        opacity: 0.95;
    }

    .btn-join {
        padding: 16px 32px;
        font-size: 16px;
        font-weight: 700;
        min-width: 200px;
        width: 100%;
        max-width: 280px;
    }

    /* Educators Section Mobile - Text Top, Image Below */
    .educators-section {
        padding: 60px 0 20px 0;
    }

    .educators-container {
        flex-direction: column !important;
        text-align: center;
        gap: 40px;
        padding: 0;
        align-items: center;
    }

    .educators-content {
        order: 1;
    }

    .educators-title {
        font-size: 28px;
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .educators-description {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 0;
    }

    .educators-phone-container {
        order: 2;
        height: 400px;
        margin-bottom: -60px;
        display: flex;
        justify-content: center;
    }

    .educators-phone {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .phone-mockup-screenshot {
        width: 260px;
        height: 520px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }

    /* Assessment Toolkit Mobile - Vertical Layout */
    .assessment-toolkit-section {
        padding: 60px 0 40px 0;
        min-height: auto;
    }

    .toolkit-container {
        padding: 0;
    }

    .toolkit-header {
        margin-bottom: 40px;
    }

    .toolkit-title {
        font-size: 28px;
        margin-bottom: 16px;
        line-height: 1.1;
    }

    .toolkit-description {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 0;
        max-width: 100%;
    }

    /* Assessment Toolkit - Vertical Order on Mobile */
    .assessment-types {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 24px;
        max-width: 100%;
        margin: 0;
        width: 100%;
    }

    /* Individual Assessment Cards */
    .assessment-type {
        background: #FFFFFF;
        padding: 24px 20px;
        border-radius: 18px;
        border: 1px solid rgba(229, 231, 235, 0.6);
        text-align: left;
        box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.08), 0 4px 8px -2px rgba(0, 0, 0, 0.04);
        position: relative;
        overflow: hidden;
        backdrop-filter: blur(10px);
        display: flex;
        align-items: flex-start;
        gap: 18px;
        transition: all 0.3s ease;
    }

    .assessment-type:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.06);
    }

    .assessment-icon {
        width: 48px;
        height: 48px;
        background: linear-gradient(135deg, #2563EB, #06B6D4);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 18px;
        flex-shrink: 0;
        margin: 0;
    }

    .assessment-content {
        flex: 1;
        min-width: 0;
    }

    .assessment-type h3 {
        font-size: 18px;
        font-weight: 700;
        color: #111827;
        margin: 0 0 8px 0;
        line-height: 1.2;
    }

    .assessment-type p {
        font-size: 15px;
        color: #6B7280;
        line-height: 1.5;
        margin: 0;
    }

    /* Sandbox Section Mobile */
    .sandbox-section {
        padding: 60px 0;
    }

    .sandbox-content h2 {
        font-size: 28px;
        margin-bottom: 16px;
        line-height: 1.1;
    }

    .sandbox-subtitle {
        font-size: 15px;
        margin-bottom: 40px;
        line-height: 1.5;
    }

    .colleges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .college-logo {
        padding: 16px;
        height: 80px;
    }

    /* Features Section */
    .features-container {
        padding: 0;
    }

    .features-title {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .features-subtitle {
        font-size: 16px;
        margin-bottom: 0;
    }

    .features-visual {
        height: 420px;
        margin-bottom: -60px; /* Even less cutoff for small screens */
    }

    .phone-mockup-screenshot {
        width: 240px;
        height: 480px;
    }

    /* Sandbox Section */
    .sandbox-section {
        padding: 80px 0 60px 0; /* Adjusted for less phone overlap */
    }

    .sandbox-content h2 {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .sandbox-subtitle {
        font-size: 16px;
        margin-bottom: 48px;
    }

    .colleges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        max-width: 100%;
    }

    .college-logo {
        min-height: 100px;
        padding: 12px;
        border-radius: 12px;
        aspect-ratio: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logo-image {
        max-width: 75%;
        max-height: 75%;
    }

    /* Team Section - Extra Small Mobile */
    .team-section {
        padding: 50px 0;
    }

    .team-section .section-header h2 {
        font-size: 26px;
        margin-bottom: 12px;
        line-height: 1.1;
    }

    .team-section .section-header p {
        font-size: 15px;
        line-height: 1.5;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 320px;
        margin: 0 auto;
    }

    .team-member {
        padding: 20px 16px;
        border-radius: 16px;
        text-align: center;
    }

    .member-image {
        width: 90px;
        height: 90px;
        border-radius: 14px;
        margin: 0 auto 16px auto;
    }

    .photo-placeholder {
        width: 90px;
        height: 90px;
        font-size: 36px;
        border-radius: 14px;
    }

    .member-info h3 {
        font-size: 17px;
        margin-bottom: 6px;
        line-height: 1.2;
    }

    .member-role {
        font-size: 13px;
        margin-bottom: 0;
        line-height: 1.3;
    }

    .social-link {
        width: 36px;
        height: 36px;
        font-size: 14px;
        border-radius: 10px;
    }

    .stat-number {
        font-size: 28px;
    }

    .expertise-text {
        font-size: 15px;
    }

    .team-mission {
        font-size: 13px;
    }

    /* Contact Section */
    .contact-section {
        padding: 50px 0;
    }

    .contact-header h2 {
        font-size: 26px;
        margin-bottom: 16px;
        line-height: 1.1;
    }

    .contact-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
        line-height: 1.5;
    }

    .contact-stats {
        margin: 24px 0;
        padding: 20px 16px;
        flex-direction: column;
        gap: 20px;
    }

    .contact-stat {
        text-align: center;
    }

    .stat-number {
        font-size: 24px;
    }

    .contact-actions {
        flex-direction: column;
        gap: 12px;
        margin: 24px 0;
    }

    .btn-contact-primary,
    .btn-contact-secondary {
        max-width: 100%;
        width: 100%;
        padding: 16px 20px;
        justify-content: center;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    /* Smaller mobile padding */
    .section-container {
        padding: 0 16px;
    }

    .contact-section {
        padding: 60px 0;
    }

    .team-section {
        padding: 60px 0;
    }

    .team-section .section-header h2 {
        font-size: 28px;
        margin-bottom: 16px;
        line-height: 1.1;
    }

    .team-section .section-header p {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 40px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .team-member {
        padding: 20px 16px;
        border-radius: 16px;
        margin: 0 auto;
        max-width: 300px;
    }

    .member-image {
        width: 100px;
        height: 100px;
        border-radius: 16px;
    }

    .photo-placeholder {
        width: 100px;
        height: 100px;
        font-size: 40px;
        border-radius: 16px;
    }

    .member-info h3 {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .member-role {
        font-size: 14px;
        margin-bottom: 0;
    }

    /* Footer Mobile */
    .minimal-footer {
        padding: 40px 0 30px 0;
    }

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

    .company-legal {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 16px;
        order: 2;
    }

    .legal-links {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
        order: 1;
    }

    .legal-links a {
        font-size: 14px;
        padding: 8px 0;
    }

    .copyright {
        font-size: 12px;
        opacity: 0.7;
        order: 3;
    }

    /* Modal Mobile - UPDATED */
    .modal {
        padding: 5px;
    }

        .modal[style*="display: block"],
        .modal.show {
            padding-top: 10px !important;
        }

    .modal-content {
        width: 98%;
        max-height: 90vh;
        border-radius: 12px;
    }

    .modal-header,
    .modal-body {
        padding: 16px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Landscape orientation fixes for mobile - UPDATED */
@media (max-width: 768px) and (orientation: landscape) {
    .features-section {
        padding: 60px 0;
    }

    .team-section,
    .sandbox-section {
        padding: 60px 0;
    }

    section {
        padding: 60px 0;
    }

    /* Modal landscape fixes */
    .modal[style*="display: block"],
    .modal.show {
        align-items: flex-start !important;
        padding-top: 10px !important;
    }

    .modal-content {
        max-height: 95vh;
    }
}

/* Fix for very short screens - NEW */
@media (max-height: 600px) {
    .modal[style*="display: block"],
    .modal.show {
        align-items: flex-start !important;
        padding-top: 10px !important;
    }

    .modal-content {
        max-height: 95vh;
    }

    .modal-header {
        padding: 16px 24px;
    }

    .modal-body {
        padding: 20px 24px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2) {
    .member-image,
    .logo-image {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .phone-container,
    .desktop-mockup,
    .mobile-overlay {
        animation: none !important;
    }
}

/* Print styles */
@media print {
    .phone-container,
    .cookie-banner,
    .modal {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }
}

/* LOGIN PAGE STYLES - Stripe-inspired design */
.login-page-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    padding: 48px;
    width: 100%;
    max-width: 480px;
    position: relative;
    overflow: hidden;
}

    .login-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #2563EB, #06B6D4);
    }

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    height: 32px;
    margin-bottom: 24px;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    letter-spacing: -0.025em;
}

.login-subtitle {
    font-size: 16px;
    color: #6B7280;
    font-weight: 400;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group-modern {
    position: relative;
}

    .form-group-modern label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        color: #374151;
        margin-bottom: 8px;
        letter-spacing: 0.01em;
    }

.form-input-modern {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.2s ease;
    background: #FAFBFC;
    color: #111827;
    box-sizing: border-box;
}

    .form-input-modern:focus {
        outline: none;
        border-color: #2563EB;
        background: white;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
        transform: translateY(-1px);
    }

    .form-input-modern::placeholder {
        color: #9CA3AF;
        font-weight: 400;
    }

/* Validation Styles */
.input-error {
    border-color: #EF4444 !important;
    background: #FEF2F2 !important;
}

    .input-error:focus {
        border-color: #EF4444 !important;
        box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
    }

.text-danger {
    color: #EF4444;
    font-size: 14px;
    font-weight: 500;
    margin-top: 6px;
    display: block;
}

.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    border: none;
}

.alert-danger {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}

/* Button Styles */
.btn-login-modern {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

    .btn-login-modern:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
        background: linear-gradient(135deg, #1D4ED8 0%, #1E3A8A 100%);
    }

    .btn-login-modern:active {
        transform: translateY(0);
    }

    .btn-login-modern:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

/* Remember Me Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
}

.checkbox-modern {
    width: 20px;
    height: 20px;
    border: 2px solid #D1D5DB;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .checkbox-modern:checked {
        background: #2563EB;
        border-color: #2563EB;
    }

        .checkbox-modern:checked::after {
            content: '✓';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 12px;
            font-weight: 700;
        }

.checkbox-label {
    font-size: 14px;
    color: #4B5563;
    cursor: pointer;
    user-select: none;
}

/* Footer Links */
.login-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #F3F4F6;
}

    .login-footer a {
        color: #2563EB;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: color 0.2s ease;
    }

        .login-footer a:hover {
            color: #1D4ED8;
            text-decoration: underline;
        }

/* Loading State */
.loading {
    position: relative;
    color: transparent !important;
}

    .loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 20px;
        height: 20px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        border-top-color: white;
        animation: spin 1s ease-in-out infinite;
    }

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .login-page-container {
        padding: 16px;
        align-items: flex-start;
        padding-top: 40px;
    }

    .login-card {
        padding: 32px 24px;
        margin: 0;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

    .login-title {
        font-size: 24px;
    }

    .form-input-modern {
        padding: 14px 16px;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .btn-login-modern {
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .login-title {
        font-size: 22px;
    }

    .login-header {
        margin-bottom: 32px;
    }
}

/* External Logins (if needed) */
.external-login-container {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #F3F4F6;
}

.external-login-title {
    text-align: center;
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 16px;
    font-weight: 500;
}

.external-login-btn {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    background: white;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

    .external-login-btn:hover {
        border-color: #D1D5DB;
        background: #F9FAFB;
        transform: translateY(-1px);
    }

/* Success/Info Messages */
.alert-success {
    background: #F0FDF4;
    color: #166534;
    border: 1px solid #BBF7D0;
}

.alert-info {
    background: #EFF6FF;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}

/* Focus styles for accessibility */
.form-input-modern:focus,
.btn-login-modern:focus,
.checkbox-modern:focus {
    outline: 2px solid #2563EB;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .login-card {
        border: 2px solid #000;
    }

    .form-input-modern {
        border-width: 3px;
    }

    .btn-login-modern {
        border: 2px solid #000;
    }
}
