/* ==========================================================================
   PRASHANT. PORTFOLIO - FUTURISTIC AI / NEURAL SCI-FI DESIGN SYSTEM
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
    --bg-dark: #070609;
    --bg-dark-secondary: #0d0a12;
    --bg-card: rgba(18, 14, 25, 0.75);
    --bg-card-hover: rgba(28, 20, 38, 0.85);
    
    --accent-gold: #ffb703;
    --accent-gold-glow: rgba(255, 183, 3, 0.4);
    --accent-crimson: #ff2a5f;
    --accent-crimson-glow: rgba(255, 42, 95, 0.4);
    --accent-green: #00f090;
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(255, 42, 95, 0.3);
    
    --font-heading: 'Outfit', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- Global Reset & Backgrounds --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* --- Global Reset & Backgrounds --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        /* Subtle left gradient mask keeping left side dark for readability while artwork expands leftwards in 100% sharp clarity */
        linear-gradient(to right, #070609 0%, #070609 20%, rgba(7, 6, 9, 0.15) 42%, transparent 68%),
        url('assets/hero_bg.jpg');
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 84vw 100vh; /* Ultra-wide horizontal expansion leftwards */
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* --- Neural Background Canvas --- */
#neuralCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0 !important;
    pointer-events: none !important;
    opacity: 1 !important;
}

/* --- HUD Mode Grid Overlay --- */
.hud-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    background-image: 
        linear-gradient(to right, rgba(255, 42, 95, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 42, 95, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
}

body.hud-active .hud-grid-overlay {
    opacity: 1;
}

body.hud-active .glass-panel {
    border-color: rgba(255, 42, 95, 0.4) !important;
    box-shadow: 0 0 15px rgba(255, 42, 95, 0.2);
}

/* --- Utility Classes --- */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-gold) 60%, var(--accent-crimson) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gold { color: var(--accent-gold) !important; }
.text-crimson { color: var(--accent-crimson) !important; }
.text-green { color: var(--accent-green) !important; }

/* Sharp, High-Contrast Panel */
.glass-panel {
    background: rgba(13, 10, 18, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    position: relative;
    transition: var(--transition-smooth);
}

/* --- Navigation Bar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 1.5rem;
    background: rgba(7, 6, 9, 0.75);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(7, 6, 9, 0.96);
    border-bottom: 1px solid var(--border-color);
    padding: 0.95rem 1.5rem;
}

.nav-container {
    max-width: 1350px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    text-decoration: none;
}

.logo-dot {
    color: var(--accent-crimson);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.hud-toggle-btn {
    background: rgba(255, 42, 95, 0.1);
    border: 1px solid rgba(255, 42, 95, 0.3);
    color: var(--accent-crimson);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.hud-toggle-btn:hover {
    background: var(--accent-crimson);
    color: #fff;
    box-shadow: 0 0 15px var(--accent-crimson-glow);
}

/* --- Blinking Neon Pulsing Keyframes --- */
@keyframes neonBlink {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 183, 3, 0.9), 0 0 35px rgba(255, 42, 95, 0.7);
        border-color: var(--accent-gold);
        opacity: 1;
        transform: translateY(-3px) scale(1.03);
    }
    50% {
        box-shadow: 0 0 6px rgba(255, 183, 3, 0.2), 0 0 10px rgba(255, 42, 95, 0.15);
        border-color: rgba(255, 42, 95, 0.4);
        opacity: 0.85;
        transform: translateY(0px) scale(1);
    }
}

@keyframes panelBlink {
    0%, 100% {
        box-shadow: 0 0 25px rgba(255, 42, 95, 0.45), 0 0 15px rgba(255, 183, 3, 0.35);
        border-color: var(--accent-gold) !important;
    }
    50% {
        box-shadow: 0 0 6px rgba(255, 42, 95, 0.1), 0 0 4px rgba(255, 183, 3, 0.1);
        border-color: rgba(255, 255, 255, 0.15) !important;
    }
}

.btn-primary-sm {
    background: var(--accent-gold);
    color: #000;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-fast);
    border: 1px solid var(--accent-gold);
}

.btn-primary-sm:hover {
    animation: neonBlink 0.9s infinite ease-in-out;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 95vh;
    padding: 9rem 3rem 5rem 3rem;
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-container {
    display: grid;
    grid-template-columns: 290px minmax(320px, 580px);
    gap: 2.5rem;
    align-items: center;
    width: 100%;
    max-width: 900px;
}

.hero-subtitle-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 2.5px;
    color: var(--accent-gold);
    font-weight: 700;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1.6rem;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 1.18rem;
    color: var(--text-muted);
    max-width: 620px;
    margin-bottom: 2.2rem;
    line-height: 1.65;
}

.hero-buttons {
    display: flex;
    gap: 1.4rem;
    margin-bottom: 2.2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    transition: var(--transition-fast);
    cursor: pointer;
}

