/**
 * Futuristic, Classic Royal & Cyber-Aesthetic Styling
 * Bharat Kiran Lokanadham – Personal Financial Support Initiative
 * Mechanical Engineer • Deep-Tech Researcher • Innovator
 */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Orbitron:wght@500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    /* Cosmic Obsidian Base */
    --bg-dark: #030712;
    --bg-darker: #02040a;
    --bg-card: rgba(10, 17, 40, 0.75);
    --bg-card-hover: rgba(15, 23, 42, 0.9);
    
    /* Imperial Royal Gold */
    --gold: #f59e0b;
    --gold-bright: #fbbf24;
    --gold-glow: rgba(245, 158, 11, 0.35);
    --gold-deep: #b45309;
    --gold-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #b45309 100%);
    
    /* Quantum Cyber Cyan & Deep Sapphire */
    --cyan: #06b6d4;
    --cyan-bright: #38bdf8;
    --cyan-glow: rgba(6, 182, 212, 0.35);
    --cyan-gradient: linear-gradient(135deg, #38bdf8 0%, #06b6d4 50%, #0284c7 100%);
    
    /* System Accents */
    --plasma-blue: #2563eb;
    --emerald-success: #10b981;
    --danger-red: #ef4444;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-glow: rgba(245, 158, 11, 0.25);
    --border-cyan: rgba(6, 182, 212, 0.25);
    
    /* Typography */
    --font-royal: 'Cinzel', serif;
    --font-tech: 'Orbitron', monospace;
    --font-code: 'Space Grotesk', monospace;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
    
    /* Shadows & Radii */
    --glow-gold: 0 0 25px rgba(245, 158, 11, 0.25);
    --glow-cyan: 0 0 25px rgba(6, 182, 212, 0.25);
    --radius-hud: 12px;
}

/* Base Body & Reset */
* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.65;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 25%, rgba(245, 158, 11, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 85%, rgba(37, 99, 235, 0.06) 0%, transparent 50%);
    background-attachment: fixed;
}

/* 3D WebGL Canvas Layer */
#canvas3d-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.65;
}

/* Cyber Grid Background Overlay */
.cyber-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: 50px 50px;
    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);
    z-index: 1;
    pointer-events: none;
}

/* Main Content Layer */
.content-wrapper {
    position: relative;
    z-index: 2;
}

/* Futuristic Header / HUD Navbar */
.hud-navbar {
    background: rgba(3, 7, 18, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.hud-navbar .navbar-brand {
    font-family: var(--font-tech);
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-monogram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--gold-gradient);
    color: #000;
    font-family: var(--font-royal);
    font-weight: 900;
    font-size: 0.95rem;
    border-radius: 6px;
    box-shadow: 0 0 15px var(--gold-glow);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.brand-telemetry {
    font-family: var(--font-code);
    font-size: 0.7rem;
    color: var(--cyan-bright);
    letter-spacing: 0.1em;
    display: block;
    text-transform: uppercase;
}

.hud-nav-link {
    font-family: var(--font-code);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-secondary) !important;
    text-transform: uppercase;
    padding: 0.6rem 0.9rem !important;
    transition: all 0.2s ease;
    position: relative;
}

.hud-nav-link:hover, .hud-nav-link.active {
    color: var(--gold-bright) !important;
    text-shadow: 0 0 10px var(--gold-glow);
}

.hud-nav-link span.index-num {
    color: var(--cyan);
    font-size: 0.7rem;
    margin-right: 0.25rem;
}

/* Futuristic Holographic Hero Section */
.hero-futuristic {
    position: relative;
    padding: 5rem 0 4.5rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.telemetry-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1.1rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-glow);
    border-radius: 999px;
    font-family: var(--font-code);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold-bright);
    box-shadow: var(--glow-gold);
    margin-bottom: 1.5rem;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--gold-bright);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold-bright);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.4); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

.hero-main-title {
    font-family: var(--font-royal);
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.18;
    color: #ffffff;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.hero-main-title .gold-accent {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.3));
}

.hero-lead-text {
    font-size: 1.18rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 680px;
}

/* Profile Avatar Holographic Frame */
.profile-hologram-card {
    position: relative;
    padding: 16px;
    background: rgba(10, 17, 40, 0.7);
    border: 1px solid var(--border-glow);
    border-radius: 20px;
    box-shadow: var(--glow-gold);
    backdrop-filter: blur(12px);
    text-align: center;
}

.profile-img-container {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    padding: 6px;
    background: var(--gold-gradient);
    box-shadow: 0 0 30px var(--gold-glow);
}

.profile-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: #02040a;
}

.profile-avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f172a, #1e1b4b);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gold-bright);
    font-size: 3rem;
}

/* Hologram Scanning Line Animation */
.profile-img-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--cyan-bright);
    box-shadow: 0 0 10px var(--cyan-bright);
    opacity: 0.7;
    border-radius: 50%;
    animation: scanAvatar 3s linear infinite;
}

@keyframes scanAvatar {
    0% { top: 10%; opacity: 0; }
    50% { opacity: 0.8; }
    100% { top: 90%; opacity: 0; }
}

