/* ----------------------------------------------------
   Variables & Theme
---------------------------------------------------- */
:root {
    --bg-color: #ffffff;
    --text-color: #06070a;
    --text-light: #555555;
    --accent-color: #000000;
    --grid-line: #e5e5e5;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container-width: 1400px;
    --header-height: 80px;

    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.3s ease;
}

/* Dark Mode Support (optional, but good for structure) */
@media (prefers-color-scheme: dark) {
    /* Keeping it light for now to match Clay.global exact vibes as requested,
       but structure allows easy switch if needed.
       Clay is predominantly white/black high key. */
}

/* ----------------------------------------------------
   Reset & Base
---------------------------------------------------- */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img,
video {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* ----------------------------------------------------
   Typography
---------------------------------------------------- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-gradient {
    /* Optional subtle gradient for "digital future" feel */
    background: linear-gradient(90deg, #000 0%, #444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ----------------------------------------------------
   Utilities
---------------------------------------------------- */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn--primary {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.btn--primary:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.btn--white {
    background-color: #fff;
    color: #000;
    border: 1px solid #fff;
}

.btn--white:hover {
    background-color: transparent;
    color: #fff;
}

.btn--small {
    padding: 10px 20px;
    font-size: 0.9rem;
    background: #000;
    color: #fff;
}

/* ----------------------------------------------------
   Animations
---------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* ----------------------------------------------------
   Header
---------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo__img {
    height: 32px;
    width: auto;
}

.nav {
    display: flex;
    gap: 40px;
}

.nav__link {
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--text-color);
    transition: width 0.3s ease;
}

.nav__link:hover::after {
    width: 100%;
}

.lang-switch {
    background: none;
    border: 1px solid #e5e5e5;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.lang-switch:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* ----------------------------------------------------
   Hero
---------------------------------------------------- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    /* Darker/More visible as requested */
    filter: brightness(0.9) grayscale(100%);
    /* Slightly darker and B&W */
    animation: fadeInVideo 2s ease-out;
    /* Hide initial jitter */
}

@keyframes fadeInVideo {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.7;
    }
}

/* Handwritten Animation */
.handwritten-note {
    position: absolute;
    bottom: 250px;
    right: 40px;
    /* Right bottom corner */
    width: 350px;
    height: 150px;
    transform: rotate(-10deg);
    pointer-events: none;
    /* Let clicks pass through */
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotate(-40deg);
    /* Less rotation for readability */
}

/* Adjust heart to be next to/behind text in a fun way */
.handwritten-heart {
    position: absolute;
    width: 60px;
    /* Smaller heart */
    height: 60px;
    top: -10px;
    right: -20px;
    /* Floating top-right of text */
    z-index: 1;
    overflow: visible;
}

.handwritten-heart path {
    stroke-dasharray: 600;
    /* Increased to cover rough path */
    stroke-dashoffset: 600;
    /* START HIDDEN */
    animation: drawHeart 1.5s ease-out both 4.5s;
    /* Start AFTER text finishes */
}

.handwritten-text {
    font-family: 'Reenie Beanie', cursive;
    font-size: 3.5rem;
    /* Larger to look natural */
    color: #000000;
    font-weight: 400;
    /* Regular weight for thin look */
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    /* START HIDDEN */
    /* START HIDDEN */
    /* Cursor removed */
    animation: typeText 4s steps(60, end) both 0.5s;
    /* Typing only */
    /* Slow writing, starts first */
    text-shadow: none;
    /* Clean ink look */
    position: relative;
    z-index: 2;
    display: inline-block;
    /* Fix for width animation */
    vertical-align: middle;
}

@keyframes drawHeart {
    from {
        stroke-dashoffset: 600;
    }

    to {
        stroke-dashoffset: 0;
    }
}

@keyframes typeText {
    from {
        width: 0;
        /* Visible cursor start removed */
    }

    to {
        width: 15ch;
        /* Increased for "Made with Love!" in Reenie Beanie */
    }
}



/* Fallback gradient */
.hero__bg-wrapper {
    background: #ffffff;
    z-index: -1;
}

.hero__content {
    padding-top: var(--header-height);
    max-width: 1000px;
}

.hero__title {
    font-size: clamp(3rem, 8vw, 6.5rem);
    /* Responsive typography */
    margin-bottom: 2rem;
    line-height: 1.05;
}

.hero__subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-light);
    max-width: 600px;
    margin-bottom: 3rem;
}