.btn-gold {
    background: var(--accent-gold);
    color: #08070b;
    border: 1px solid var(--accent-gold);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--accent-gold-glow);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-3px);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-green);
    animation: pulse 2s infinite;
}

.status-text {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.hero-socials {
    display: flex;
    gap: 1rem;
}

.social-icon-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-icon-circle:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--accent-gold-glow);
}

/* --- Hero Profile Card & Frame --- */
.hero-profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
}

.profile-frame {
    position: relative;
    width: 340px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(255, 42, 95, 0.4);
    box-shadow: 0 0 30px rgba(255, 42, 95, 0.25);
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    text-decoration: none;
}

.logo-dot {
    color: var(--accent-crimson);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hud-toggle-btn {
    background: rgba(255, 42, 95, 0.1);
    border: 1px solid rgba(255, 42, 95, 0.3);
    color: var(--accent-crimson);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.hud-toggle-btn:hover {
    background: var(--accent-crimson);
    color: #fff;
    box-shadow: 0 0 15px var(--accent-crimson-glow);
}

.btn-primary-sm {
    background: var(--accent-gold);
    color: #000;
    padding: 0.55rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.btn-primary-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--accent-gold-glow);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 92vh;
    padding: 8rem 2.5rem 4rem 2.5rem;
    display: flex;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.hero-subtitle-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255, 183, 3, 0.08);
    border: 1px solid rgba(255, 183, 3, 0.25);
    padding: 0.4rem 1rem;
    border-radius: 24px;
    margin-bottom: 1.4rem;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: var(--accent-gold);
    border-radius: 50%;
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 1.4px;
    color: var(--accent-gold);
    font-weight: 600;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.4rem;
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 580px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.9rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition-fast);
    cursor: pointer;
}

.btn-gold {
    background: var(--accent-gold);
    color: #08070b;
    border: 1px solid var(--accent-gold);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--accent-gold-glow);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.8rem;
}

.pulse-dot {
    width: 9px;
    height: 9px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulse 2s infinite;
}

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

.status-text {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.hero-socials {
    display: flex;
    gap: 0.9rem;
}

.social-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-icon-circle:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--accent-gold-glow);
}

/* --- Hero Profile Card & Frame --- */
.hero-profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
}

.profile-frame {
    position: relative;
    width: 300px;
    height: 360px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 42, 95, 0.35);
    box-shadow: 0 0 25px rgba(255, 42, 95, 0.2);
    transition: var(--transition-smooth);
}

.profile-frame:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 0 25px var(--accent-gold-glow);
}

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

.profile-hud-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(7, 6, 9, 0.85);
    backdrop-filter: blur(8px);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.hud-label { color: var(--text-muted); }
.hud-val { color: var(--accent-gold); font-weight: 700; }

.photo-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 6, 9, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    cursor: pointer;
    transition: var(--transition-fast);
}

.profile-frame:hover .photo-upload-overlay {
    opacity: 1;
}

.photo-upload-overlay i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-gold);
}

.hero-telemetry-panel {
    width: 100%;
    max-width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    font-family: var(--font-mono);
}

.panel-header {
    font-size: 0.75rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sys-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
}

.panel-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.panel-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
}

.p-label { color: var(--text-dim); }
.p-val { font-weight: 600; }

/* --- Sci-Fi HUD Telemetry Bar --- */
.hud-telemetry-bar {
    background: rgba(13, 10, 18, 0.95);
    border-y: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    font-family: var(--font-mono);
}

