/* Hide navigation elements on landing page */
.hamburger-btn,
.theme-switcher,
.slide-menu,
.menu-overlay {
    display: none !important;
}

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

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 16px 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: #333;
    letter-spacing: 0.5px;
}

.header-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #333;
}

.btn-header {
    padding: 10px 24px;
    background: linear-gradient(135deg, #a8c5dd, #c8d5e0);
    color: #333;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(168, 197, 221, 0.3);
}

.btn-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 197, 221, 0.4);
}

/* Hero Section */
.hero {
    margin-top: 72px;
    height: calc(90vh - 72px);
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(168, 197, 221, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200, 213, 224, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #222;
}

.hero-text .highlight {
    background: linear-gradient(135deg, #a8c5dd, #96b5cf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 40px;
}

.hero-text p strong {
    color: #222;
    font-weight: 700;
}

.cta-subtext {
    font-size: 0.95rem;
    color: #666;
    margin-top: 8px;
    margin-bottom: 0 !important;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 18px 48px;
    background: linear-gradient(135deg, #a8c5dd, #96b5cf);
    color: #333;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(168, 197, 221, 0.4);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: buttonPulse 3s ease-in-out infinite, buttonGlow 2s ease-in-out infinite;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: buttonShine 3s ease-in-out infinite;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 28px rgba(168, 197, 221, 0.6);
    animation: none; /* Stop animation on hover */
}

.btn-primary:hover::before {
    animation: none;
}

@keyframes buttonPulse {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.02) translateY(0);
    }
}

@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(168, 197, 221, 0.4), 0 0 0 0 rgba(168, 197, 221, 0.7);
    }
    50% {
        box-shadow: 0 4px 20px rgba(168, 197, 221, 0.4), 0 0 20px 5px rgba(168, 197, 221, 0.3);
    }
}

@keyframes buttonShine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

.btn-secondary {
    padding: 18px 48px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    border-color: #a8c5dd;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 24px;
    animation: foxWave 3s ease-in-out infinite;
}

@keyframes foxWave {
    0%, 100% { 
        transform: translateY(0px);
    }
    50% { 
        transform: translateY(-20px);
    }
}

/* Features Section */
.features {
    padding: 100px 24px;
    background: white;
}

.features-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: #222;
}

.section-header p {
    font-size: 1.15rem;
    color: #666;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #a8c5dd, #c8d5e0);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #222;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.how-it-works-content {
    max-width: 1200px;
    margin: 0 auto;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.step {
    position: relative;
    padding: 32px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 32px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #a8c5dd, #96b5cf);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #333;
    box-shadow: 0 4px 12px rgba(168, 197, 221, 0.4);
}

.step h3 {
    margin-top: 20px;
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #222;
}

.step p {
    color: #666;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 100px 24px;
    background: linear-gradient(135deg, #a8c5dd 0%, #96b5cf 100%);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: #222;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #333;
    opacity: 0.9;
}

.btn-cta-large {
    padding: 20px 60px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.2rem;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    animation: ctaButtonPulse 2.5s ease-in-out infinite, ctaButtonBounce 3s ease-in-out infinite;
}

.btn-cta-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 197, 221, 0.2), transparent);
    animation: ctaButtonShine 4s ease-in-out infinite;
}

.btn-cta-large:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    animation: none; /* Stop animation on hover */
}

.btn-cta-large:hover::before {
    animation: none;
}

@keyframes ctaButtonPulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(168, 197, 221, 0.4);
    }
    50% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 30px 10px rgba(168, 197, 221, 0.2);
    }
}

@keyframes ctaButtonBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1);
    }
}

@keyframes ctaButtonShine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

/* Footer */
.footer {
    padding: 60px 24px 40px;
    background: #222;
    color: white;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-newsletter {
    max-width: 300px;
}

.footer-newsletter h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.newsletter-form input::placeholder {
    color: #999;
}

.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand-header img {
    width: 40px;
    height: 40px;
}

.footer-brand h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
}

.footer-brand p {
    color: #999;
    line-height: 1.6;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid #444;
    text-align: center;
    color: #999;
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        margin-top: 80px;
        min-height: 500px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 24px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .features-grid,
    .steps {
        grid-template-columns: 1fr;
    }

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

    .footer-newsletter {
        max-width: 100%;
    }

    .header-nav {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero {
        margin-top: 72px;
        height: auto;
        min-height: auto;
    }

    .hero-content {
        padding: 32px 20px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* Login Modal Styles */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.login-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.login-modal-content {
    position: relative;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 50px 40px;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
    z-index: 2001;
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-logo {
    text-align: center;
    margin-bottom: 30px;
}

.modal-logo img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 15px;
}

.modal-logo h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.modal-logo p {
    color: #666;
    font-size: 0.95rem;
}

/* FirebaseUI Customization for Modal */
.login-modal #firebaseui-auth-container {
    margin-top: 20px;
}

/* Override FirebaseUI button text */
.login-modal .firebaseui-idp-google .firebaseui-idp-text::before {
    content: 'Continue with Google';
}

.login-modal .firebaseui-idp-google .firebaseui-idp-text {
    font-size: 0 !important;
}

.login-modal .firebaseui-idp-google .firebaseui-idp-text::before {
    font-size: 14px !important;
}

/* Email button styling - pale blue theme */
.login-modal .firebaseui-idp-password {
    background-color: #a8c5dd !important;
    border: 1px solid #a8c5dd !important;
}

.login-modal .firebaseui-idp-password:hover {
    background-color: #8fb0cc !important;
    border-color: #8fb0cc !important;
}

.login-modal .firebaseui-idp-password .firebaseui-idp-text::before {
    content: 'Continue with Email';
}

.login-modal .firebaseui-idp-password .firebaseui-idp-text {
    font-size: 0 !important;
}

.login-modal .firebaseui-idp-password .firebaseui-idp-text::before {
    font-size: 14px !important;
}

/* Hide the "Sign in with email" label in the form */
.login-modal .firebaseui-title {
    display: none !important;
}

#firebase-loading {
    display: none;
}

.login-modal #firebase-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* From Play to Progress Section */
.play-to-progress {
    padding: 100px 24px;
    background: white;
}

.play-to-progress-content {
    max-width: 1200px;
    margin: 0 auto;
}

.play-to-progress-header {
    text-align: center;
}

.play-to-progress-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: #222;
}