/* ----------------------------------------------------
   Services (Accordion)
---------------------------------------------------- */
.section {
    padding: 120px 0;
}

.section-header {
    margin-bottom: 80px;
}

.label {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    font-weight: 600;
    color: #888;
    display: block;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.accordion {
    border-top: 1px solid var(--grid-line);
    /* cursor: pointer; removed from container */
}

.accordion:last-child {
    border-bottom: 1px solid var(--grid-line);
}

.accordion__header {
    display: flex;
    align-items: baseline;
    padding: 40px 0;
    transition: color 0.3s;
    cursor: pointer;
}

.accordion:hover .accordion__header {
    color: #555;
    /* Subtle hover effect */
}

.accordion__number {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-right: 40px;
    color: #ccc;
    font-weight: 300;
}

.accordion__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    flex-grow: 1;
}

.accordion__icon {
    width: 24px;
    height: 24px;
    position: relative;
    opacity: 0.5;
}

.accordion__icon::before,
.accordion__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.accordion__icon::before {
    width: 100%;
    height: 2px;
}

.accordion__icon::after {
    width: 2px;
    height: 100%;
}

.accordion.expanded .accordion__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    /* Turn into minus could be rotate, or opacity 0 */
}

/* For Clay style, it usually stays + or turns x, let's just do a simple rotation for now or standard accordion */

.accordion__content {
    height: 0;
    overflow: hidden;
    transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion__body {
    padding-bottom: 40px;
    padding-left: 90px;
    /* Align with title roughly */
    max-width: 800px;
    font-size: 1.25rem;
    color: var(--text-light);
}

/* ----------------------------------------------------
   Testimonials (Infinite Slider)
---------------------------------------------------- */
.testimonials {
    background: #f9f9f9;
    overflow: hidden;
    /* Hide overflow from window */
    padding: 120px 0;
}

.slider-container {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    /* Fade edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    width: 100%;
}

.slider-track {
    display: flex;
    width: max-content;
    gap: 40px;
}

.slide-group {
    display: flex;
    gap: 40px;
    animation: scroll 40s linear infinite;
    /* Ensure smooth connection */
}

.review-card {
    background: #fff;
    padding: 60px;
    width: 450px;
    border-radius: 8px;
    /* Slightly softer corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.review-card__content {
    font-size: 1.35rem;
    /* Slightly smaller for more text fitting */
    font-family: var(--font-heading);
    margin-bottom: 40px;
    line-height: 1.4;
    color: var(--text-color);
}

.review-card__author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.review-card__author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-card__author h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.review-card__author span {
    font-size: 0.85rem;
    color: #888;
}

/* Pause animation on hover */
.slider-track:hover .slide-group {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
        /* Move left one full group width */
    }
}

/* Adjust gap calculation if needed, but flex gap usually handles it nicely if we transform by -100% of the group */


/* ----------------------------------------------------
   Footer
---------------------------------------------------- */
.footer-section {
    background: #000;
    color: #fff;
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.footer-cta {
    margin-bottom: 80px;
}

.footer-cta__title {
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 1;
    margin-bottom: 40px;
}

.footer-cta__link {
    font-size: clamp(1.5rem, 4vw, 3rem);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 8px;
}

.footer-cta__link:hover {
    border-color: #fff;
}

.contact-form-wrapper {
    max-width: 600px;
    margin-bottom: 120px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #888;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    padding: 16px 0;
    color: #fff;
    font-size: 1.1rem;
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 60px;
    border-top: 1px solid #222;
}

.footer-socials {
    display: flex;
    gap: 24px;
}

.footer-socials a {
    color: #fff;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.footer-socials a:hover {
    opacity: 1;
}

.copyright {
    color: #666;
    font-size: 0.9rem;
}

/* ----------------------------------------------------
   Cookie Consent
---------------------------------------------------- */
.cookie-consent {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #fff;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 20px;
    transform: translateY(150%);
    transition: transform 0.5s ease;
    max-width: 400px;
}

.cookie-consent.show {
    transform: translateY(0);
}

/* ----------------------------------------------------
   Responsive Adjustments
---------------------------------------------------- */
@media (max-width: 768px) {
    .header__inner {
        padding: 0 20px;
    }

    .nav {
        display: none;
        /* For simplicity, hiding nav on mobile default. Potentially add hamburger later */
    }

    .accordion__body {
        padding-left: 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }
}