﻿/* WiFiIQ Main Stylesheet */


/* Add this to the beginning of your CSS file */

/* Custom viewport height property for iOS */
:root {
    --vh: 1vh;
}

/* Update the hero section to use the custom property */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh; /* Fallback */
        min-height: calc(var(--vh, 1vh) * 100);
    }
}

/* Additional mobile-specific improvements */
@media (max-width: 768px) {
    /* Ensure proper stacking context */
    .main-nav {
        z-index: 1001;
    }

    .mobile-menu-toggle {
        z-index: 1002;
        position: relative;
        width: 30px;
        height: 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

        .mobile-menu-toggle span {
            display: block;
            width: 25px;
            height: 3px;
            background: var(--secondary);
            transition: all 0.3s ease;
            position: absolute;
        }

            .mobile-menu-toggle span:nth-child(1) {
                top: 8px;
            }

            .mobile-menu-toggle span:nth-child(2) {
                top: 50%;
                transform: translateY(-50%);
            }

            .mobile-menu-toggle span:nth-child(3) {
                bottom: 8px;
            }

    /* Ensure touches work properly on iOS */
    .mobile-menu-toggle,
    .nav-links a,
    .hero-buttons a {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    /* Fix for iOS bounce scrolling */
    .nav-links.mobile-active {
        -webkit-overflow-scrolling: touch;
        overflow-y: auto;
        max-height: calc(100vh - 70px);
    }
}

/* Ensure headache items are visible on mobile */
@media (max-width: 768px) {
    .headache-item {
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        transform: none !important;
        animation: none !important;
    }

    /* Simple fade in for mobile */
    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .headache-item {
        animation: fadeIn 0.5s ease forwards;
    }

        .headache-item:nth-child(1) {
            animation-delay: 0.1s;
        }

        .headache-item:nth-child(2) {
            animation-delay: 0.2s;
        }

        .headache-item:nth-child(3) {
            animation-delay: 0.3s;
        }

        .headache-item:nth-child(4) {
            animation-delay: 0.4s;
        }
}




* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3B5ED8;
    --primary-dark: #2A47B0;
    --secondary: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-dark: #0a0a0a;
    --gradient: linear-gradient(135deg, #3B5ED8 0%, #2A47B0 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--secondary);
    overflow-x: hidden;
}

/* Navigation */
.main-nav {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

    .main-nav.scrolled {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    }

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

    .logo a {
        text-decoration: none;
        display: flex;
        align-items: center;
    }

    .logo svg {
        width: 150px;
        height: 40px;
        margin-right: 0.5rem;
    }

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

    .nav-links a {
        text-decoration: none;
        color: var(--secondary);
        font-weight: 500;
        transition: color 0.3s ease;
        position: relative;
    }

        .nav-links a:hover {
            color: var(--primary);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary);
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background: var(--secondary);
        transition: all 0.3s ease;
    }

.btn-primary {
    background: var(--gradient);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(59, 94, 216, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(59, 94, 216, 0.4);
    }

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px; /* Account for fixed navbar */
    background-image: url('/images/wifiIQ_hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

    /* Dark overlay for text readability */
    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient( to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.7) 100% );
        z-index: 1;
    }

/* Hero content styling */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    padding: 2rem;
}

    .hero-content h1 {
        color: #ffffff !important;
        font-size: 3.5rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        line-height: 1.2;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
        /* Remove gradient text effect for better visibility */
        background: none;
        -webkit-background-clip: unset;
        -webkit-text-fill-color: unset;
    }

    .hero-content .subtitle {
        color: #ffffff !important;
        font-size: 1.25rem;
        margin-bottom: 2rem;
        font-weight: 500;
        text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
        opacity: 1 !important;
    }

/* Hero buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

    .hero-buttons .btn-primary {
        background: #4c7ef3;
        color: white;
        padding: 1rem 2rem;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

        .hero-buttons .btn-primary:hover {
            background: #3b5ed8;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
        }

    .hero-buttons .btn-secondary {
        background: rgba(255, 255, 255, 0.9);
        color: #2d3748;
        padding: 1rem 2rem;
        border: 2px solid transparent;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

        .hero-buttons .btn-secondary:hover {
            background: #ffffff;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
        }

/* Animation keyframes */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Handle the Headaches Section */
.headaches-section {
    padding: 100px 0;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
}

    .headaches-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: -50%;
        width: 200%;
        height: 100%;
        background: radial-gradient(circle at center, rgba(59, 94, 216, 0.1) 0%, transparent 70%);
        pointer-events: none;
    }