.telemetry-wrapper {
    max-width: 1350px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.tel-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.t-label { color: var(--text-muted); }
.t-value { font-weight: 700; color: #fff; }

/* --- Section Formatting --- */
.section-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-subtitle {
    font-family: var(--font-mono);
    color: var(--accent-crimson);
    font-size: 0.85rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
}

.title-line {
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
    margin-top: 0.8rem;
    border-radius: 2px;
}

/* --- Resume Matrix Grid (Education & Hackathons) --- */
.resume-matrix-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.matrix-card {
    padding: 2rem;
}

.matrix-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
}

.matrix-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.matrix-item {
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.m-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.m-date, .m-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.m-score {
    font-family: var(--font-mono);
    font-weight: 700;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.about-profile-card {
    display: flex;
    justify-content: center;
}

/* Pure Normal Neon Blink on Hover for About and Skills Cards */
.about-profile-card:hover, 
.about-card:hover, 
.matrix-card:hover,
.skill-category-card:hover,
.skill-item:hover,
.pill:hover {
    animation: panelBlink 0.8s infinite ease-in-out !important;
    transform: none !important;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.skill-category-card {
    padding: 2rem;
    transition: var(--transition-fast);
}

.about-card {
    padding: 2.5rem;
}

.about-heading {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;

}

.about-text {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.about-highlights {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.h-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.h-item i {
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.h-item h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.h-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.about-stats-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-box {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--accent-gold);
}

.stat-plus {
    font-size: 1.8rem;
    color: var(--accent-crimson);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.skill-category-card, .project-card {
    padding: 2rem;
    transition: transform 0.08s ease-out, box-shadow 0.25s ease, border-color 0.25s ease !important;
    transform-style: preserve-3d;
    will-change: transform;
}

.skill-category-card:hover, .project-card:hover {
    border-color: var(--accent-gold) !important;
    box-shadow: 0 15px 35px rgba(255, 42, 95, 0.2), 0 0 25px rgba(255, 183, 3, 0.15) !important;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.skill-cat-icon {
    font-size: 1.5rem;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    margin-bottom: 2rem;
}

.skill-item {
    padding: 0.5rem 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: transform 0.15s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
    cursor: pointer;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-crimson), var(--accent-gold));
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.15s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
    cursor: pointer;
}

.pill:hover {
    border-color: var(--accent-gold);
    color: #fff;
}

/* --- Projects Section & Animated Smooth Hover Cards --- */
.project-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent-gold);
    color: #08070b;
    border-color: var(--accent-gold);
    font-weight: 600;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2.5rem;
}

.project-card {
    display: flex !important;
    flex-direction: column !important;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    transform-style: preserve-3d;
}

.project-card.hidden {
    display: none !important;
}

/* Smooth 3D Hover Tilt & Glow */
.project-card:hover {
    transform: translateY(-8px) rotateX(2deg) scale(1.02);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 35px rgba(255, 183, 3, 0.15), 0 0 20px rgba(255, 42, 95, 0.1);
}

.project-thumb-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-img {
    transform: scale(1.08);
}

.project-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 6, 9, 0.94);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
    text-align: center;
}

.project-card:hover .project-hover-overlay {
    opacity: 1;
}

.hover-desc {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.4;
}

.project-actions {
    display: flex;
    gap: 0.8rem;
}

.btn-card-action {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-fast);
}

.btn-live {
    background: var(--accent-gold);
    color: #08070b;
}

.btn-live:hover {
    background: #fff;
}

.btn-code {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-code:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.project-details {
    padding: 1.8rem;
}

.project-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-crimson);
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #fff;
}

.project-summary {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;

}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

/* --- Social Media Handles Section --- */
.social-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}

.social-card {
    padding: 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition-fast);
}

.social-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 25px rgba(255, 183, 3, 0.1);
}

.social-card-icon {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: rgba(255, 255, 255, 0.05);
}

.social-card-icon.github { color: #fff; }
.social-card-icon.linkedin { color: #0077b5; }
.social-card-icon.email { color: var(--accent-gold); }
.social-card-icon.twitter { color: #1da1f2; }
.social-card-icon.instagram { color: #e1306c; }
.social-card-icon.facebook { color: #1877f2; }

.social-card-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.social-card-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.handle-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-crimson);
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
}

.contact-info {
    padding: 2.5rem;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.c-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.c-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.c-info-item i {
    font-size: 1.3rem;
}

.c-info-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.c-info-item span {
    font-size: 0.95rem;
}

.contact-info-card:hover, .contact-form-container:hover {
    animation: panelBlink 1s infinite ease-in-out;
}

.contact-form-container {
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px var(--accent-gold-glow);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* --- Project Detail Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 6, 9, 0.9);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--accent-crimson);
}

/* --- Toast Alert --- */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent-gold);
    color: #08070b;
    padding: 1rem 1.8rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 3000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px var(--accent-gold-glow);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* --- Footer --- */
.footer {
    background: rgba(7, 6, 9, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
}

.footer-container {
    max-width: 1350px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-left p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.live-clock {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-gold);
    background: rgba(255, 183, 3, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
}

.back-to-top {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-fast);
}

.back-to-top:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* --- Project Toolbar & Live Search Bar --- */
.project-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.project-search-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-left: auto;
    flex-wrap: wrap;
}

.project-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 320px;
    max-width: 100%;
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.project-search-input {
    width: 100%;
    padding: 0.75rem 1.2rem 0.75rem 2.8rem;
    background: rgba(13, 10, 18, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-fast);
}

.project-search-input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(255, 183, 3, 0.2);
}

.search-count-badge {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent-gold);
    background: rgba(255, 183, 3, 0.12);
    border: 1px solid rgba(255, 183, 3, 0.3);
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    white-space: nowrap;
}

/* --- Certificates & Achievements Section --- */
.certificates-section {
    padding: 6rem 0;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.cert-card {
    padding: 2rem;
    display: flex;
    gap: 1.4rem;
    align-items: flex-start;
    transition: var(--transition-fast);
}

.cert-card:hover {
    border-color: var(--accent-gold) !important;
    box-shadow: 0 0 20px rgba(255, 183, 3, 0.2);
}

.cert-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cert-content h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0.4rem 0 0.3rem 0;
}

.cert-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    display: inline-block;
    letter-spacing: 0.5px;
}

