@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@100..900&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Alexandria", sans-serif;
}
body {
    background-color: #000000;
}
.span1 {
    color: #956EFE;
}
.span2 {
    font-weight: 400;
    color: #956EFE;
}
.span3 {
    background-image: linear-gradient(to top, #00c6fb 0%, #005bea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.intro-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
    padding-left: 2%;
    text-align: left;
    padding-top: 150px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(.39,.58,.57,1), transform 0.8s cubic-bezier(.39,.58,.57,1);
    /* Soft violet/indigo gradient similar to reference */
    background-image: linear-gradient(to top, #000000 0%, #000000 100%);
    background-size: auto, auto, auto;
    background-position: center center, center center, center center;
    animation: bgFloat 20s ease-in-out infinite alternate;
    position: relative;
    overflow: hidden;
}

.intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--shimmer-x) var(--shimmer-y), rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    animation: shimmer 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.intro-section > * {
    position: relative;
    z-index: 1;
}

@keyframes bgFloat {
    0% {
        --g1x: 78%;
        --g1y: 40%;
        --g2x: 18%;
        --g2y: 32%;
    }
    50% {
        --g1x: 82%;
        --g1y: 45%;
        --g2x: 22%;
        --g2y: 38%;
    }
    100% {
        --g1x: 75%;
        --g1y: 35%;
        --g2x: 15%;
        --g2y: 28%;
    }
}

@keyframes shimmer {
    0% {
        --shimmer-x: 0%;
        --shimmer-y: 0%;
    }
    50% {
        --shimmer-x: 100%;
        --shimmer-y: 50%;
    }
    100% {
        --shimmer-x: 0%;
        --shimmer-y: 100%;
    }
}

/* Removed meshMove animation for a clean static hero gradient */
.intro-section.intro-visible {
    opacity: 1;
    transform: translateY(0);
}

.intro-section h1 {
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0;
    color: #ffffff;
}

.intro-section h2 {
    font-size: 6rem;
    padding-right: 30%;
    font-weight: 500;
    margin-top: 10px;
    margin-bottom: 50px;
    color: #ffffff;
    line-height: 1.10;
}

/* Infinite scroller under hero title */
.intro-scroller {
    width: 100%;
    margin: 26px 0 6px 0;
}

.intro-scroller-track {
    display: flex;
    gap: 18px;
    align-items: center;
    animation: introScroll 10s linear infinite;
}

.intro-card {
    height: auto;
    width: 280px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 10px 25px -10px;
    filter: saturate(1.05) contrast(1.02);
    user-select: none;
    pointer-events: none;
}

@keyframes introScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .intro-card { height: 200px; width: 200px; }
    .intro-scroller-track { gap: 12px; }
}

@media (max-width: 480px) {
    .intro-card { height: 200px; width: 200px; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .intro-section {
        padding-left: 5%;
        height: 80vh;
    }

    .intro-section h1 {
        font-size: 1.6rem;
    }

    .intro-section h2 {
        font-size: 4.5rem;
        line-height: 1.1;
    }
}

@media (max-width: 480px) {
    .intro-section {
        padding-left: 5%;
        height: 100vh;
        padding-top: 100px;
        padding-bottom: 100px;
    }

    .intro-section h1 {
        font-size: 1.4rem;
    }

    .intro-section h2 {
        font-size: 3.5rem;
        line-height: 1.30;
        padding-right: 0%;
    }
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity 0.5s;
}
#preloader-percent {
    color: #ffffff;
    font-size: 17rem;
    font-weight: 500;
    letter-spacing: 1px;
}
#preloader.preloader-hide {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

@media (max-width: 768px) {
    #preloader-percent {
        font-size: 2rem;
    }
}
@media (max-width: 480px) {
    #preloader-percent {
        font-size: 5rem;
    }
    #preloader {
        padding: 0 10px;
    }
}

/* About Section Styles */
.about-section {
    padding: 120px 10%;
    text-align: center;
    color: #ffffff;
    background-color: #000000;
}

.about-section p {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.6;
    max-width: 1100px;
    margin: 0 auto 40px;
    color: #ffffff;
}

.about-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.about-buttons .btn {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}
.about-buttons .btn a {
    text-decoration: none;
    color: #000000;
}

.about-buttons .btn:hover {
    background: #202020;
    color: #000000;
}
.about-buttons .btn a:hover {
    text-decoration: none;
    color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .about-section {
        padding: 100px 6%;
    }

    .about-section p {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }

    .about-buttons {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .about-buttons .btn {
        width: 80%;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 50px 5%;
    }

    .about-section p {
        font-size: 1.5rem;
    }

    .about-buttons .btn {
        padding: 18px 24px;
        font-size: 0.9rem;
    }
}

/* Featured Works */
.fw-section {
    color: #eaeaea;
    padding: 80px 6% 120px 6%;
}

.fw-header {
    position: relative;
    margin-bottom: 50px;
}

.fw-ghost {
    font-size: 16vw;
    line-height: 0.9;
    letter-spacing: 0.02em;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 100px;
}

.fw-float-card {
    position: absolute;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%);
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.599);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.fw-float-card img {
    display: block;
    width: 360px;
    height: 210px;
    object-fit: cover;
    border-radius: 8px;
}

.fw-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.fw-card {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 15px;
}
.fw-card a { text-decoration: none; }

.fw-card-lg .fw-media img { height: 620px; }

.fw-meta {
    font-size: 15px;
    letter-spacing: 0.08em;
    color: #9b9b9b;
    margin-bottom: 20px;
}

