/* ========================================================
   KRISHNA KUMAR PORTFOLIO - CYBERPUNK HIGH-TECH THEME
   Student & Tech Learner Portfolio
   ======================================================== */
:root {
    --neon-red: #ff003c;
    --neon-pink: #ff2a6d;
    --neon-cyan: #05d9e8;
    --neon-purple: #7928ca;
    --dark-bg: #0a0a0d;
    --darker-bg: #050507;
    --card-bg: rgba(16, 16, 22, 0.78);
    --card-border: rgba(255, 0, 60, 0.18);
    --card-hover-border: rgba(255, 0, 60, 0.55);
    --text-light: #ffffff;
    --text-dim: #a1a1aa;
    --text-muted: #71717a;
    --font-heading: "Orbitron", sans-serif;
    --font-body: "Exo 2", sans-serif;
    --font-mono: "JetBrains Mono", monospace;
    --transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-smooth: all 0.3s ease;
    --glow-red: 0 0 25px rgba(255, 0, 60, 0.45);
    --glow-strong: 0 0 35px rgba(255, 42, 109, 0.6);
}

/* ========================================================
   GLOBAL RESET & BASE STYLES
   ======================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 75px;
}

body {
    background-color: var(--dark-bg);
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(255, 0, 60, 0.06) 0%, transparent 35%),
        radial-gradient(circle at 85% 50%, rgba(255, 42, 109, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 85%, rgba(5, 217, 232, 0.04) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Custom Cyber Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-red), var(--neon-pink));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-red);
    box-shadow: 0 0 10px var(--neon-red);
}

::selection {
    background: var(--neon-red);
    color: #fff;
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 26px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

p {
    color: var(--text-dim);
}

.highlight {
    color: var(--neon-red);
    text-shadow: 0 0 12px rgba(255, 0, 60, 0.6);
}

/* ========================================================
   CYBERPUNK PRELOADER (0 TO 100%)
   ======================================================== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #040406;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.7, 0, 0.3, 1), transform 0.8s cubic-bezier(0.7, 0, 0.3, 1), filter 0.8s ease;
    overflow: hidden;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.06);
    filter: blur(8px);
}

.preloader-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at center, rgba(255, 0, 60, 0.12) 0%, transparent 60%),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0px, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 3px);
    pointer-events: none;
}

.preloader-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 90%;
    max-width: 440px;
}

.preloader-scanner {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.scanner-ring {
    position: absolute;
    border-radius: 50%;
}

.scanner-ring.ring-outer {
    inset: 0;
    border: 2px dashed rgba(255, 0, 60, 0.6);
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.35);
    animation: spinClockwise 4s linear infinite;
}

.scanner-ring.ring-mid {
    inset: 14px;
    border: 2px solid transparent;
    border-top: 2px solid var(--neon-cyan);
    border-bottom: 2px solid var(--neon-pink);
    animation: spinCounter 2.5s linear infinite;
}

.scanner-core {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 0, 60, 0.15);
    border: 1px solid var(--neon-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-red);
    font-size: 1.4rem;
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.5);
    animation: pulseCore 1.5s ease-in-out infinite;
}

@keyframes spinClockwise {
    100% { transform: rotate(360deg); }
}

@keyframes spinCounter {
    100% { transform: rotate(-360deg); }
}

@keyframes pulseCore {
    0%, 100% { transform: scale(1); box-shadow: 0 0 15px rgba(255, 0, 60, 0.4); }
    50% { transform: scale(1.1); box-shadow: 0 0 25px rgba(255, 0, 60, 0.8); }
}

.preloader-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 18px;
}

.pre-glitch {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 0, 60, 0.8);
}

.pre-sub {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neon-pink);
    letter-spacing: 2px;
}

.preloader-counter-box {
    display: flex;
    align-items: baseline;
    margin-bottom: 15px;
}

.preloader-count {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-light);
    line-height: 1;
    text-shadow: 0 0 25px rgba(255, 0, 60, 0.7);
}

.preloader-unit {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--neon-red);
    margin-left: 4px;
    font-weight: 700;
}

.preloader-bar-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 0, 60, 0.25);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin-bottom: 14px;
}

.preloader-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--neon-red), var(--neon-pink), var(--neon-cyan));
    box-shadow: 0 0 12px var(--neon-red);
    border-radius: 4px;
    transition: width 0.08s linear;
}

.preloader-status-text {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--neon-cyan);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    min-height: 20px;
    text-shadow: 0 0 8px rgba(5, 217, 232, 0.5);
}

/* ========================================================
   REDUCED SECTION SPACING & TITLES
   ======================================================== */
.section-title {
    text-align: center;
    margin-bottom: 30px; /* Reduced spacing */
    position: relative;
}

.sub-heading {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--neon-pink);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4px;
    text-shadow: 0 0 8px rgba(255, 42, 109, 0.4);
}

.section-title h2 {
    font-size: 2.3rem;
    color: var(--text-light);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.title-bar {
    width: 65px;
    height: 3.5px;
    background: linear-gradient(90deg, var(--neon-red), var(--neon-pink));
    margin: 0 auto 10px auto;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--neon-red);
}

.section-intro {
    max-width: 620px;
    margin: 0 auto;
    font-size: 0.94rem;
    color: var(--text-dim);
}

/* All sections with reduced, cohesive spacing */
#about,
#skills,
#certifications,
#projects,
#contact {
    padding: 60px 0; /* Reduced from 100px */
    position: relative;
}

/* ========================================================
   NAVIGATION
   ======================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    height: 70px;
    width: 100%;
    padding: 0 45px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: rgba(10, 10, 13, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 0, 60, 0.12);
}

.navbar.scrolled {
    height: 62px;
    background: rgba(8, 8, 10, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border-bottom-color: rgba(255, 0, 60, 0.25);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo span {
    color: var(--neon-red);
    text-shadow: 0 0 14px rgba(255, 0, 60, 0.8);
}

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

.links {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
    transition: var(--transition-smooth);
}

.links::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-red), var(--neon-pink));
    box-shadow: 0 0 8px var(--neon-red);
    transition: var(--transition);
}

.links:hover,
.links.active {
    color: var(--text-light);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.links:hover::after,
.links.active::after {
    width: 100%;
}

/* Nav Resume Button */
.nav-resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    background: rgba(5, 217, 232, 0.08);
    border: 1.5px solid var(--neon-cyan);
    border-radius: 6px;
    color: var(--neon-cyan);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.nav-resume-btn:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 18px var(--neon-cyan);
    transform: translateY(-2px);
}

.nav-cta-btn {
    padding: 7px 18px;
    background: transparent;
    border: 1.5px solid var(--neon-red);
    border-radius: 6px;
    color: var(--neon-red);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
}

