/* CSS Variables - HuddleHome Color Palette */
:root {
    --robin-egg-blue: #25ced1;
    --white: #ffffff;
    --champagne-pink: #fceade;
    --coral: #ff8a5b;
    --bright-pink-crayola: #ea526f;
    
    /* Bolder orange-based colors for better readability */
    --orange-primary: #ff6b35;
    --orange-dark: #e55a2b;
    --orange-light: #ff8a5b;
    --coral-bold: #ff6b35;
    
    /* Additional bright colors for flat design */
    --robin-egg-blue-light: #e8f9fa;
    --coral-light: #ffe8e0;
    --bright-pink-light: #fde8ec;
    --yellow: #ffd93d;
    --green: #6bcf7f;
    --purple: #a78bfa;
    
    /* Typography */
    --font-heading: 'Playpen Sans', cursive;
    --font-body: 'Noto Sans', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 20px;
    
    /* Border radius */
    --border-radius: 12px;
    --border-radius-large: 20px;
    
    /* Flat shadows */
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 24px rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: #333;
    background: var(--white);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--orange-primary);
    color: var(--white);
    box-shadow: var(--shadow-light);
    border: 2px solid var(--orange-primary);
}

.btn-primary:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--white);
    color: var(--orange-primary);
    border: 2px solid var(--orange-primary);
}

.btn-secondary:hover {
    background: var(--orange-primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
    margin-top: 1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    border-bottom: 2px solid var(--orange-primary);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow-light);
    max-width: 100vw;
}

.nav-container {
    margin: 0 auto;
    padding: var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    font-family: var(--font-heading);
    color: var(--orange-primary);
    font-size: 1.8rem;
    margin: 0;
}

.nav-logo .logo-image {
    width: 260px;
    height: auto;
    display: block;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 12px;
    border-radius: var(--border-radius);
}

.nav-links a:hover {
    color: var(--orange-primary);
    background: rgba(255, 107, 53, 0.1);
}

/* Mobile menu button */
.mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 32px;
    width: 32px;
    padding: 0;
    margin-left: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--orange-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Background image container */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--bg-image, url('/huddlehome/assets/images/family_hero_background_optimized.jpg'));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 1s ease-in-out;
    z-index: -2;
}

/* Gradient overlay for better text readability */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgb(252 234 222 / 52%) 25%, rgb(255 255 255 / 67%) 50%, rgb(37 206 209 / 28%) 75%, rgb(255 255 255 / 78%) 100%);
    z-index: -1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    margin-bottom: 1.5rem;
    color: #333;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.9), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gradient-text {
    color: var(--orange-primary);
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #303030;
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.9), 0 2px 6px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--orange-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--orange-primary);
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-screen {
    width: 280px;
    height: 560px;
    background: var(--orange-primary);
    border-radius: 30px;
    padding: 20px;
    box-shadow: var(--shadow-heavy);
    position: relative;
    border: 4px solid var(--orange-dark);
}

.phone-screen::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.app-interface {
    background: var(--white);
    border-radius: 20px;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.family-avatar {
    font-size: 2rem;
}

.family-name {
    font-family: var(--font-heading);
    font-weight: 600;
    color: #333;
}

.task-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.task-item.completed {
    background: var(--coral-light);
    border-left: 4px solid var(--orange-primary);
}

.task-icon {
    font-size: 1.2rem;
}

.task-text {
    flex: 1;
    font-weight: 500;
}

.task-points {
    font-size: 0.8rem;
    color: var(--orange-primary);
    font-weight: 600;
}

.family-score {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--orange-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    border: 4px solid var(--robin-egg-blue);
}

.score-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.score-label {
    font-size: 0.7rem;
    opacity: 0.9;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features {
    padding: var(--section-padding);
    background: var(--champagne-pink);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 50px,
        rgba(255, 138, 91, 0.05) 50px,
        rgba(255, 138, 91, 0.05) 100px
    );
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 3px solid var(--orange-primary);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--orange-primary);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--orange-dark);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    width: 80px;
    height: 80px;
    background: var(--orange-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--robin-egg-blue);
}