.cert-badge.gold {
    background: rgba(255, 183, 3, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(255, 183, 3, 0.3);
}

.cert-badge.crimson {
    background: rgba(255, 42, 95, 0.15);
    color: var(--accent-crimson);
    border: 1px solid rgba(255, 42, 95, 0.3);
}

.cert-issuer {
    font-size: 0.85rem;
    color: var(--accent-gold);
    margin-bottom: 0.6rem;
}

.cert-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Prashant AI Terminal Floating Trigger & Modal --- */
.ai-console-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999999 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    background: linear-gradient(135deg, var(--accent-crimson), #c71585);
    border: 1px solid var(--accent-gold);
    color: #fff;
    padding: 0.8rem 1.4rem;
    border-radius: 30px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 10px 25px rgba(255, 42, 95, 0.4), 0 0 15px rgba(255, 183, 3, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-console-toggle:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 15px 35px rgba(255, 42, 95, 0.6), 0 0 25px rgba(255, 183, 3, 0.5);
}

.ai-toggle-badge {
    letter-spacing: 1px;
}

.ai-console-modal {
    position: fixed;
    bottom: 5.5rem;
    right: 2rem;
    width: 440px;
    max-width: 92vw;
    height: 480px;
    background: rgba(7, 6, 9, 0.98);
    border: 1px solid var(--accent-gold);
    border-radius: 16px;
    z-index: 1000000 !important;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 183, 3, 0.3);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.ai-console-modal.show {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
}

.ai-console-header {
    background: rgba(255, 255, 255, 0.04);
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.terminal-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dots .red { background: #ff5f56; }
.terminal-dots .yellow { background: #ffbd2e; }
.terminal-dots .green { background: #27c93f; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-gold);
    letter-spacing: 1px;
}

.console-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
}

.console-close:hover {
    color: #fff;
}

.ai-console-body {
    flex: 1;
    padding: 1.2rem;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.5;
}

.console-log p {
    margin-bottom: 0.6rem;
}

.sys-msg {
    color: var(--text-muted);
}

.prompt-user {
    color: var(--accent-crimson);
    font-weight: 700;
}

.cmd-highlight {
    color: var(--accent-gold);
    font-weight: 700;
}

.user-cmd-msg {
    color: #fff;
    font-weight: 600;
}

.ai-resp-msg {
    color: #cbd5e1;
    border-left: 2px solid var(--accent-gold);
    padding-left: 0.6rem;
    margin-top: 0.4rem;
}

.ai-console-quick-chips {
    padding: 0.5rem 1.2rem;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.3);
}

.chip-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--accent-gold);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.chip-btn:hover {
    background: var(--accent-gold);
    color: #000;
}

.ai-console-footer {
    padding: 0.8rem 1.2rem;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.prompt-symbol {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-crimson);
    font-weight: 700;
}

#aiConsoleInput {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    outline: none;
}

#aiConsoleSend {
    background: var(--accent-gold);
    border: none;
    color: #000;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Neural Lab Section --- */
.neural-lab-section {
    padding: 6rem 0;
}

.neural-lab-card {
    padding: 2rem;
}

.neural-lab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.lab-title-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.lab-title-group h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
}

.lab-status-badge {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent-gold);
    background: rgba(255, 183, 3, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 183, 3, 0.25);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.neural-visualizer-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

.canvas-wrapper {
    width: 100%;
    height: 340px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

#neuralVisualizerCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.lab-controls-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.lab-controls-panel h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.control-group label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.control-group input[type="range"] {
    width: 100%;
    accent-color: var(--accent-gold);
}

.lab-action-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.telemetry-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    display: flex;
    justify-content: space-between;
}

/* --- Hackathon Timeline Roadmap --- */
.timeline-roadmap-wrapper {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.timeline-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    position: relative;
}

.timeline-item {
    background: rgba(13, 10, 18, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.4rem;
    border-radius: 12px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: var(--transition-fast);
}

.timeline-item:hover, .timeline-item.active {
    border-color: var(--accent-gold);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(255, 183, 3, 0.25);
}

.timeline-item.active {
    background: rgba(255, 183, 3, 0.12) !important;
}

.timeline-detail-box {
    margin-top: 1.8rem;
    padding: 1.5rem 2rem;
    border: 1px solid var(--accent-gold);
    border-radius: 14px;
    background: rgba(13, 10, 18, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.t-detail-badge {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent-gold);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-detail-box h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.timeline-detail-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.t-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.6rem;
}

.t-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 0.8rem;
}

.t-dot.gold { background: var(--accent-gold); box-shadow: 0 0 10px var(--accent-gold); }
.t-dot.crimson { background: var(--accent-crimson); box-shadow: 0 0 10px var(--accent-crimson); }

.t-dot.trophy-dot {
    width: 28px;
    height: 28px;
    background: var(--accent-gold);
    color: #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 0 15px var(--accent-gold);
}

.timeline-item h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.timeline-item p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.winner-item {
    border-color: var(--accent-gold) !important;
    background: rgba(255, 183, 3, 0.08) !important;
}

/* --- GitHub Telemetry Card --- */
.github-telemetry-card {
    margin-top: 3rem;
    padding: 2rem;
}

.gh-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.gh-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
}

