/* ==========================================================================
   Jinesh K. Suthar - Professional Portfolio & Digital Publishing Hub
   Custom CSS Styling, VFX Animations & Responsive Design Architecture
   ========================================================================== */

:root {
    --bg-dark: #070a13;
    --bg-darker: #04060c;
    --bg-card: rgba(13, 20, 38, 0.75);
    --bg-card-hover: rgba(18, 28, 54, 0.95);
    --border-color: rgba(255, 255, 255, 0.12);
    --border-glow: rgba(16, 185, 129, 0.4);
    
    --accent-emerald: #10b981;
    --accent-cyan: #06b6d4;
    --accent-indigo: #6366f1;
    --accent-purple: #8b5cf6;
    
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #cbd5e1;
    
    --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* Base Setup */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 100% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 0% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 40%);
    background-attachment: fixed;
}

/* Text Legibility & Contrast Overrides */
.text-muted {
    color: #cbd5e1 !important; /* High contrast light slate */
}

.text-secondary {
    color: #e2e8f0 !important; /* Crisp light grey */
}

.extra-small {
    font-size: 0.78rem;
    color: #93c5fd !important; /* Bright soft cyan tint */
    font-weight: 500;
}

/* Background Canvas */
#vfx-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.content-wrapper {
    position: relative;
    z-index: 1;
}

/* Typography Helpers */
.font-mono {
    font-family: var(--font-mono);
}

.text-gradient-emerald-cyan {
    background: linear-gradient(135deg, #34d399 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-cyan-indigo {
    background: linear-gradient(135deg, #22d3ee 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #fef08a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    border: 2px solid var(--bg-darker);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-emerald);
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

.glass-card:hover {
    border-color: rgba(6, 182, 212, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px -10px rgba(6, 182, 212, 0.25);
}

.glass-header {
    background: rgba(4, 6, 12, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Professional Header Navigation Links */
.navbar-nav .nav-link {
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #e2e8f0 !important;
    padding: 0.5rem 0.65rem !important;
    border-radius: 8px;
    transition: all 0.2s ease !important;
}

.navbar-nav .nav-link:hover {
    color: #34d399 !important;
    background: rgba(255, 255, 255, 0.05);
}

/* Cyber Glow Badges & Buttons */
.badge-cyber {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.badge-cyber-cyan {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.4);
    color: #22d3ee;
}

.badge-cyber-indigo {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    color: #818cf8;
}

.badge-cyber-gold {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

/* Animated Glow Dot */
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-emerald);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Primary VFX Buttons */
.btn-vfx-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 700;
    color: #04060c;
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    box-shadow: 0 6px 20px -4px rgba(16, 185, 129, 0.5);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-vfx-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -4px rgba(6, 182, 212, 0.6);
    color: #000000;
}

.btn-vfx-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-vfx-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-cyan);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Category Filter Tabs */
.tab-filter-btn {
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.tab-filter-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.tab-filter-btn.active {
    color: #04060c;
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 4px 15px -3px rgba(16, 185, 129, 0.4);
}

/* Project Card Layouts */
.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card .card-footer-action {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Proof of Work Table */
.pow-table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: rgba(7, 10, 19, 0.8);
}

.pow-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.pow-table th {
    padding: 16px 20px;
    background: rgba(13, 20, 38, 0.95);
    color: #22d3ee;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--border-color);
}

.pow-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.pow-table tr:hover td {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

/* Author Disambiguation Flowchart Card */
.disambiguation-node {
    background: rgba(13, 20, 38, 0.9);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 14px;
    padding: 16px;
    transition: all 0.3s ease;
}

.disambiguation-node:hover {
    border-color: var(--accent-emerald);
    transform: scale(1.01);
}

.arrow-connector {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #22d3ee;
    font-size: 1.2rem;
}

/* Code Preview Box for Schema JSON-LD */
.code-preview-box {
    background: #04060c;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #6ee7b7;
    overflow-x: auto;
    max-height: 400px;
}

/* Modal Drawer Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 6, 12, 0.88);
    backdrop-filter: blur(16px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content-box {
    background: #0d1426;
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: 24px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content-box {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .navbar-nav .nav-link {
        padding: 0.6rem 1rem !important;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    .btn-vfx-primary, .btn-vfx-outline {
        width: 100%;
        justify-content: center;
    }
    .pow-table th, .pow-table td {
        padding: 12px;
    }
}