.feature-card h3 {
    color: var(--orange-primary);
    margin-bottom: 1rem;
}

/* How It Works Section */
.how-it-works {
    padding: var(--section-padding);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--orange-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--robin-egg-blue);
}

.step-content h3 {
    color: var(--orange-primary);
    margin-bottom: 1rem;
}

/* Pricing Section */
.pricing {
    padding: var(--section-padding);
    background: var(--robin-egg-blue-light);
}

.pricing-card {
    max-width: 500px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    border: 3px solid var(--orange-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--orange-primary);
}

.pricing-header h3 {
    color: var(--orange-primary);
    margin-bottom: 1rem;
}

.price {
    margin-bottom: 1rem;
}

.currency {
    font-size: 1.5rem;
    color: var(--robin-egg-blue);
}

.amount {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--robin-egg-blue);
}

.period {
    font-size: 1.2rem;
    color: #666;
}

.pricing-subtitle {
    color: #666;
    margin-bottom: 2rem;
}

.pricing-features {
    text-align: left;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.check {
    color: var(--robin-egg-blue);
    font-weight: bold;
    font-size: 1.2rem;
}

.trial-text {
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
}

/* Testimonials Section */
.testimonials {
    padding: var(--section-padding);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    border: 2px solid var(--orange-primary);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--orange-primary);
    font-family: var(--font-heading);
    background: var(--white);
    padding: 0 10px;
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: #555;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    font-size: 2rem;
}

.author-info h4 {
    color: var(--orange-primary);
    margin-bottom: 0.25rem;
}

.author-info span {
    font-size: 0.9rem;
    color: #666;
}

