/* =========================================================
   ANKIT KUMAR SINGH — MODERN LIGHT TECH / CYBER PORTFOLIO
   FUTURISTIC LIGHT GLASS / NEON ACCENTS / CRISP TECH FONTS
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600;700;800&family=Space+Grotesk:wght@500;600;700;800&family=Syne:wght@700;800&display=swap');

/* =========================================================
   SYSTEM VARIABLES & TECH COLOR PALETTE
========================================================= */
:root {
    --font-display: 'Syne', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Futuristic Cyber Spectrum (High contrast against light canvas) */
    --neon-blue: #0066ff;
    --neon-cyan: #00d2ff;
    --neon-purple: #7000ff;
    --neon-pink: #ff007a;
    --neon-emerald: #00b875;

    /* Light Tech Surfaces */
    --bg-base: #f5f8fd;
    --bg-surface: rgba(255, 255, 255, 0.85);
    --bg-surface-hover: #ffffff;

    /* Contrast Typography */
    --text-pure: #0f172a;
    --text-main: #1e293b;
    --text-muted: #52637a;
    --text-dim: #94a3b8;

    /* Glassmorphism & High-Tech Borders */
    --glass-border: rgba(112, 0, 255, 0.14);
    --glass-border-hover: rgba(0, 210, 255, 0.6);
    --tech-shadow-sm: 0 10px 30px rgba(70, 90, 160, 0.08);
    --tech-shadow-md: 0 18px 45px rgba(70, 90, 160, 0.12), 0 0 20px rgba(0, 210, 255, 0.08);
    --tech-shadow-lg: 0 28px 70px rgba(70, 90, 160, 0.18), 0 0 35px rgba(112, 0, 255, 0.14);

    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================
   GLOBAL RESET
========================================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-color: var(--bg-base);
}

body {
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: 15.5px;
    color: var(--text-main);
    background-color: var(--bg-base);
    line-height: 1.7;
    position: relative;
    overflow-x: hidden;
}

::selection {
    background: var(--neon-purple);
    color: #ffffff;
}

h1, h2, h3, h4, .logo, .loader-logo {
    font-family: var(--font-heading);
    color: var(--text-pure);
    letter-spacing: -0.02em;
}

.hero-name {
    font-family: var(--font-display);
}

.section-number, .hero-tag, .card-label, .experience-label,
.certificate-type, .skill-number, .project-index, .intro, 
.loader-content p, .education-year, .education-status,
.project-tech span, .experience-tags span, .education-tags span {
    font-family: var(--font-mono);
}

/* Watermark Photo Overlay */
.personal-photo-bg {
    position: fixed;
    inset: 0;
    background: url('stamp photo.jpeg') center/cover no-repeat;
    opacity: 0.03;
    filter: grayscale(100%) contrast(110%);
    pointer-events: none;
    z-index: -4;
}

.personal-photo-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, transparent 35%, var(--bg-base) 90%);
    pointer-events: none;
    z-index: -4;
}

/* =========================================================
   CINEMATIC LOADER & LETTERBOX
========================================================= */
#page-loader {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    transition: opacity 0.8s var(--ease-spring), visibility 0.8s ease;
}

#page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    width: min(450px, 85vw);
    text-align: center;
    position: relative;
}

.loader-logo {
    font-size: clamp(2.8rem, 8vw, 4.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan), var(--neon-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -1.5px;
}

.loader-logo span {
    color: var(--neon-purple);
}

.loader-line {
    width: 100%;
    height: 4px;
    border-radius: 99px;
    background: rgba(112, 0, 255, 0.1);
    margin: 24px 0 14px;
    overflow: hidden;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
    animation: loaderFill 1.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.loader-content p {
    color: var(--neon-purple);
    font-size: 11px;
    letter-spacing: 3.5px;
    font-weight: 700;
}

@keyframes loaderFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

.cine-bars {
    position: fixed;
    inset: 0;
    z-index: 99998;
    pointer-events: none;
}

.cine-bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 10vh;
    background: #0f172a;
    transition: transform 1.1s cubic-bezier(0.7, 0, 0.2, 1);
}

.cine-bar-top { top: 0; transform-origin: top; }
.cine-bar-bottom { bottom: 0; transform-origin: bottom; }

body.cine-open .cine-bar-top,
body.cine-open .cine-bar-bottom {
    transform: scaleY(0);
}

.light-leak {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 99995;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(
        115deg,
        transparent 40%,
        rgba(0, 210, 255, 0.35) 48%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 0, 122, 0.3) 52%,
        transparent 60%
    );
    transform: translateX(-40%) rotate(-10deg);
}

