/* View2Do Landing Page - Distinctive Educational Design */

/* CSS Variables - Based on View2Do Brand Colors */
:root {
    /* Brand Colors from Logo */
    --color-blue: #4A7FE8;
    --color-red: #E84A4A;
    --color-green: #5FD17C;
    --color-yellow: #FFD166;

    /* Extended Palette */
    --color-navy: #2C4875;
    --color-cream: #FFF8F0;
    --color-paper: #FFFEF9;
    --color-ink: #1a1a2e;
    --color-pencil: #4a4a5e;
    --color-highlight: #FFF4B3;

    /* Typography */
    --font-display: 'Fredoka', cursive;
    --font-body: 'Merriweather', serif;
    --font-accent: 'Satisfy', cursive;

    /* Spacing & Effects */
    --paper-shadow: 0 4px 6px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.08);
    --card-shadow: 0 8px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.06);
    --lifted-shadow: 0 12px 24px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.08);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-ink);
    line-height: 1.7;
    background: var(--color-cream);
    overflow-x: hidden;
}

/* Paper Texture Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 31px,
            rgba(74, 127, 232, 0.03) 31px,
            rgba(74, 127, 232, 0.03) 32px
        );
    pointer-events: none;
    z-index: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.header {
    background: var(--color-paper);
    border-bottom: 3px solid var(--color-blue);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--paper-shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover {
    transform: rotate(-2deg) scale(1.05);
}

.logo-image {
    height: 65px;
    width: auto;
    filter: drop-shadow(2px 2px 0 rgba(74, 127, 232, 0.2));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--color-navy);
    font-size: 1.05rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--color-red);
    transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-menu a:hover {
    color: var(--color-blue);
}

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

.btn-login {
    background: var(--color-blue);
    color: white !important;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(74, 127, 232, 0.3);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-login::after {
    display: none;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 127, 232, 0.4);
    background: var(--color-navy);
}

/* Hero Section */
.hero {
    background: linear-gradient(165deg, #FFF8F0 0%, #FFF4E6 50%, #FFE8D6 100%);
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

/* Decorative Elements */
.hero::before {
    content: '✓';
    position: absolute;
    font-size: 15rem;
    color: rgba(95, 209, 124, 0.08);
    top: -3rem;
    right: 5%;
    font-family: var(--font-display);
    font-weight: 700;
    transform: rotate(15deg);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(74, 127, 232, 0.1) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
    pointer-events: none;
}

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

.hero-content {
    animation: fadeSlideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    margin-bottom: 2rem;
}

.hero-logo-image {
    max-width: 420px;
    width: 100%;
    height: auto;
    filter: drop-shadow(4px 4px 0 rgba(232, 74, 74, 0.15));
}

.hero-subtitle {
    font-size: 1.35rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: var(--color-pencil);
    font-weight: 300;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: flex;
    align-items: center;
    padding: 1.3rem 2rem;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-display);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    box-shadow: var(--card-shadow);
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

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

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateX(8px) scale(1.02);
    box-shadow: var(--lifted-shadow);
}

.cta-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.4);
    margin-right: 1.2rem;
    font-size: 1.6rem;
    font-family: var(--font-display);
    font-weight: 700;
}

