/* ========================================
   🎨 Modern Design System - Brown, Red & White Theme
   ======================================== */

:root {
    /* Warm Brown, Red & White Color Palette */
    --primary-gradient: linear-gradient(135deg, #8B4513 0%, #D2691E 100%); /* Saddle Brown to Chocolate */
    --secondary-gradient: linear-gradient(135deg, #A0522D 0%, #8B4513 100%); /* Sienna to Saddle Brown */
    --accent-gradient: linear-gradient(135deg, #CD853F 0%, #DEB887 100%); /* Peru to Burlywood */
    --dark-bg: #3E2723; /* Dark Brown */
    --medium-brown: #5D4037; /* Medium Brown */
    --light-bg: #FFF8F0; /* Warm Off-White */
    --card-bg: #FFFFFF; /* Pure White */
    --text-primary: #3E2723; /* Dark Brown */
    --text-secondary: #5D4037; /* Medium Brown */
    --text-light: #8D6E63; /* Light Brown */
    --border-color: #EFEBE9; /* Very Light Brown */
    --accent-red: #C1694F; /* Muted Red-Brown */
    --accent-brown: #8B4513; /* Saddle Brown */
    --accent-tan: #D2691E; /* Chocolate */
    --warm-white: #FFF8F0; /* Warm White */
    --shadow-sm: 0 1px 3px 0 rgba(62, 39, 35, 0.1), 0 1px 2px 0 rgba(62, 39, 35, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(62, 39, 35, 0.1), 0 2px 4px -1px rgba(62, 39, 35, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(62, 39, 35, 0.1), 0 4px 6px -2px rgba(62, 39, 35, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(62, 39, 35, 0.1), 0 10px 10px -5px rgba(62, 39, 35, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    /* Smooth scrolling for better mobile UX */
    scroll-behavior: smooth;
    /* Prevent text size adjustment on orientation change */
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-primary);
    background: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
    /* Better touch scrolling on iOS */
    -webkit-overflow-scrolling: touch;
    /* Optimize font rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container for Centered Content */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* ========================================
   🧭 Modern Navigation Bar
   ======================================== */
nav {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--medium-brown) 100%);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-bottom: 3px solid var(--accent-brown);
}

nav.scrolled {
    padding: 15px 0;
    box-shadow: var(--shadow-lg);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    color: white;
    font-size: 1.5em;
    text-decoration: none;
    font-weight: 800;
    background: linear-gradient(135deg, #FFF8F0 0%, #DEB887 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
    letter-spacing: -0.5px;
    z-index: 1001;
}

nav .logo:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger:focus {
    outline: none;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--warm-white);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    transform-origin: center;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
    background: var(--accent-brown);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
    background: var(--accent-brown);
}

/* Desktop Navigation Menu */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
}

nav ul li a {
    color: var(--warm-white);
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-brown);
    transition: var(--transition);
}

nav ul li a:hover {
    background: rgba(139, 69, 19, 0.2);
    color: white;
}

nav ul li a:hover::before {
    width: 80%;
}

/* ========================================
   📄 Sections with Modern Cards
   ======================================== */
main {
    min-height: calc(100vh - 200px);
}

section {
    padding: 60px 20px;
    margin: 40px auto;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   🌟 Hero Section
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--medium-brown) 100%);
    color: var(--warm-white);
    padding: 100px 20px;
    margin: 0;
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    height: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

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

.hero-title {
    font-size: 3.5em;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--warm-white) 0%, var(--accent-tan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: var(--warm-white);
    opacity: 0.95;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   📊 About Section with Stats
   ======================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 30px;
}

.about-text {
    text-align: left;
}

.about-text p {
    text-align: left;
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #FFF8F0 0%, #FFFFFF 100%);
    border-radius: 15px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-brown);
}

.stat-number {
    font-size: 3em;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1em;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ========================================
   💼 Services Section
   ======================================== */
.section-description {
    text-align: center;
    font-size: 1.2em;
    color: var(--text-light);
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 30px 0;
    list-style: none;
}

.service-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF8F0 100%);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover * {
    color: white;
    position: relative;
    z-index: 1;
}

.service-icon {
    font-size: 4em;
    margin-bottom: 20px;
    filter: grayscale(0);
}

.service-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.service-card p {
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    position: relative;
    z-index: 1;
}

.cta-wrapper {
    text-align: center;
    margin-top: 40px;
}

/* ========================================
   🎓 Expertise Section
   ======================================== */
.expertise {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFFFFF 100%);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.expertise-card {
    background: white;
    padding: 35px 25px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid var(--border-color);
    text-align: center;
}

.expertise-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-brown);
}