.headaches-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.headaches-content h2 {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #ffffff;
    font-weight: 700;
}

.strike-through {
    color: #666;
    text-decoration: line-through;
    text-decoration-color: #3B5ED8;
    text-decoration-thickness: 3px;
}

.headaches-content em {
    color: #3B5ED8;
    font-style: italic;
    font-weight: 700;
    background: linear-gradient(135deg, #3B5ED8 0%, #2A47B0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.headaches-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: #999;
    margin-bottom: 80px;
}

.headaches-wrapper {
    position: relative;
    perspective: 1500px;
    perspective-origin: center;
}

.headaches-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.headache-item {
    width: 300px;
    padding: 40px 30px;
    border-radius: 20px;
    background: #1a1a1a;
    border: 1px solid rgba(59, 94, 216, 0.2);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    transform: translateX(300px) rotateY(-45deg) scale(0.8);
    opacity: 0;
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

    .headache-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, transparent 0%, rgba(59, 94, 216, 0.1) 100%);
        pointer-events: none;
    }

    .headache-item::after {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(135deg, #3B5ED8 0%, transparent 60%);
        border-radius: 20px;
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: -1;
    }

    .headache-item:hover::after {
        opacity: 0.3;
    }

    .headache-item.animate-in {
        transform: translateX(0) rotateY(0) scale(1);
        opacity: 1;
    }

    .headache-item:nth-child(1).animate-in {
        transition-delay: 0s;
    }

    .headache-item:nth-child(2).animate-in {
        transition-delay: 0.15s;
    }

    .headache-item:nth-child(3).animate-in {
        transition-delay: 0.3s;
    }

    .headache-item:nth-child(4).animate-in {
        transition-delay: 0.45s;
    }

    .headache-item:hover {
        transform: translateY(-10px) scale(1.05);
        box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 40px rgba(59, 94, 216, 0.2);
        border-color: rgba(59, 94, 216, 0.5);
    }

.headache-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
    filter: grayscale(100%) brightness(1.5);
    transition: filter 0.3s ease;
}

.headache-item:hover .headache-icon {
    filter: grayscale(0%) brightness(1);
}

.headache-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 700;
}

.headache-item p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    font-size: 1.05rem;
}

.focus-section {
    background: rgba(59, 94, 216, 0.1);
    border: 1px solid rgba(59, 94, 216, 0.3);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

    .focus-section h3 {
        font-size: 2rem;
        margin-bottom: 30px;
        color: #ffffff;
        font-weight: 600;
    }

.focus-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

.focus-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
}

.focus-emoji {
    font-size: 2.5rem;
    animation: bounce 2s ease-in-out infinite;
    filter: brightness(0.8);
}

.focus-item:hover .focus-emoji {
    filter: brightness(1.2);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Features Section */
.features {
    padding: 5rem 2rem;
    background: white;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

    .section-header h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        color: var(--secondary);
    }

    .section-header p {
        font-size: 1.2rem;
        color: var(--text-light);
    }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

    .feature-card.animated {
        opacity: 1;
        transform: translateY(0);
        transition: all 0.6s ease;
    }

    .feature-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: var(--gradient);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .feature-card:hover::before {
        transform: translateX(0);
    }

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Integrations Section */
.integrations {
    padding: 5rem 2rem;
    background: var(--bg-light);
}

.integration-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.integration-logo {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    font-weight: bold;
    color: var(--text-light);
}

    .integration-logo:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

/* Security Section */
.security-section {
    padding: 6rem 2rem;
    background: var(--secondary);
    color: white;
    position: relative;
    overflow: hidden;
}

    .security-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at top right, rgba(59, 94, 216, 0.1) 0%, transparent 50%);
        pointer-events: none;
    }