.nav-cta-btn:hover {
    background: var(--neon-red);
    color: #000;
    box-shadow: 0 0 20px var(--neon-red);
    transform: translateY(-2px);
}

/* Mobile Toggle Hamburger */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    z-index: 1001;
}

.nav-toggle .bar {
    width: 100%;
    height: 2.5px;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.nav-toggle.open .bar:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
    background-color: var(--neon-red);
}

.nav-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open .bar:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
    background-color: var(--neon-red);
}

/* ========================================================
   HERO SECTION (SHIFTED UP FOR IMMEDIATE PROFILE VIEW)
   ======================================================== */
#hero {
    min-height: 94vh;
    display: flex;
    align-items: center;
    padding-top: 85px; /* Shifted up so profile pic is immediately visible */
    padding-bottom: 25px;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 45px;
    align-items: center;
    width: 100%;
}

.hero-text {
    position: relative;
    z-index: 2;
}

.badge-terminal {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 13px;
    background: rgba(255, 0, 60, 0.08);
    border: 1px solid rgba(255, 0, 60, 0.3);
    border-radius: 30px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-pink);
    margin-bottom: 16px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px #00ff88; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

.hero-text h1 {
    font-size: 2.85rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.15;
    background: linear-gradient(90deg, #ffffff 40%, var(--neon-red) 85%, var(--neon-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.typewriter {
    color: var(--neon-red);
    text-shadow: 0 0 10px rgba(255, 0, 60, 0.6);
}

.cursor {
    color: var(--neon-pink);
    animation: blink 0.9s infinite;
    font-weight: 300;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Requested Tagline Motto Bar */
.hero-tagline-bar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: rgba(5, 217, 232, 0.08);
    border-left: 3px solid var(--neon-cyan);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--neon-cyan);
    margin-bottom: 14px;
    text-shadow: 0 0 8px rgba(5, 217, 232, 0.4);
}

.prompt-arrow {
    color: var(--neon-red);
    font-size: 0.85rem;
}

.hero-bio-p {
    font-size: 1.05rem;
    max-width: 600px;
    margin-bottom: 20px;
    line-height: 1.7;
}

/* ========================================================
   HERO STATS ON THE SAME LINE (100% CURIOSITY FIXED)
   ======================================================== */
.hero-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: nowrap; /* Strictly same line on desktop */
    width: 100%;
    max-width: 640px;
}

.stat-pill {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 0, 60, 0.15);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex: 1 1 0px;
    min-width: 0;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.stat-pill:hover {
    border-color: var(--neon-red);
    background: rgba(255, 0, 60, 0.08);
    transform: translateY(-2px);
}

.stat-badge-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--neon-cyan);
    line-height: 1.1;
    text-shadow: 0 0 8px rgba(5, 217, 232, 0.4);
    white-space: nowrap;
}

.stat-value-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    white-space: nowrap;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-light);
    line-height: 1.1;
}

.stat-plus {
    color: var(--neon-red);
    font-weight: 700;
    font-size: 1.05rem;
    margin-left: 2px;
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hero Socials */
.hero-socials {
    display: flex;
    gap: 14px;
    margin-top: 18px;
}

.hero-socials a {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 0, 60, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
}

.hero-socials a:hover {
    color: var(--neon-red);
    border-color: var(--neon-red);
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.5);
    transform: translateY(-3px);
}

/* ========================================================
   3D GLOWY PROFILE CONTAINER - SHIFTED UP
   ======================================================== */
.profile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    margin-top: -30px; /* Shifted up so profile pic is visible immediately on load */
}

.profile-3d-card {
    position: relative;
    width: 340px;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
}

.orbit-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.ring-outer-glow {
    width: 330px;
    height: 330px;
    border: 1.5px dashed rgba(255, 0, 60, 0.5);
    box-shadow: 
        0 0 25px rgba(255, 0, 60, 0.35),
        inset 0 0 20px rgba(255, 0, 60, 0.2);
    animation: spinClockwise 18s linear infinite;
}

.ring-inner-glow {
    width: 295px;
    height: 295px;
    border: 1.5px solid transparent;
    border-top: 2px solid var(--neon-cyan);
    border-bottom: 2px solid var(--neon-pink);
    box-shadow: 0 0 25px rgba(5, 217, 232, 0.3);
    animation: spinCounter 12s linear infinite;
}

.cyber-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid var(--neon-red);
    pointer-events: none;
    box-shadow: 0 0 10px var(--neon-red);
    z-index: 6;
}

.corner-tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.corner-tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.corner-bl { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.corner-br { bottom: 10px; right: 10px; border-left: none; border-top: none; }

.image-wrapper-3d {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, var(--neon-red), var(--neon-pink), var(--neon-cyan));
    box-shadow: 
        0 0 30px rgba(255, 0, 60, 0.6),
        0 0 65px rgba(255, 42, 109, 0.35),
        0 0 95px rgba(5, 217, 232, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transform: translateZ(25px);
    overflow: hidden;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--dark-bg);
}

.glare-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.25) 0%, transparent 65%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.profile-hud-tag {
    position: absolute;
    bottom: -4px;
    padding: 5px 12px;
    background: rgba(8, 8, 12, 0.94);
    border: 1px solid rgba(5, 217, 232, 0.5);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--neon-cyan);
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 0 15px rgba(5, 217, 232, 0.4);
    transform: translateZ(40px);
    z-index: 10;
    white-space: nowrap;
}

.hud-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
}

.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    background: rgba(14, 14, 18, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 0, 60, 0.35);
    border-radius: 30px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-light);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 0, 60, 0.2);
    z-index: 12;
    transform: translateZ(50px);
    transition: var(--transition);
}

.floating-badge i {
    color: var(--neon-red);
    font-size: 0.95rem;
}

.floating-badge:hover {
    transform: translateZ(60px) scale(1.08);
    border-color: var(--neon-red);
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.5);
}

.badge-top-right { top: 5px; right: -10px; }
.badge-bottom-left { bottom: 25px; left: -20px; }
.badge-bottom-right { bottom: -5px; right: 5px; }

/* ========================================================
   BUTTONS & RESUME BUTTON
   ======================================================== */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 26px;
    background: transparent;
    color: var(--neon-red);
    text-decoration: none;
    border: 2px solid var(--neon-red);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition);
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.2);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--neon-red);
    transition: width 0.35s ease;
    z-index: -1;
}

.btn:hover {
    color: #000;
    box-shadow: 0 0 30px var(--neon-red);
    transform: translateY(-3px);
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: var(--neon-red);
    color: #000;
    font-weight: 800;
}

