@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
    --bg-color: #080808;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent-color: #c9a063;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.02);
    --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Hide default cursor for custom cursor */
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* --- Grain Background --- */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
}

/* --- Custom Cursor --- */
#cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s ease-out;
    mix-blend-mode: difference;
}

#cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.3s ease-out, width 0.3s, height 0.3s;
}

.cursor-hover #cursor-follower {
    transform: scale(1.5);
    background: rgba(255, 255, 255, 0.1);
    border: none;
}

/* --- Typography --- */
h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    letter-spacing: -0.02em;
}

p {
    font-weight: 300;
    letter-spacing: 0.01em;
    line-height: 1.8;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 2.5rem 0;
    transition: var(--transition-slow);
}

nav.scrolled {
    padding: 1.5rem 0;
    background: rgba(8, 8, 8, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

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

.nav-links a {
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* --- Hero --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 4rem;
    overflow: hidden;
}

.hero-img-container {
    position: absolute;
    right: 5%;
    width: 45%;
    height: 80%;
    overflow: hidden;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.active .hero-img {
    transform: scale(1);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(4rem, 12vw, 8rem);
    line-height: 0.95;
    margin-bottom: 3rem;
    font-style: italic;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 450px;
    margin-bottom: 4rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 1.5rem 4rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    position: relative;
    transition: var(--transition-slow);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #fff;
    z-index: -1;
    transition: var(--transition-slow);
}

.btn:hover {
    color: #000;
    border-color: #fff;
}

.btn:hover::before {
    width: 100%;
}

/* --- Section Title --- */
.section-header {
    margin-bottom: 8rem;
    text-align: center;
}

.section-number {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.5em;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(3rem, 6vw, 5rem);
}

/* --- Services (Asymmetrical) --- */
.services {
    padding: 15vw 0;
}

.service-row {
    display: flex;
    gap: 10vw;
    margin-bottom: 15vw;
    align-items: center;
}

.service-row:nth-child(even) {
    flex-direction: row-reverse;
}

.service-visual {
    flex: 1.2;
    height: 70vh;
    background: var(--glass-bg);
    overflow: hidden;
    position: relative;
}

.service-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.5);
    transition: var(--transition-slow);
}

.service-visual:hover img {
    filter: grayscale(0);
    transform: scale(1.05);
}

.service-info {
    flex: 1;
    padding: 2rem;
}

.service-info h3 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.service-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 400px;
}

/* --- Reveal Animation --- */
[data-reveal] {
    opacity: 0;
    transform: translateY(60px);
    transition: var(--transition-slow);
}

[data-reveal].active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Footer --- */
footer {
    padding: 10vw 4rem 5vw;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-copy {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

@media (max-width: 1024px) {
    .hero-img-container {
        display: none;
    }

    .hero-content {
        max-width: 100%;
    }

    .service-row {
        flex-direction: column !important;
    }

    .service-visual {
        width: 100%;
        height: 50vh;
    }
}