.security-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.security-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.security-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.security-intro {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.8);
    max-width: 800px;
    margin: 0 auto;
}

.security-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 3rem;
}

.security-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.security-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
}

.security-explanation {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.why-matters-section {
    margin: 3rem 0;
}

    .why-matters-section h4 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
        color: white;
    }

.matter-points {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.matter-point {
    display: flex;
    gap: 1.5rem;
    align-items: start;
    background: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

    .matter-point:hover {
        background: rgba(255,255,255,0.1);
        transform: translateX(10px);
    }

.matter-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.matter-content h5 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.matter-content p {
    margin: 0;
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
}

.simple-explanation {
    margin: 3rem 0;
}

    .simple-explanation h4 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        color: white;
    }

.highlight-box {
    background: rgba(59, 94, 216, 0.15);
    border: 2px solid rgba(59, 94, 216, 0.3);
    padding: 2rem;
    border-radius: 15px;
    font-size: 1.1rem;
    line-height: 1.8;
}

    .highlight-box strong {
        color: var(--primary);
    }

.azure-hosting {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(0,120,212,0.1);
    border-radius: 15px;
    border: 1px solid rgba(0,120,212,0.3);
}

    .azure-hosting h4 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        color: #0078d4;
    }

    .azure-hosting ul {
        list-style: none;
        padding: 0;
    }

    .azure-hosting li {
        padding: 0.5rem 0;
        padding-left: 1.5rem;
        position: relative;
        color: rgba(255,255,255,0.9);
    }

        .azure-hosting li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: #0078d4;
            font-weight: bold;
        }