.btn-primary:hover {
    background: transparent;
    color: var(--neon-red);
}

/* Resume Button in Hero */
.btn-resume {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(5, 217, 232, 0.25);
}

.btn-resume::before {
    background-color: var(--neon-cyan);
}

.btn-resume:hover {
    color: #000;
    box-shadow: 0 0 30px var(--neon-cyan);
}

/* Certificates Button in Hero */
.btn-cert {
    border-color: var(--neon-pink);
    color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(255, 42, 109, 0.25);
}

.btn-cert::before {
    background-color: var(--neon-pink);
}

.btn-cert:hover {
    color: #000;
    box-shadow: 0 0 30px var(--neon-pink);
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-light);
    box-shadow: none;
}

.btn-outline:hover {
    border-color: var(--neon-pink);
    color: #000;
    box-shadow: 0 0 20px var(--neon-pink);
}

.btn-outline::before {
    background-color: var(--neon-pink);
}

/* Nav Action Buttons (Certificates & Resume) */
.nav-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    background: rgba(255, 42, 109, 0.08);
    border: 1.5px solid var(--neon-pink);
    border-radius: 6px;
    color: var(--neon-pink);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.nav-btn-action:hover {
    background: var(--neon-pink);
    color: #000;
    box-shadow: 0 0 18px var(--neon-pink);
    transform: translateY(-2px);
}

.nav-btn-action.nav-resume-btn {
    background: rgba(5, 217, 232, 0.08);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.nav-btn-action.nav-resume-btn:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 18px var(--neon-cyan);
}

/* ========================================================
   PHOTO LIGHTBOX & SLIDER MODALS
   ======================================================== */
.photo-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.photo-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.photo-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 4, 6, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.photo-modal-dialog {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 760px;
    max-height: 88vh;
    background: #0d0d14;
    border: 1.5px solid var(--neon-cyan);
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(5, 217, 232, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.photo-modal.active .photo-modal-dialog {
    transform: scale(1) translateY(0);
}

.photo-modal-header {
    background: #14141e;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.photo-modal-title {
    font-family: var(--font-mono);
    font-size: 0.86rem;
    color: var(--neon-cyan);
    display: flex;
    align-items: center;
    gap: 8px;
}

.photo-modal-close {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.photo-modal-close:hover {
    color: var(--neon-red);
}

.photo-modal-body {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-frame {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.resume-photo-img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

/* Resume PDF Frame Styling */
.resume-modal-dialog {
    max-width: 860px;
    height: 88vh;
}

.resume-modal-body {
    padding: 0;
    height: 100%;
    overflow: hidden;
}

.resume-frame {
    height: 100%;
    width: 100%;
}

.resume-pdf-frame {
    width: 100%;
    height: calc(88vh - 120px);
    border: none;
    background: #14141e;
}

/* Fallback card if image not found */
.photo-fallback-card {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 35px 25px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(5, 217, 232, 0.4);
    border-radius: 10px;
    width: 100%;
}

.photo-fallback-card.show {
    display: flex;
}

.fallback-ic {
    font-size: 2.5rem;
    color: var(--neon-cyan);
    margin-bottom: 14px;
}

.photo-fallback-card h3 {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.photo-fallback-card p {
    font-size: 0.92rem;
    max-width: 480px;
    margin-bottom: 16px;
    color: var(--text-dim);
}

.photo-fallback-card code {
    background: rgba(255, 0, 60, 0.15);
    color: var(--neon-pink);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
}

.quick-resume-info {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--neon-cyan);
    background: rgba(10, 10, 14, 0.8);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(5, 217, 232, 0.3);
}

.photo-modal-footer {
    background: #14141e;
    padding: 12px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.82rem;
}

/* ========================================================
   CERTIFICATES SLIDER MODAL (SLIDE BY SLIDE)
   ======================================================== */
.cert-modal-dialog {
    max-width: 820px;
    border-color: var(--neon-pink);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(255, 42, 109, 0.3);
}

.cert-modal-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cert-slide-counter {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--neon-pink);
    background: rgba(255, 42, 109, 0.1);
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 42, 109, 0.3);
}

.cert-modal-body {
    position: relative;
    padding: 20px 42px;
    min-height: 420px;
}

.cert-nav-arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(14, 14, 20, 0.95);
    border: 1.5px solid var(--neon-pink);
    color: var(--neon-pink);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.cert-nav-arrow:hover {
    background: var(--neon-pink);
    color: #000;
    box-shadow: 0 0 20px var(--neon-pink);
    transform: translateY(-50%) scale(1.1);
}

.cert-prev { left: 8px; }
.cert-next { right: 8px; }

.cert-slides-track {
    width: 100%;
    position: relative;
}

.cert-slide {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    animation: fadeInSlide 0.4s ease forwards;
}

.cert-slide.active {
    display: flex;
}

@keyframes fadeInSlide {
    0% { opacity: 0; transform: translateY(12px) scale(0.97); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.cert-photo-container {
    position: relative;
    width: 100%;
    max-height: 270px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 14px;
}

.cert-photo {
    max-width: 100%;
    max-height: 270px;
    object-fit: contain;
    border-radius: 6px;
}

.cert-img-fallback {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-align: center;
    gap: 10px;
}

.cert-img-fallback.show {
    display: flex;
}

.fallback-cert-icon {
    font-size: 2.8rem;
    color: var(--neon-pink);
}

.cert-desc-box {
    width: 100%;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 42, 109, 0.2);
    border-radius: 8px;
    padding: 14px 18px;
}

.cert-desc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    flex-wrap: wrap;
    gap: 8px;
}

.cert-desc-header h3 {
    font-size: 1.12rem;
    color: var(--text-light);
}

.cert-badge {
    padding: 3px 9px;
    background: rgba(255, 42, 109, 0.12);
    border: 1px solid var(--neon-pink);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--neon-pink);
    text-transform: uppercase;
}

.cert-desc-issuer {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-cyan);
    margin-bottom: 6px;
}

.cert-desc-text {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-dim);
    margin-bottom: 0;
}

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

.cert-modal-dots {
    display: flex;
    gap: 8px;
}

