/* ==========================================================================
   MAURYA SHAH - EVENT HORIZON DIGITAL EXPERIENCE (REFINED UI & READABILITY)
   ========================================================================== */

:root {
    --bg-primary: #05070D;
    --bg-secondary: #0B1322;
    --bg-glass: rgba(10, 18, 28, 0.68);
    --bg-glass-hover: rgba(16, 26, 40, 0.84);
    
    --text-primary: #FFFFFF;
    --text-secondary: #D1DCED;
    --text-dim: #8fa0b8;

    /* Accretion Disk & Observatory Colors */
    --accent-glow: #DDEFFF;
    --warm-highlight: #C99763;
    --warm-glow-soft: rgba(201, 151, 99, 0.2);
    
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-glow: rgba(201, 151, 99, 0.35);
    
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --shadow-glass: 0 25px 60px rgba(0, 0, 0, 0.7);
    --shadow-warm-glow: 0 10px 30px rgba(201, 151, 99, 0.25);
}

/* Reset & Base Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
}

body.is-loading {
    overflow: hidden !important;
}

/* Fullscreen Gargantua Video Background */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

/* Vignette & Localized Readability Overlay */
.vignette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, rgba(5, 7, 13, 0.2) 0%, rgba(5, 7, 13, 0.55) 65%, rgba(5, 7, 13, 0.88) 100%);
    z-index: 1;
    pointer-events: none;
}

/* 3D Perspective Viewport */
.perspective-viewport {
    perspective: 1200px;
    transform-style: preserve-3d;
}

/* Continuous Scroll Laser Tracking Line */
.scroll-laser-line {
    position: fixed;
    top: 0;
    left: 8px;
    width: 2px;
    height: 0%;
    background: linear-gradient(180deg, var(--warm-highlight), var(--accent-glow));
    box-shadow: 0 0 10px var(--warm-highlight);
    z-index: 99;
    pointer-events: none;
    transition: height 0.1s linear;
}

/* Clip-Path Mask Container */
.mask-container {
    overflow: hidden;
    position: relative;
}

.mask-content {
    display: inline-block;
    will-change: transform, clip-path;
}

/* Lenis Smooth Scroll Setup */
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;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--warm-highlight);
    border-radius: 4px;
}

/* Native Cursor & Text Selection Setup */
body {
    cursor: auto !important;
}

a, button, input, textarea {
    cursor: pointer !important;
}

p, span, h1, h2, h3, h4, h5, h6, code, li {
    user-select: text !important;
    -webkit-user-select: text !important;
}

.custom-cursor {
    display: none !important;
    pointer-events: none !important;
}

/* Immersive Preloader Screen */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}

.preloader-curtain {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: #030407;
    z-index: 1;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.preloader-curtain.left { left: 0; }
.preloader-curtain.right { right: 0; }

.preloader-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    transition: opacity 0.4s ease;
}

.preloader-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.loader-ring {
    width: 140px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.ring-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--warm-highlight), var(--accent-glow));
    transition: width 0.1s ease;
}

.preloader-percent {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--warm-highlight);
}

.preloader-subtext {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
}

.music-question-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 15px;
    animation: fadeInPrompt 0.5s ease forwards;
}

