html {
    scroll-behavior: smooth;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

.line-anim {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: drawLine 3.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.path-1 {
    animation-delay: 0.2s;
}

.path-2 {
    animation-delay: 1.2s;
}

.path-3 {
    animation-delay: 1.5s;
}

.path-4 {
    animation-delay: 1.7s;
}

.path-5 {
    animation-delay: 2.0s;
}

.path-6 {
    animation-delay: 2.5s;
}

.path-7 {
    animation-delay: 2.9s;
}

.animate-on-scroll {
    opacity: 0;
    animation-fill-mode: forwards;
}

.fade-up {
    animation-name: fadeUp;
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in {
    animation-name: fadeIn;
    animation-duration: 1s;
    animation-timing-function: ease-out;
}

.scale-in {
    animation-name: scaleIn;
    animation-duration: 0.6s;
    animation-timing-function: ease-out;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    70% {
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.pop-in {
    animation-name: popIn;
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slide-in-right {
    animation-name: slideInRight;
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation-name: slideInLeft;
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation-name: slideUp;
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}


@keyframes roadGlow {
    0% {
        opacity: 0.4;
        transform: scaleY(1);
    }

    50% {
        opacity: 1;
        transform: scaleY(1.01);
    }

    100% {
        opacity: 0.4;
        transform: scaleY(1);
    }
}

@keyframes roadPulse {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 0% 100%;
    }
}

.road-line {
    background: linear-gradient(to bottom,
            transparent 0%,
            #2C8C89 15%,
            #014D4E 40%,
            #EEC044 60%,
            #014D4E 80%,
            #2C8C89 90%,
            transparent 100%);
    background-size: 100% 300%;
    animation: roadPulse 4s ease-in-out infinite alternate;
}

.road-line::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: inherit;
    filter: blur(6px);
    opacity: 0.5;
    animation: roadGlow 3s ease-in-out infinite;
}

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

.delay-500 {
    animation-delay: 500ms;
}

.faq-content {
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, padding 0.4s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
}

.faq-content.open {
    max-height: 500px;
    opacity: 1;
    padding-top: 0.5rem;
    padding-bottom: 1.25rem;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-btn[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.leaf-svg {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

/* Paper background and Indigo Ink styling for letter */
.paper-note {
    background-color: #fcfbf7;
    background-image: radial-gradient(#e5e0d3 0.75px, transparent 0.75px);
    background-size: 24px 24px;
    box-shadow: 0 20px 40px -15px rgba(1, 77, 78, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(210, 202, 185, 0.6);
    transform: rotate(-0.5deg);
    transition: transform 0.3s ease;
}

.paper-note:hover {
    transform: rotate(0deg);
}

.indigo-ink {
    color: #1b2e59;
    text-shadow: 0.5px 0.5px 1px rgba(27, 46, 89, 0.15);
}

/* ── Navbar (exact copy from main site index.css) ── */
.navbar {
    font-family: 'Lato', sans-serif;
    background: rgba(74, 173, 169, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.glass-nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 25px;
    font-weight: 700;
    color: #ffffff;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.glass-nav .logo {
    color: #014D4E;
}

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.glass-nav .nav-link {
    color: #014D4E;
}

.navbar.glass-nav .nav-link:hover {
    color: #014D4E;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #f5bd16;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    color: #014D4E;
}

/* ── Form validation ── */
#becomingForm input,
#becomingForm textarea {
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

#becomingForm input.border-red-400,
#becomingForm textarea.border-red-400 {
    border-color: #f87171;
    box-shadow: 0 1px 0 0 #f87171;
}

#becomingForm input.border-green-400,
#becomingForm textarea.border-green-400 {
    border-color: #4ade80;
    box-shadow: 0 1px 0 0 #4ade80;
}

.field-error {
    font-size: 10px;
    min-height: 14px;
}

/* ── Mobile Fader for Transformation Cards ── */
@media (max-width: 767px) {
    #transformation-grid>div {
        grid-area: 1 / 1;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.5s ease-in-out;
        animation: none !important;
        /* Disable scroll animations */
    }

    #transformation-grid>div.active-mobile-slide {
        opacity: 1 !important;
        pointer-events: auto !important;
        z-index: 10;
    }
}

/* ── Mobile Fader for Self-Discovery ── */
@media (max-width: 767px) {
    .fader-container {
        display: grid;
    }
    .fader-slide {
        grid-area: 1 / 1;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.8s ease-in-out;
        animation: none !important;
    }
    .fader-slide.active-slide {
        opacity: 1 !important;
        pointer-events: auto !important;
        z-index: 10;
    }
}