@import url('https://fonts.googleapis.com/css2?family=DynaPuff:wght@400..700&family=Inter:ital,wght@0,100..900;1,100..900&family=Public+Sans:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --raisin-black: rgb(32, 34, 49);
    --secondary-color: #2b2d42;
    --mid-main-secondary: rgb(141, 153, 174);
    --french-gray: #bdc6d1ff;
    --main-color: rgb(237, 242, 244);
    --really-light-accent: #ee8b98ff;
    --light-accent-color: rgb(239, 35, 60);
    --accent-color: rgb(217, 4, 41);
    --dark-accent-color: rgb(163, 20, 44);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, var(--raisin-black) 20%, var(--main-color));
    color: var(--main-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Fade-in animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 35, 60, 0.7);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(239, 35, 60, 0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 10rem;
    width: 100%;
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
    position: fixed;
    top: 0;
    z-index: 1000;
    background-color: #2b2d42c9;
    transition: all 0.3s ease;
    animation: fadeIn 0.8s ease-out;
}

.logo {
    font-family: 'DynaPuff', cursive;
    font-weight: 600;
    font-size: 2rem;
    color: var(--main-color);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

nav a {
    margin-left: 2rem;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--main-color);
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--light-accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover {
    color: var(--light-accent-color);
    transform: translateY(-2px);
}

nav a:hover::after {
    width: 100%;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 6rem 10rem;
    background: linear-gradient(135deg, var(--raisin-black) 5%, var(--main-color) 100%);
    border-bottom-left-radius: 15%;
    border-bottom-right-radius: 15%;
}

.hero h1 {
    font-family: 'Public Sans', cursive;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--main-color);
    margin-bottom: 1rem;
    line-height: 1.1;
    cursor: default;
    text-align: start;
    animation: slideInLeft 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    padding: 0 5rem 3rem 0;
    color: var(--french-gray);
    cursor: default;
    text-align: start;
    animation: slideInLeft 1.2s ease-out;
}

.hero img {
    max-width: 600px;
    width: 40%;
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite, slideInRight 1s ease-out;
}

.left {
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-primary {
    background-color: var(--light-accent-color);
    color: var(--main-color);
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primara {
    background-color: var(--light-accent-color);
    color: var(--main-color);
    width: 40%;
    padding: 1rem 4rem;
    border-radius: 20px;
    font-size: clamp(1rem, 5vw, 1.5rem);
    font-weight: 600;
    transition: all 0.3s ease;
    animation: slideInLeft 1.4s ease-out, pulse 2s infinite;
    position: relative;
    overflow: hidden;
}

.btn-primara::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primara:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primari {
    background-color: var(--light-accent-color);
    color: var(--main-color);
    width: 100%;
    padding: 1rem 4rem;
    border-radius: 20px;
    font-size: clamp(1rem, 5vw, 1.5rem);
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primari::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primari:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primari:hover,
.btn-primary:hover,
.btn-primara:hover {
    color: white;
    background-color: var(--dark-accent-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(217, 4, 41, 0.4);
}

section {
    padding: 4rem 2rem;
    text-align: center;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    justify-items: center;
    margin-top: 2rem;
}

#features {
    background-color: transparent;
}

#features h2 {
    font-size: clamp(1.5rem, 5vw, 3rem);
    cursor: default;
}

.feature-card {
    background-color: var(--french-gray);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    min-width: 300px;
    text-align: left;
    transition: all 0.4s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    flex-direction: column;
    cursor: default;
}

.feature-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
    transform: translateY(-10px) scale(1.02);
}

.feature-card img {
    width: 180px;
    transition: transform 0.4s ease;
}

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

.feature-card h3 {
    font-size: clamp(1, 6rem, 3.5vw, 1.8rem);
    color: var(--dark-accent-color);
}

.feature-card p {
    font-size: clamp(1.1rem, 3vw, 1.2rem);
    line-height: 1.6;
    color: var(--raisin-black);
    margin-bottom: 0.3rem;
}

.feature-card .btn-primary {
    display: inline-block;
    margin-top: 1rem;
}

#trust h2 {
    font-size: clamp(1.5rem, 5vw, 3rem);
    cursor: default;
}

#trust p {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--french-gray);
    cursor: default;
}

.testimonials {
    cursor: default;
}

.std-review {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    font-size: clamp(1.1rem, 3vw, 1.2rem);
    transition: all 0.3s ease;
}

.std-review:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
}

/* Stats counter animation */
.stat-number {
    display: inline-block;
    transition: transform 0.3s ease;
}

.stat-number:hover {
    transform: scale(1.15);
    color: var(--accent-color);
}

footer {
    background-color: var(--secondary-color);
    padding: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--mid-main-secondary);
}

h3 {
    margin: 0;
}

/* How It Works cards hover effect */
section>div>div[style*="background-color:var(--main-color)"] {
    transition: all 0.4s ease;
}

section>div>div[style*="background-color:var(--main-color)"]:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 40px rgba(217, 4, 41, 0.3);
}

section>div>div[style*="background-color:var(--main-color)"] img {
    transition: transform 0.4s ease;
}

section>div>div[style*="background-color:var(--main-color)"]:hover img {
    transform: scale(1.1);
}

/* Final CTA section pulse animation */
section[style*="background-color:var(--secondary-color)"] {
    transition: all 0.3s ease;
}

section[style*="background-color:var(--secondary-color)"]:hover {
    transform: scale(1.01);
}

/* Footer link hover */
footer a {
    transition: all 0.3s ease;
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--light-accent-color);
    transition: width 0.3s ease;
}

footer a:hover {
    color: var(--light-accent-color);
}

footer a:hover::after {
    width: 100%;
}

@media (max-width: 888px) {
    header {
        display: flex;
        justify-content: center;
        background-color: #2b2d42c9;
    }

    .logo {
        color: white;
    }

    .navbarLink {
        display: none;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: left;
        margin: 0;
        padding: 1rem;
        background: linear-gradient(0deg, var(--raisin-black) 15%, var(--main-color) 100%);
        padding-top: 10rem;
    }

    .hero img {
        width: 60%;
        animation: float 3s ease-in-out infinite, fadeIn 1s ease-out;
    }

    .hero h1 {
        text-align: center;
        animation: fadeInUp 1s ease-out;
    }

    .hero p {
        text-align: center;
        padding: 1rem;
        animation: fadeInUp 1.2s ease-out;
    }

    .left {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .btn-primary {
        display: none;
    }

    .btn-primara {
        background-color: var(--light-accent-color);
        color: var(--main-color);
        width: 100%;
        text-align: center;
        padding: 1rem 2rem;
        animation: fadeInUp 1.4s ease-out, pulse 2s infinite;
    }

    /* Reduce parallax on mobile */
    .hero img {
        transform: none !important;
    }
}