.music-question-text {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.music-options {
    display: flex;
    gap: 16px;
}

.music-choice-btn {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    padding: 12px 28px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-yes {
    background: linear-gradient(135deg, var(--warm-highlight), #e6b882);
    color: #05070D;
    border: none;
    box-shadow: 0 0 20px rgba(201, 151, 99, 0.4);
}

.btn-yes:hover {
    transform: scale(1.06);
    box-shadow: 0 0 30px rgba(201, 151, 99, 0.8);
}

.btn-no {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
}

.btn-no:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.04);
}

/* Text Selection Styling */
::selection {
    background: var(--warm-highlight);
    color: #05070D;
}

/* Preloader Finished Fix */
.preloader.finished {
    pointer-events: none !important;
    visibility: hidden !important;
    display: none !important;
}

.preloader.finished .preloader-content {
    opacity: 0;
    pointer-events: none !important;
}

.preloader.finished .preloader-curtain.left {
    transform: translateX(-100%);
    pointer-events: none !important;
}

.preloader.finished .preloader-curtain.right {
    transform: translateX(100%);
    pointer-events: none !important;
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    position: relative;
    z-index: 2;
}

.padding-y {
    padding: 110px 0;
}

.bg-alt {
    background-color: rgba(10, 18, 28, 0.4);
    backdrop-filter: blur(14px);
}

/* Navigation Bar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 7, 13, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-glass);
    transition: transform 0.3s ease;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
}

.logo-dot {
    color: var(--warm-highlight);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-item {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-item:hover, .nav-item.active {
    color: var(--warm-highlight);
}

.nav-btn {
    font-family: var(--font-mono);
    background: rgba(201, 151, 99, 0.15);
    color: var(--text-primary);
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid var(--warm-highlight);
    box-shadow: var(--shadow-warm-glow);
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: var(--warm-highlight);
    color: #05070D;
    transform: translateY(-2px);
}

.audio-toggle-btn {
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    border: 1px solid var(--border-glass);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.audio-toggle-btn:hover {
    background: rgba(201, 151, 99, 0.15);
    border-color: var(--warm-highlight);
    color: var(--warm-highlight);
}

.audio-toggle-btn.playing {
    border-color: var(--warm-highlight);
    box-shadow: 0 0 10px rgba(201, 151, 99, 0.2);
}

.audio-toggle-btn.muted {
    opacity: 0.7;
    border-color: rgba(255, 255, 255, 0.15);
}

/* Mobile Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--warm-highlight);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Spacecraft Glass Panel UI Standard (Enhanced Opacity & Blur) */
.neo-card {
    position: relative;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 36px;
    box-shadow: var(--shadow-glass);
    transform-style: preserve-3d;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    will-change: transform;
}

.neo-card:hover {
    border-color: var(--border-glass-glow);
    background: var(--bg-glass-hover);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 25px rgba(201, 151, 99, 0.12);
}

/* Specular Glare Overlay */
.glare-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), transparent 65%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.neo-card:hover .glare-overlay {
    opacity: 1;
}

/* Hero Section (Left Composition Aligned for Gargantua visibility) */
.hero-section {
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 70px 0;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 40px;
    align-items: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(201, 151, 99, 0.12);
    border: 1px solid var(--warm-highlight);
    color: var(--warm-highlight);
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--warm-highlight);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--warm-highlight);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* High-Contrast Video Readability Protection */
.hero-title,
.hero-subtitle,
.hero-role,
.section-heading {
    color: #FFFFFF !important;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.95), 0 0 6px rgba(0, 0, 0, 0.9);
    position: relative;
    z-index: 10;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 5.2vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 10px;
}

.hero-role {
    font-family: var(--font-mono);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--warm-highlight) !important;
    letter-spacing: 1px;
    margin-bottom: 22px;
}

.hero-subtitle {
    font-size: 1.15rem;
    max-width: 580px;
    margin-bottom: 28px;
    line-height: 1.7;
}

/* Inverted text state when directly over bright white accretion disk */
.text-inverted {
    color: #05070D !important;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.9) !important;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-glass);
    background: rgba(10, 18, 28, 0.7);
    color: var(--accent-glow);
}

.hero-cta-group {
    display: flex;
    gap: 16px;
}