.cert-dot-btn {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.cert-dot-btn.active {
    background: var(--neon-pink);
    box-shadow: 0 0 10px var(--neon-pink);
    transform: scale(1.3);
}

/* ========================================================
   ABOUT ME SECTION
   ======================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: start;
}

.about-bio .lead-text {
    font-size: 1.18rem;
    color: var(--text-light);
    font-weight: 500;
    line-height: 1.75;
    margin-bottom: 14px;
}

.about-bio p {
    margin-bottom: 14px;
    font-size: 0.98rem;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.highlight-item:hover {
    border-color: var(--card-hover-border);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.hl-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: rgba(255, 0, 60, 0.1);
    border: 1px solid rgba(255, 0, 60, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-red);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.hl-content h4 {
    font-size: 0.98rem;
    color: var(--text-light);
    margin-bottom: 2px;
}

.hl-content p {
    font-size: 0.85rem;
    margin-bottom: 0;
    color: var(--text-muted);
}

.about-terminal-card {
    background: #0d0d12;
    border: 1px solid rgba(255, 0, 60, 0.25);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 0, 60, 0.1);
}

.terminal-header {
    background: #14141c;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.copy-terminal-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.copy-terminal-btn:hover {
    color: var(--neon-red);
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    line-height: 1.65;
    overflow-x: auto;
    color: #e2e8f0;
}

.t-key { color: #f43f5e; font-weight: 600; }
.t-var { color: #38bdf8; }
.t-prop { color: #a5b4fc; }
.t-string { color: #34d399; }
.t-bool { color: #fb923c; }
.t-func { color: #e879f9; }

/* ========================================================
   SKILLS SECTION
   ======================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 22px;
}

.skill-category-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 22px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.skill-category-card:hover {
    border-color: var(--card-hover-border);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 0, 60, 0.15);
}

.cat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cat-icon {
    font-size: 1.5rem;
    color: var(--neon-red);
    text-shadow: 0 0 10px rgba(255, 0, 60, 0.5);
}

.cat-header h3 {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2px;
}

.cat-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.skill-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.skill-item:hover {
    background: rgba(255, 0, 60, 0.08);
    border-color: rgba(255, 0, 60, 0.3);
    transform: translateX(3px);
}

.skill-left {
    display: flex;
    align-items: center;
    gap: 9px;
}

.skill-ic {
    font-size: 1.1rem;
    color: var(--neon-pink);
    width: 20px;
    text-align: center;
}

.skill-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-light);
}

.skill-pill-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-strong {
    background: rgba(0, 255, 136, 0.12);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.tag-practicing {
    background: rgba(5, 217, 232, 0.12);
    color: var(--neon-cyan);
    border: 1px solid rgba(5, 217, 232, 0.3);
}

.tag-core {
    background: rgba(255, 0, 60, 0.12);
    color: var(--neon-red);
    border: 1px solid rgba(255, 0, 60, 0.3);
}

.tag-learning {
    background: rgba(255, 187, 0, 0.12);
    color: #ffbb00;
    border: 1px solid rgba(255, 187, 0, 0.3);
}

.tag-basics {
    background: rgba(165, 180, 252, 0.12);
    color: #a5b4fc;
    border: 1px solid rgba(165, 180, 252, 0.3);
}

.tag-exploring {
    background: rgba(232, 121, 249, 0.12);
    color: #e879f9;
    border: 1px solid rgba(232, 121, 249, 0.3);
}

/* ========================================================
/* ========================================================
   PROJECTS SECTION (3D DEPTH SLIDER)
   ======================================================== */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: var(--text-dim);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover {
    color: var(--text-light);
    border-color: var(--neon-red);
}

.filter-btn.active {
    background: var(--neon-red);
    color: #000;
    border-color: var(--neon-red);
    box-shadow: 0 0 18px rgba(255, 0, 60, 0.5);
    font-weight: 700;
}

.slider-container-3d {
    position: relative;
    width: 100%;
    min-height: 490px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1400px;
}

.slider-stage-3d {
    position: relative;
    width: 100%;
    height: 470px;
    transform-style: preserve-3d;
}

.project-card-3d {
    position: absolute;
    width: 90%;
    max-width: 450px;
    top: 50%;
    left: 50%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    transform-origin: center center;
    cursor: pointer;
    user-select: none;
    transition: 
        transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 0.65s ease,
        filter 0.65s ease,
        box-shadow 0.65s ease;
}

.project-card-3d.slide-active {
    transform: translate3d(-50%, -50%, 0px) scale(1) rotateY(0deg);
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
    filter: none;
    border-color: var(--card-hover-border);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75), 0 0 35px rgba(255, 0, 60, 0.4);
    cursor: default;
}

.project-card-3d.slide-next {
    transform: translate3d(calc(-50% + 230px), -50%, -240px) scale(0.82) rotateY(-22deg);
    opacity: 0.55;
    z-index: 5;
    pointer-events: auto;
    filter: brightness(0.7) blur(0.5px);
}

.project-card-3d.slide-next:hover {
    opacity: 0.8;
    filter: brightness(0.9);
}

.project-card-3d.slide-prev {
    transform: translate3d(calc(-50% - 230px), -50%, -240px) scale(0.82) rotateY(22deg);
    opacity: 0.55;
    z-index: 5;
    pointer-events: auto;
    filter: brightness(0.7) blur(0.5px);
}

.project-card-3d.slide-prev:hover {
    opacity: 0.8;
    filter: brightness(0.9);
}

