* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent: #10b981;
    --bg-dark: #070b12;
    --surface-dark: #0f172a;
    --border-dark: rgba(255, 255, 255, 0.08);
    --text-muted: #94a3b8;
    --text-heading-dark: #f8fafc;
    --cyan: #00e5ff;
    --highlight: #3b82f6;
    --purple: #8b5cf6;
    --amber: #f59e0b;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-dark);
    color: var(--text-muted);
    font-family: 'Work Sans', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* Praneeth-Style Morphing Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.5s ease-out;
}

.pattern-white-grid {
    position: relative;
    background-color: #ffffff !important;
}

.pattern-white-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(15, 23, 42, 0.06) 1.2px, transparent 1.2px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1.2px, transparent 1.2px);
    background-size: 38px 38px;
    mask-image: linear-gradient(180deg, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 10%, black 90%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.solid-void-contact {
    background: #050811 !important;
    position: relative;
}

/* Custom Interactive Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--cyan);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.1s ease-out;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
}

.cursor.expand {
    transform: scale(2.2);
    border-color: var(--accent);
    background: rgba(16, 185, 129, 0.15);
}

/* Top Bar */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(15px);
    background: rgba(7, 11, 18, 0.85);
    border-bottom: 1px solid var(--border-dark);
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--text-heading-dark);
    letter-spacing: 0.5px;
    font-size: 1.2rem;
}

.live-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-indicator {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
}

/* Full Viewport Sections */
.stage,
.hero-stage,
.about,
.certifications-section,
.skills-section,
.projects,
.contact {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 6rem 3rem;
}

.projects {
    height: auto !important;
    min-height: 100vh;
    padding: 7rem 2rem;
}

/* ========================================================
   SECTION 1: REGGIE STAGE (HOME)
   ======================================================== */
.stage {
    background: radial-gradient(circle at 50% 30%, #0f172a 0%, #070b12 85%) !important;
    align-items: center;
    overflow: hidden;
    padding-top: 50px;
}

.stage-bgtext {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 900;
    font-size: clamp(15vw, 21vw, 24vw);
    line-height: 1;
    letter-spacing: -0.03em;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent);
    -webkit-background-clip: text;
    background-clip: text;
    white-space: nowrap;
    user-select: none;
    z-index: 1;
    text-align: center;
    animation: bgBreathe 8s ease-in-out infinite;
}

@keyframes bgBreathe {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.02); }
}

.stage-center-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stage-title-group {
    position: absolute;
    top: calc(50% - 13vw);
    left: max(5vw, calc(50% - 42vw));
    z-index: 5;
    pointer-events: none;
}

.stage-hey {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: lowercase;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .stage-title-group {
        top: calc(50% - 20vw);
        left: 8vw;
    }
}

.stage-footer-group {
    display: flex;
    justify-content: center;
    margin-top: 1.2rem;
    z-index: 4;
}

.stage-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--cyan);
    letter-spacing: 2px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.25);
    padding: 0.5rem 1.6rem;
    border-radius: 100px;
    text-transform: lowercase;
    white-space: nowrap;
}

.stage-avatar-wrap {
    width: min(75vw, 420px);
    animation: avatarFloat 6s ease-in-out infinite;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
    will-change: transform;
}

@keyframes avatarFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

.stage-avatar {
    width: 100%;
    height: auto;
    display: block;
}

.scroll-indicator {
    position: absolute;
    bottom: 5.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 2px;
}

.scroll-line {
    width: 2px;
    height: 38px;
    background: linear-gradient(180deg, var(--cyan), transparent);
    animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
    0% { opacity: 0.2; height: 10px; }
    50% { opacity: 1; height: 38px; }
    100% { opacity: 0.2; height: 10px; }
}

/* ========================================================
   SECTION 2: INTRO (PURE WHITE BACKGROUND)
   ======================================================== */