.btn {
    font-family: var(--font-mono);
    font-size: 0.92rem;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 50;
    border: 1px solid var(--border-glass);
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn * {
    pointer-events: none;
}

.btn-primary {
    background: var(--warm-highlight);
    color: #05070D;
    border-color: var(--warm-highlight);
    box-shadow: var(--shadow-warm-glow);
}

.btn-primary:hover {
    box-shadow: 0 12px 30px rgba(201, 151, 99, 0.4);
}

.btn-secondary {
    background: rgba(10, 18, 28, 0.7);
    color: var(--text-primary);
    border-color: var(--border-glass);
}

.btn-secondary:hover {
    border-color: var(--accent-glow);
    color: var(--accent-glow);
}

/* Terminal Widget */
.hero-widget {
    border-color: var(--border-glass);
    padding: 0;
    overflow: hidden;
}

.widget-header {
    background: rgba(5, 7, 13, 0.95);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-glass);
}

.window-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.widget-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.widget-body {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.code-line { color: var(--text-secondary); margin-bottom: 8px; }
.code-line .prompt { color: var(--warm-highlight); font-weight: 700; }
.code-output { margin-left: 12px; margin-bottom: 6px; font-weight: 600; }
.text-warm { color: var(--warm-highlight); }
.text-glow { color: var(--accent-glow); }
.text-secondary { color: var(--text-secondary); }

.code-block {
    background: rgba(5, 7, 13, 0.9);
    padding: 14px;
    border-radius: 8px;
    margin-top: 14px;
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
}

.widget-footer {
    padding: 14px 24px;
    background: rgba(5, 7, 13, 0.7);
    border-top: 1px solid var(--border-glass);
}

.badge-pill {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--warm-highlight);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 45px;
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    gap: 4px;
}

.scroll-indicator:hover {
    color: var(--warm-highlight);
}

/* Section Headings */
.section-tag {
    font-family: var(--font-mono);
    color: var(--warm-highlight);
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 3.8vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 50px;
    color: #FFFFFF;
    mix-blend-mode: difference;
}

.text-underline {
    text-decoration: underline;
    text-decoration-color: var(--warm-highlight);
    text-underline-offset: 6px;
}

/* About Section Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 30px;
}

.about-bio-card {
    position: relative;
}

.card-badge {
    position: absolute;
    top: -14px;
    right: 24px;
    background: var(--warm-highlight);
    color: #05070D;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
}

.bio-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 18px;
    line-height: 1.7;
}

.bio-text strong {
    color: var(--warm-highlight);
}

.focus-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.focus-pill {
    background: rgba(10, 18, 28, 0.7);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
}

.stats-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
}

.stat-plus {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--warm-highlight);
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 4px;
    color: var(--text-secondary);
}

/* Skills Constellation */
.constellation-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    background: rgba(5, 7, 13, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: var(--shadow-glass);
}

#skills-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.constellation-hint {
    position: absolute;
    bottom: 12px;
    left: 18px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--warm-highlight);
    pointer-events: none;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.skill-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.skill-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.skill-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.skill-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.skill-list li {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-list li::before {
    content: "•";
    color: var(--warm-highlight);
    font-size: 1.1rem;
}

/* Experience Section */
.experience-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.exp-card {
    position: relative;
}

.exp-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(201, 151, 99, 0.2);
    color: var(--warm-highlight);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--warm-highlight);
}

.exp-header h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.exp-year {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--warm-highlight);
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
}

.exp-desc {
    color: var(--text-secondary);
    max-width: 800px;
    line-height: 1.75;
}

/* Projects Section */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 40px;
}

.filter-btn {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 18px;
    background: rgba(10, 18, 28, 0.7);
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--warm-highlight);
    color: #05070D;
    border-color: var(--warm-highlight);
    transform: translateY(-2px);
}

.count-badge {
    background: rgba(0, 0, 0, 0.25);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-glass);
    transform-style: preserve-3d;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    overflow: hidden;
    will-change: transform, opacity;
}

.project-card:hover {
    border-color: var(--border-glass-glow);
    background: var(--bg-glass-hover);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 25px rgba(201, 151, 99, 0.12);
}

.project-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.project-index {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--warm-highlight);
}

.project-cat-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(5, 7, 13, 0.7);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
}