body.cine-open .light-leak {
    animation: flareSweep 1.5s var(--ease-spring) 0.3s forwards;
}

@keyframes flareSweep {
    0% { opacity: 0; transform: translateX(-40%) rotate(-10deg); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateX(40%) rotate(-10deg); }
}

.cine-vignette {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 65%, rgba(15, 23, 42, 0.05) 100%);
}

.film-grain {
    position: fixed;
    inset: -50%;
    width: 200%;
    height: 200%;
    z-index: 9980;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    animation: noiseShift 0.3s steps(4) infinite;
}

@keyframes noiseShift {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-2%, 2%); }
    100% { transform: translate(2%, -1%); }
}

/* =========================================================
   ANIMATED TECH GRID & PLASMA ORBS
========================================================= */
.background {
    position: fixed;
    inset: 0;
    z-index: -10;
    pointer-events: none;
    overflow: hidden;
}

.background .grid {
    position: absolute;
    inset: -50%;
    opacity: 0.55;
    background-image:
        linear-gradient(rgba(112, 0, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 210, 255, 0.06) 1px, transparent 1px);
    background-size: 55px 55px;
    transform: perspective(650px) rotateX(60deg) translateY(-8%);
    transform-origin: center top;
    animation: gridFlow 16s linear infinite;
}

@keyframes gridFlow {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 0 550px, 550px 0; }
}

.video-scenes {
    position: absolute;
    inset: 0;
}

.scene-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.8s ease;
    filter: saturate(1.4) brightness(1.1);
}

.scene-video.is-active {
    opacity: 0.18;
}

.background .glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(85px);
    pointer-events: none;
}

.glow-one {
    width: 500px;
    height: 500px;
    left: -120px;
    top: 10%;
    background: radial-gradient(circle, rgba(255, 0, 122, 0.12), transparent 70%);
    animation: orbDrift1 14s ease-in-out infinite alternate;
}

.glow-two {
    width: 550px;
    height: 550px;
    right: -120px;
    top: 30%;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.14), transparent 70%);
    animation: orbDrift2 16s ease-in-out infinite alternate;
}

.glow-three {
    width: 600px;
    height: 600px;
    left: 25%;
    bottom: -150px;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.12), transparent 70%);
    animation: orbDrift3 18s ease-in-out infinite alternate;
}

@keyframes orbDrift1 {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(140px, -80px, 0) scale(1.2); }
}

@keyframes orbDrift2 {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-120px, 100px, 0) scale(1.15); }
}

@keyframes orbDrift3 {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(80px, -110px, 0) scale(1.25); }
}

#particles, .particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--neon-purple);
    box-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-purple);
    animation: quantumParticle linear infinite;
}

@keyframes quantumParticle {
    0% {
        transform: translateY(100vh) scale(0.3);
        opacity: 0;
    }
    15% { opacity: 0.7; }
    85% { opacity: 0.7; }
    100% {
        transform: translateY(-20vh) scale(1.2);
        opacity: 0;
    }
}

.cursor-glow {
    position: fixed;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99990;
    opacity: 0;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.14) 0%, rgba(112, 0, 255, 0.06) 50%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

body.cursor-active .cursor-glow {
    opacity: 1;
}