.project-card-3d.slide-hidden-right {
    transform: translate3d(calc(-50% + 420px), -50%, -460px) scale(0.6) rotateY(-35deg);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.project-card-3d.slide-hidden-left {
    transform: translate3d(calc(-50% - 420px), -50%, -460px) scale(0.6) rotateY(35deg);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.project-banner {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.banner-gradient {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-symbol {
    font-size: 3rem;
    opacity: 0.85;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.3));
}

.bg-proj-1 { background: linear-gradient(135deg, #1e0533 0%, #ff003c 100%); color: #ff9ebb; }
.bg-proj-2 { background: linear-gradient(135deg, #021b33 0%, #05d9e8 100%); color: #7ef5ff; }
.bg-proj-3 { background: linear-gradient(135deg, #1b0c26 0%, #ff2a6d 100%); color: #ffb8d0; }
.bg-proj-4 { background: linear-gradient(135deg, #0b2219 0%, #00ff88 100%); color: #79ffd0; }
.bg-proj-5 { background: linear-gradient(135deg, #2b0c16 0%, #ff7700 100%); color: #ffd1a4; }
.bg-proj-6 { background: linear-gradient(135deg, #1a1a2e 0%, #7928ca 100%); color: #d8b4fe; }

.project-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 9px;
    background: rgba(10, 10, 14, 0.88);
    border: 1px solid rgba(255, 0, 60, 0.35);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    backdrop-filter: blur(6px);
}

.project-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-info h3 {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.project-info p {
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 14px;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.project-tech span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 2px 7px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: var(--neon-pink);
}

.project-actions {
    display: flex;
    gap: 10px;
}

.proj-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.proj-link.primary {
    background: var(--neon-red);
    color: #000;
    border: 1px solid var(--neon-red);
}

.proj-link.primary:hover {
    background: transparent;
    color: var(--neon-red);
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.4);
}

.proj-link.outline {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.proj-link.outline:hover {
    color: var(--text-light);
    border-color: var(--text-light);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(14, 14, 20, 0.9);
    border: 1.5px solid var(--neon-red);
    color: var(--neon-red);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.3);
    transition: var(--transition);
}

.slider-arrow:hover {
    background: var(--neon-red);
    color: #000;
    box-shadow: 0 0 25px var(--neon-red);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 8px; }
.next-btn { right: 8px; }

.slider-controls-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 25px;
}

.slider-dots {
    display: flex;
    gap: 9px;
}

.dot-btn {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.dot-btn.active {
    background: var(--neon-red);
    box-shadow: 0 0 10px var(--neon-red);
    transform: scale(1.3);
}

.slider-counter {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--neon-cyan);
    letter-spacing: 1px;
}

/* ========================================================
   CONTACT SECTION
   ======================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 38px;
    align-items: start;
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 32px;
    backdrop-filter: blur(10px);
}

.info-card h3 {
    font-size: 1.45rem;
    margin-bottom: 14px;
    color: var(--text-light);
}

.info-card p {
    font-size: 0.96rem;
    line-height: 1.65;
    margin-bottom: 24px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.detail-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: rgba(255, 0, 60, 0.1);
    border: 1px solid rgba(255, 0, 60, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-red);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.detail-content span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-content strong {
    font-size: 0.94rem;
    color: var(--text-light);
}

.email-copy-row {
    display: flex;
    align-items: center;
    gap: 9px;
}

.copy-email-btn {
    background: transparent;
    border: none;
    color: var(--neon-pink);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.copy-email-btn:hover {
    color: var(--neon-red);
    transform: scale(1.15);
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    font-size: 0.85rem;
    color: #00ff88;
    margin-bottom: 24px;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
    animation: pulseGlow 1.8s infinite;
}

.contact-socials {
    display: flex;
    gap: 12px;
}

.contact-socials a {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 0, 60, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 1.15rem;
    text-decoration: none;
    transition: var(--transition);
}

.contact-socials a:hover {
    color: var(--neon-red);
    border-color: var(--neon-red);
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.5);
    transform: translateY(-3px);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: rgba(10, 10, 14, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: var(--transition-smooth);
}

.textarea-wrapper {
    align-items: flex-start;
}

.textarea-wrapper .input-icon {
    top: 14px;
}

.textarea-wrapper textarea {
    resize: vertical;
    min-height: 110px;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
    outline: none;
    border-color: var(--neon-red);
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.35);
    background: rgba(14, 14, 18, 0.95);
}

.input-wrapper input:focus ~ .input-icon,
.textarea-wrapper textarea:focus ~ .input-icon {
    color: var(--neon-red);
}

.error-msg {
    display: block;
    color: #ff4757;
    font-size: 0.76rem;
    margin-top: 3px;
    min-height: 16px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    margin-top: 4px;
}

/* ========================================================
   TOAST NOTIFICATION
   ======================================================== */
.toast {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: rgba(15, 15, 20, 0.95);
    border: 1px solid var(--neon-red);
    border-radius: 8px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 0, 60, 0.4);
    z-index: 2000;
    transform: translateY(120px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast-icon {
    color: #00ff88;
    font-size: 1.15rem;
}

/* ========================================================
   FOOTER (REDUCED SPACING)
   ======================================================== */
.footer {
    background: var(--darker-bg);
    border-top: 1px solid rgba(255, 0, 60, 0.15);
    padding: 35px 0 20px; /* Reduced spacing */
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}

.footer-brand .logo {
    justify-content: center;
    margin-bottom: 4px;
}

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

.footer-links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--neon-red);
}

.footer-bottom {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.back-to-top {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 0, 60, 0.1);
    border: 1px solid rgba(255, 0, 60, 0.3);
    color: var(--neon-red);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.back-to-top:hover {
    background: var(--neon-red);
    color: #000;
    box-shadow: 0 0 15px var(--neon-red);
    transform: translateY(-3px);
}

/* ========================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ======================================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text {
        order: 1;
    }

    .profile-container {
        order: 2;
        margin-top: 0;
    }

    .hero-subtitle,
    .hero-tagline-bar {
        justify-content: center;
    }

    .hero-bio-p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        margin-left: auto;
        margin-right: auto;
    }

    .btn-group {
        justify-content: center;
    }

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

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

    .project-card-3d.slide-next {
        transform: translate3d(calc(-50% + 180px), -50%, -200px) scale(0.8) rotateY(-18deg);
    }

    .project-card-3d.slide-prev {
        transform: translate3d(calc(-50% - 180px), -50%, -200px) scale(0.8) rotateY(18deg);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 14, 0.98);
        backdrop-filter: blur(16px);
        border-left: 1px solid rgba(255, 0, 60, 0.25);
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 22px;
        gap: 18px;
        transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-resume-btn,
    .nav-cta-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-tagline-bar {
        font-size: 0.82rem;
    }

    .profile-3d-card {
        width: 300px;
        height: 300px;
    }

    .ring-outer-glow { width: 290px; height: 290px; }
    .ring-inner-glow { width: 260px; height: 260px; }
    .image-wrapper-3d { width: 220px; height: 220px; }

    .slider-stage-3d { height: 460px; }
    .project-card-3d { max-width: 380px; }

    .project-card-3d.slide-next {
        transform: translate3d(calc(-50% + 90px), -50%, -180px) scale(0.75) rotateY(-15deg);
        opacity: 0.35;
    }

    .project-card-3d.slide-prev {
        transform: translate3d(calc(-50% - 90px), -50%, -180px) scale(0.75) rotateY(15deg);
        opacity: 0.35;
    }

    .prev-btn { left: 2px; }
    .next-btn { right: 2px; }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .stat-pill {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .btn {
        width: 100%;
        padding: 12px 18px;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .contact-card {
        padding: 22px;
    }

    .profile-3d-card {
        width: 250px;
        height: 250px;
    }

    .ring-outer-glow { width: 240px; height: 240px; }
    .ring-inner-glow { width: 220px; height: 220px; }
    .image-wrapper-3d { width: 180px; height: 180px; }

    .floating-badge {
        font-size: 0.7rem;
        padding: 4px 9px;
    }

    .project-card-3d { max-width: 310px; }
    .project-banner { height: 125px; }
    .project-symbol { font-size: 2.5rem; }
}

/* ========================================================
   FUTURISTIC LIVING BACKGROUND LAYER & MOUSE INTERACTIONS
   Subtle Glowing Blobs, Cyber Grid, Atmosphere, Depth Rings,
   Particles Canvas, and Cursor Ambient Glow
   ======================================================== */
.living-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Ensure sections and interactive content stay cleanly on top */
section,
footer {
    position: relative;
    z-index: 2;
}

/* 1. Subtle Animated Gradient Atmosphere */
.bg-atmosphere-glow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 70% 45% at 20% 15%, rgba(255, 0, 60, 0.055) 0%, transparent 65%),
        radial-gradient(ellipse 65% 50% at 85% 55%, rgba(255, 42, 109, 0.045) 0%, transparent 65%),
        radial-gradient(ellipse 60% 45% at 50% 90%, rgba(121, 40, 202, 0.045) 0%, transparent 65%);
    animation: atmosphereBreathe 20s ease-in-out infinite alternate;
    pointer-events: none;
    will-change: transform, opacity;
}

@keyframes atmosphereBreathe {
    0% {
        opacity: 0.75;
        transform: scale(1) translateY(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.04) translateY(-10px);
    }
    100% {
        opacity: 0.8;
        transform: scale(0.98) translateY(10px);
    }
}

/* 2. Futuristic Subtle Cyber Grid */
.bg-cyber-grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: 56px 56px;
    background-image: 
        linear-gradient(to right, rgba(255, 0, 60, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 0, 60, 0.02) 1px, transparent 1px);
    mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
    pointer-events: none;
    opacity: 0.85;
}

.bg-cyber-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    background-size: 56px 56px;
    background-image: radial-gradient(circle 1px at 0 0, rgba(255, 42, 109, 0.065) 1px, transparent 0);
    pointer-events: none;
}

/* 3. Animated Glowing Gradient Blobs */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    mix-blend-mode: screen;
    will-change: transform;
}

.bg-blob.blob-red {
    width: 540px;
    height: 540px;
    top: 5%;
    left: -8%;
    background: radial-gradient(circle, rgba(255, 0, 60, 0.15) 0%, rgba(255, 0, 60, 0.04) 50%, transparent 70%);
    filter: blur(100px);
    animation: blobFloat1 28s ease-in-out infinite alternate;
}

.bg-blob.blob-pink {
    width: 600px;
    height: 600px;
    top: 42%;
    right: -10%;
    background: radial-gradient(circle, rgba(255, 42, 109, 0.13) 0%, rgba(255, 42, 109, 0.035) 50%, transparent 70%);
    filter: blur(120px);
    animation: blobFloat2 34s ease-in-out infinite alternate;
}

.bg-blob.blob-purple {
    width: 480px;
    height: 480px;
    bottom: -5%;
    left: 20%;
    background: radial-gradient(circle, rgba(121, 40, 202, 0.12) 0%, rgba(5, 217, 232, 0.03) 50%, transparent 70%);
    filter: blur(110px);
    animation: blobFloat3 30s ease-in-out infinite alternate;
}

@keyframes blobFloat1 {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    33% { transform: translate3d(70px, 50px, 0) scale(1.08); }
    66% { transform: translate3d(-40px, 90px, 0) scale(0.95); }
    100% { transform: translate3d(50px, -30px, 0) scale(1.04); }
}

@keyframes blobFloat2 {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    33% { transform: translate3d(-80px, -60px, 0) scale(0.96); }
    66% { transform: translate3d(50px, -90px, 0) scale(1.07); }
    100% { transform: translate3d(-30px, 40px, 0) scale(1.02); }
}

@keyframes blobFloat3 {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    33% { transform: translate3d(60px, -50px, 0) scale(1.06); }
    66% { transform: translate3d(-60px, 30px, 0) scale(0.93); }
    100% { transform: translate3d(25px, 60px, 0) scale(1.03); }
}

/* 4. Depth: Holographic Depth Rings */
.bg-depth-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
}

.bg-depth-ring.ring-1 {
    width: 560px;
    height: 560px;
    top: 6%;
    right: -100px;
    border: 1.5px dashed rgba(255, 42, 109, 0.08);
    box-shadow: inset 0 0 35px rgba(255, 0, 60, 0.02);
    animation: spinClockwise 90s linear infinite, ringFloat1 22s ease-in-out infinite alternate;
}

.bg-depth-ring.ring-2 {
    width: 440px;
    height: 440px;
    bottom: 10%;
    left: -80px;
    border: 1px solid rgba(255, 0, 60, 0.06);
    box-shadow: 0 0 25px rgba(255, 0, 60, 0.02);
    animation: spinCounter 75s linear infinite, ringFloat2 26s ease-in-out infinite alternate-reverse;
}

.bg-depth-ring.ring-2::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    background: var(--neon-pink);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-pink);
    opacity: 0.45;
}

.bg-depth-ring.ring-3 {
    width: 320px;
    height: 320px;
    top: 50%;
    left: 70%;
    border: 1px dotted rgba(5, 217, 232, 0.07);
    animation: spinClockwise 60s linear infinite, ringFloat1 18s ease-in-out infinite alternate;
}

@keyframes ringFloat1 {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.02); }
    100% { transform: translateY(15px) scale(0.98); }
}

@keyframes ringFloat2 {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(18px) scale(0.97); }
    100% { transform: translateY(-18px) scale(1.02); }
}

/* 5. Interactive Particle Canvas */
.bg-cyber-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* 6. Mouse Interaction: Cursor Following Ambient Glow Aura */
.cursor-ambient-aura {
    position: fixed;
    top: 0;
    left: 0;
    width: 480px;
    height: 480px;
    margin-left: -240px;
    margin-top: -240px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 42, 109, 0.09) 0%, rgba(255, 0, 60, 0.035) 35%, rgba(121, 40, 202, 0.015) 55%, transparent 70%);
    mix-blend-mode: screen;
    z-index: 2;
    will-change: transform;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.05s linear, width 0.35s ease, height 0.35s ease;
}