.expertise-icon {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.expertise-card h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--accent-brown);
    font-weight: 700;
}

.expertise-card p {
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: center;
}

/* ========================================
   📱 App Promotion Section
   ======================================== */
.app-promo {
    background: linear-gradient(135deg, var(--warm-white) 0%, #FFFFFF 100%);
    border: 2px solid var(--border-color);
}

.promo-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
}

.promo-text h2 {
    text-align: left;
    margin-bottom: 20px;
}

.promo-text p {
    text-align: left;
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 20px;
}

.app-badges {
    margin: 30px 0;
}

.store-badge {
    width: 180px;
    height: auto;
    transition: var(--transition);
}

.store-badge:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.coming-soon {
    font-size: 1.1em;
    color: var(--text-light);
    font-style: italic;
}

.promo-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    font-size: 150px;
    filter: drop-shadow(0 10px 20px rgba(62, 39, 35, 0.2));
    animation: float 3s ease-in-out infinite;
}

/* ========================================
   🔘 Enhanced CTA Buttons
   ======================================== */
.cta-primary {
    background: var(--primary-gradient);
    color: white;
}

.cta-secondary {
    background: transparent;
    color: var(--warm-white);
    border: 2px solid var(--warm-white);
    box-shadow: none;
}

.cta-secondary:hover {
    background: var(--warm-white);
    color: var(--accent-brown);
    border-color: var(--warm-white);
}

/* ========================================
   🦶 Enhanced Footer
   ======================================== */
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--warm-white);
    font-weight: 700;
}

.footer-section p {
    margin: 10px 0;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.footer-links a {
    color: var(--warm-white);
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: var(--transition);
}

.footer-links a:hover {
    background: var(--accent-brown);
    color: white;
    text-decoration: none;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

section p {
    font-size: 1.1em;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: center;
}

/* ========================================
   🎯 Services List with Modern Cards
   ======================================== */
.services ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 30px 0;
    list-style: none;
    text-align: left;
}

.services ul li {
    background: linear-gradient(135deg, #f6f8fb 0%, #ffffff 100%);
    padding: 30px;
    border-radius: 15px;
    font-size: 1.1em;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

/* ========================================
   🔘 Modern Call to Action Button
   ======================================== */
.cta {
    display: inline-block;
    margin-top: 30px;
    padding: 16px 40px;
    background: var(--primary-gradient);
    color: white;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta:hover::before {
    width: 300px;
    height: 300px;
}

.cta:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.cta:active {
    transform: translateY(-1px);
}

/* ========================================
   📋 Modern Contact Form
   ======================================== */
.contact {
    max-width: 700px;
    margin: 40px auto;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 1em;
    line-height: 1.6;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #8B4513;
    color: #155724;
}

.alert-success p {
    margin: 0;
    text-align: left;
    font-weight: 600;
}

.alert-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #C1694F;
    color: #721c24;
}

.alert-error ul {
    margin: 0;
    padding-left: 20px;
    text-align: left;
}

.alert-error li {
    margin: 5px 0;
    font-weight: 600;
}

form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f6f8fb 100%);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

form label {
    text-align: left;
    margin-top: 20px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

form input,
form textarea {
    width: 100%;
    padding: 15px;
    margin-top: 8px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1em;
    font-family: inherit;
    transition: var(--transition);
    background: white;
    /* Improve mobile input experience */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--accent-brown);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.15);
    transform: translateY(-2px);
}

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

form button {
    margin-top: 25px;
    padding: 16px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

form button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ========================================
   🦶 Modern Footer
   ======================================== */
footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--medium-brown) 100%);
    color: var(--warm-white);
    padding: 50px 20px 30px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
}