/* =========================================================
   NAVBAR
========================================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    max-width: 1250px;
    margin: 16px auto;
    padding: 14px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--tech-shadow-sm);
    transition: all 0.4s var(--ease-spring);
}

.navbar:hover {
    border-color: rgba(0, 210, 255, 0.5);
    box-shadow: var(--tech-shadow-md);
}

.logo {
    text-decoration: none;
    font-size: 26px;
    font-weight: 800;
    color: var(--text-pure);
    letter-spacing: -1px;
}

.logo span {
    color: var(--neon-purple);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    padding: 6px 2px;
    transition: color 0.3s ease;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-spring);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--neon-purple);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--text-pure);
}

/* =========================================================
   HERO INTERFACE
========================================================= */
.hero {
    min-height: 100vh;
    padding: 160px 24px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 960px;
    position: relative;
    z-index: 10;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(0, 184, 117, 0.08);
    border: 1px solid rgba(0, 184, 117, 0.3);
    color: var(--neon-emerald);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(0, 184, 117, 0.15);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.hero-tag:hover {
    box-shadow: 0 0 25px rgba(0, 184, 117, 0.3);
    transform: translateY(-2px);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-emerald);
    box-shadow: 0 0 0 4px rgba(0, 184, 117, 0.2);
    animation: statusPulse 1.8s infinite ease-in-out;
}

.status-dot.is-done {
    background: var(--text-dim);
    box-shadow: none;
}

@keyframes statusPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.intro {
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 5px;
    color: var(--neon-purple);
    margin-bottom: 12px;
}

/* =========================================================
   PROFILE AVATAR (PHOTO PRESERVED, ROTATING CYBER BORDER)
========================================================= */
.profile-wrapper {
    position: relative;
    width: 215px;
    height: 215px;
    margin: 20px auto 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.ring-one {
    inset: -8px;
    border: 2px solid rgba(112, 0, 255, 0.3);
    box-shadow: 0 0 20px rgba(112, 0, 255, 0.15);
    animation: ringOrbit 12s linear infinite;
}

.ring-two {
    inset: -20px;
    border: 1.5px dashed rgba(0, 210, 255, 0.4);
    animation: ringOrbitReverse 18s linear infinite;
}

@keyframes ringOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes ringOrbitReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

.profile-image {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--tech-shadow-md);
    overflow: hidden;
}

/* Outer border rotates on ::before so your photo NEVER changes color */
.profile-image::before {
    content: "";
    position: absolute;
    inset: -50%;
    background: conic-gradient(
        from 0deg,
        var(--neon-purple),
        var(--neon-cyan),
        var(--neon-pink),
        var(--neon-purple)
    );
    animation: borderSpin 5s linear infinite;
    z-index: 1;
}

@keyframes borderSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.profile-image img {
    position: relative;
    z-index: 2;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    display: block;
    filter: none !important; /* Preserves natural skin tone & original colors */
}

.hero-name {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25em;
    font-size: clamp(2.2rem, 4.2vw, 3.8rem); /* Reduced from 6.2rem */
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 12px;
}
.hero-name span {
    background: linear-gradient(135deg, var(--text-pure) 25%, var(--neon-purple) 65%, var(--neon-cyan) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientFlow 6s linear infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.hero-role {
    font-size: clamp(1.2rem, 3.2vw, 1.8rem);
    font-weight: 700;
    color: var(--text-muted);
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.cursor {
    color: var(--neon-purple);
    font-weight: 400;
    animation: blink 0.9s infinite step-end;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-description {
    max-width: 680px;
    margin: 18px auto 30px;
    color: var(--text-muted);
    font-size: 16.5px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    position: relative;
    padding: 14px 30px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    transition: all 0.4s var(--ease-spring);
    cursor: pointer;
    z-index: 1;
}

.primary-btn {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(112, 0, 255, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.primary-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.primary-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 35px rgba(112, 0, 255, 0.45);
}

.primary-btn:hover::after {
    transform: translateX(100%);
}

.secondary-btn {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    color: var(--text-pure);
    border: 1px solid var(--glass-border);
    box-shadow: var(--tech-shadow-sm);
}

.secondary-btn:hover {
    border-color: var(--neon-purple);
    transform: translateY(-4px);
    box-shadow: var(--tech-shadow-md);
}

.applications-button-container {
    margin: 22px auto;
}

.applications-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 13px 26px;
    border-radius: 50px;
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--text-pure);
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--tech-shadow-sm);
    transition: all 0.4s var(--ease-spring);
}

.applications-btn:hover {
    transform: translateY(-4px);
    border-color: var(--neon-cyan);
    box-shadow: var(--tech-shadow-md);
}

.app-arrow {
    color: var(--neon-purple);
    transition: transform 0.3s ease;
}

.applications-btn:hover .app-arrow {
    transform: translateX(5px);
}

.social-links {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--neon-purple);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-decoration: none;
    color: var(--text-dim);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: indicatorFloat 2.5s ease-in-out infinite;
}

.scroll-line {
    width: 2px;
    height: 45px;
    background: linear-gradient(180deg, var(--neon-purple), transparent);
}

@keyframes indicatorFloat {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}

/* =========================================================
   SECTIONS & HIGH-TECH GLASS CARDS
========================================================= */
.section {
    padding: 110px 5%;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-number {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--neon-purple);
    margin-bottom: 8px;
}

.section-title p {
    font-size: 12px;
    letter-spacing: 2.5px;
    font-weight: 800;
    color: var(--neon-purple);
}

.section-title h2 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    color: var(--text-pure);
    font-weight: 800;
}