.white-intro-section {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

.hero-stage {
    display: grid;
    grid-template-columns: 1.15fr 1.15fr 1.15fr;
    align-items: center;
    gap: 2.5rem;
}

.white-intro-section h1 {
    color: #0a0e17 !important;
    font-weight: 900;
}

.white-intro-section .highlight {
    background: linear-gradient(135deg, #0284c7 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(2, 132, 199, 0.2));
}

.white-intro-section .hero-intro p {
    color: #1e293b !important;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.85;
}

.inline-token {
    display: inline-block;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
    font-size: 0.95em;
    letter-spacing: 0.2px;
}
.token-py { color: #0284c7; background: #e0f2fe; }
.token-c { color: #6366f1; background: #eef2ff; }
.token-kali { color: #0f766e; background: #ccfbf1; }
.token-nmap { color: #c2410c; background: #ffedd5; }
.token-ws { color: #2563eb; background: #dbeafe; }
.token-burp { color: #ea580c; background: #ffedd5; }
.token-zap { color: #1d4ed8; background: #eff6ff; }

.white-intro-section .terminal-badge {
    color: #0369a1;
    background: #e0f2fe;
    border: 1.5px solid #7dd3fc;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
}

.white-intro-section .cta-button-secondary {
    color: #0f172a;
    border: 2px solid #0f172a;
    font-weight: 700;
}

.white-intro-section .cta-button-secondary:hover {
    background: #0f172a;
    color: #ffffff;
}

.white-intro-section .stats-bar {
    border-top: 1.5px solid #e2e8f0;
}

.stat-number.stat-cyan {
    background: linear-gradient(135deg, #0284c7, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-number.stat-emerald {
    background: linear-gradient(135deg, #059669, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-number.stat-indigo {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.white-intro-section .stat-label {
    color: #475569;
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.cta-button {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.8rem 1.6rem;
    border-radius: 100px;
    background: var(--accent);
    color: #ffffff;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
}

.stats-bar {
    display: flex;
    gap: 2.5rem;
    padding-top: 1.5rem;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.3rem;
    font-weight: 800;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 3D Tool Platform */
.isometric-center-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1800px;
    overflow: visible;
}

.iso-platform-wrapper {
    position: relative;
    width: 380px;
    height: 380px;
    transform-style: preserve-3d;
    transform: rotateX(46deg) rotateZ(-28deg);
    transition: transform 0.5s ease;
    overflow: visible;
}

.iso-platform-wrapper:hover {
    transform: rotateX(40deg) rotateZ(-22deg);
}

.iso-base-slab {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #090e18, #182234);
    border-radius: 40px;
    border: 2px solid rgba(2, 132, 199, 0.45);
    box-shadow: 
        -25px 35px 60px rgba(15, 23, 42, 0.25),
        0 0 40px rgba(2, 132, 199, 0.15);
    transform-style: preserve-3d;
    overflow: visible;
}

.iso-grid-lines {
    position: absolute;
    inset: 14px;
    border-radius: 30px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
}

.iso-tool-card {
    position: absolute;
    width: 90px;
    height: 96px;
    transform-style: preserve-3d;
    cursor: pointer;
    transform: translateZ(50px);
    transition: transform 0.3s ease;
    overflow: visible;
}

.iso-tool-card:hover {
    transform: translateZ(70px) scale(1.1);
}

.card-glass-body {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transform: rotateX(-46deg) rotateY(28deg);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    overflow: visible;
}

.tool-svg {
    width: 50px;
    height: 50px;
    display: block;
}

.card-kali {
    top: 10%;
    left: 38%;
    animation: isoLevitate 5s ease-in-out infinite;
}
.card-kali .card-glass-body {
    border-color: rgba(0, 229, 255, 0.9);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.4);
}

.card-nmap {
    top: 36%;
    left: 8%;
    animation: isoLevitate 5.2s ease-in-out infinite 0.7s;
}
.card-nmap .card-glass-body {
    border-color: rgba(255, 123, 0, 0.9);
    box-shadow: 0 0 25px rgba(255, 123, 0, 0.4);
}

.card-wireshark {
    top: 36%;
    left: 66%;
    animation: isoLevitate 5.8s ease-in-out infinite 1.4s;
}
.card-wireshark .card-glass-body {
    border-color: rgba(36, 158, 255, 0.9);
    box-shadow: 0 0 25px rgba(36, 158, 255, 0.4);
}

.card-burp {
    top: 66%;
    left: 8%;
    animation: isoLevitate 6s ease-in-out infinite 2.1s;
}
.card-burp .card-glass-body {
    border-color: rgba(255, 107, 53, 0.9);
    box-shadow: 0 0 25px rgba(255, 107, 53, 0.4);
}

.card-zap {
    top: 66%;
    left: 58%;
    animation: isoLevitate 5.5s ease-in-out infinite 2.8s;
}
.card-zap .card-glass-body {
    border-color: rgba(59, 130, 246, 0.9);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.4);
}

@keyframes isoLevitate {
    0%, 100% { transform: translateZ(50px) translateY(0); }
    50% { transform: translateZ(50px) translateY(-10px); }
}

/* Terminal Window */
.hero-terminal-wrap {
    perspective: 1000px;
}

.terminal-window {
    background: #090e18;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
    transform: rotateY(-6deg) rotateX(4deg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.terminal-window:hover {
    transform: rotateY(0) rotateX(0);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

.terminal-header {
    background: #111827;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.term-btn { width: 11px; height: 11px; border-radius: 50%; }
.term-btn.red { background: #ef4444; }
.term-btn.yellow { background: #eab308; }
.term-btn.green { background: #22c55e; }

.term-title {
    margin-left: auto;
    margin-right: auto;
    color: #64748b;
    font-size: 0.8rem;
}

.terminal-body {
    padding: 20px;
    color: #a7f3d0;
    font-size: 0.88rem;
    height: 310px;
    overflow-y: auto;
}

.term-user { color: var(--purple); font-weight: bold; }
.term-output { margin: 6px 0 14px 0; color: #cbd5e1; }
.cursor-blink {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: var(--accent);
    vertical-align: middle;
    margin-left: 4px;
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ========================================================
   SECTION 3: EDUCATION
   ======================================================== */
.education-section {
    position: relative;
    overflow: hidden;
}

.section-heading-wrap {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.2rem, 3.5vw, 3.2rem);
    font-weight: 800;
    color: var(--text-heading-dark);
    margin-bottom: 0.6rem;
}

.section-sub {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 300;
}

.timeline-container {
    position: relative;
    max-width: 900px;
    width: 100%;
    height: 280px; 
    margin: 3rem auto 6rem auto;
}

.route-path {
    position: absolute;
    top: 40px; 
    left: 0;
    width: 100%;
    height: 140px; 
    z-index: 1;
    pointer-events: none;
}

.route-path path {
    animation: dash 30s linear infinite;
}

@keyframes dash {
    to { stroke-dashoffset: -1000; }
}

.timeline-step {
    position: absolute;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 220px;
    transform: translateX(-50%);
}

.step-1 { left: 15%; top: 168px; }
.step-2 { left: 50%; top: 98px; }
.step-3 { left: 85%; top: 28px; }

.timeline-dot {
    width: 24px;
    height: 24px;
    background: #080c14;
    border: 4px solid var(--accent);
    border-radius: 50%;
    margin-bottom: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.15);
    position: relative;
    z-index: 3;
}

.timeline-step:hover .timeline-dot {
    transform: scale(1.4);
    background: var(--accent);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
    border-color: white;
}

.timeline-year {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--highlight);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.timeline-step:hover .timeline-year {
    color: var(--accent);
}

.timeline-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-heading-dark);
    text-align: center;
}

.timeline-tooltip {
    position: absolute;
    background: #0f172a;
    color: white;
    padding: 1.2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    width: max-content;
    max-width: 260px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
    bottom: 110px;
    transform: translateY(20px);
}

.timeline-tooltip strong {
    color: var(--accent);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.3rem;
}

.timeline-step:hover .timeline-tooltip {
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0);
}

.timeline-tooltip::after {
    content: ''; 
    position: absolute; 
    bottom: -8px; 
    left: 50%; 
    transform: translateX(-50%);
    border-width: 8px 8px 0; 
    border-style: solid; 
    border-color: #0f172a transparent transparent transparent;
}

/* ========================================================
   SECTION 4: CERTIFICATIONS
   ======================================================== */
.certifications-section {
    position: relative;
    overflow: visible !important;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
    position: relative;
    overflow: visible !important;
}

.cert-badge {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border-dark);
    padding: 1.8rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    overflow: visible !important;
    z-index: 1;
}

.cert-badge:hover {
    transform: translateY(-6px);
    border-color: var(--cyan);
    z-index: 100000 !important;
}

.cert-image-container {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    border-radius: 14px;
    background: rgba(7, 11, 18, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px;
}

.cert-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cert-info h4 {
    color: var(--text-heading-dark);
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 0.3rem;
}

.cert-issuer {
    display: block;
    font-size: 0.85rem;
    color: var(--cyan);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 0.4rem;
}

.cert-status {
    display: inline-block;
    color: var(--accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.25rem 0.7rem;
    border-radius: 100px;
}

.cert-preview {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.9) !important;
    width: auto !important;
    max-width: min(88vw, 920px) !important;
    max-height: 85vh !important;
    object-fit: contain !important;
    z-index: 2147483647 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    border-radius: 14px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 0 0 100vmax rgba(0, 0, 0, 0.78),
        0 25px 60px rgba(0, 0, 0, 0.95);
    background: #ffffff;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.25);
}

@media (min-width: 1025px) {
    .cert-badge:hover .cert-preview {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1) !important;
    }
}

/* ========================================================
   SECTION 5: SKILLS (WHITE BG + GRID + DARK CARDS)
   ======================================================== */
.skills-section .section-title {
    color: #0a0e17 !important;
}

.skills-section .section-sub {
    color: #475569 !important;
}

.skills-section .skill-card {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
    position: relative;
    z-index: 2;
}

.skills-section .skill-card:hover {
    border-color: var(--cyan) !important;
    box-shadow: 0 20px 45px rgba(0, 229, 255, 0.15) !important;
}

.skills-section .skill-card h3 {
    color: var(--text-heading-dark) !important;
}

.skills-section .skill-card p {
    color: var(--text-muted) !important;
}

.skills {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.skill-card {
    border-radius: 16px;
    padding: 2.2rem 1.6rem;
    text-align: center;
    transition: all 0.3s ease;
}
.skill-card:hover {
    transform: translateY(-6px);
}
.skill-icon-wrap {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--cyan);
}
.skill-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.skill-card p {
    font-size: 0.88rem;
}

/* ========================================================
   SECTION 6: PROJECTS (WHITE BG + GRID + DARK CARDS)
   ======================================================== */
.projects .section-title {
    color: #0a0e17 !important;
}

.projects .section-sub {
    color: #475569 !important;
}

.projects .project-card-vertical {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
    position: relative;
    z-index: 2;
}

.projects .project-card-vertical:hover {
    border-color: var(--accent) !important;
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.2) !important;
}

.projects .project-img-square {
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.projects .project-content-vertical h3 {
    color: var(--text-heading-dark) !important;
}

.projects .project-content-vertical p {
    color: var(--text-muted) !important;
}

.projects .tag {
    background: rgba(0, 229, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--cyan) !important;
    font-weight: 600;
}

.projects .project-links {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.projects .project-link {
    color: var(--text-heading-dark) !important;
}

.projects .project-link:hover {
    color: var(--accent) !important;
}

.project-stack {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.project-card-vertical {
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 340px 1fr;
    align-items: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-img-square {
    width: 340px;
    height: 340px;
    background: #090e18;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.project-card-vertical:hover .project-img-square img {
    transform: scale(1.04);
}

.placeholder-img {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    text-align: center;
}

.placeholder-number {
    font-size: 3.5rem;
    font-weight: 900;
    font-family: 'Space Grotesk', sans-serif;
    color: rgba(255, 255, 255, 0.15);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.placeholder-badge {
    font-size: 0.75rem;
    color: #0284c7;
    background: #e0f2fe;
    padding: 3px 10px;
    border-radius: 100px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-content-vertical {
    padding: 2.2rem 2.5rem;
}

.project-content-vertical h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.project-content-vertical p {
    font-size: 0.98rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
}

.project-links {
    display: flex;
    gap: 1.5rem;
    padding-top: 1.2rem;
}

.project-link {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: color 0.3s;
}

/* ========================================================
   SECTION 7: CONTACT (PURE DARK VOID)
   ======================================================== */
.contact { text-align: center; }
.contact-content { max-width: 580px; margin: 0 auto; }
.contact-content p { font-size: 1.1rem; color: var(--text-muted); margin: 1.5rem 0 2.5rem 0; }
.contact-button {
    display: inline-block;
    text-decoration: none;
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.35);
}

.social-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}
.social-links a {
    text-decoration: none;
    color: var(--text-heading-dark);
    font-weight: 600;
    font-size: 0.95rem;
}
.social-links a:hover { color: var(--cyan); }

footer {
    padding: 2rem 0 7rem 0;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-dark);
    position: relative;
    z-index: 2;
    background: #050811;
}

/* ========================================================
   AUTOGRAPHY SIGNATURE (SOLID WHITE & ONE-TIME WRITE)
   ======================================================== */
.signature-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.4rem auto 0.5rem auto;
    overflow: hidden;
}

.signature-text {
    font-family: 'Herr Von Muellerhoff', cursive;
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 2px;
    white-space: nowrap;
    display: inline-block;
    position: relative;
    clip-path: inset(0 100% 0 0);
    animation: writeSignatureOnce 2.4s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

@keyframes writeSignatureOnce {
    0% {
        clip-path: inset(0 100% 0 0);
        opacity: 0.1;
    }
    100% {
        clip-path: inset(0 0% 0 0);
        opacity: 1;
    }
}

/* ========================================================
   NORMAL BOX-TYPE DOCK (GLASSMORPHIC & RAINBOW BORDER GLOW)
   ======================================================== */
.floating-dock-container {
    position: fixed;
    bottom: 1.8rem;
    left: 50%;
    transform: translateX(-50%) translateY(60px) scale(0.92);
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-dock-container.dock-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

.glass-dock-box {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 28px;
    border: 2px solid transparent;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
    position: relative;
}

.glass-dock-box::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 28px;
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8b00ff);
    background-size: 400% 400%;
    animation: rainbowGlow 8s ease infinite;
    z-index: -1;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

@keyframes rainbowGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.glass-dock-box .dock-item {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(241, 245, 249, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #475569;
    text-decoration: none;
    transform-origin: bottom center;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.glass-dock-box .dock-icon svg { width: 22px; height: 22px; }

.glass-dock-box .dock-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--cyan);
    margin-top: 3px;
    opacity: 0;
    transition: opacity 0.3s;
}

.glass-dock-box .dock-item.active .dock-dot {
    opacity: 1;
    box-shadow: 0 0 6px currentColor;
}

.glass-dock-box .item-home.active, .glass-dock-box .item-home:hover {
    color: #0284c7; background: #e0f2fe; border-color: #7dd3fc;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.25);
}
.glass-dock-box .item-about.active, .glass-dock-box .item-about:hover {
    color: #7c3aed; background: #ede9fe; border-color: #c4b5fd;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
}
.glass-dock-box .item-edu.active, .glass-dock-box .item-edu:hover {
    color: #059669; background: #d1fae5; border-color: #6ee7b7;
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.25);
}
.glass-dock-box .item-certs.active, .glass-dock-box .item-certs:hover {
    color: #d97706; background: #fef3c7; border-color: #fcd34d;
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.25);
}
.glass-dock-box .item-skills.active, .glass-dock-box .item-skills:hover {
    color: #ea580c; background: #ffedd5; border-color: #fdba74;
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.25);
}
.glass-dock-box .item-projects.active, .glass-dock-box .item-projects:hover {
    color: #2563eb; background: #dbeafe; border-color: #93c5fd;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}
.glass-dock-box .item-contact.active, .glass-dock-box .item-contact:hover {
    color: #e11d48; background: #ffe4e6; border-color: #fda4af;
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.25);
}

.glass-dock-box .dock-item::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.glass-dock-box .dock-item:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .project-card-vertical {
        grid-template-columns: 1fr;
    }
    .project-img-square {
        width: 100%;
        height: 260px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
}

@media (max-width: 768px) {
    .hero-stage { grid-template-columns: 1fr; padding: 100px 1.5rem 5rem 1.5rem; }
    .hero-intro { grid-column: span 1; }
    .iso-platform-wrapper { width: 300px; height: 300px; }
    .timeline-container { height: auto; display: flex; flex-direction: column; gap: 3rem; padding-left: 2rem; }
    .route-path { display: none; }
    .timeline-step { position: relative; left: 0 !important; top: 0 !important; transform: none; width: 100%; flex-direction: row; align-items: center; }
    .timeline-dot { margin-right: 1.5rem; margin-bottom: 0; }
    .timeline-year { margin-bottom: 0; margin-right: 1.5rem; width: 60px; }
    .timeline-tooltip { bottom: 100%; left: 60px; transform: none; }
    .skills { grid-template-columns: 1fr; }
    .cert-grid { grid-template-columns: 1fr; }
    .glass-dock-box { gap: 6px; padding: 8px 12px; }
    .glass-dock-box .dock-item { width: 40px; height: 40px; }
}

/* ========================================================
   INTERACTIVE DOODLE GRID PAPER WIDGET
   ======================================================== */
.doodle-paper-container {
    width: min(94vw, 860px);
    margin: 2.5rem auto 0 auto;
    background: #0b1220;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    position: relative;
    z-index: 5;
}

.doodle-paper-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 0.8rem 1.4rem;
    background: #0f172a;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.08);
}

.doodle-tool-group,
.doodle-color-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.doodle-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-heading-dark);
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.doodle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--cyan);
}

.doodle-btn.active {
    background: var(--cyan);
    color: #080c14;
    font-weight: 700;
    border-color: var(--cyan);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

.doodle-clear {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

.doodle-clear:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

.color-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.color-dot:hover {
    transform: scale(1.15);
}

.color-dot.active {
    border-color: #ffffff;
    transform: scale(1.2);
    box-shadow: 0 0 10px currentColor;
}

.custom-color-picker {
    position: relative;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    padding-left: 4px;
}

.custom-color-picker input[type="color"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Notebook Grid Paper Surface */
.doodle-paper-sheet {
    position: relative;
    width: 100%;
    height: 280px;
    background-color: #fdfbf7;
    background-image: 
        linear-gradient(rgba(15, 23, 42, 0.08) 1.2px, transparent 1.2px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.08) 1.2px, transparent 1.2px);
    background-size: 24px 24px;
    cursor: crosshair;
}

#doodle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    touch-action: none;
}

.doodle-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.35);
    pointer-events: none;
    letter-spacing: 1px;
    user-select: none;
    transition: opacity 0.3s;
}
/* ============================================================
   MOBILE & TOUCH INTERACTIVE ENHANCEMENTS
   (Adds smoother scaling across breakpoints + touch equivalents
   for hover-only interactions, without changing the desktop look)
   ============================================================ */

/* Hide the desktop mouse-follow cursor on touch devices — on a
   phone there's no mouse, so this stray ring/dot was getting stuck
   on screen instead of following a pointer. */
@media (hover: none), (pointer: coarse) {
    .cursor, .cursor-dot { display: none !important; }
}

/* ---- Tablet range: smoother mid-size layout before the full
   mobile stack kicks in at 768px ---- */
@media (min-width: 769px) and (max-width: 1024px) {
    .top-nav { padding: 1rem 1.8rem; }

    .hero-stage {
        grid-template-columns: 1fr 1fr;
        row-gap: 3rem;
    }
    .hero-intro { grid-column: 1 / -1; }
    .hero-terminal-wrap { grid-column: 1 / -1; max-width: 480px; margin: 0 auto; }

    .isometric-center-stage { grid-column: span 1; }

    .skills { grid-template-columns: repeat(2, 1fr); }
    .cert-grid { grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }

    .stats-bar { gap: 1.6rem; flex-wrap: wrap; }
}

/* ---- Small phones (≤600px) ---- */
@media (max-width: 600px) {
    .top-nav { padding: 0.8rem 1.1rem; }
    .logo { font-size: 1rem; }
    .live-time { font-size: 0.72rem; gap: 0.35rem; }

    /* Eyebrow badge was overflowing the viewport on narrow phones
       because of white-space: nowrap on a long phrase */
    .stage-eyebrow {
        white-space: normal;
        text-align: center;
        max-width: 84vw;
        line-height: 1.5;
        font-size: 0.68rem;
        padding: 0.55rem 1.1rem;
        letter-spacing: 1px;
    }
    .stage-hey { font-size: 1.05rem; }
    .stage-avatar-wrap { width: min(80vw, 340px); }

    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-buttons .cta-button,
    .hero-buttons .cta-button-secondary { text-align: center; }

    .stats-bar { flex-wrap: wrap; gap: 1.4rem 1.8rem; padding-top: 1.2rem; }
    .stat-number { font-size: 1.7rem; }

    .hero-terminal-wrap { max-width: 100%; }
    .terminal-body { height: 240px; font-size: 0.78rem; padding: 16px; }
    .term-title { font-size: 0.7rem; }

    .section-heading-wrap { margin-bottom: 2rem; }
    .section-title { font-size: clamp(1.8rem, 7vw, 2.4rem); }

    .timeline-tooltip { max-width: 220px; font-size: 0.85rem; padding: 1rem; }
    .timeline-label { font-size: 1.1rem; }

    .cert-badge { padding: 1.3rem; }
    .cert-image-container { height: 120px; }

    .project-content-vertical { padding: 1.5rem 1.3rem; }
    .project-content-vertical h3 { font-size: 1.2rem; }
    .project-content-vertical p { font-size: 0.9rem; }

    .doodle-paper-bar { justify-content: center; gap: 0.5rem; padding: 0.7rem 1rem; }
    .doodle-btn { font-size: 0.72rem; padding: 0.35rem 0.7rem; }
    .doodle-paper-sheet { height: 220px; }

    .signature-text { font-size: clamp(1.8rem, 9vw, 2.6rem); }

    .contact-content p { font-size: 1rem; }
    .social-links { gap: 1.4rem; flex-wrap: wrap; }
}

/* ---- Very small phones (≤380px) ---- */
@media (max-width: 380px) {
    .stage-bgtext { font-size: clamp(16vw, 22vw, 26vw); }
    .glass-dock-box { gap: 4px; padding: 6px 10px; }
    .glass-dock-box .dock-item { width: 36px; height: 36px; }
    .glass-dock-box .dock-icon svg { width: 18px; height: 18px; }
    .stats-bar { gap: 1rem 1.2rem; }
    .stat-number { font-size: 1.5rem; }
}

/* ---- Touch tap-feedback + tap-to-reveal (replaces :hover-only
   interactions that never fire on a touchscreen) ---- */
@media (hover: none), (pointer: coarse) {
    .cta-button:active,
    .cta-button-secondary:active,
    .doodle-btn:active,
    .contact-button:active,
    .project-link:active { transform: scale(0.96); }

    .skill-card:active,
    .project-card-vertical:active,
    .cert-badge:active,
    .timeline-step:active { transform: scale(0.98); }

    .glass-dock-box .dock-item:active { transform: scale(0.88); }

    .iso-tool-card:active { transform: translateZ(70px) scale(1.08); }

    /* Tap-to-zoom certificate preview (JS toggles .touch-active) */
    .cert-badge.touch-active .cert-preview {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translate(-50%, -50%) scale(1) !important;
        pointer-events: auto !important;
    }

    /* Tap-to-reveal timeline tooltip (JS toggles .touch-active) */
    .timeline-step.touch-active .timeline-tooltip {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .timeline-step.touch-active .timeline-dot {
        transform: scale(1.4);
        background: var(--accent);
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
        border-color: white;
    }

    /* Give every tap target a comfortable minimum hit area */
    .dock-item, .doodle-btn, .color-dot, .project-link { min-height: 36px; }
}