.fw-media img {
    display: block;
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.5s ease;
}

.fw-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 6px 0 6px;
}
.fw-title { font-weight: 500; font-size: 20px; color: rgb(255, 255, 255); }
.fw-dots {  color: white; }

@media (min-width: 900px) {
    .fw-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: auto;
    }
    .fw-card-lg {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .fw-float-card img { width: 260px; height: 150px; }
.fw-media img { 
    height: 350px;
}
.fw-header {
    margin-bottom: 10px;
}
.fw-ghost {
    margin-bottom: 50px;
    line-height: 1;
    color: black;
}
.fw-card-lg .fw-media img { height: 350px; }
.fw-title { font-weight: 600; font-size: 20px; }
.fw-meta { font-size: 15px;}
.fw-section {
    color: #eaeaea;
    padding: 80px 6% 30px 6%;
}
}

/* Services */
#services {
    background: #000000;
    color: #ffffff;
    padding: 90px 6% 120px 6%;
}

.services-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.services-heading {
    font-size: 5vw;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.service-list {
    list-style: none;
    margin: 0;
    padding: 20px 0 0 0;
    display: grid;
    gap: 36px;
}

.service-item {
    border-top: 1px solid #626262;
    padding-top: 26px;
}
.service-item:last-child { border-bottom: 1px solid #838383; padding-bottom: 26px; }

.service-line {
    display: flex;
    align-items: center;
    gap: 24px;
}
.service-no { color: #7c7c7c; font-weight: 500; min-width: 40px; }
.service-title { font-size: 35px; font-weight: 500; flex: 1; }
.service-tags { flex: 1; text-align: center; color: #7c7c7c; letter-spacing: .08em; }

.service-price {
    margin-left: auto;
    font-weight: 600;
    font-size: 20px;
    color: #956EFE;
}

.service-thumb {
    position: absolute;
    right: 6%;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(0,0,0,.25);
}
.service-thumb img { display: block; width: 220px; height: 220px; object-fit: cover; }

@media (max-width: 900px) {
    .services-heading { font-size: 64px; }
    .service-line { flex-wrap: wrap; row-gap: 10px; }
    .service-title { font-size: 28px; flex: 1 1 auto; }
    .service-tags { flex-basis: 100%; text-align: center; }
    .service-thumb { display: none; }
    .service-price { font-size: 16px; margin-left: 0; }
}

@media (max-width: 600px) {
    .services { padding: 70px 5% 90px 5%; }
    .services-heading { font-size: 42px; }
    .service-no { min-width: 34px; }
    .service-title { font-size: 22px; }
    .service-tags { font-size: 12px; letter-spacing: .06em; }
    .service-price { font-size: 20px; }
}

@media (max-width: 420px) {
    .service-line { row-gap: 8px; }
    .service-title { font-size: 20px; }
    .service-tags { font-size: 11px; }
    .service-no { font-size: 12px; }
}

/* Clients grid */
.clients { padding: 80px 6% 110px 6%; background: #000000; }
.clients-heading { font-size: 5vw;; font-weight: 600; letter-spacing: .01em; margin-bottom: 100px; color: white; }
.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}
.client-card {
    position: relative;
    border-radius: 16px;
    padding: 28px;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.client-mark { font-size: 56px; color: #bdbdbd; margin-bottom: 8px; }
.client-name { font-size: 28px; font-weight: 400; color: #b3b3b3; }

@media (max-width: 1100px) {
    .clients-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
    .clients-grid { grid-template-columns: repeat(2, 1fr); }
    .client-name { font-size: 24px; }
}
@media (max-width: 520px) {
    .clients { padding: 60px 5% 80px 5%; }
    .clients-grid { grid-template-columns: 1fr; gap: 16px; }
    .client-card { min-height: 130px; padding: 22px; }
    .clients-heading { font-size: 10vw;; font-weight: 600; letter-spacing: .01em; margin-bottom: 100px; }
    .services {
        background: #ffffff;
        color: #000000;
        padding: 90px 6% 40px 6%;
    }
}

/* CTA section */
.cta { padding: 90px 6% 120px 6%; background: #1d1d1d; }
.cta-top { display: flex; justify-content: space-between; color: #9b9b9b; margin-bottom: 16px; }
.cta-heading { font-size: clamp(40px, 11vw, 160px); font-weight: 700; letter-spacing: .01em; color: #ffffff; }
.cta-divider { border: none; height: 1px; background: #e3e3e3; margin: 24px 0 30px 0; }
.cta-bottom { display: flex; justify-content: space-between; align-items: center; }
.cta-year { color: #9b9b9b; }
.cta-button { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: #ffffff; font-weight: 600; }
.cta-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #956EFE; color: #fff; }

@media (max-width: 640px) {
    .cta { padding: 70px 5% 100px 5%; }
    .cta-top { font-size: 12px; }
    .cta-icon { width: 48px; height: 48px; }
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1), 
                transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}
.reveal.in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px) scale(0.95);
    transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1), 
                transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}
.reveal-left.in {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px) scale(0.95);
    transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1), 
                transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}
.reveal-right.in {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), 
                transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}
.reveal-scale.in {
    opacity: 1;
    transform: scale(1);
}

.reveal-rotate {
    opacity: 0;
    transform: translateY(30px) rotate(-5deg);
    transition: opacity 750ms cubic-bezier(0.16, 1, 0.3, 1), 
                transform 750ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}
.reveal-rotate.in {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}