.section-title h2 span {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.glass-card, .skill-category, .project-card, 
.experience-card, .certificate-card, .contact-card {
    background: var(--bg-surface);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    box-shadow: var(--tech-shadow-sm);
    transition: transform var(--ease-spring) 0.4s, border-color 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}

.glass-card:hover, .skill-category:hover, .project-card:hover,
.experience-card:hover, .certificate-card:hover, .contact-card:hover {
    background: var(--bg-surface-hover);
    border-color: var(--glass-border-hover);
    box-shadow: var(--tech-shadow-lg);
}

.tilt-card {
    transform-style: preserve-3d;
    will-change: transform;
}

/* =========================================================
   ABOUT
========================================================= */
.about-container {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
}

.about-text, .about-card {
    padding: 38px;
}

.card-label {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--neon-purple);
    font-weight: 800;
    margin-bottom: 18px;
}

.about-text p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 20px;
}

.about-card ul {
    list-style: none;
}

.about-card li {
    padding: 13px 0;
    color: var(--text-main);
    font-weight: 600;
    border-bottom: 1px dashed rgba(112, 0, 255, 0.12);
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-card li span {
    font-family: var(--font-mono);
    color: var(--neon-purple);
    font-size: 12px;
}

/* =========================================================
   SKILLS MATRIX
========================================================= */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 26px;
}

.skill-category {
    padding: 34px;
    overflow: hidden;
}

.skill-number {
    font-size: 12px;
    color: var(--neon-purple);
    font-weight: 800;
}

.skill-category h3 {
    font-size: 21px;
    margin: 8px 0 18px;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-list span {
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(112, 0, 255, 0.05);
    border: 1px solid rgba(112, 0, 255, 0.12);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.skill-list span:hover {
    background: var(--neon-purple);
    color: #ffffff;
    border-color: var(--neon-purple);
    transform: translateY(-3px) scale(1.04);
}

/* =========================================================
   PROJECT SHOWCASE
========================================================= */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 30px;
}

.project-card {
    padding: 34px;
    display: flex;
    flex-direction: column;
}

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.project-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(112, 0, 255, 0.1), rgba(0, 210, 255, 0.1));
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.4s var(--ease-spring);
}

.project-card:hover .project-icon {
    transform: scale(1.1) rotate(6deg);
    border-color: var(--neon-cyan);
}

.project-card h3 {
    font-size: 21px;
    margin-bottom: 12px;
}

