/* ==========================================================================
   KAUSHIK DESAI | OMNICAP PARTNERS LLP
   Institutional Editorial Design System & Styling
   ========================================================================== */

:root {
    /* Color Palette */
    --color-obsidian: #080B11;
    --color-surface: #0F1523;
    --color-surface-translucent: rgba(15, 21, 35, 0.75);
    --color-card-border: rgba(255, 255, 255, 0.08);
    --color-card-border-hover: #C5A880;
    
    --color-text-primary: #F8F9FA;
    --color-text-muted: #94A3B8;
    --color-text-dim: #64748B;
    
    --color-gold: #C5A880;
    --color-gold-light: #DFC8A7;
    --color-gold-dark: #A58860;
    --color-gold-glow: rgba(197, 168, 128, 0.25);

    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* Transitions & Smoothness */
    --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    background-color: var(--color-obsidian);
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    scroll-behavior: auto !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html.lenis, html.lenis body {
    height: auto;
}

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

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

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

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

body {
    background-color: var(--color-obsidian);
    color: var(--color-text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography Classes */
.font-serif {
    font-family: var(--font-serif);
}

.font-sans {
    font-family: var(--font-sans);
}

.font-mono {
    font-family: var(--font-mono);
}

/* Ambient Glow & Grain Mesh */
.ambient-glow-wrapper {
    background: radial-gradient(circle at 50% 0%, rgba(20, 28, 48, 0.5) 0%, rgba(8, 11, 17, 1) 75%);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    pointer-events: none;
}

.glow-top-left {
    top: -15%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(197, 168, 128, 0.3), rgba(15, 21, 35, 0));
}

.glow-center-right {
    top: 40%;
    right: -15%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(30, 41, 70, 0.4), rgba(8, 11, 17, 0));
}

.glow-bottom {
    bottom: -10%;
    left: 20%;
    width: 60vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(197, 168, 128, 0.15), rgba(8, 11, 17, 0));
}

.subtle-grain-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.025;
    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");
}

/* Hero Editorial Background Texture Lines */
.hero-editorial-lines {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}

/* Gold Gradient Text */
.gold-gradient-text {
    background: linear-gradient(135deg, #F9F2E7 0%, #DFC8A7 40%, #C5A880 75%, #A58860 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gold {
    color: var(--color-gold);
}

.text-gold-light {
    color: var(--color-gold-light);
}

.bg-gold {
    background-color: var(--color-gold);
}

.bg-obsidian {
    background-color: var(--color-obsidian);
}

.bg-surface {
    background-color: var(--color-surface);
}

/* Buttons */
.btn-primary-gold {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #DFC8A7 0%, #C5A880 50%, #B8996E 100%);
    color: var(--color-obsidian);
    font-family: var(--font-sans);
    font-weight: 700;
    border-radius: 9999px;
    padding: 0.75rem 1.75rem;
    box-shadow: 0 4px 20px rgba(197, 168, 128, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.6);
    transition: all 0.35s var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(197, 168, 128, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.8);
    background: linear-gradient(135deg, #EFE3CE 0%, #DFC8A7 50%, #C5A880 100%);
}

.btn-primary-gold:active {
    transform: translateY(0);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    transition: 0.75s;
}

.btn-primary-gold:hover .btn-shine {
    left: 150%;
}

.btn-ghost-border {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    padding: 0.75rem 1.75rem;
    transition: all 0.35s var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
}

.btn-ghost-border:hover {
    background-color: rgba(197, 168, 128, 0.08);
    border-color: var(--color-gold);
    transform: translateY(-2px);
}

/* Header & Glassmorphism */
.site-header {
    background-color: rgba(8, 11, 17, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.site-header.scrolled {
    background-color: rgba(8, 11, 17, 0.92);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.site-header.scrolled .header-inner {
    height: 4.5rem;
}

.nav-item {
    position: relative;
    text-decoration: none;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--color-gold);
    transition: width 0.3s var(--transition-smooth);
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

.nav-item.active {
    color: var(--color-gold);
}

/* Card Spotlight Hover Glow Effect */
.practice-card {
    position: relative;
    overflow: hidden;
}

.practice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.02));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.practice-card:hover::before {
    background: linear-gradient(135deg, rgba(197, 168, 128, 0.8), rgba(197, 168, 128, 0.1));
}

.card-spotlight {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(197, 168, 128, 0.15) 0%, rgba(197, 168, 128, 0) 70%);
    border-radius: 50%;
    top: var(--mouse-y, -1000px);
    left: var(--mouse-x, -1000px);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.practice-card:hover .card-spotlight {
    opacity: 1;
}

/* Timeline Components */
.timeline-container {
    position: relative;
}

.timeline-line {
    border-radius: 9999px;
    overflow: hidden;
}

.timeline-line-fill {
    width: 100%;
    height: 0%;
    transition: height 0.1s linear;
}

/* Form Styles */
.form-input, .form-select, .form-textarea {
    transition: all 0.3s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.15);
}

.slot-btn {
    cursor: pointer;
    transition: all 0.2s ease;
}

.slot-btn:hover {
    background-color: rgba(197, 168, 128, 0.1);
}

.slot-btn.active {
    background-color: rgba(197, 168, 128, 0.15);
    border-color: var(--color-gold);
    color: var(--color-gold-light);
    font-weight: 600;
}

/* Responsive Overrides & Fine-tuning */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.5rem;
    }
}