.play-to-progress-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.play-to-progress-intro h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: #222;
    line-height: 1.3;
}

.play-to-progress-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #666;
}

.learning-loop-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.loop-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.loop-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #a8c5dd, #c8d5e0);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #333;
    box-shadow: 0 4px 12px rgba(168, 197, 221, 0.3);
}

.loop-step h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.loop-arrow {
    font-size: 2rem;
    color: #a8c5dd;
    font-weight: 700;
}

/* Obin in Action Section */
.obin-in-action {
    padding: 100px 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.action-content {
    max-width: 1200px;
    margin: 0 auto;
}

.action-header {
    text-align: center;
    margin-bottom: 60px;
}

.action-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: #222;
}

.action-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    background: white;
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: inline-flex;
}

.action-tab {
    padding: 12px 32px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-tab.active {
    background: linear-gradient(135deg, #a8c5dd, #96b5cf);
    color: #333;
    box-shadow: 0 2px 8px rgba(168, 197, 221, 0.3);
}

.action-tab:hover:not(.active) {
    color: #333;
}

.action-panels {
    position: relative;
    min-height: 400px;
}

.action-panel {
    display: none;
}

.action-panel.active {
    display: block;
}

.action-panel-content {
    text-align: center;
    padding: 40px;
}

.action-panel-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #222;
}

.action-panel-content > p {
    font-size: 1.15rem;
    color: #666;
    margin-bottom: 40px;
}

.action-visual {
    margin-top: 40px;
}

.action-visual img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.mockup-placeholder {
    padding: 60px 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

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

/* Testimonials Section */
.testimonials {
    padding: 100px 24px;
    background: white;
}

.testimonials-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

.testimonial-card {
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-avatar.testimonial-avatar-1 {
    background: linear-gradient(135deg, #e8c4c4, #f5e0e0);
}

.testimonial-avatar.testimonial-avatar-2 {
    background: linear-gradient(135deg, #a8c5dd, #c8d5e0);
}

.testimonial-avatar.testimonial-avatar-3 {
    background: linear-gradient(135deg, #b8c9b8, #d4dfd4);
}

.testimonial-avatar i {
    font-size: 2rem;
    color: #333;
}

.testimonial-stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.testimonial-quote {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    font-size: 0.95rem;
    color: #666;
    font-weight: 600;
}

/* Why Parents Love Section */
.why-parents-love {
    padding: 100px 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.why-parents-content {
    max-width: 1200px;
    margin: 0 auto;
}

.why-parents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.why-parents-card {
    text-align: center;
    padding: 40px 24px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.why-parents-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.why-parents-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #a8c5dd, #c8d5e0);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #333;
}

.why-parents-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #222;
}

.why-parents-card p {
    color: #666;
    line-height: 1.6;
}

/* Responsive Updates */
@media (max-width: 968px) {
    .learning-loop-visual {
        flex-direction: column;
    }

    .loop-arrow {
        transform: rotate(90deg);
    }

    .why-parents-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .action-tabs {
        width: 100%;
        max-width: 400px;
    }

    .action-tab {
        flex: 1;
    }
}

/* Contact Modal Styles */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.contact-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-modal-content {
    position: relative;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
    z-index: 2001;
}

.contact-form-container {
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
}

.contact-form-container iframe {
    border: none;
    border-radius: 12px;
}

@media (max-width: 640px) {
    .contact-modal-content {
        padding: 20px;
        max-width: 95%;
    }
    
    .contact-form-container iframe {
        height: 500px;
    }
}

/* Scroll Animation Styles */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays for child elements */
.scroll-animate-delay-1 {
    transition-delay: 0.1s;
}

.scroll-animate-delay-2 {
    transition-delay: 0.2s;
}

.scroll-animate-delay-3 {
    transition-delay: 0.3s;
}

/* Fade in from left */
.scroll-animate-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate-left.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Fade in from right */
.scroll-animate-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Scale in animation */
.scroll-animate-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate-scale.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .scroll-animate,
    .scroll-animate-left,
    .scroll-animate-right,
    .scroll-animate-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .btn-primary,
    .btn-cta-large {
        animation: none;
    }
    
    .btn-primary::before,
    .btn-cta-large::before {
        animation: none;
    }
}