.project-card p {
    color: var(--text-muted);
    font-size: 14.5px;
    margin-bottom: 24px;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.project-tech span {
    padding: 5px 12px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}

.project-btn {
    text-decoration: none;
    color: var(--neon-purple);
    font-size: 13.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.project-btn span {
    transition: transform 0.3s ease;
}

.project-btn:hover {
    color: var(--neon-cyan);
}

.project-btn:hover span {
    transform: translateX(6px);
}

/* =========================================================
   EXPERIENCE & ACHIEVEMENTS (SPACING & PADDING CORRECTED)
========================================================= */
.experience-section {
    padding: 110px 5%;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 80px;
}

.experience-card {
    padding: 36px 32px;
}

.experience-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
}

.codealpha-logo {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    box-shadow: 0 8px 20px rgba(112, 0, 255, 0.25);
}

.codec-logo {
    background: linear-gradient(135deg, var(--neon-pink), #ff9900);
    box-shadow: 0 8px 20px rgba(255, 0, 122, 0.25);
}

.role-box {
    padding: 16px 20px;
    border-radius: 14px;
    background: rgba(112, 0, 255, 0.05);
    border: 1px solid rgba(112, 0, 255, 0.1);
    margin-bottom: 18px;
}

.role-box h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.role-box p {
    font-size: 13px;
    color: var(--text-muted);
}

.experience-description {
    color: var(--text-muted);
    font-size: 14.5px;
    margin-bottom: 22px;
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.experience-tags span {
    padding: 5px 12px;
    border-radius: 50px;
    background: rgba(112, 0, 255, 0.08);
    font-size: 11px;
    font-weight: 700;
    color: var(--neon-purple);
}

.certificate-button {
    text-decoration: none;
    display: inline-block;
    padding: 11px 22px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.certificate-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(112, 0, 255, 0.3);
}

/* Certificate Cards */
.certificates-title {
    text-align: center;
    margin-bottom: 45px;
}

.certificates-title span {
    font-family: var(--font-mono);
    color: var(--neon-purple);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 2px;
}

.certificates-title h3 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 8px 0;
}

.certificates-title h3 strong {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.certificate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.certificate-card {
    overflow: hidden;
    padding: 0;
}

.certificate-image {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: #e2e8f0;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-spring);
}

.certificate-card:hover .certificate-image img {
    transform: scale(1.08);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.certificate-card:hover .image-overlay {
    opacity: 1;
}

.image-overlay a {
    text-decoration: none;
    color: var(--text-pure);
    background: #ffffff;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: var(--tech-shadow-md);
    transition: all 0.3s ease;
}

.image-overlay a:hover {
    transform: scale(1.06);
    background: var(--neon-cyan);
}

.certificate-content {
    padding: 24px;
}

.certificate-type {
    color: var(--neon-purple);
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: 800;
}

.certificate-content h3 {
    font-size: 19px;
    margin: 6px 0;
}

.certificate-content p {
    color: var(--text-muted);
    font-size: 13.5px;
}

.certificate-content small {
    display: block;
    margin-top: 10px;
    color: var(--text-dim);
    font-size: 11.5px;
    font-family: var(--font-mono);
}

/* =========================================================
   EDUCATION
========================================================= */
.education-section {
    max-width: 1050px;
}

.education-timeline {
    position: relative;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 31px;
    top: 20px;
    bottom: 20px;
    width: 3px;
    background: linear-gradient(180deg, var(--neon-purple), var(--neon-cyan), var(--neon-pink));
    border-radius: 99px;
    opacity: 0.4;
}

.education-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    margin-bottom: 28px;
}

.education-rail {
    display: flex;
    justify-content: center;
    padding-top: 36px;
}

.timeline-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    box-shadow: 0 0 0 5px rgba(112, 0, 255, 0.12), 0 0 15px rgba(112, 0, 255, 0.4);
    z-index: 2;
}

.education-card.is-current .timeline-dot {
    animation: quantumPulse 2s infinite ease-in-out;
}

@keyframes quantumPulse {
    0%, 100% { box-shadow: 0 0 0 5px rgba(112, 0, 255, 0.15), 0 0 15px rgba(112, 0, 255, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(0, 210, 255, 0.25), 0 0 25px rgba(0, 210, 255, 0.6); }
}

.education-content {
    padding: 34px;
}

.education-top {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.education-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
}

.icon-gradient-one { background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan)); }
.icon-gradient-two { background: linear-gradient(135deg, var(--neon-blue), var(--neon-emerald)); }
.icon-gradient-three { background: linear-gradient(135deg, var(--neon-pink), #ff9900); }

.education-top-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.education-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--neon-purple);
}

.education-year {
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 600;
}

.education-content h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.education-content h4 {
    color: var(--neon-purple);
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
}

.education-content p {
    color: var(--text-muted);
    font-size: 14.5px;
}

.education-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.education-tags span {
    padding: 5px 12px;
    border-radius: 50px;
    background: rgba(112, 0, 255, 0.08);
    font-size: 11px;
    font-weight: 700;
    color: var(--neon-purple);
}

/* =========================================================
   RESUME & CONTACT
========================================================= */
.resume-section {
    padding: 100px 5%;
    text-align: center;
    background: linear-gradient(135deg, rgba(112, 0, 255, 0.05), rgba(0, 210, 255, 0.05));
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.resume-content {
    max-width: 650px;
    margin: auto;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.contact-card {
    padding: 38px 24px;
    text-align: center;
}

.contact-icon {
    font-size: 34px;
    margin-bottom: 14px;
    display: inline-block;
    transition: transform 0.35s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.15) translateY(-4px);
}

.contact-card h3 {
    margin-bottom: 8px;
}

.contact-card p, .contact-card a {
    color: var(--text-muted);
    font-size: 14.5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-card a:hover {
    color: var(--neon-purple);
}

/* =========================================================
   APPLICATIONS & EXPENSE TRACKER SUBPAGE SUPPORT
========================================================= */
.page-header {
    padding: 150px 5% 45px;
    text-align: center;
}

.page-header h1 span {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan), var(--neon-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-header .line {
    width: 90px;
    height: 4px;
    margin: 18px auto 0;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
}

.applications-area {
    padding: 30px 5% 120px;
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
}

.app-card {
    width: 320px;
    padding: 36px 28px;
    border-radius: 24px;
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--tech-shadow-sm);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s var(--ease-spring);
}

.app-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--neon-cyan);
    box-shadow: var(--tech-shadow-lg);
}

.app-card .app-icon {
    width: 78px;
    height: 78px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: #ffffff;
    margin-bottom: 22px;
    box-shadow: 0 10px 25px rgba(112, 0, 255, 0.25);
}

.app-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.app-btn {
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-btn {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
    color: #ffffff;
}

.download-btn {
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--text-pure);
}

.screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.screenshot-card {
    border-radius: 22px;
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    padding: 12px;
    transition: all 0.4s var(--ease-spring);
}

.screenshot-card img {
    width: 100%;
    border-radius: 14px;
    display: block;
    transition: transform 0.5s ease;
}

.screenshot-card:hover {
    transform: translateY(-8px);
    border-color: var(--neon-cyan);
}

.vibe-box, .about-box {
    padding: 40px;
    border-radius: 24px;
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--tech-shadow-sm);
}