.security-image {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.soc2-cert-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.image-caption {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    text-align: center;
}

.certification-badge {
    position: absolute;
    bottom: 20px;
    right: -20px;
    background: var(--gradient);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

    .certification-badge:hover {
        transform: rotate(-2deg) scale(1.05);
    }

.badge-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

    .badge-content svg {
        width: 30px;
        height: 30px;
    }

    .badge-content span {
        font-weight: 700;
        font-size: 0.9rem;
        line-height: 1.2;
    }

.badge-year {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    color: rgba(255,255,255,0.9);
}

.security-bottom {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.security-guarantee h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
}

.security-guarantee p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.security-cta {
    text-align: center;
}

.security-learn-more {
    background: white;
    color: var(--primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

    .security-learn-more:hover {
        transform: scale(1.05);
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }

.cta-subtext {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

/* CTA Section */
.cta {
    padding: 5rem 2rem;
    background: var(--gradient);
    color: white;
    text-align: center;
}

    .cta h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .cta p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        opacity: 0.9;
    }

.btn-cta {
    background: white;
    color: var(--primary);
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

    .btn-cta:hover {
        transform: scale(1.05);
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

    .footer-links a {
        color: rgba(255,255,255,0.7);
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .footer-links a:hover {
            color: white;
        }

/* Responsive */
@media (max-width: 968px) {
    .security-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .security-image {
        order: -1;
        margin-bottom: 2rem;
    }

    .certification-badge {
        position: static;
        transform: none;
        margin: 2rem auto 0;
        max-width: 250px;
    }

    .matter-point {
        flex-direction: column;
        text-align: center;
    }

    .security-bottom {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        margin-top: 60px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

        .hero-buttons a {
            width: 100%;
            max-width: 250px;
            text-align: center;
        }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .headaches-content h2 {
        font-size: 2rem;
    }

    .headache-item {
        width: 100%;
        max-width: 350px;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Add these mobile fixes to your site.css file */

/* Mobile Menu Fixes */
.nav-links.mobile-active {
    display: flex !important;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 2rem;
    gap: 1.5rem;
    z-index: 999;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* Hero Section Mobile Fixes */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        background-attachment: scroll; /* Fix iOS background-attachment issue */
        background-size: cover;
        background-position: center;
    }

        .hero::before {
            background: linear-gradient( to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.8) 100% );
        }

    .hero-content {
        padding: 1rem;
        margin-top: 2rem;
    }

        .hero-content h1 {
            font-size: 2rem !important;
            line-height: 1.3;
            margin-bottom: 1rem;
        }

        .hero-content .subtitle {
            font-size: 1rem !important;
            line-height: 1.5;
            margin-bottom: 1.5rem;
        }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

        .hero-buttons a {
            width: 100%;
            text-align: center;
            padding: 1rem 2rem;
            font-size: 1rem;
        }
}

/* Headaches Section Mobile Fixes */
@media (max-width: 768px) {
    .headaches-section {
        padding: 60px 0;
        overflow-x: hidden;
    }

    .headaches-content h2 {
        font-size: 1.8rem;
        line-height: 1.3;
        padding: 0 1rem;
        margin-bottom: 1rem;
    }

    .headaches-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
        margin-bottom: 40px;
    }

    .headaches-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-bottom: 40px;
        padding: 0 1rem;
    }

    .headache-item {
        width: 100%;
        max-width: 100%;
        padding: 30px 20px;
        /* Remove complex animations for mobile */
        transform: none !important;
        opacity: 1 !important;
        transition: transform 0.3s ease !important;
    }

        .headache-item.animate-in {
            transform: none !important;
            opacity: 1 !important;
        }

        .headache-item:hover {
            transform: translateY(-5px) !important;
        }

    .headache-icon {
        font-size: 3rem;
        margin-bottom: 15px;
    }

    .headache-item h3 {
        font-size: 1.3rem;
    }

    .headache-item p {
        font-size: 1rem;
    }

    .focus-section {
        padding: 30px 20px;
        margin: 0 1rem;
    }

        .focus-section h3 {
            font-size: 1.5rem;
            margin-bottom: 20px;
        }

    .focus-item {
        font-size: 1.1rem;
        gap: 10px;
    }

    .focus-emoji {
        font-size: 2rem;
    }
}

/* Features Section Mobile */
@media (max-width: 768px) {
    .features {
        padding: 3rem 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1.1rem;
    }

    .feature-grid {
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }
}

/* Security Section Mobile */
@media (max-width: 768px) {
    .security-section {
        padding: 3rem 1rem;
    }

        .security-section h2 {
            font-size: 2rem;
        }

    .security-intro {
        font-size: 1.1rem;
    }

    .security-text h3 {
        font-size: 1.5rem;
    }

    .security-text p {
        font-size: 1rem;
    }

    .matter-point {
        padding: 1rem;
    }

    .matter-icon {
        font-size: 2rem;
    }

    .matter-content h5 {
        font-size: 1.2rem;
    }
}

/* Navigation Mobile Specific */
@media (max-width: 768px) {
    .main-nav {
        padding: 0;
    }

    .nav-container {
        padding: 1rem;
    }

    .logo img {
        height: 35px;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        width: 100%;
        text-align: center;
    }

    #getStartedBtn {
        width: 100%;
        text-align: center;
    }
}

/* iOS Specific Fixes */
@supports (-webkit-touch-callout: none) {
    /* iOS only styles */
    .hero {
        background-attachment: scroll;
    }

    .headache-item {
        -webkit-transform: translateZ(0);
        -webkit-backface-visibility: hidden;
    }
}

/* Ensure body doesn't scroll when menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}