.cursor-ambient-aura.visible {
    opacity: 1;
}

.cursor-ambient-aura.aura-hovering {
    width: 580px;
    height: 580px;
    margin-left: -290px;
    margin-top: -290px;
    background: radial-gradient(circle, rgba(255, 42, 109, 0.35) 0%, rgba(5, 217, 232, 0.04) 38%, rgba(255, 0, 60, 0.02) 58%, transparent 70%);
}

/* Cursor Click Ripple */
.cursor-click-ripple {
    position: fixed;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 42, 109, 0.55);
    box-shadow: 0 0 14px rgba(255, 42, 109, 0.4), inset 0 0 10px rgba(255, 0, 60, 0.3);
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%) scale(0.2);
    animation: cursorRippleExpand 0.6s cubic-bezier(0.15, 0.85, 0.35, 1) forwards;
}

@keyframes cursorRippleExpand {
    0% {
        transform: translate(-50%, -50%) scale(0.2);
        opacity: 0.85;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.8);
        opacity: 0;
    }
}

/* Subtle Interactive Glow Enhancement on Hover */
.btn:hover,
.nav-cta-btn:hover,
.filter-btn:hover,
.stat-pill:hover,
.project-card-3d:hover,
.skill-card:hover,
.social-card:hover,
.contact-card:hover {
    box-shadow: 0 0 25px rgba(255, 42, 109, 0.22);
}

