/* =========================================================================
   KL08 CREATIONS LLP - PREMIUM CINEMATIC DESIGN SYSTEM
   ========================================================================= */

/* --- Fonts & Variables --- */
:root {
    --bg-primary: #050505;
    --bg-secondary: #0d0d0d;
    --text-primary: #f5f5f5;
    --text-secondary: #a5a5a5;
    --accent-gold: #c9a45c;
    --accent-gold-rgb: 201, 164, 92;
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s var(--ease-out-expo);
    --transition-medium: 0.4s var(--ease-out-expo);
    --transition-fast: 0.2s ease;
}

/* --- Reset & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: initial; /* Lenis handles smooth scroll */
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
    background-color: var(--bg-primary);
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- Film Grain Overlay --- */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- Global Layout Containers --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* --- SECTION 1 — HERO --- */
.hero-section {
    height: 100vh;
    min-height: 100vh;
    min-height: 100svh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 4rem;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 0 2rem;
    }
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.08); /* Initial loading animation start state */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.4) 0%, rgba(5, 5, 5, 0.95) 100%);
    z-index: -1;
}

.hero-content {
    width: 100%;
    max-width: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.hero-logo-wrapper {
    width: 100%;
    max-width: none;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 3;
    transform-origin: center center;
    
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.hero-logo-wrapper::before,
.hero-logo-wrapper::after {
    display: none !important;
    content: none !important;
}

.hero-logo {
    width: clamp(280px, 72vw, 900px);
    max-width: 90vw;
    height: auto;
    max-height: none;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transform-origin: center center;
    
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.hero-text-block {
    position: absolute;
    bottom: 22%;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    filter: blur(10px);
    transform: translateY(80px);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 7.5rem);
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    text-align: center;
}

.title-line {
    display: block;
    overflow: hidden;
}

.title-line .inner-text {
    display: block;
}

.highlight-stroke {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--text-primary);
}

@media(min-width: 769px) {
    .highlight-stroke {
        -webkit-text-stroke: 2px var(--text-primary);
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 650px;
    line-height: 1.5;
    text-align: center;
}

/* CRITICAL LOGO OVERRIDES */
.hero-section .hero-logo,
.hero-section .hero-logo img {
    width: clamp(280px, 72vw, 900px) !important;
    max-width: 90vw !important;
    height: auto !important;
    max-height: none !important;
    display: block !important;
    margin: 0 auto !important;
    object-fit: contain !important;
}

@media (max-width: 1024px) {
    .hero-section .hero-logo,
    .hero-section .hero-logo img {
        width: min(78vw, 650px) !important;
        max-width: 88vw !important;
    }
}

@media (max-width: 768px) {
    .hero-section .hero-logo,
    .hero-section .hero-logo img {
        width: 82vw !important;
        max-width: 420px !important;
    }
}

.scroll-explore {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.scroll-explore:hover {
    color: var(--accent-gold);
}

.scroll-explore-icon {
    font-size: 1.1rem;
    animation: scrollBounce 2s infinite ease-in-out;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* Initial state for loading animation */
.fade-up-init {
    opacity: 0;
    transform: translateY(30px);
}


/* --- SECTION 2 — SERVICES --- */
.services-section {
    padding: 10rem 0;
    background-color: var(--bg-primary);
}

.services-header {
    margin-bottom: 5rem;
}

.section-tag {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: var(--accent-gold);
    margin-bottom: 1.2rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.services-interactive-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(245, 245, 245, 0.08);
}

.service-item {
    display: flex;
    align-items: flex-start;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(245, 245, 245, 0.08);
    opacity: 0.3;
    transform: scale(0.98);
    transform-origin: left center;
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo), border-color 0.6s ease;
}

.service-item.active {
    opacity: 1;
    transform: scale(1);
    border-bottom-color: rgba(201, 164, 92, 0.35);
}

.service-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 250px;
    flex-shrink: 0;
}

.service-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.4s ease;
}

.service-item.active .service-num {
    color: var(--accent-gold);
}

.service-icon {
    color: var(--text-secondary);
    transition: color 0.4s ease, transform 0.4s var(--ease-out-expo);
    display: flex;
    align-items: center;
}

.service-item.active .service-icon {
    color: var(--accent-gold);
    transform: scale(1.1);
}

.service-content {
    flex-grow: 1;
    max-width: 800px;
}

.service-title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-secondary);
    transition: color 0.4s ease;
}

.service-item.active .service-title {
    color: var(--text-primary);
}

.service-desc {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: var(--text-secondary);
    line-height: 1.6;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s var(--ease-out-expo), opacity 0.6s var(--ease-out-expo), margin-top 0.6s ease;
}

.service-item.active .service-desc {
    max-height: 150px;
    opacity: 1;
    margin-top: 0.8rem;
}

@media (max-width: 1024px) {
    .service-item {
        opacity: 1;
        transform: none;
        padding: 2.5rem 0;
    }
    
    .service-meta {
        width: 140px;
        gap: 1rem;
    }
    
    .service-num {
        font-size: 1.8rem;
        color: var(--accent-gold);
    }
    
    .service-icon {
        color: var(--accent-gold);
    }
    
    .service-title {
        color: var(--text-primary);
    }
    
    .service-desc {
        max-height: 150px;
        opacity: 1;
        margin-top: 0.6rem;
    }
}

@media (max-width: 600px) {
    .service-item {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .service-meta {
        width: auto;
    }
}


/* --- SECTION 3 — WEBSITE LAUNCH COUNTDOWN --- */
.countdown-section {
    padding: 10rem 0;
    background-color: var(--bg-secondary);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-top: 1px solid rgba(245, 245, 245, 0.05);
    border-bottom: 1px solid rgba(245, 245, 245, 0.05);
}

.countdown-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(201, 164, 92, 0.02) 0%, rgba(5, 5, 5, 0.5) 100%);
    z-index: 1;
}