.cta-primary {
    background: linear-gradient(135deg, #FF9A56 0%, #E84A4A 100%);
    color: white;
    animation: fadeSlideIn 0.8s 0.1s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.cta-primary:hover {
    border-color: #E84A4A;
}

.cta-secondary {
    background: linear-gradient(135deg, #5FD17C 0%, #4AB86E 100%);
    color: white;
    animation: fadeSlideIn 0.8s 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.cta-secondary:hover {
    border-color: #5FD17C;
}

.cta-tertiary {
    background: white;
    color: var(--color-navy);
    border: 3px solid var(--color-blue);
    animation: fadeSlideIn 0.8s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.cta-tertiary .cta-icon {
    background: var(--color-blue);
    color: white;
}

.cta-tertiary:hover {
    background: var(--color-blue);
    color: white;
}

.order-info {
    margin-top: 1.5rem;
    animation: fadeSlideIn 0.8s 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.order-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.05rem;
    color: var(--color-navy);
    font-family: var(--font-display);
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    background: white;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.order-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    color: var(--color-blue);
}

.cart-icon {
    font-size: 1.4rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeSlideIn 0.8s 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.mockup-image {
    max-width: 100%;
    filter: drop-shadow(8px 8px 20px rgba(0, 0, 0, 0.15));
}

/* Section Styles */
.section {
    padding: 5rem 2rem;
    position: relative;
}

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

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--color-navy);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: var(--color-red);
    border-radius: 10px;
}

/* What is View2Do Section */
.section-what {
    background: var(--color-paper);
}

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

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    border: 3px solid transparent;
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    border: 3px solid var(--color-green);
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card::after {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    color: var(--color-green);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover {
    transform: translateY(-12px) rotate(1deg);
    box-shadow: var(--lifted-shadow);
    border-color: var(--color-blue);
}

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

.feature-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

.feature-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 3rem;
    transform: rotate(-3deg);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover .feature-icon {
    transform: rotate(3deg) scale(1.1);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-navy);
    font-weight: 600;
}

.feature-card p {
    color: var(--color-pencil);
    line-height: 1.7;
    font-size: 0.95rem;
}

.description-block {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    background: linear-gradient(135deg, #FFF8F0 0%, white 100%);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--color-pencil);
    border-left: 6px solid var(--color-blue);
    position: relative;
}

.description-block::before {
    content: '"';
    font-family: var(--font-accent);
    font-size: 6rem;
    color: var(--color-blue);
    opacity: 0.1;
    position: absolute;
    top: -20px;
    left: 20px;
}

/* How It Works Section */
.section-how-it-works {
    background: linear-gradient(180deg, white 0%, var(--color-cream) 100%);
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.how-it-works-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 4px solid transparent;
}

.how-it-works-item:hover {
    transform: translateY(-10px) rotate(-1deg);
    box-shadow: var(--lifted-shadow);
    border-color: var(--color-yellow);
}

.how-it-works-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.how-it-works-item:hover .how-it-works-image {
    transform: scale(1.05);
}

/* Video Section */
.section-video {
    background: var(--color-paper);
}

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

.video-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 3px solid transparent;
}

.video-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--lifted-shadow);
    border-color: var(--color-red);
}

.video-thumbnail {
    position: relative;
    padding-top: 56.25%;
    background: linear-gradient(135deg, #FFE8D6 0%, #FFF4E6 100%);
    overflow: hidden;
}

.video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button {
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--color-blue);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border: 4px solid var(--color-blue);
    padding-left: 8px;
}

.video-link:hover .play-button {
    transform: scale(1.2);
    background: var(--color-blue);
    color: white;
    box-shadow: 0 12px 30px rgba(74, 127, 232, 0.4);
}

.thumb-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.4s ease;
}

.video-card:hover .thumb-image {
    opacity: 0.9;
}

.video-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    padding: 1.5rem;
    color: var(--color-navy);
    font-weight: 600;
}

.video-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--color-pencil);
    line-height: 1.7;
}

.cta-center {
    text-align: center;
    margin-top: 3rem;
}

.btn-secondary {
    display: inline-block;
    padding: 1.1rem 2.8rem;
    background: var(--color-blue);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.15rem;
    font-family: var(--font-display);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 20px rgba(74, 127, 232, 0.3);
    border: 3px solid transparent;
}

.btn-secondary:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(74, 127, 232, 0.4);
    background: var(--color-navy);
    border-color: var(--color-blue);
}

/* Benefits Section */
.section-benefits {
    background: linear-gradient(165deg, var(--color-cream) 0%, #FFF4E6 100%);
    position: relative;
    overflow: hidden;
}

.section-benefits::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 209, 102, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.benefit-item {
    text-align: center;
    padding: 2.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 3px solid transparent;
}

.benefit-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--lifted-shadow);
    border-color: var(--color-green);
}

.benefit-number {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-navy) 100%);
    color: white;
    border-radius: 18px;
    font-size: 2.2rem;
    font-weight: 700;
    font-family: var(--font-display);
    box-shadow: 0 6px 16px rgba(74, 127, 232, 0.3);
    transform: rotate(-3deg);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.benefit-item:hover .benefit-number {
    transform: rotate(3deg) scale(1.1);
}

.benefit-item h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-navy);
    font-weight: 600;
}

