:root {
    --bg-color: #000000;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --accent-purple-light: #B46BFF;
    --accent-purple-dark: #4B0082;
    --gold-solid: #DFBD69;
    --gold-gradient: linear-gradient(160deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);
    --border-color: rgba(255, 255, 255, 0.1);
    --nav-blur: rgba(0, 0, 0, 0.7);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-text {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    opacity: 0;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    background-color: var(--nav-blur);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transform: translateY(-100%);
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.btn-contact {
    background: var(--text-primary);
    color: var(--bg-color);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-contact:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 2rem;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-purple-light), var(--accent-purple-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(20px);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
}

.scroll-indicator span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--text-secondary), transparent);
}

/* Intro Section */
.intro {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4rem;
}

.intro-container {
    max-width: 1000px;
    margin: 0 auto;
}

.intro-text {
    font-size: clamp(2rem, 4.5vw, 4rem);
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #333333;
    /* Dark gray for pre-reveal state */
}

/* SplitType specific classes for GSAP */
.word {
    display: inline-block;
    color: #333333;
    /* Make sure it overrides */
}

/* Services Sections Container (2-Column Sticky Layout) */
.services-wrapper {
    position: relative;
    width: 100%;
}

.services-layout {
    display: flex;
    width: 100%;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.services-text-column {
    width: 50%;
    position: relative;
}

.service-text-section {
    width: 100%;
    height: 100vh;
    padding: 0 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* This handles vertical centering */
    align-items: flex-start;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    opacity: 0.3;
    /* Added for GSAP starting point */
    transform: translateY(20px);
    /* Pre-transform */
    transition: opacity 0.5s ease;
    /* Let CSS handle the base transition to avoid GSAP conflict */
}

.services-visual-column {
    width: 50%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Move closer to text */
    padding-left: 2rem;
    /* Reduced padding from text column */
    perspective: 1200px;
    position: sticky;
    top: 0;
}

.cube-container {
    width: 300px;
    height: 300px;
    position: relative;
    perspective: 1500px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform-origin: center center;
}

.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1f2024 0%, #2b2d33 50%, #151619 100%);
    border: 1px solid rgba(196, 173, 124, 0.4);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    overflow: hidden;
}

.cube-face::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(115deg,
            transparent 0%,
            transparent 40%,
            rgba(255, 255, 255, 0.05) 48%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0.05) 52%,
            transparent 60%,
            transparent 100%);
    background-size: 300% 300%;
    background-position: var(--sheen-pct, 0%) var(--sheen-pct, 0%);
    pointer-events: none;
    z-index: 1;
}

.cube-face-front {
    transform: rotateY(0deg) translateZ(150px);
}

.cube-face-right {
    transform: rotateY(90deg) translateZ(150px);
}

.cube-face-back {
    transform: rotateY(180deg) translateZ(150px);
}

.cube-face-left {
    transform: rotateY(-90deg) translateZ(150px);
}

.cube-face-top {
    transform: rotateX(90deg) translateZ(150px);
    background: linear-gradient(135deg, #1f2024 0%, #151619 100%);
    border: 1px solid rgba(196, 173, 124, 0.3);
}

.cube-face-bottom {
    transform: rotateX(-90deg) translateZ(150px);
    background: linear-gradient(135deg, #1f2024 0%, #151619 100%);
    border: 1px solid rgba(196, 173, 124, 0.3);
}

/* Premium SVGs inside cube */
.icon-wrapper {
    position: absolute;
    inset: 0;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.premium-icon {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.7));
}

/* Base orientations handled by JS or CSS */
.face-1,
.face-3,
.face-5,
.face-7 {
    transform: rotateY(0deg);
}

.face-2,
.face-4,
.face-6 {
    transform: rotateY(180deg);
}

/* Initial Visibility Setup: Only face 1 is visible at start */
.face-1 {
    opacity: 1;
}

.face-2,
.face-3,
.face-4,
.face-5,
.face-6,
.face-7 {
    opacity: 0;
}


.service-label {
    font-size: 0.9rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.service-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.service-desc {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.service-list {
    list-style: none;
}

.service-list li {
    font-size: 1.1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    position: relative;
    padding-left: 2rem;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--gold-solid);
    font-weight: bold;
}



/* CTA Section */
.cta {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #050505;
    position: relative;
    z-index: 10;
}

.cta-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 3rem;
    letter-spacing: -0.03em;
}

.btn-primary {
    background: var(--text-primary);
    color: #000;
    padding: 1.2rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

/* Footer */
footer {
    padding: 3rem 4rem;
    border-top: 1px solid var(--border-color);
    background: #000;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-weight: 600;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .services-layout {
        flex-direction: column-reverse;
        /* Put sticky visual column FIRST visually in the DOM flow for mobile so it stays on screen, or just use normal flow but keep sticky */
    }

    .services-text-column {
        width: 100%;
        padding: 0 2rem;
        z-index: 2;
        /* Scroll over the sticky cube */
    }

    .services-visual-column {
        width: 100%;
        height: 100vh;
        /* Keep full height for sticky effect */
        position: sticky;
        top: 0;
        padding: 4rem 0;
        justify-content: center;
        z-index: 1;
        /* Stay behind the text */
        opacity: 0.3;
        /* Dim the cube so text is readable over it */
    }

    /* Override the active states for opacity if we dimmed the parent */
    .service-text-section {
        height: 100vh;
        padding: 4rem 0;
        background: rgba(0, 0, 0, 0.7);
        /* Background for readability */
        backdrop-filter: blur(5px);
        margin-bottom: 50vh;
        /* Space out the sections so the cube changes are visible */
    }

    .service-text-section:last-child {
        margin-bottom: 0;
    }

    .cube-container {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1.5rem 2rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 0 1rem;
    }

    .intro {
        padding: 4rem 2rem;
    }

    .cube-container {
        width: 250px;
        height: 250px;
    }
}

/* SVGs are statically mapped in HTML now */
.logo-layer {
    opacity: 1;
    /* Keep SVGs statically visible */
}