/* ==============================================================================
   ChitrAI Luxury Cyber-Obsidian Design System
   Fixed Navigation, 3D Backgrounds, Glassmorphism & App Showcase Elements
   ============================================================================== */

:root {
    --bg-dark: #08090D;
    --bg-surface: #0E121B;
    --panel-bg: rgba(14, 18, 28, 0.78);
    --panel-border: rgba(212, 175, 55, 0.22);
    --gold-primary: #D4AF37;
    --gold-gradient: linear-gradient(135deg, #FFF6D5 0%, #D4AF37 50%, #8C6514 100%);
    --cyan-accent: #00F0FF;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --text-dim: #64748B;
    --radius-lg: 24px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Foundation */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding-top: 85px; /* Clear space for fixed navbar */
}

/* 3D Three.js Background Canvas */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
}

/* Ambient Radial Glows */
.ambient-glow {
    position: fixed;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.14;
}
.glow-gold { top: -140px; right: -140px; background: #D4AF37; }
.glow-cyan { bottom: -140px; left: -140px; background: #00F0FF; }

/* ==============================================================================
   FIXED SOLID LUXURY NAVBAR (Zero Jumping / Smooth on Scroll)
   ============================================================================== */

.site-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    background: rgba(8, 9, 13, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--panel-border);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

.site-navbar.scrolled {
    height: 70px;
    background: rgba(8, 9, 13, 0.96);
    border-bottom: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.nav-container {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand Logo */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1C2333 0%, #0E121A 100%);
    border: 1px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 20px;
    color: var(--gold-primary);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.brand-text h1 {
    font-size: 1.35rem;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.brand-text span {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
}

/* Navigation Menu Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-item a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    display: block;
}

.nav-item a:hover,
.nav-item.active a {
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Luxury Gold CTA Button */
.btn-gold {
    background: var(--gold-gradient);
    color: #08090D;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 0.9rem;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.45);
}

/* Mobile Hamburger Menu */
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* ==============================================================================
   PAGE LAYOUT & CONTAINER
   ============================================================================== */

.page-wrapper {
    position: relative;
    z-index: 10;
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 24px 80px 24px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 60px;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 720px;
    margin: 0 auto 30px auto;
    line-height: 1.7;
}

/* Badge Bar */
.badge-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-gold { background: rgba(212, 175, 55, 0.15); color: var(--gold-primary); border: 1px solid rgba(212, 175, 55, 0.35); }
.badge-cyan { background: rgba(0, 240, 255, 0.12); color: var(--cyan-accent); border: 1px solid rgba(0, 240, 255, 0.3); }
.badge-green { background: rgba(0, 230, 118, 0.12); color: #00E676; border: 1px solid rgba(0, 230, 118, 0.3); }

/* Glassmorphism Cards */
.glass-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-lg);
    padding: 38px 34px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(212, 175, 55, 0.35);
}

.glass-card h2 {
    font-size: 1.55rem;
    margin-bottom: 16px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.glass-card p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.02rem;
    margin-bottom: 16px;
}

.glass-card ul {
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-muted);
    line-height: 1.8;
}

.glass-card li { margin-bottom: 10px; }
.glass-card strong { color: var(--text-main); }

/* ==============================================================================
   APP SCREENSHOT & MOCKUP SHOWCASE SECTION
   (Ready for user to drop in app images)
   ============================================================================== */

.app-showcase-section {
    margin: 50px 0;
    text-align: center;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 36px;
}

.phone-mockup-card {
    background: linear-gradient(180deg, rgba(20, 25, 38, 0.8) 0%, rgba(10, 12, 18, 0.95) 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 36px;
    padding: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.1);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.phone-mockup-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold-primary);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(212, 175, 55, 0.25);
}

.phone-screen-container {
    background: #050608;
    border-radius: 26px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 9 / 19.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-screen-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.screenshot-placeholder {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
}

.screenshot-placeholder .mockup-icon {
    font-size: 44px;
    margin-bottom: 12px;
    display: block;
}

.screenshot-placeholder h4 {
    color: var(--gold-primary);
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.screenshot-placeholder p {
    font-size: 0.82rem;
    color: var(--text-dim);
}

.mockup-caption {
    margin-top: 14px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

/* Features Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: #fff;
    outline: none;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.25);
    background: rgba(255, 255, 255, 0.06);
}

.form-textarea {
    resize: vertical;
    min-height: 130px;
}

/* Interactive Split-Screen Slider Showcase */
.slider-showcase {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 480px;
    margin: 30px auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--panel-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    user-select: none;
}

.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-before-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.slider-divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background: var(--gold-primary);
    z-index: 5;
    cursor: ew-resize;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #11141c;
    border: 2px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-size: 16px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.tag-pill {
    position: absolute;
    bottom: 20px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 6;
}
.tag-before { left: 20px; color: #ff6b6b; border: 1px solid rgba(255, 107, 107, 0.4); }
.tag-after { right: 20px; color: var(--cyan-accent); border: 1px solid rgba(0, 240, 255, 0.4); }

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
    z-index: 10;
    background: rgba(8, 9, 13, 0.9);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--gold-primary);
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.2rem; }
    .slider-showcase { height: 360px; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(8, 9, 13, 0.98);
        border-bottom: 1px solid var(--panel-border);
        flex-direction: column;
        padding: 20px;
        gap: 12px;
        display: none;
        backdrop-filter: blur(25px);
    }
    .nav-menu.open { display: flex; }
    .nav-toggle { display: flex; }
    .hero-title { font-size: 1.85rem; }
    .btn-gold { padding: 8px 16px; font-size: 0.85rem; }
}
