/* ===== CSS Variables ===== */
:root {
    --color-primary: #4a6741;
    --color-primary-light: #5d7d54;
    --color-primary-dark: #3a5234;
    --color-accent: #7c9a6e;
    --color-accent-light: #9ab68d;
    --color-warm: #c4a77d;
    --color-warm-light: #e8dcc8;
    --color-text: #3d4a3a;
    --color-text-light: #5f6d5c;
    --color-text-lighter: #8a9687;
    --color-background: #fdfcfa;
    --color-background-alt: #f6f4ef;
    --color-background-dark: #ebe7df;
    --color-border: #e0dcd4;
    --color-success: #7c9a6e;
    --font-heading: 'Lora', Georgia, serif;
    --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 1px 3px rgba(74, 103, 65, 0.06);
    --shadow-md: 0 4px 12px rgba(74, 103, 65, 0.08);
    --shadow-lg: 0 10px 30px rgba(74, 103, 65, 0.1);
    --shadow-xl: 0 20px 50px rgba(74, 103, 65, 0.12);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

/* ===== Utility Classes ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.25;
    margin-bottom: 16px;
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 600px;
}

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

.section-header .section-description {
    margin: 0 auto;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 103, 65, 0.25);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

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

.btn-full {
    width: 100%;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

.navbar.scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

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

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    transition: color var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition);
}

.nav-link:hover {
    color: var(--color-accent);
}

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

.nav-cta {
    padding: 10px 20px;
    background-color: var(--color-primary);
    color: white !important;
    border-radius: var(--radius-md);
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background-color: var(--color-primary-light);
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    transition: transform var(--transition);
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-background);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    margin-top: 8px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9375rem;
    color: var(--color-text);
    transition: all var(--transition);
}

.dropdown-menu a:hover {
    background-color: var(--color-background-alt);
    color: var(--color-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    transition: all var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 80px;
    background: linear-gradient(160deg, var(--color-background) 0%, var(--color-warm-light) 50%, var(--color-background-alt) 100%);
    overflow: hidden;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-title .highlight {
    color: var(--color-accent);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
    max-width: 560px;
}

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

.hero-decoration {
    position: absolute;
    top: 0;
    right: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(124, 154, 110, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

/* ===== About Section ===== */
.about {
    padding: 120px 0;
    background-color: var(--color-background);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    max-width: 400px;
    background: linear-gradient(145deg, var(--color-accent) 0%, var(--color-primary) 60%, var(--color-warm) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 600;
    box-shadow: var(--shadow-xl);
}

.about-headshot {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.about-text {
    font-size: 1.0625rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.about-text:last-of-type {
    margin-bottom: 40px;
}

.about-stats {
    display: flex;
    gap: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-top: 8px;
}

/* ===== Services Section ===== */
.services {
    padding: 120px 0;
    background-color: var(--color-background-alt);
}

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

.service-card {
    background-color: var(--color-background);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-card.featured {
    border: 2px solid var(--color-warm);
}

.service-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-warm);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-icon {
    width: 56px;
    height: 56px;
    background-color: var(--color-background-alt);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-accent);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.service-description {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 24px;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-features li {
    font-size: 0.9375rem;
    color: var(--color-text);
    padding-left: 24px;
    position: relative;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 50%;
}

/* ===== Testimonials Section ===== */
.testimonials {
    padding: 120px 0;
    background-color: var(--color-background);
    overflow: hidden;
}

.testimonials-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    flex: 0 0 100%;
    padding: 0 20px;
}

.testimonial-content {
    background: linear-gradient(160deg, var(--color-background-alt) 0%, var(--color-warm-light) 100%);
    padding: 48px;
    border-radius: var(--radius-lg);
    position: relative;
    margin-bottom: 32px;
}

.quote-icon {
    font-family: var(--font-heading);
    font-size: 6rem;
    color: var(--color-warm);
    opacity: 0.4;
    position: absolute;
    top: 16px;
    left: 32px;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.25rem;
    color: var(--color-text);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-left: 20px;
}

.author-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(145deg, var(--color-accent) 0%, var(--color-primary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--color-primary);
}

.author-role {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border: 2px solid var(--color-border);
    background-color: var(--color-background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}

.carousel-btn:hover {
    border-color: var(--color-accent);
    background-color: var(--color-accent);
}

.carousel-btn:hover svg {
    color: white;
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
    color: var(--color-text);
    transition: color var(--transition);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-border);
    cursor: pointer;
    transition: all var(--transition);
}

.carousel-dot.active {
    background-color: var(--color-accent);
    transform: scale(1.2);
}

/* ===== Blog Section ===== */
.blog {
    padding: 120px 0;
    background-color: var(--color-background-alt);
}

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

.blog-card {
    background-color: var(--color-background);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, var(--color-warm-light) 0%, var(--color-background-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-image-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--color-text-lighter);
}

.blog-content {
    padding: 28px;
}

.blog-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.blog-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 12px 0;
    line-height: 1.3;
}

.blog-excerpt {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.blog-date {
    font-size: 0.875rem;
    color: var(--color-text-lighter);
}

.blog-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    transition: color var(--transition);
}

.blog-link:hover {
    color: var(--color-primary);
}

.blog-cta {
    text-align: center;
    margin-top: 48px;
}

/* ===== Contact Section ===== */
.contact {
    padding: 120px 0;
    background-color: var(--color-background);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-description {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1rem;
    color: var(--color-text);
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.contact-item a {
    color: var(--color-accent);
    transition: color var(--transition);
}

.contact-item a:hover {
    color: var(--color-primary);
}

.contact-form-wrapper {
    background-color: var(--color-background-alt);
    padding: 48px;
    border-radius: var(--radius-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-background);
    color: var(--color-text);
    transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-lighter);
}

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

/* ===== Footer ===== */
.footer {
    background-color: var(--color-primary);
    color: white;
    padding: 64px 0 32px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-tagline {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition);
}

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

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.footer-social a:hover {
    background-color: var(--color-accent);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    padding-top: 32px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .services-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--color-background);
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 24px;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

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

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

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

    .hero {
        min-height: auto;
        padding: 120px 24px 80px;
    }

    /* Mobile dropdown */
    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        background-color: var(--color-background-alt);
        border-radius: var(--radius-sm);
        margin-top: 8px;
        padding: 4px 0;
        opacity: 1;
        visibility: visible;
        display: none;
    }

    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 8px 16px;
        font-size: 0.875rem;
    }

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

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

    .hero-buttons .btn {
        width: 100%;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .about-image-placeholder {
        max-width: 280px;
        margin: 0 auto;
        font-size: 4rem;
    }

    .about-stats {
        justify-content: space-between;
        gap: 24px;
    }

    .services-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 32px;
    }

    .testimonial-content {
        padding: 32px;
    }

    .testimonial-text {
        font-size: 1.125rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-form-wrapper {
        padding: 32px;
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

    .hero-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .stat-label {
        margin-top: 0;
    }
}

/* ===== Easter Egg ===== */
.easter-egg {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    height: 140px;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(135, 206, 235, 0.97) 0%, rgba(255, 200, 150, 0.5) 70%, rgba(135, 206, 235, 0) 100%);
}

.easter-egg.active {
    display: flex;
    animation: easterEggFadeIn 0.3s ease-out;
}

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

.pixel-scott {
    position: absolute;
    left: 10%;
    width: 48px;
    height: 64px;
    image-rendering: pixelated;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 16"><rect x="4" y="0" width="4" height="1" fill="%23C4A574"/><rect x="3" y="0" width="1" height="2" fill="%23C4A574"/><rect x="8" y="0" width="1" height="2" fill="%23C4A574"/><rect x="3" y="1" width="6" height="2" fill="%23C4A574"/><rect x="9" y="1" width="1" height="1" fill="%23C4A574"/><rect x="2" y="1" width="1" height="1" fill="%23C4A574"/><rect x="4" y="3" width="4" height="3" fill="%23FFD5B5"/><rect x="3" y="3" width="1" height="2" fill="%23FFD5B5"/><rect x="8" y="3" width="1" height="2" fill="%23FFD5B5"/><rect x="4" y="4" width="1" height="1" fill="%234A90B8"/><rect x="7" y="4" width="1" height="1" fill="%234A90B8"/><rect x="5" y="5" width="2" height="1" fill="%23E8C4A8"/><rect x="3" y="6" width="6" height="2" fill="%23A0674B"/><rect x="4" y="6" width="4" height="1" fill="%23B8876B"/><rect x="3" y="8" width="6" height="4" fill="%23E8B4B4"/><rect x="2" y="8" width="1" height="3" fill="%23E8B4B4"/><rect x="9" y="8" width="1" height="3" fill="%23E8B4B4"/><rect x="1" y="9" width="1" height="3" fill="%23FFD5B5"/><rect x="10" y="9" width="1" height="3" fill="%23FFD5B5"/><rect x="4" y="12" width="2" height="4" fill="%232D4A5E"/><rect x="6" y="12" width="2" height="4" fill="%232D4A5E"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    transform: translateX(-100px);
    opacity: 0;
}

.pixel-scott.animate {
    animation: scottEnter 0.5s ease-out forwards, scottCast 0.3s ease-in-out 0.6s 3;
}

@keyframes scottEnter {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scottCast {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(10px) rotate(5deg); }
}

.spell {
    position: absolute;
    left: calc(10% + 60px);
    width: 32px;
    height: 32px;
    opacity: 0;
    image-rendering: pixelated;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><rect x="4" y="0" width="2" height="1" fill="%2300BFFF"/><rect x="2" y="1" width="2" height="1" fill="%2387CEEB"/><rect x="6" y="1" width="2" height="1" fill="%2387CEEB"/><rect x="4" y="1" width="2" height="1" fill="%23FFF"/><rect x="1" y="2" width="1" height="2" fill="%2300BFFF"/><rect x="8" y="2" width="1" height="2" fill="%2300BFFF"/><rect x="2" y="2" width="6" height="6" fill="%234169E1"/><rect x="3" y="3" width="4" height="4" fill="%2387CEEB"/><rect x="4" y="4" width="2" height="2" fill="%23FFF"/><rect x="0" y="4" width="1" height="2" fill="%234169E1"/><rect x="9" y="4" width="1" height="2" fill="%234169E1"/><rect x="1" y="6" width="1" height="2" fill="%2300BFFF"/><rect x="8" y="6" width="1" height="2" fill="%2300BFFF"/><rect x="2" y="8" width="2" height="1" fill="%2387CEEB"/><rect x="6" y="8" width="2" height="1" fill="%2387CEEB"/><rect x="4" y="9" width="2" height="1" fill="%2300BFFF"/></svg>');
    background-size: contain;
}

.spell.animate {
    animation: spellFly 1s ease-in 0.8s forwards, spellSpin 0.2s linear 0.8s 5;
}

@keyframes spellFly {
    0% {
        opacity: 1;
        left: calc(10% + 60px);
        transform: scale(1);
    }
    80% {
        opacity: 1;
        left: calc(95% - 140px);
        transform: scale(1.8);
    }
    100% {
        opacity: 0;
        left: calc(95% - 120px);
        transform: scale(2.5);
    }
}

@keyframes spellSpin {
    from { filter: hue-rotate(0deg); }
    to { filter: hue-rotate(30deg); }
}

.pixel-dragon {
    position: absolute;
    right: 5%;
    width: 120px;
    height: 80px;
    image-rendering: pixelated;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><rect x="0" y="8" width="2" height="1" fill="%23FF4500"/><rect x="0" y="9" width="3" height="1" fill="%23FFD700"/><rect x="0" y="10" width="4" height="1" fill="%23FF6600"/><rect x="0" y="11" width="3" height="1" fill="%23FFD700"/><rect x="0" y="12" width="2" height="1" fill="%23FF4500"/><rect x="3" y="7" width="2" height="1" fill="%23FF4500"/><rect x="4" y="8" width="2" height="1" fill="%23FFD700"/><rect x="4" y="12" width="2" height="1" fill="%23FFD700"/><rect x="3" y="13" width="2" height="1" fill="%23FF4500"/><rect x="6" y="5" width="2" height="2" fill="%238B0000"/><rect x="10" y="5" width="2" height="2" fill="%238B0000"/><rect x="5" y="7" width="9" height="5" fill="%23228B22"/><rect x="6" y="6" width="7" height="1" fill="%23228B22"/><rect x="6" y="8" width="2" height="2" fill="%23FFD700"/><rect x="7" y="9" width="1" height="1" fill="%23000"/><rect x="10" y="8" width="2" height="2" fill="%23FFD700"/><rect x="11" y="9" width="1" height="1" fill="%23000"/><rect x="7" y="11" width="4" height="1" fill="%23006400"/><rect x="8" y="11" width="2" height="1" fill="%23FFF"/><rect x="14" y="6" width="6" height="6" fill="%23228B22"/><rect x="13" y="7" width="1" height="4" fill="%23228B22"/><rect x="15" y="5" width="4" height="1" fill="%23228B22"/><rect x="20" y="5" width="5" height="5" fill="%23228B22"/><rect x="19" y="6" width="1" height="3" fill="%23228B22"/><rect x="25" y="6" width="1" height="3" fill="%23228B22"/><rect x="22" y="10" width="2" height="2" fill="%23228B22"/><rect x="23" y="12" width="2" height="2" fill="%23228B22"/><rect x="24" y="14" width="2" height="1" fill="%23228B22"/><rect x="25" y="15" width="1" height="1" fill="%23006400"/><rect x="14" y="2" width="2" height="4" fill="%23006400"/><rect x="13" y="1" width="2" height="2" fill="%23006400"/><rect x="12" y="0" width="2" height="2" fill="%23006400"/><rect x="18" y="2" width="2" height="4" fill="%23006400"/><rect x="19" y="1" width="2" height="2" fill="%23006400"/><rect x="20" y="0" width="2" height="2" fill="%23006400"/><rect x="7" y="12" width="2" height="4" fill="%23228B22"/><rect x="7" y="16" width="1" height="1" fill="%23006400"/><rect x="8" y="16" width="1" height="1" fill="%23006400"/><rect x="11" y="12" width="2" height="4" fill="%23228B22"/><rect x="11" y="16" width="1" height="1" fill="%23006400"/><rect x="12" y="16" width="1" height="1" fill="%23006400"/><rect x="16" y="12" width="2" height="3" fill="%23228B22"/><rect x="16" y="15" width="1" height="1" fill="%23006400"/><rect x="17" y="15" width="1" height="1" fill="%23006400"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    transform: translateX(100px) scaleX(-1);
    opacity: 0;
}

.pixel-dragon.animate {
    animation: dragonEnter 0.5s ease-out forwards, dragonBreatheFire 0.4s ease-in-out 0.6s 2, dragonHit 0.8s ease-in-out 1.8s forwards;
}

@keyframes dragonEnter {
    to {
        transform: translateX(0) scaleX(-1);
        opacity: 1;
    }
}

@keyframes dragonBreatheFire {
    0%, 100% { transform: translateX(0) scaleX(-1); }
    50% { transform: translateX(-10px) scaleX(-1); }
}

@keyframes dragonHit {
    0% {
        transform: translateX(0) scaleX(-1) scale(1);
        opacity: 1;
        filter: brightness(1);
    }
    15% {
        filter: brightness(3) saturate(0);
    }
    30% {
        transform: translateX(0) scaleX(-1) scale(1.1);
        filter: brightness(2);
    }
    50% {
        transform: translateX(10px) scaleX(-1) scale(1.2) rotate(-10deg);
        filter: brightness(1.5);
    }
    100% {
        transform: translateX(80px) scaleX(-1) scale(0) rotate(-180deg);
        opacity: 0;
        filter: brightness(0);
    }
}

/* ===== Form Success State ===== */
.form-success {
    text-align: center;
    padding: 48px;
}

.form-success-icon {
    width: 64px;
    height: 64px;
    background-color: var(--color-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.form-success-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.form-success h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.form-success p {
    color: var(--color-text-light);
}