.gh-user h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin: 0;
}

.gh-handle {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-gold);
    text-decoration: none;
}

.gh-status-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-green);
    background: rgba(39, 201, 63, 0.1);
    border: 1px solid rgba(39, 201, 63, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.gh-stats-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.gh-stat-pill {
    display: flex;
    flex-direction: column;
}

.g-num {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
}

.g-lbl {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.gh-lang-bar-container {
    margin-top: 1rem;
}

.lang-lbl {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.6rem;
}

.lang-bar {
    height: 10px;
    border-radius: 5px;
    display: flex;
    overflow: hidden;
    margin-bottom: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
}

.segment.py { background: var(--accent-gold); }
.segment.js { background: var(--accent-crimson); }
.segment.c { background: #3572A5; }

.lang-legend {
    display: flex;
    gap: 1.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.leg-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dot-py { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-gold); }
.dot-js { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-crimson); }
.dot-c { width: 8px; height: 8px; border-radius: 50%; background: #3572A5; }

/* --- Floating AI Chatbot Avatar Widget (Bottom-Left) --- */
.ai-chat-toggle {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 999999 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    background: linear-gradient(135deg, var(--accent-gold), #e0a906);
    border: 1px solid #fff;
    color: #000;
    padding: 0.8rem 1.4rem;
    border-radius: 30px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 10px 25px rgba(255, 183, 3, 0.4), 0 0 15px rgba(255, 42, 95, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-chat-toggle:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 15px 35px rgba(255, 183, 3, 0.6), 0 0 25px rgba(255, 42, 95, 0.5);
}

.ai-chat-modal {
    position: fixed;
    bottom: 5.5rem;
    left: 2rem;
    width: 380px;
    max-width: 92vw;
    height: 460px;
    background: rgba(7, 6, 9, 0.98);
    border: 1px solid var(--accent-gold);
    border-radius: 16px;
    z-index: 1000000 !important;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 183, 3, 0.3);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.ai-chat-modal.show {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
}

.ai-chat-header {
    background: rgba(255, 255, 255, 0.04);
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-avatar-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.avatar-circle {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-gold);
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent-green);
}

.chat-avatar-title h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    margin: 0;
}

.avatar-subtitle {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-gold);
}

.chat-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
}

.chat-close:hover { color: #fff; }

.ai-chat-body {
    flex: 1;
    padding: 1.2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.chat-bubble {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.5;
    max-width: 85%;
}

.chat-bubble.ai-msg {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    align-self: flex-start;
    border-top-left-radius: 2px;
}

.chat-bubble.user-msg {
    background: var(--accent-gold);
    color: #000;
    font-weight: 600;
    align-self: flex-end;
    border-top-right-radius: 2px;
}

.ai-chat-presets {
    padding: 0.5rem 1rem;
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.3);
}

.preset-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 183, 3, 0.3);
    color: var(--accent-gold);
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
    border-radius: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.preset-chip:hover {
    background: var(--accent-gold);
    color: #000;
}

.ai-chat-footer {
    padding: 0.8rem 1.2rem;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

#aiChatInput {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
}

#aiChatSend {
    background: var(--accent-gold);
    border: none;
    color: #000;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Comprehensive Mobile & Desktop Responsive Design System --- */

/* Base Safeguards */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Base WhatsApp Floating Button (Desktop) */
.whatsapp-float-btn {
    position: fixed;
    bottom: 2rem;
    left: 16.5rem;
    z-index: 999999 !important;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5), 0 0 20px rgba(18, 140, 126, 0.4);
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float-btn:hover {
    transform: scale(1.15) rotate(8deg);
    color: #ffffff !important;
}

.whatsapp-bubble-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #25D366;
    opacity: 0.8;
    animation: whatsappBubble 2s infinite ease-out;
    pointer-events: none;
}

.whatsapp-bubble-ring.delay {
    animation-delay: 1s;
}

@keyframes whatsappBubble {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    100% {
        width: 190%;
        height: 190%;
        opacity: 0;
        box-shadow: 0 0 25px 15px rgba(37, 211, 102, 0);
    }
}