footer a {
    color: var(--accent-tan);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

footer a:hover {
    color: var(--accent-brown);
    text-decoration: underline;
}

footer .container {
    flex-wrap: wrap;
    gap: 30px;
}

footer img {
    transition: var(--transition);
    filter: brightness(0.9);
}

footer img:hover {
    transform: scale(1.05);
    filter: brightness(1);
}

/* ========================================
   🔒 Privacy Policy Styling
   ======================================== */
.privacy-container {
    width: 90%;
    max-width: 900px;
    margin: 40px auto;
    background: var(--card-bg);
    padding: 60px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.6s ease-out;
}

.privacy-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.privacy-container h1 {
    font-size: 2.8em;
    margin-bottom: 20px;
    text-align: center;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.privacy-container h2 {
    color: var(--text-primary);
    margin-top: 35px;
    margin-bottom: 15px;
    font-size: 1.6em;
    text-align: left;
    background: none;
    -webkit-text-fill-color: var(--text-primary);
    border-left: 4px solid var(--accent-brown);
    padding-left: 15px;
}

.privacy-container p {
    text-align: left;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.privacy-container ul {
    text-align: left;
    padding-left: 25px;
    color: var(--text-secondary);
}

.privacy-container ul li {
    margin: 10px 0;
}

/* ========================================
   📱 Enhanced Mobile Optimization
   ======================================== */

/* Tablet Devices (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        width: 92%;
    }

    h2 {
        font-size: 2.2em;
    }

    section {
        padding: 50px 25px;
    }

    .services ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
        --shadow-md: 0 2px 4px -1px rgba(0, 0, 0, 0.08);
        --shadow-lg: 0 6px 12px -2px rgba(0, 0, 0, 0.1);
        --shadow-xl: 0 12px 20px -4px rgba(0, 0, 0, 0.12);
    }

    body {
        font-size: 16px; /* Prevents zoom on iOS when focusing inputs */
    }

    .container {
        width: 95%;
        padding: 0 15px;
    }

    /* Mobile Navigation with Hamburger Menu */
    nav {
        padding: 15px 0;
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
    }

    nav .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    nav .logo {
        font-size: 1.3em;
    }

    /* Show Hamburger Menu on Mobile */
    .hamburger {
        display: flex;
    }

    /* Mobile Menu - Hidden by Default */
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, var(--dark-bg) 0%, var(--medium-brown) 100%);
        flex-direction: column;
        gap: 0;
        padding: 80px 0 40px;
        box-shadow: -5px 0 15px rgba(62, 39, 35, 0.4);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 1000;
        border-left: 3px solid var(--accent-brown);
    }

    /* Mobile Menu - Active State */
    nav ul.active {
        right: 0;
    }

    nav ul li {
        width: 100%;
        opacity: 0;
        transform: translateX(50px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    nav ul.active li {
        opacity: 1;
        transform: translateX(0);
    }

    /* Stagger animation for menu items */
    nav ul.active li:nth-child(1) { transition-delay: 0.1s; }
    nav ul.active li:nth-child(2) { transition-delay: 0.2s; }
    nav ul.active li:nth-child(3) { transition-delay: 0.3s; }
    nav ul.active li:nth-child(4) { transition-delay: 0.4s; }

    nav ul li a {
        display: block;
        width: 100%;
        padding: 20px 30px;
        font-size: 1.1em;
        border-radius: 0;
        border-left: 4px solid transparent;
        transition: all 0.3s ease;
        pointer-events: auto;
        color: var(--warm-white);
    }

    nav ul li a::before {
        display: none;
    }

    nav ul li a:hover,
    nav ul li a:active {
        background: rgba(139, 69, 19, 0.2);
        border-left-color: var(--accent-brown);
        padding-left: 40px;
    }

    /* Menu Overlay */
    nav::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 998;
        pointer-events: none;
    }

    nav.menu-open::after {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Add padding to main to account for fixed nav */
    main {
        margin-top: 80px;
    }

    /* Mobile Typography */
    h2 {
        font-size: 1.8em;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    /* Hero Section Mobile */
    .hero {
        padding: 60px 20px;
    }

    .hero-title {
        font-size: 2em;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1em;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons .cta {
        width: 100%;
        max-width: 300px;
    }

    /* About Stats Mobile */
    .about-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-number {
        font-size: 2.5em;
    }

    /* Services Grid Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .service-icon {
        font-size: 3em;
    }

    /* Expertise Grid Mobile */
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .expertise-card {
        padding: 30px 20px;
    }

    .expertise-icon {
        font-size: 3em;
    }

    /* App Promo Mobile */
    .promo-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .promo-text h2,
    .promo-text p {
        text-align: center;
    }

    .app-badges {
        text-align: center;
    }

    .promo-visual {
        order: -1;
    }

    .phone-mockup {
        font-size: 100px;
    }

    /* Footer Mobile */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

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

    .footer-links {
        justify-content: center;
    }

    section {
        padding: 30px 20px;
        margin: 15px auto;
        border-radius: 15px;
    }

    section p {
        font-size: 1em;
        line-height: 1.7;
    }

    /* Mobile Services Grid */
    .services ul {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px 0;
    }

    .services ul li {
        padding: 25px 20px;
        font-size: 1em;
    }

    /* Disable floating animation on mobile for better performance */
    .services ul li:nth-child(odd),
    .services ul li:nth-child(even) {
        animation: none;
    }

    /* Mobile CTA Buttons */
    .cta {
        font-size: 1em;
        padding: 14px 30px;
        width: 100%;
        max-width: 300px;
        display: block;
        margin: 20px auto;
        text-align: center;
    }

    /* Mobile Form Optimization */
    form {
        padding: 25px 20px;
        margin: 20px auto;
    }

    form label {
        font-size: 0.9em;
        margin-top: 15px;
    }

    form input,
    form textarea {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 10px;
    }

    form button {
        padding: 14px;
        font-size: 1em;
        width: 100%;
    }

    /* Mobile Privacy Container */
    .privacy-container {
        padding: 30px 20px;
        margin: 20px auto;
        position: relative;
    }

    .privacy-container h1 {
        font-size: 1.8em;
        line-height: 1.2;
    }

    .privacy-container h2 {
        font-size: 1.3em;
        margin-top: 25px;
    }

    .privacy-container p {
        font-size: 0.95em;
    }

    /* Mobile Footer */
    footer {
        padding: 30px 20px 20px;
        margin-top: 40px;
    }

    footer .container {
        flex-direction: column !important;
        text-align: center !important;
    }

    footer .container > div {
        text-align: center !important;
        min-width: 100% !important;
    }

    footer img {
        max-width: 150px;
        height: auto;
    }

    footer p {
        font-size: 0.9em;
        margin: 8px 0;
    }
}

/* Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    nav .logo {
        font-size: 1.1em;
    }

    nav ul {
        width: 80%;
        max-width: 280px;
    }

    nav ul li a {
        padding: 18px 25px;
        font-size: 1em;
    }

    h2 {
        font-size: 1.5em;
    }

    section {
        padding: 25px 15px;
        margin: 10px auto;
    }

    .services ul li {
        padding: 20px 15px;
    }

    form {
        padding: 20px 15px;
    }

    .privacy-container {
        padding: 25px 15px;
    }

    .privacy-container h1 {
        font-size: 1.5em;
    }

    .cta {
        padding: 12px 25px;
        font-size: 0.95em;
    }
}

/* Landscape Mode Optimization */
@media (max-height: 600px) and (orientation: landscape) {
    nav {
        position: relative;
    }

    main {
        margin-top: 0;
    }

    section {
        padding: 30px 20px;
        margin: 15px auto;
    }

    nav .container {
        flex-direction: row;
        justify-content: space-between;
    }

    nav ul {
        flex-direction: row;
    }
}

/* Touch-Friendly Enhancements for All Mobile */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    nav ul li a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cta {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    form button {
        min-height: 48px;
    }

    /* Remove hover effects on touch devices */
    .services ul li:hover {
        transform: none;
    }

    nav ul li a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    /* Add active states instead */
    .services ul li:active {
        transform: scale(0.98);
    }

    .cta:active {
        transform: scale(0.98);
    }

    form button:active {
        transform: scale(0.98);
    }
}

/* High DPI Displays (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* ========================================
   ✨ Scroll Animations
   ======================================== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.services ul li:nth-child(odd) {
    animation: float 3s ease-in-out infinite;
}

.services ul li:nth-child(even) {
    animation: float 3s ease-in-out infinite 0.5s;
}