/* Mobile & Tablet Responsive Optimizations */
@media (max-width: 768px) {
    .bg-depth-ring {
        display: none; /* Hide heavy rings on mobile for performance */
    }

    .bg-blob.blob-red {
        width: 340px;
        height: 340px;
        filter: blur(80px);
        opacity: 0.7;
    }

    .bg-blob.blob-pink {
        width: 360px;
        height: 360px;
        filter: blur(85px);
        opacity: 0.7;
    }

    .bg-blob.blob-purple {
        width: 300px;
        height: 300px;
        filter: blur(80px);
        opacity: 0.6;
    }

    .cursor-ambient-aura {
        display: none; /* Mobile touch devices do not have hovering cursors */
    }
}

/* Accessibility: Respect Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    .bg-atmosphere-glow,
    .bg-blob,
    .bg-depth-ring,
    .cursor-click-ripple {
        animation: none !important;
        transition: none !important;
    }

    .cursor-ambient-aura {
        transition: none !important;
    }
}
/* ========================================================
   MOBILE RESPONSIVE FIX
   ======================================================== */

/* Tablets + Mobile */
@media (max-width: 900px) {

    .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    /* ---------- NAVBAR ---------- */
    .navbar {
        height: 64px;
        padding: 0 18px;
    }

    .logo {
        font-size: 1.35rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 64px;
        left: 12px;
        right: 12px;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;

        padding: 14px;
        background: rgba(8, 8, 12, 0.97);
        border: 1px solid rgba(255, 0, 60, 0.25);
        border-radius: 12px;

        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);

        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        pointer-events: none;

        transition: all 0.3s ease;
    }

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

    .links {
        display: block;
        padding: 11px 12px;
        font-size: 0.82rem;
    }

    .nav-resume-btn,
    .nav-cta-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
        margin-top: 4px;
    }

    /* ---------- HERO ---------- */

    #hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 50px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 45px;
        text-align: center;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .badge-terminal {
        font-size: 0.72rem;
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: clamp(2rem, 8vw, 2.7rem);
        line-height: 1.15;
    }

    .hero-subtitle {
        justify-content: center;
        font-size: 1.1rem;
    }

    .hero-tagline-bar {
        max-width: 100%;
        font-size: 0.75rem;
        text-align: left;
    }

    .hero-bio-p {
        font-size: 0.95rem;
        max-width: 500px;
    }

    /* ---------- STATS ---------- */

    .hero-stats {
        width: 100%;
        max-width: 500px;
        gap: 8px;
    }

    .stat-pill {
        padding: 8px 5px;
    }

    .stat-badge-text {
        font-size: 0.95rem;
    }

    .stat-num {
        font-size: 1.15rem;
    }

    .stat-label {
        font-size: 0.62rem;
    }

    /* ---------- SOCIALS ---------- */

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

    /* ---------- PROFILE ---------- */

    .profile-container {
        margin-top: 0;
    }

    .profile-3d-card {
        width: 300px;
        height: 300px;
    }

    .ring-outer-glow {
        width: 290px;
        height: 290px;
    }

    .ring-inner-glow {
        width: 255px;
        height: 255px;
    }

    .image-wrapper-3d {
        width: 220px;
        height: 220px;
    }

    /* ---------- SECTIONS ---------- */

    #about,
    #skills,
    #certifications,
    #projects,
    #contact {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .section-intro {
        font-size: 0.88rem;
    }
}


/* ========================================================
   SMALL MOBILE
   ======================================================== */

