/* Base CSS for Velours Interiors */
:root {
    --bg-color: #1a1a1a;
    --text-primary: #f2f2f2;
    --text-secondary: #999999;
    --accent-gold: #C9A96E;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Lenis Core */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    min-height: 100vh;
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    scroll-behavior: auto; /* Handled by GSAP/Lenis usually, but we use native for now */
    cursor: none;
}

a, button, .btn {
    cursor: none;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 15px;
    height: 15px;
    background-color: var(--accent-gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--transition-bounce), height 0.3s var(--transition-bounce), background-color 0.3s ease, border 0.3s ease;
}

.custom-cursor.hover {
    width: 60px;
    height: 60px;
    background-color: transparent;
    border: 1px solid var(--accent-gold);
}

/* Typography */
h1, h2, h3, h4, .brand {
    font-family: var(--font-heading);
    font-weight: 400;
}

h1 {
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 1rem;
}

.container {
    padding: 10rem 10vw;
    max-width: 1800px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 5rem;
}

/* Three WebGL Canvas */
.webgl {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    outline: none;
    pointer-events: none;
    opacity: 0.8;
    transition: opacity 1s ease;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.4s var(--transition-smooth);
    border-radius: 2px;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: #000;
    border: 1px solid var(--accent-gold);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-gold);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 4rem;
    z-index: 100;
    mix-blend-mode: difference;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.5rem;
    text-decoration: none;
    color: #fff;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10vw;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.15; /* Subtle background */
    z-index: -1;
}

.hero-title i {
    color: var(--accent-gold);
    font-style: italic;
}

.hero-subtitle {
    max-width: 500px;
    margin: 2rem 0 3rem;
    font-size: 1.25rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 10vw;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 60px;
    height: 1px;
    background-color: rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background-color: var(--accent-gold);
    animation: scrollLine 2s infinite ease-in-out;
}

@keyframes scrollLine {
    0% { transform: scaleX(0); transform-origin: left; }
    50% { transform: scaleX(1); transform-origin: left; }
    50.1% { transform: scaleX(1); transform-origin: right; }
    100% { transform: scaleX(0); transform-origin: right; }
}

/* Services */
.services {
    background-color: var(--bg-color); /* Cover the webgl slightly if needed */
    position: relative;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 3rem;
    border-radius: 4px;
    transition: transform 0.4s var(--transition-smooth), background 0.4s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(201, 169, 110, 0.3);
}

.read-more {
    display: inline-block;
    margin-top: 2rem;
    text-decoration: none;
    color: var(--accent-gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

.service-card:hover .read-more::after {
    width: 100%;
}

/* Portfolio Gallery */
.portfolio {
    position: relative;
    z-index: 2;
    background-color: var(--bg-color);
    height: 100vh;
    overflow: hidden;
}

.portfolio-container {
    display: flex;
    flex-wrap: nowrap;
    height: 100%;
    width: max-content;
}

.portfolio-item {
    height: 100vh;
    width: 60vw;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 5vw;
}

.portfolio-img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.portfolio-img {
    width: 100%;
    height: 130%; /* extra height for parallax */
    object-fit: cover;
    transform: translateY(-15%); /* center initially */
}

/* Overlay gradient for text readability */
.portfolio-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(26,26,26,0.8) 0%, rgba(26,26,26,0) 50%, rgba(26,26,26,0.8) 100%);
    z-index: 2;
    pointer-events: none;
}

.portfolio-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
}

.project-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 1rem;
}

.project-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 5rem);
    color: #fff;
    line-height: 1.1;
    margin-top: 1rem;
}

/* Process */
.process {
    background-color: var(--bg-color);
    position: relative;
    z-index: 2;
}

.process-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    height: 100%;
    width: 1px;
    background-color: rgba(255,255,255,0.1);
}

.process-step {
    position: relative;
    padding-left: 6rem;
    margin-bottom: 5rem;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 4rem;
    height: 4rem;
    background-color: var(--bg-color);
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent-gold);
    z-index: 2;
}

.step-content p {
    margin-top: 1rem;
}

/* Testimonials */
.testimonials {
    padding: 6rem 0;
    background-color: #121212;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.marquee {
    position: relative;
    width: 100vw;
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 2rem;
}

.marquee-track {
    display: flex;
    gap: 4rem;
    animation: marquee 25s linear infinite;
    white-space: nowrap;
    padding-right: 4rem; /* Match gap */
}

.testimonial {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #fff;
    font-style: italic;
    opacity: 0.8;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 2rem)); } /* Needs exactly half width shifted if duplicated properly */
}

/* About Section */
.about {
    padding: 10rem 10vw;
    background-color: var(--bg-color);
    position: relative;
    z-index: 2;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-image {
    width: 100%;
    height: 700px;
    overflow: hidden;
    position: relative;
    border-radius: 2px;
}

.parallax-img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    transform: translateY(-10%);
}

.about-content h2 {
    margin-bottom: 2rem;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* Contact / Footer */
.contact {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #0d0d0d;
    z-index: 2;
}

#particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.contact-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.contact h2 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 2rem;
}

.email-link {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--accent-gold);
    text-decoration: none;
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.email-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-gold);
    transform-origin: bottom right;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}

.email-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.phone {
    font-size: 1rem;
    letter-spacing: 0.1em;
}

.footer-bottom {
    position: absolute;
    bottom: 3rem;
    left: 10vw;
    right: 10vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-gold);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-links {
        display: none; /* simple hidden for mobile, can rely on CTA */
    }
    
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        height: 50vh;
    }
    
    .portfolio-item {
        padding: 0 5vw;
        width: 85vw;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }

    .locations-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* GSAP Reveal Utilities */
.reveal-wrap {
    position: relative;
    overflow: hidden;
    display: block;
}

.reveal-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-gold);
    z-index: 10;
}

.gs-split {
    overflow: hidden;
}

.gs-split .char {
    display: inline-block;
    transform: translateY(110%);
}



/* Team */
.team {
    padding: 8rem 0;
    background-color: var(--bg-color);
    position: relative;
    z-index: 2;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.team-member {
    text-align: center;
}

.team-img-wrap {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.8s ease;
}

.team-member:hover .team-img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.team-member h3 {
    margin-bottom: 0.2rem;
    font-size: 1.2rem;
}

.team-role {
    color: var(--accent-gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Footer Locations */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 4rem auto;
    max-width: 900px;
    text-align: left;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 4rem;
}

.location-item h4 {
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.location-item p {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    color: var(--text-secondary);
}