/* CTA Section */
.cta-section {
    padding: var(--section-padding);
    background: var(--orange-primary);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(255, 255, 255, 0.1) 20px,
        rgba(255, 255, 255, 0.1) 40px
    );
    pointer-events: none;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: #333;
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--orange-primary);
    margin-bottom: 1rem;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* General mobile adjustments */
    :root {
        --section-padding: 60px 0;
        --container-padding: 0 20px;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 2.8rem;
        line-height: 1.1;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    /* Hero section */
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        min-height: 48px;
        padding: 14px 24px;
        font-size: 1.1rem;
        width: 100%;
        max-width: 280px;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .stat {
        min-width: 120px;
        padding: 1rem;
    }
    
    .phone-mockup {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .phone-screen {
        width: 240px;
        height: 480px;
    }
    
    /* Navigation */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-container {
        position: relative;
        width: 100%;
        z-index: auto;
    }
    
    .nav-links {
        /* Change top to 100% so it always sits directly below the navbar, even when minimized */
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #fff6f0 0%, #e8f9fa 100%);
        border-radius: 18px;
        box-shadow: 0 8px 32px rgba(37, 206, 209, 0.10), 0 2px 8px rgba(255, 107, 53, 0.08);
        flex-direction: column;
        padding: 1.2rem 0.7rem 1.2rem 0.7rem;
        margin: 0.5rem 1rem 0 1rem;
        display: none;
        opacity: 0;
        visibility: hidden;
        z-index: 1100;
        max-height: calc(100vh - var(--navbar-height, 52px) - 1rem);
        overflow-y: auto;
        animation: none;
        border: 2px solid var(--orange-primary);
    }
    .navbar.navbar-minimized .nav-links {
        /* No change needed, top:100% will always follow navbar height */
    }
    
    .nav-links a {
        padding: 14px 18px;
        border-radius: 12px;
        margin: 4px 0;
        text-align: left;
        font-size: 1.15rem;
        color: #333;
        font-weight: 600;
        background: transparent;
        transition: background 0.2s, color 0.2s, transform 0.2s;
        opacity: 0;
        transform: translateY(20px);
        animation: menuItemIn 0.4s cubic-bezier(0.4,0,0.2,1) forwards;
    }
    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
        animation: menuItemIn 0.4s cubic-bezier(0.4,0,0.2,1) forwards;
    }
    .nav-links a:hover, .nav-links a:focus {
        background: var(--orange-primary);
        color: var(--white);
        transform: scale(1.04);
    }
    .nav-links a:nth-child(1) { animation-delay: 0s; }
    .nav-links a:nth-child(2) { animation-delay: 0.12s; }
    .nav-links a:nth-child(3) { animation-delay: 0.19s; }
    .nav-links a:nth-child(4) { animation-delay: 0.26s; }
    @keyframes fadeInMenu {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    @keyframes menuItemIn {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .nav-cta {
        display: none;
    }
    
    .nav-cta-mobile {
        display: block !important;
        text-align: center;
        margin: 1.5rem auto 0 auto;
    }
    
    .nav-logo h2 {
        font-size: 1.5rem;
    }
    
    /* Features section */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    /* How it works */
    .steps-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .step {
        padding: 1.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Pricing */
    .pricing-card {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    /* CTA section */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section p {
        font-size: 1.1rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
}

@media (max-width: 480px) {
    /* Extra small devices */
    :root {
        --section-padding: 40px 0;
        --container-padding: 0 15px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Typography for very small screens */
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Phone mockup for very small screens */
    .phone-screen {
        width: 200px;
        height: 400px;
        padding: 15px;
    }
    
    .app-interface {
        padding: 15px;
        gap: 15px;
    }
    
    /* Buttons for very small screens */
    .btn-primary, .btn-secondary {
        min-height: 44px;
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    /* Stats for very small screens */
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat {
        width: 100%;
        max-width: 200px;
    }
    
    /* Cards for very small screens */
    .feature-card,
    .testimonial-card,
    .pricing-card {
        padding: 1.25rem;
    }
    
    /* Feature icons for very small screens */
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    /* Step numbers for very small screens */
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    /* Pricing for very small screens */
    .pricing-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .amount {
        font-size: 2.5rem;
    }
    
    /* Footer for very small screens */
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Touch-friendly improvements for all mobile devices */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn-primary, .btn-secondary {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    .nav-links a {
        padding: 12px 16px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .feature-card,
    .testimonial-card,
    .pricing-card {
        cursor: pointer;
    }
    
    /* Remove hover effects on touch devices */
    .btn-primary:hover,
    .btn-secondary:hover,
    .feature-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
    
    /* Add active states for touch feedback */
    .btn-primary:active,
    .btn-secondary:active {
        transform: scale(0.98);
    }
    
    .feature-card:active,
    .testimonial-card:active {
        transform: scale(0.98);
    }
}

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

.feature-card,
.step,
.testimonial-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Mobile performance optimizations */
@media (max-width: 768px) {
    /* Reduce animations on mobile for better performance */
    .feature-card,
    .step,
    .testimonial-card {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    /* Optimize background images for mobile */
    .hero::before {
        background-attachment: scroll;
    }
    
    /* Optimize background slider for mobile */
    .hero {
        transition: background-image 0.8s ease-in-out;
    }
    
    /* Reduce shadow complexity on mobile */
    .feature-card,
    .testimonial-card,
    .pricing-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Improve touch scrolling */
    .hero,
    .features,
    .how-it-works,
    .pricing,
    .testimonials,
    .cta-section {
        -webkit-overflow-scrolling: touch;
    }
}

/* Prevent zoom on input focus for iOS */
@media screen and (max-width: 768px) {
    input, select, textarea {
        font-size: 16px;
    }
}

/* --- Navbar Minimization Styles (Mobile) --- */
/* --- Navbar Minimization --- */
.navbar {
  z-index: 1200 !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 0.7rem 0;
  min-height: 52px;
  transition: padding 0.3s cubic-bezier(0.4,0,0.2,1), min-height 0.3s cubic-bezier(0.4,0,0.2,1);
}
.navbar.navbar-minimized {
  padding: 0.18rem 0;
  min-height: 36px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.nav-logo .logo-image {
  width: 220px;
  transition: width 0.3s cubic-bezier(0.4,0,0.2,1);
}
.navbar.navbar-minimized .nav-logo .logo-image {
  width: 150px;
}

/* --- Menu Overlay --- */
.menu-overlay {
  z-index: 1050 !important;
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: rgba(30, 30, 30, 0.32);
  transition: opacity 0.3s;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(3px);

}
.menu-overlay.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* --- Mobile Nav Menu (now global) --- */
.nav-links {
  z-index: 1100 !important;
  position: fixed;
  width: calc(100vw - 2rem);
  max-width: 480px;
  /* top will be set by JS to match navbar height */
  background: linear-gradient(135deg, rgba(255,246,240,0.85) 0%, rgba(232,249,250,0.85) 100%);
  border-radius: 18px 18px 24px 24px;
  box-shadow: 0 8px 32px rgba(37, 206, 209, 0.10), 0 2px 8px rgba(255, 107, 53, 0.08);
  flex-direction: column;
  padding: 1.2rem 0.7rem 1.2rem 0.7rem;
  display: none;
  opacity: 0;
  visibility: hidden;
  max-height: calc(100vh - var(--navbar-height, 52px) - 1rem);
  overflow-y: auto;
  animation: none;
  border: 2px solid var(--orange-primary);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  transition: opacity 0.25s, transform 0.25s;
  transform-origin: center;
  transform: translateX(calc(50% - 2rem)) scale(0.98);
}
@media (max-width: 768px) {
  .nav-links {
    transform: unset;
  }
}
.nav-links.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.nav-links a {
  padding: 14px 18px;
  border-radius: 12px;
  margin: 0;
  text-align: left;
  font-size: 1.15rem;
  color: #333;
  font-weight: 600;
  background: transparent;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  opacity: 0;
  transform: translateY(20px);
  animation: menuItemIn 0.4s cubic-bezier(0.4,0,0.2,1) forwards;
  border: none;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-links a:focus {
  outline: none;
  background: none;
  color: inherit;
  box-shadow: none;
}
.nav-links a:not(:last-child)::after {
  content: '';
  display: block;
  border-bottom: 1.5px dotted #bbb;
  margin: 0.5rem 0 0 0;
  width: 80%;
  margin-left: 10%;
  opacity: 0.6;
}
.nav-links.active a {
  opacity: 1;
  transform: translateY(0);
  animation: menuItemIn 0.4s cubic-bezier(0.4,0,0.2,1) forwards;
}
.nav-links a:hover, .nav-links a:focus {
  background: var(--orange-primary);
  color: var(--white);
  transform: scale(1.04);
}
.nav-links a:nth-child(1) { animation-delay: 0s; }
.nav-links a:nth-child(2) { animation-delay: 0.12s; }
.nav-links a:nth-child(3) { animation-delay: 0.19s; }
.nav-links a:nth-child(4) { animation-delay: 0.26s; }
@keyframes fadeInMenu {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes menuItemIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-menu-toggle {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 32px;
    width: 32px;
    padding: 0;
    margin-left: auto;
    outline: none;
    box-shadow: none;
    border: none;
    margin-right: 20px;
    background: none;
}
.mobile-menu-toggle:focus {
  outline: none;
  box-shadow: none;
}
.mobile-menu-toggle span {
  position: absolute;
  left: 7px;
  right: 7px;
  height: 3px;
  background: var(--orange-primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  display: block;
}
.mobile-menu-toggle span:nth-child(1) {
  top: 9px;
}
.mobile-menu-toggle span:nth-child(2) {
  top: 14.5px;
}
.mobile-menu-toggle span:nth-child(3) {
  top: 20px;
}
.mobile-menu-toggle.active span:nth-child(1) {
  top: 14.5px;
  left: 7px;
  right: 7px;
  transform: rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
  top: 14.5px;
  left: 7px;
  right: 7px;
  transform: rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-cta {
    display: none !important;
  }
  .nav-cta-mobile {
    display: none !important;
    text-align: center;
    margin: 1.5rem auto 0 auto;
    top: 50vh;
    position: fixed;
    z-index: 9999;
    transform: scale(1.3);
    width: 100%;
    max-width: 100vw;
}
.nav-cta-mobile button {
    box-shadow: 0px 0px 20px white;
}
  .nav-links.active + .nav-cta-mobile {
    display: block !important;
  }
}
@media (min-width: 769px) {
  .nav-cta-mobile {
    display: none !important;
  }
  .nav-cta {
    display: block !important;
  }
}