.benefit-item p {
    color: var(--color-pencil);
    line-height: 1.7;
}

/* CTA Section */
.section-cta {
    background: linear-gradient(135deg, #4A7FE8 0%, #2C4875 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.section-cta::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    top: -250px;
    right: -250px;
    border-radius: 50%;
}

.section-cta::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(232, 74, 74, 0.2) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    border-radius: 50%;
}

.cta-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.cta-box p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 300;
}

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

.btn-primary-large,
.btn-secondary-large {
    display: inline-block;
    padding: 1.3rem 3.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.25rem;
    font-family: var(--font-display);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 3px solid transparent;
}

.btn-primary-large {
    background: white;
    color: var(--color-blue);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-primary-large:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
    border-color: var(--color-yellow);
}

.btn-secondary-large {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 3px solid white;
    backdrop-filter: blur(10px);
}

.btn-secondary-large:hover {
    background: white;
    color: var(--color-blue);
    transform: translateY(-4px);
}

/* Footer */
.footer {
    background: var(--color-navy);
    color: rgba(255, 255, 255, 0.85);
    padding: 3.5rem 2rem 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--color-blue) 0%, var(--color-green) 50%, var(--color-red) 100%);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-section h4 {
    font-family: var(--font-display);
    color: white;
    margin-bottom: 1.2rem;
    font-size: 1.15rem;
    font-weight: 600;
}

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

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

.footer-section a {
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--color-yellow);
    transform: translateX(5px);
}

.footer-logo-image {
    height: 55px;
    width: auto;
    display: block;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-section p {
    line-height: 1.7;
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-logo-image {
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .hero-cta {
        max-width: 500px;
        margin: 0 auto 2rem;
    }

    .nav-menu {
        gap: 1.5rem;
        font-size: 0.95rem;
    }

    .logo-image {
        height: 55px;
    }

    .how-it-works-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }

    .hero {
        padding: 3.5rem 1.5rem;
    }

    .section {
        padding: 3.5rem 1.5rem;
    }

    .nav-container {
        padding: 1.2rem 1.5rem;
    }

    .logo-image {
        height: 50px;
    }

    .hero-logo-image {
        max-width: 280px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary-large,
    .btn-secondary-large {
        width: 100%;
        max-width: 320px;
    }

    .cta-box h2 {
        font-size: 2.2rem;
    }

    .cta-box p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-logo-image {
        max-width: 220px;
    }

    .logo-image {
        height: 45px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cta-button {
        padding: 1.1rem 1.5rem;
        font-size: 1rem;
    }

    .cta-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        margin-right: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.8rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.9rem;
    }

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

/* Scroll Animations */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header Scrolled State */
.header-scrolled {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

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

/* Accessibility */
a:focus,
button:focus {
    outline: 3px solid var(--color-yellow);
    outline-offset: 3px;
}

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

/* Print Styles */
@media print {
    .header,
    .footer,
    .cta-button,
    .btn-login,
    .btn-secondary,
    .btn-primary-large,
    .btn-secondary-large {
        display: none;
    }
}

/* Login Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.modal-content {
    background: var(--color-paper);
    padding: 2.5rem;
    border-radius: 16px;
    border: 3px solid var(--color-blue);
    box-shadow: var(--lifted-shadow);
    width: 90%;
    max-width: 450px;
    position: relative;
    animation: slideDown 0.3s ease;
}

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

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-pencil);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease, transform 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--color-red);
    transform: rotate(90deg);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--color-navy);
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--color-blue);
    border-radius: 8px;
    background: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-navy);
    box-shadow: 0 0 0 3px rgba(74, 127, 232, 0.1);
}

.form-error {
    background: #ffe0e0;
    border: 2px solid var(--color-red);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    color: #c41e1e;
    font-family: var(--font-display);
    font-size: 0.9rem;
    text-align: center;
}

.btn-submit {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-navy) 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--card-shadow);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--lifted-shadow);
}

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

.modal-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.modal-links a {
    color: var(--color-blue);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.modal-links a:hover {
    color: var(--color-navy);
    text-decoration: underline;
}

.modal-links .separator {
    margin: 0 0.75rem;
    color: var(--color-pencil);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        padding: 2rem;
        width: 95%;
    }

    .modal-title {
        font-size: 1.5rem;
    }
}