.whatsapp-tooltip {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(7, 6, 9, 0.95);
    border: 1px solid #25D366;
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.whatsapp-float-btn:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Breakpoint 1200px (Laptops & Desktops) */
@media (max-width: 1200px) {
    .nav-container {
        padding: 0 1.5rem;
    }
    .hero-container {
        gap: 2rem;
    }
    .about-grid, .contact-grid {
        gap: 2.5rem;
    }
}

/* Breakpoint 992px (Tablets & Medium Screens) */
@media (max-width: 992px) {
    body {
        background-size: cover;
        background-position: center top;
    }
    
    .navbar {
        padding: 1rem 1.25rem;
    }
    .navbar.scrolled {
        padding: 0.8rem 1.25rem;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--border-color);
        border-radius: 10px;
        color: #fff;
        font-size: 1.25rem;
        cursor: pointer;
        transition: var(--transition-fast);
    }

    .mobile-toggle:hover, .mobile-toggle.active {
        background: rgba(255, 42, 95, 0.2);
        border-color: var(--accent-crimson);
        color: var(--accent-gold);
    }

    .nav-menu {
        position: fixed;
        top: 66px;
        left: 0;
        width: 100vw;
        background: rgba(7, 6, 9, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: center;
        padding: 2.2rem 1.5rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-glow);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
        display: flex !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-20px);
        transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 9999;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-link {
        font-size: 1.15rem;
        font-weight: 600;
        width: 100%;
        text-align: center;
        padding: 0.6rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .hero-section {
        min-height: auto;
        padding: 7.5rem 1.5rem 4rem 1.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(2.2rem, 5vw, 3.2rem);
    }

    .hero-description {
        margin: 0 auto 2rem auto;
        max-width: 680px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .status-indicator {
        justify-content: center;
    }

    .hero-socials {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

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

    .skills-grid, .projects-grid, .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Breakpoint 768px (Mobile & Small Tablets) */
@media (max-width: 768px) {
    .section-title {
        font-size: clamp(1.8rem, 4.5vw, 2.5rem);
    }

    .hero-section {
        padding: 6.5rem 1.25rem 3.5rem 1.25rem;
    }

    .hero-title {
        font-size: clamp(1.85rem, 6vw, 2.6rem);
    }

    .skills-grid, .projects-grid, .certificates-grid, .socials-grid {
        grid-template-columns: 1fr;
    }

    .skills-filter, .projects-filter {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .skills-filter-btn, .projects-filter-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
    }

    /* Modal Mobile Adaptations */
    .modal-content {
        max-width: 95vw;
        max-height: 88vh;
        padding: 1.5rem 1.2rem;
        border-radius: 14px;
    }

    /* Floating Triggers & AI Modals layout on Mobile */
    .ai-chat-toggle {
        bottom: 1rem !important;
        left: 1rem !important;
        padding: 0.65rem 1rem !important;
        font-size: 0.78rem !important;
    }

    .ai-console-toggle {
        bottom: 1rem !important;
        right: 1rem !important;
        padding: 0.65rem 1rem !important;
        font-size: 0.78rem !important;
    }

    .whatsapp-float-btn {
        bottom: 4.8rem !important;
        left: 1rem !important;
        width: 46px !important;
        height: 46px !important;
        font-size: 1.5rem !important;
    }

    .ai-chat-modal, .ai-console-modal {
        left: 50% !important;
        right: auto !important;
        bottom: 1rem !important;
        width: 94vw !important;
        max-width: 440px !important;
        height: 75vh !important;
        max-height: 500px !important;
        transform: translateX(-50%) translateY(20px) scale(0.95) !important;
    }

    .ai-chat-modal.show, .ai-console-modal.show {
        transform: translateX(-50%) translateY(0) scale(1) !important;
    }
}

/* Breakpoint 480px (Small Mobile Phones) */
@media (max-width: 480px) {
    .navbar {
        padding: 0.85rem 1rem;
    }

    .hud-btn-text {
        display: none;
    }

    .hud-toggle-btn {
        padding: 0.5rem 0.75rem;
    }

    .btn-primary-sm {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

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

    .contact-form {
        padding: 1.25rem;
    }

    /* Prevent Safari Auto-Zoom on Input Focus */
    input[type="text"],
    input[type="email"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* ==========================================================================
   PORTFOLIO PRO UPGRADES DESIGN SYSTEM (p2- PREFIXED STYLES)
   ========================================================================== */

/* --- Recruiter Mode Toggle Buttons --- */
.p2-recruiter-toggle-btn {
    background: rgba(255, 183, 3, 0.12);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-fast);
}

.p2-recruiter-toggle-btn:hover {
    background: var(--accent-gold);
    color: #000;
    box-shadow: 0 0 15px var(--accent-gold-glow);
}

body.p2-recruiter-mode-active .p2-recruiter-toggle-btn {
    background: var(--accent-crimson);
    border-color: var(--accent-crimson);
    color: #fff;
}

.project-card.p2-recruiter-highlight {
    border-color: var(--accent-gold) !important;
    box-shadow: 0 0 20px var(--accent-gold-glow) !important;
}

/* --- Recruiter Hero Briefing Banner --- */
.p2-recruiter-banner {
    max-width: 1350px;
    margin: 2rem auto 1.5rem auto;
    padding: 2rem;
    border: 1px solid var(--accent-gold);
    box-shadow: 0 0 25px rgba(255, 183, 3, 0.2);
    animation: p2FadeDown 0.4s ease-out;
}

@keyframes p2FadeDown {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

.p2-rec-banner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.8rem;
}

.p2-rec-badge {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 1px;
}

.p2-btn-exit-recruiter {
    background: transparent;
    border: 1px solid var(--accent-crimson);
    color: var(--accent-crimson);
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.p2-btn-exit-recruiter:hover {
    background: var(--accent-crimson);
    color: #fff;
}

.p2-rec-banner-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2rem;
}

.p2-rec-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
    color: var(--text-main);
}

.p2-rec-intro {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.p2-rec-status {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.p2-rec-skills-wrapper h4,
.p2-rec-col-side h4 {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-gold);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.p2-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.p2-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-main);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.p2-rec-actions {
    display: flex;
    gap: 1rem;
}

.p2-rec-achievements-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.p2-rec-achieve-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.8rem 1rem;
    border-radius: 10px;
    border-left: 3px solid var(--accent-gold);
}

.p2-rec-achieve-item strong {
    font-size: 0.88rem;
    color: var(--text-main);
    display: block;
    margin-bottom: 0.2rem;
}

.p2-rec-achieve-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* --- Case Study Modal --- */
.p2-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.p2-modal-content {
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.9);
    overflow: hidden;
    padding: 0;
}

.p2-cs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(7, 6, 9, 0.95);
    border-bottom: 1px solid var(--border-color);
}

.p2-cs-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-gold);
    background: rgba(255, 183, 3, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 1px;
}

.p2-cs-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-top: 0.3rem;
}

.p2-cs-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.p2-cs-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

.p2-cs-close-btn:hover {
    color: var(--accent-crimson);
}

.p2-cs-body-scroll {
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.p2-cs-section {
    padding: 1.5rem;
}

.p2-cs-section h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.p2-cs-lead {
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.p2-cs-subtext {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.p2-cs-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    font-size: 0.88rem;
}

.p2-cs-meta-grid strong {
    color: var(--accent-gold);
    display: block;
    margin-bottom: 0.3rem;
}

.p2-cs-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.p2-cs-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.p2-cs-feature-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    line-height: 1.4;
}

.p2-cs-stack-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.88rem;
}

.p2-cs-stack-list strong {
    color: var(--accent-gold);
    width: 110px;
    display: inline-block;
}

.p2-cs-challenge-box {
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    border-left: 3px solid var(--accent-crimson);
}

.p2-cs-challenge-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    line-height: 1.4;
}