.project-card-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.project-card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.65;
}

.project-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 22px;
}

.ptag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: var(--text-primary);
}

.project-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-glass);
}

.project-link {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--warm-highlight);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.project-link:hover {
    color: var(--accent-glow);
}

.arch-btn {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: none;
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.arch-btn:hover {
    color: var(--warm-highlight);
    border-color: var(--warm-highlight);
}

.arch-block {
    display: none;
    margin-top: 14px;
    background: rgba(5, 7, 13, 0.95);
    padding: 12px;
    border-radius: 8px;
    border: 1px dashed var(--warm-highlight);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--warm-highlight);
    white-space: pre-wrap;
}

.arch-block.show {
    display: block;
}

/* Contact Section */
.contact-wrapper {
    max-width: 720px;
    margin: 0 auto;
}

.contact-info-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    will-change: transform, opacity;
}

.contact-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.contact-text {
    color: var(--text-secondary);
    margin-bottom: 26px;
    line-height: 1.7;
}

.quick-copy-box {
    background: rgba(5, 7, 13, 0.85);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.email-address {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--warm-highlight);
    font-size: 0.95rem;
}

.btn-copy {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(201, 151, 99, 0.2);
    color: var(--warm-highlight);
    border: 1px solid var(--warm-highlight);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-copy:hover {
    background: var(--warm-highlight);
    color: #05070D;
}

.social-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
    z-index: 20;
}

.social-pill {
    position: relative;
    z-index: 25;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(10, 18, 28, 0.75);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-pill span {
    pointer-events: none;
}

.social-pill:hover {
    border-color: var(--warm-highlight);
    color: var(--warm-highlight);
    background: rgba(201, 151, 99, 0.15);
    transform: translateY(-2px);
}

.genz-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--warm-highlight);
}

.form-group input, .form-group textarea {
    background: rgba(5, 7, 13, 0.9);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--warm-highlight);
    box-shadow: 0 0 15px rgba(201, 151, 99, 0.25);
}

.form-submit-btn {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

.form-feedback {
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-glass);
    padding: 40px 0;
    background: rgba(5, 7, 13, 0.95);
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    display: block;
    color: var(--warm-highlight);
}

.footer-sub {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.btn-top {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    border: 1px solid var(--border-glass);
    padding: 8px 14px;
    border-radius: 6px;
}

.btn-top:hover {
    border-color: var(--warm-highlight);
    color: var(--warm-highlight);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(5, 7, 13, 0.98);
        border-bottom: 1px solid var(--border-glass);
        flex-direction: column;
        padding: 30px 0;
        gap: 20px;
        clip-path: circle(0% at 100% 0);
        transition: clip-path 0.4s ease-in-out;
    }

    .nav-links.active {
        clip-path: circle(140% at 100% 0);
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

    .padding-y {
        padding: 60px 0;
    }

    .hero-cta-group {
        flex-direction: column;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        font-size: clamp(1.6rem, 7vw, 2.5rem) !important;
        word-break: normal;
        overflow-wrap: break-word;
        hyphens: manual;
        line-height: 1.15;
        letter-spacing: -0.5px;
    }

    .hero-title {
        font-size: clamp(2.2rem, 9vw, 3.5rem) !important;
        word-break: normal;
        overflow-wrap: break-word;
        line-height: 1.1;
    }

    .exp-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .exp-header h3 {
        padding-right: 80px; /* Prevent text running under absolute GRANT RECIPIENT badge */
        word-break: normal;
        overflow-wrap: break-word;
    }
}

@media (max-width: 480px) {
    .container {
        width: 92%;
    }

    .section-heading {
        font-size: clamp(1.4rem, 6.5vw, 2rem) !important;
        letter-spacing: 0px;
    }

    .exp-badge {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        display: inline-block;
        margin-bottom: 12px;
    }

    .exp-header h3 {
        padding-right: 0;
    }
}