@media (max-width: 600px) {

    html {
        scroll-padding-top: 65px;
    }

    body {
        width: 100%;
        overflow-x: hidden;
    }

    .container {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* ---------- PRELOADER ---------- */

    .preloader-container {
        width: calc(100% - 30px);
        max-width: 360px;
    }

    .preloader-scanner {
        width: 95px;
        height: 95px;
        margin-bottom: 20px;
    }

    .preloader-count {
        font-size: 2.8rem;
    }

    .preloader-unit {
        font-size: 1.4rem;
    }

    .preloader-status-text {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    .pre-glitch {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    .pre-sub {
        font-size: 0.65rem;
    }

    /* ---------- HERO ---------- */

    #hero {
        padding-top: 90px;
        padding-bottom: 35px;
    }

    .hero-content {
        gap: 35px;
    }

    .hero-text h1 {
        font-size: clamp(1.8rem, 9vw, 2.35rem);
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .hero-tagline-bar {
        font-size: 0.68rem;
        padding: 6px 9px;
    }

    .hero-bio-p {
        font-size: 0.88rem;
        line-height: 1.6;
    }

    /* ---------- STATS ---------- */

    .hero-stats {
        gap: 5px;
        margin-bottom: 18px;
    }

    .stat-pill {
        padding: 7px 3px;
        border-radius: 6px;
    }

    .stat-badge-text {
        font-size: 0.72rem;
    }

    .stat-num {
        font-size: 0.95rem;
    }

    .stat-plus {
        font-size: 0.8rem;
    }

    .stat-label {
        font-size: 0.5rem;
        letter-spacing: 0;
    }

    /* ---------- PROFILE ---------- */

    .profile-3d-card {
        width: 260px;
        height: 260px;
    }

    .ring-outer-glow {
        width: 250px;
        height: 250px;
    }

    .ring-inner-glow {
        width: 220px;
        height: 220px;
    }

    .image-wrapper-3d {
        width: 190px;
        height: 190px;
    }

    .profile-hud-tag {
        font-size: 0.6rem;
        padding: 4px 9px;
    }

    .floating-badge {
        font-size: 0.6rem;
        padding: 5px 8px;
    }

    /* ---------- SECTION TITLES ---------- */

    #about,
    #skills,
    #certifications,
    #projects,
    #contact {
        padding: 45px 0;
    }

    .section-title {
        margin-bottom: 24px;
    }

    .section-title h2 {
        font-size: 1.55rem;
    }

    .sub-heading {
        font-size: 0.68rem;
    }

    .section-intro {
        font-size: 0.82rem;
        padding: 0 5px;
    }

    /* ---------- GENERAL ---------- */

    img {
        max-width: 100%;
    }

    button,
    a {
        -webkit-tap-highlight-color: transparent;
    }
}


/* ========================================================
   VERY SMALL PHONES - 320px
   ======================================================== */

@media (max-width: 360px) {

    .navbar {
        padding: 0 12px;
    }

    .logo {
        font-size: 1.15rem;
    }

    .hero-text h1 {
        font-size: 1.65rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .hero-tagline-bar {
        font-size: 0.6rem;
    }

    .hero-bio-p {
        font-size: 0.82rem;
    }

    .profile-3d-card {
        width: 235px;
        height: 235px;
    }

    .ring-outer-glow {
        width: 225px;
        height: 225px;
    }

    .ring-inner-glow {
        width: 200px;
        height: 200px;
    }

    .image-wrapper-3d {
        width: 170px;
        height: 170px;
    }

    .stat-badge-text {
        font-size: 0.65rem;
    }

    .stat-num {
        font-size: 0.85rem;
    }

    .stat-label {
        font-size: 0.45rem;
    }
}

/* ========================================================
   FINAL RESPONSIVE FIX
   Phone • Tablet • Laptop • Desktop
   ======================================================== */

/* Prevent unwanted horizontal overflow */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Responsive container */
.container {
    width: min(100%, 1320px);
    padding-left: clamp(16px, 3vw, 26px);
    padding-right: clamp(16px, 3vw, 26px);
    margin-left: auto;
    margin-right: auto;
}

/* Better section spacing */
#about,
#skills,
#certifications,
#projects,
#contact {
    padding-top: clamp(45px, 6vw, 60px);
    padding-bottom: clamp(45px, 6vw, 60px);
}

/* =========================
   TABLET
   ========================= */
@media (max-width: 1024px) {

    #hero {
        min-height: auto;
        padding-top: 95px;
        padding-bottom: 45px;
    }

    .hero-content {
        width: 100%;
        gap: clamp(25px, 5vw, 40px);
    }

    .hero-text h1 {
        font-size: clamp(2rem, 5vw, 2.6rem);
    }

    .profile-container {
        margin-top: 0;
    }
}


/* =========================
   MOBILE
   ========================= */
@media (max-width: 768px) {

    .navbar {
        height: 64px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .logo {
        font-size: clamp(1.15rem, 5vw, 1.5rem);
        letter-spacing: 1.5px;
    }

    .nav-links {
        top: 64px;
        height: calc(100vh - 64px);
    }

    #hero {
        padding-top: 88px;
        padding-bottom: 35px;
    }

    .hero-content {
        gap: 25px;
    }

    .hero-text h1 {
        font-size: clamp(1.9rem, 8vw, 2.5rem);
        line-height: 1.12;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 4.5vw, 1.2rem);
        line-height: 1.4;
    }

    .hero-tagline-bar {
        max-width: 100%;
        font-size: clamp(0.68rem, 3vw, 0.82rem);
        padding: 6px 10px;
        line-height: 1.4;
        text-align: center;
    }

    .hero-bio-p {
        max-width: 100%;
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .hero-stats {
        width: 100%;
        max-width: 100%;
        gap: 8px;
    }

    .stat-pill {
        min-width: 0;
        padding: 8px 5px;
    }

    .stat-badge-text {
        font-size: clamp(0.8rem, 3.5vw, 1.05rem);
    }

    .stat-num {
        font-size: clamp(1rem, 4vw, 1.25rem);
    }

    .stat-label {
        font-size: clamp(0.58rem, 2.5vw, 0.7rem);
    }

    /* Buttons fit every phone */
    .btn-group {
        width: 100%;
        gap: 10px;
    }

    .btn {
        width: 100%;
        min-width: 0;
        padding: 11px 14px;
        font-size: 0.85rem;
    }

    /* Profile automatically scales */
    .profile-3d-card {
        width: clamp(220px, 70vw, 300px);
        height: clamp(220px, 70vw, 300px);
    }

    .ring-outer-glow {
        width: clamp(215px, 68vw, 290px);
        height: clamp(215px, 68vw, 290px);
    }

    .ring-inner-glow {
        width: clamp(195px, 61vw, 260px);
        height: clamp(195px, 61vw, 260px);
    }

    .image-wrapper-3d {
        width: clamp(160px, 52vw, 220px);
        height: clamp(160px, 52vw, 220px);
    }

    .profile-hud-tag {
        font-size: clamp(0.6rem, 2.7vw, 0.72rem);
        padding: 4px 9px;
    }

    .floating-badge {
        font-size: clamp(0.58rem, 2.8vw, 0.72rem);
        padding: 4px 8px;
    }

    /* Section headings */
    .section-title {
        margin-bottom: 24px;
    }

    .section-title h2 {
        font-size: clamp(1.65rem, 7vw, 2rem);
    }

    .sub-heading {
        font-size: 0.7rem;
    }

    /* About */
    .about-grid {
        gap: 25px;
    }

    .about-bio .lead-text {
        font-size: 1rem;
        line-height: 1.65;
    }

    .about-bio p {
        font-size: 0.92rem;
    }

    /* Cards */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .skill-category-card {
        padding: 17px;
    }

    /* Project slider */
    .slider-container-3d {
        min-height: 430px;
    }

    .slider-stage-3d {
        height: 420px;
    }

    .project-card-3d {
        width: min(92%, 400px);
    }
}


/* =========================
   SMALL PHONES
   360px AND BELOW
   ========================= */
@media (max-width: 380px) {

    .container {
        padding-left: 13px;
        padding-right: 13px;
    }

    #hero {
        padding-top: 82px;
        padding-bottom: 28px;
    }

    .hero-content {
        gap: 20px;
    }

    .hero-text h1 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-tagline-bar {
        font-size: 0.64rem;
        padding: 5px 8px;
    }

    .hero-stats {
        gap: 6px;
    }

    .stat-pill {
        padding: 7px 3px;
    }

    .stat-badge-text {
        font-size: 0.75rem;
    }

    .stat-num {
        font-size: 0.95rem;
    }

    .stat-label {
        font-size: 0.55rem;
    }

    .hero-socials {
        gap: 9px;
    }

    .hero-socials a {
        width: 35px;
        height: 35px;
    }

    .profile-3d-card {
        width: 215px;
        height: 215px;
    }

    .ring-outer-glow {
        width: 210px;
        height: 210px;
    }

    .ring-inner-glow {
        width: 188px;
        height: 188px;
    }

    .image-wrapper-3d {
        width: 155px;
        height: 155px;
    }

    .floating-badge {
        font-size: 0.55rem;
        padding: 3px 6px;
    }
}