.p2-cs-result-box {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    background: rgba(0, 240, 144, 0.08);
    border: 1px solid var(--accent-green);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.p2-cs-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* --- Interactive Architecture Diagrams --- */
.p2-arch-flow-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.p2-arch-nodes-column {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.p2-arch-node-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.p2-arch-node {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.p2-arch-node:hover,
.p2-arch-node.active {
    border-color: var(--accent-gold);
    background: rgba(255, 183, 3, 0.1);
    box-shadow: 0 0 15px rgba(255, 183, 3, 0.2);
}

.p2-arch-node .node-index {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-gold);
    background: rgba(0, 0, 0, 0.5);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.p2-arch-arrow {
    color: var(--accent-gold);
    font-size: 0.8rem;
    margin: 0.2rem 0;
}

.p2-arch-detail-panel {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--accent-gold);
    padding: 1.2rem;
    border-radius: 12px;
}

.p2-arch-detail-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-gold);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.p2-arch-detail-panel h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.p2-arch-detail-panel p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Mini Project Demos --- */
.p2-demo-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    padding: 1.2rem;
    border-radius: 12px;
}

.p2-demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.p2-demo-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    background: rgba(0, 240, 144, 0.15);
    color: var(--accent-green);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.p2-demo-timer-box {
    text-align: center;
    margin-bottom: 1rem;
}

.p2-timer-display {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 2px;
}

.p2-demo-blocklist {
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.p2-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.p2-demo-log {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-gold);
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
}

.p2-demo-symptom-chips,
.p2-demo-img-selector,
.p2-demo-role-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.p2-chip-btn,
.p2-img-btn,
.p2-role-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.p2-chip-btn.active,
.p2-img-btn.active,
.p2-role-tab.active {
    border-color: var(--accent-gold);
    background: rgba(255, 183, 3, 0.15);
    color: var(--accent-gold);
}

.p2-disclaimer-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: rgba(255, 42, 95, 0.1);
    border: 1px solid var(--accent-crimson);
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.8rem;
}