.countdown-wrapper {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.countdown-tag {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: var(--accent-gold);
    margin-bottom: 2rem;
}

.countdown-heading {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6.5vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.countdown-subheading {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 5rem;
}

.timer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.timer-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 140px;
}

.timer-number {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums; /* Prevents shifting */
    margin-bottom: 1.5rem;
}

.timer-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
}

.timer-separator {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 500;
    color: var(--accent-gold);
    opacity: 0.6;
    padding-bottom: 2.2rem;
}

/* Countdown Pulse Class injected via JS */
.timer-pulse {
    animation: countPulse 0.4s ease-out;
}

@keyframes countPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Post-launch message style */
.post-launch-view {
    padding: 3rem 0;
}

.live-title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 9vw, 8rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.live-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    color: var(--accent-gold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .timer-container {
        gap: 1rem;
    }
    .timer-block {
        min-width: 70px;
    }
    .timer-number {
        margin-bottom: 0.8rem;
    }
    .countdown-subheading {
        margin-bottom: 3.5rem;
    }
}

@media (max-width: 480px) {
    .timer-container {
        gap: 0.5rem;
    }
    .timer-block {
        min-width: 60px;
    }
    .timer-separator {
        padding-bottom: 1.5rem;
    }
}


/* --- SECTION 4 — CONTACT / FOOTER --- */
.footer-section {
    padding: 100px 6vw 40px;
    min-height: 45vh;
    background-color: var(--bg-primary);
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(245, 245, 245, 0.05);
}

.footer-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.footer-grid-three {
    display: grid;
    grid-template-columns: 1.2fr auto 1fr auto 1.2fr;
    gap: 3rem;
    width: 100%;
    margin-bottom: 5rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Column 1 - Brand */
.footer-logo-wrap {
    margin-bottom: 2rem;
}

.footer-logo-wrap .footer-logo {
    width: 220px;
    height: auto;
    object-fit: contain;
    display: block;
}

.footer-brand-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.footer-brand-tagline {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 1.5vw, 1.6rem);
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--accent-gold);
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}

.footer-brand-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 320px;
}

/* Column 2 - Address */
.footer-column-heading {
    font-family: var(--font-heading);
    font-size: clamp(0.8rem, 1vw, 1rem);
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--accent-gold);
    margin-bottom: 2rem;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

/* Simple visible gold accent line under heading */
.footer-column-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 1.5px;
    background-color: var(--accent-gold);
}

.footer-address-block {
    margin-top: 0.5rem;
}

.llp-address-detail {
    font-style: normal;
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.8;
}

.llp-address-detail strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Column 3 - Contact */
.footer-phone-block {
    display: flex;
    flex-direction: column;
    margin-top: 0.5rem;
}

.footer-phone-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}

.footer-phone-number {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2vw, 2.2rem);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease, transform 0.3s var(--ease-out-expo);
    display: inline-block;
    width: fit-content;
}

.footer-phone-number:hover {
    color: var(--accent-gold);
    transform: translateX(4px);
}

/* Vertical and horizontal dividers */
.footer-vertical-line {
    width: 1px;
    background-color: rgba(201, 164, 92, 0.15); /* Thin gold/gray line */
    align-self: stretch;
}

.footer-bottom-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(245, 245, 245, 0.08);
    margin: 3rem 0;
}

.footer-copyright {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-align: center;
}

/* Responsive Footer styling */
@media (max-width: 1024px) {
    .footer-grid-three {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
    
    .footer-vertical-line {
        display: none;
    }
    
    .footer-column {
        align-items: center;
    }
    
    .footer-column-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-brand-desc {
        max-width: 100%;
    }
    
    .footer-phone-number:hover {
        transform: none;
    }
}


/* --- Custom Cursor --- */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
}

.cursor-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--text-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
    will-change: transform;
}

.cursor-ring {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(245, 245, 245, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), border-color 0.3s ease, background-color 0.3s ease;
    will-change: transform;
}

.cursor-label {
    position: absolute;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--bg-primary);
    opacity: 0;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    z-index: 2;
}

/* Cursor states */
.custom-cursor.state-hover-link .cursor-ring {
    width: 60px;
    height: 60px;
    border-color: var(--accent-gold);
    background-color: rgba(201, 164, 92, 0.05);
}

.custom-cursor.state-hover-link .cursor-dot {
    background-color: var(--accent-gold);
}

.custom-cursor.state-scroll .cursor-ring {
    width: 80px;
    height: 80px;
    border-color: var(--text-primary);
    background-color: var(--text-primary);
}

.custom-cursor.state-scroll .cursor-dot {
    opacity: 0;
}

.custom-cursor.state-scroll .cursor-label {
    opacity: 1;
}

.custom-cursor.state-service-hover .cursor-ring {
    width: 50px;
    height: 50px;
    border-color: var(--accent-gold);
    background-color: rgba(201, 164, 92, 0.05);
}

.custom-cursor.state-service-hover .cursor-dot {
    background-color: var(--accent-gold);
}

/* Hide custom cursor on touch/mobile devices */
@media (max-width: 1024px) {
    .custom-cursor {
        display: none !important;
    }
    body, a, button, .scroll-explore {
        cursor: auto !important;
    }
}

/* Accessibility: Respect Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: initial !important;
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
    .hero-bg-image, .hero-content, .custom-cursor {
        transform: none !important;
    }
}