.steps {
    display: grid;
    gap: 22px;
    max-width: 900px;
    margin: auto;
}

.step {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    padding: 24px;
    border-radius: 18px;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    transition: all 0.4s var(--ease-spring);
}

.step:hover {
    transform: translateX(8px);
    border-color: var(--neon-purple);
}

.step-number {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

/* =========================================================
   SCROLL REVEAL & FOOTER
========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 0.8s var(--ease-spring), transform 0.8s var(--ease-spring);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

footer {
    padding: 70px 5% 45px;
    background: #0f172a;
    color: #ffffff;
    text-align: center;
}

.footer-content h3 {
    font-size: 26px;
    margin-bottom: 8px;
    color: #ffffff;
}

.footer-content p {
    color: #94a3b8;
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 28px 0;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--neon-cyan);
}

.copyright {
    color: #64748b !important;
    font-size: 12px !important;
}

/* =========================================================
   RESPONSIVENESS & SIDE SPACING GUARDRAILS
========================================================= */
@media (max-width: 1024px) {
    .experience-grid {
        grid-template-columns: 1fr;
    }
    
    .certificate-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 960px) {
    .about-container { grid-template-columns: 1fr; }
    .nav-links { gap: 18px; }
}

@media (max-width: 768px) {
    .navbar {
        margin: 0;
        border-radius: 0;
        padding: 16px 20px;
    }

    .menu-btn {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(25px);
        padding: 20px;
        gap: 0;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: var(--tech-shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition: all 0.4s var(--ease-spring);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a {
        display: block;
        padding: 14px 16px;
    }

    .scroll-indicator, .cursor-glow, .scene-video {
        display: none !important;
    }

    .education-card {
        grid-template-columns: 45px 1fr;
    }

    .education-timeline::before {
        left: 21px;
    }

    .certificate-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .hero { padding: 130px 16px 60px; }
    .hero-name { font-size: 2.8rem; letter-spacing: -1.5px; }
    .profile-wrapper { width: 170px; height: 170px; }
    .profile-image { width: 155px; height: 155px; }
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .section, .experience-section { padding: 80px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1 !important; transform: none !important; }
}