.p2-dash-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.p2-dash-card {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.p2-dash-card span {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
    font-family: var(--font-mono);
}

.p2-dash-card strong {
    font-size: 1.1rem;
    color: var(--accent-gold);
}

.p2-demo-deta-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.p2-deta-item {
    display: flex;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.6rem 0.9rem;
    border-radius: 6px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.p2-deta-item span {
    color: var(--accent-gold);
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

/* --- Engineering Challenges Section (Feature 5) --- */
.p2-challenges-section {
    padding: 5rem 0;
}

.p2-challenges-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.p2-challenge-card {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.p2-challenge-card:hover {
    border-color: rgba(255, 183, 3, 0.4);
}

.p2-challenge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.p2-ch-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.p2-ch-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-gold);
    letter-spacing: 0.5px;
}

.p2-challenge-header h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.p2-ch-project {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.p2-ch-toggle-btn {
    background: none;
    border: none;
    color: var(--accent-gold);
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.p2-challenge-card.expanded .p2-ch-toggle-btn {
    transform: rotate(180deg);
}

.p2-challenge-body {
    display: none;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    animation: p2FadeDown 0.3s ease;
}

.p2-challenge-card.expanded .p2-challenge-body {
    display: flex;
}

.p2-ch-detail-item strong {
    font-size: 0.88rem;
    display: block;
    margin-bottom: 0.2rem;
}

.p2-ch-detail-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Case Study Button on Project Cards --- */
.btn-case-study.p2-btn-cs {
    background: rgba(255, 183, 3, 0.15);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn-case-study.p2-btn-cs:hover {
    background: var(--accent-gold);
    color: #000;
}

/* --------------------------------------------------------------------------
   COMPREHENSIVE 100% MOBILE RESPONSIVENESS SYSTEM
   -------------------------------------------------------------------------- */

/* Global Anti-Overflow */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Breakpoint 1024px & Below */
@media (max-width: 1024px) {
    .p2-rec-banner-grid {
        grid-template-columns: 1fr;
    }

    .p2-cs-grid-2col {
        grid-template-columns: 1fr;
    }

    .p2-arch-flow-grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem;
    }

    .p2-arch-nodes-column {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: flex-start;
    }

    .p2-arch-node-item {
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }

    .p2-arch-arrow {
        transform: rotate(-90deg);
        margin: 0;
    }

    .p2-arch-node {
        width: auto !important;
        min-width: 110px;
        padding: 0.45rem 0.85rem !important;
        font-size: 0.82rem !important;
    }
}

/* Breakpoint 768px (Mobile & Small Tablets) */
@media (max-width: 768px) {
    section {
        padding: 3.5rem 1rem !important;
    }

    .section-title {
        font-size: 1.85rem !important;
        margin-bottom: 2rem !important;
    }

    .hero-section {
        padding: 5.5rem 1rem 3rem 1rem !important;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .projects-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .project-card {
        margin: 0 !important;
    }

    .project-img-wrapper {
        height: 200px !important;
    }

    .project-actions {
        flex-direction: column;
        gap: 0.6rem;
    }

    .project-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Modal Overlays Mobile Adaptations */
    .p2-modal-overlay, .p2-cs-modal {
        padding: 0.4rem !important;
    }

    .p2-modal-content, .p2-cs-modal-content {
        width: 98vw !important;
        max-width: 98vw !important;
        max-height: 94vh !important;
        padding: 1.2rem 1rem !important;
        border-radius: 14px !important;
        box-sizing: border-box !important;
        margin: auto !important;
    }

    .p2-cs-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .p2-cs-header-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .p2-cs-header-actions .btn {
        flex: 1 1 calc(50% - 0.4rem);
        justify-content: center;
        text-align: center;
        font-size: 0.8rem;
        padding: 0.5rem 0.6rem;
    }

    .p2-cs-grid-2col, .p2-cs-meta-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .p2-cs-footer-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .p2-cs-footer-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .p2-arch-detail-panel {
        padding: 1rem !important;
    }

    .p2-arch-img-preview img {
        height: 180px !important;
    }

    .p2-dash-grid {
        grid-template-columns: 1fr !important;
    }

    .p2-role-tab {
        flex: 1 1 calc(50% - 0.4rem) !important;
        font-size: 0.8rem !important;
        padding: 0.5rem 0.6rem !important;
        text-align: center !important;
        justify-content: center !important;
    }

    #p2CustomResumePreview {
        padding: 1rem !important;
    }

    .ai-chat-toggle, .ai-console-toggle {
        font-size: 0.75rem !important;
        padding: 0.6rem 0.9rem !important;
    }
}

/* Breakpoint 480px (Small Mobile Screens) */
@media (max-width: 480px) {
    .p2-cs-modal-content h2, .p2-rec-title, .p2-cs-title {
        font-size: 1.35rem !important;
    }

    .p2-cs-header-actions .btn {
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    .p2-role-tab {
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    .p2-pill {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.5rem !important;
    }

    .p2-cs-modal-content button, 
    .p2-cs-modal-content a.btn {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .skills-filter-btn, .projects-filter-btn {
        padding: 0.4rem 0.7rem !important;
        font-size: 0.75rem !important;
    }
}