/* HUD Glassmorphism Cards */
.hud-card {
    background: var(--bg-card);
    border: 1px solid var(--border-cyan);
    border-radius: var(--radius-hud);
    padding: 2.25rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hud-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-bright);
    box-shadow: var(--glow-gold);
}

/* HUD Corner Brackets */
.hud-card::before, .hud-card::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    pointer-events: none;
    transition: border-color 0.3s;
}

.hud-card::before {
    top: 6px;
    left: 6px;
    border-top: 2px solid var(--gold);
    border-left: 2px solid var(--gold);
}

.hud-card::after {
    bottom: 6px;
    right: 6px;
    border-bottom: 2px solid var(--cyan-bright);
    border-right: 2px solid var(--cyan-bright);
}

/* Goal Progress Display */
.progress-hud-track {
    height: 16px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border-cyan);
    border-radius: 999px;
    overflow: hidden;
    margin: 1.25rem 0;
    padding: 2px;
}

.progress-hud-fill {
    height: 100%;
    background: linear-gradient(90deg, #06b6d4, #f59e0b, #fbbf24);
    border-radius: 999px;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Social & Verification Badges Bar */
.social-hud-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.social-hud-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.82rem;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-hud-pill:hover {
    border-color: var(--gold-bright);
    color: var(--gold-bright);
    background: rgba(245, 158, 11, 0.1);
    transform: translateY(-2px);
}

.social-hud-pill.highlight {
    border-color: var(--cyan);
    color: var(--cyan-bright);
    background: rgba(6, 182, 212, 0.08);
}

.social-hud-pill.highlight:hover {
    border-color: var(--gold);
    color: var(--gold-bright);
}

/* Section Common Titles */
.section-hud-header {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}

.section-hud-tag {
    font-family: var(--font-tech);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--cyan-bright);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.section-hud-title {
    font-family: var(--font-royal);
    font-size: 2.6rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.section-hud-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 720px;
    margin: 0.75rem auto 0;
}

/* Feature Cards (Research & Inventions) */
.invention-card {
    background: rgba(10, 17, 40, 0.8);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-hud);
    padding: 2.25rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.invention-card:hover {
    border-color: var(--cyan-bright);
    box-shadow: var(--glow-cyan);
    transform: translateY(-4px);
}

.invention-badge-top {
    font-family: var(--font-code);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold-bright);
    border: 1px solid rgba(245, 158, 11, 0.3);
    display: inline-block;
    margin-bottom: 1rem;
}

.invention-title {
    font-family: var(--font-royal);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.85rem;
}

.invention-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

/* Preset Contribution Buttons (Cyber Style) */
.preset-hud-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.75rem;
}

.preset-hud-btn {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border-cyan);
    color: #ffffff;
    font-family: var(--font-tech);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 1rem 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
}

.preset-hud-btn:hover {
    border-color: var(--gold);
    color: var(--gold-bright);
    background: rgba(245, 158, 11, 0.1);
    transform: translateY(-2px);
}

.preset-hud-btn.active {
    border-color: var(--gold-bright);
    background: var(--gold-gradient);
    color: #000000;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
    font-weight: 800;
}

/* Futuristic Notice Box */
.notice-hud-box {
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    padding: 1.25rem 1.4rem;
    margin-bottom: 1.75rem;
}

/* Commercial Deal Section Banner */
.commercial-deal-hud {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(3, 7, 18, 0.98) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 16px;
    padding: 3.5rem 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), var(--glow-gold);
    margin: 5rem 0;
    position: relative;
}

/* Glowing Neon Action Buttons */
.btn-gold-glow {
    background: var(--gold-gradient);
    color: #000000 !important;
    font-family: var(--font-tech);
    font-weight: 700;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 8px;
    box-shadow: 0 0 20px var(--gold-glow);
    transition: all 0.25s ease;
}

.btn-gold-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.6);
    color: #000000 !important;
}

.btn-cyan-glow {
    background: transparent;
    border: 1px solid var(--cyan-bright);
    color: var(--cyan-bright) !important;
    font-family: var(--font-tech);
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 8px;
    box-shadow: 0 0 15px var(--cyan-glow);
    transition: all 0.25s ease;
}

.btn-cyan-glow:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: #ffffff;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Form inputs cyber styling */
.form-control-hud, .form-select-hud {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid var(--border-cyan) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 0.65rem 0.9rem !important;
}

.form-control-hud:focus, .form-select-hud:focus {
    border-color: var(--gold-bright) !important;
    box-shadow: 0 0 12px var(--gold-glow) !important;
}

/* Table Dark Cyber HUD */
.table-hud {
    color: var(--text-primary) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.table-hud td, .table-hud th {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--text-primary) !important;
}

/* Breakdown rows dark */
.breakdown-hud-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.4rem;
    border-radius: 10px;
    margin-bottom: 0.85rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.breakdown-hud-row:hover {
    border-color: var(--cyan);
    background: rgba(15, 23, 42, 0.9);
}

.breakdown-hud-row.highlight {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.35);
}

/* Footer Futuristic Dark */
.footer-hud {
    background: #02040a;
    border-top: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--text-secondary);
    padding: 4.5rem 0 2.5rem;
    font-size: 0.92rem;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .hero-main-title {
        font-size: 2.2rem;
    }
    .preset-hud-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .commercial-deal-hud {
        padding: 2rem 1.5rem;
    }
}
