/* =========================================
   Midnight Monochrome Grid Theme
   ========================================= */

:root {
    --bg-dark: #050505;
    --text-main: #a1a1aa;
    --text-bright: #ffffff;

    /* Monochrome Accents */
    --accent: #e4e4e7;
    --glow-strength: rgba(255, 255, 255, 0.05);

    --card-bg: rgba(255, 255, 255, 0.02);
    --card-border: rgba(255, 255, 255, 0.08);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

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

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

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #333;
}

/* Firefox scrollbar support */
* {
    scrollbar-width: thin;
    scrollbar-color: #222 var(--bg-dark);
}

/* Background Effects */
/* Organic Engineering Pattern Layer (Deep Background) */
.fixed-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-dark);
    /* Subtle dot grid pattern */
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1.2px, transparent 1.2px);
    background-size: 30px 30px;
    z-index: -3;
    pointer-events: none;
}

/* Enhanced top-ambient glow centered behind content */
.fixed-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.08), transparent 60%);
}

.cursor-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
    transition: width 0.2s, height 0.2s;
}

/* Typography & Globals */
h1,
h2,
h3,
h4 {
    color: var(--text-bright);
    font-family: var(--font-heading);
    font-weight: 500;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.mt-4 {
    margin-top: 1.5rem;
}

.container {
    max-width: 1600px;
    width: 92%;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-narrow {
    max-width: 1100px;
}

.section {
    padding: 80px 0;
}

.section-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: clamp(1.8rem, 8vw, 2.8rem);
    margin-bottom: 3.5rem;
    background: linear-gradient(to bottom, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
    letter-spacing: -1px;
}

.section-title::after {
    content: '';
    display: block;
    height: 1px;
    width: 80px;
    background: var(--text-bright);
    margin-top: 1rem;
    opacity: 0.3;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(8px);
    color: var(--text-bright);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
    transform: translateY(-2px) scale(1.04);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 3.2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
}

.btn-icon:hover {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.1);
    color: var(--text-bright);
    transform: translateY(-2px) scale(1.05);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1400px;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(20px);
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.nav-container {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--text-bright);
}

.logo span {
    font-weight: 300;
    opacity: 0.5;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    font-size: 0.85rem;
    font-family: var(--font-heading);
}

.nav-links a:hover {
    color: var(--text-bright);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.nav-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Hero Section (Minimalist & Massive Typography) */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    text-align: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.eyebrow {
    font-family: var(--font-heading);
    color: var(--accent);
    letter-spacing: 3px;
    font-size: 0.95rem;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 7.5rem);
    line-height: 1.05;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

.hero-title .text-sub {
    color: rgba(255, 255, 255, 0.4);
}

.hero-title .text-highlight {
    background: linear-gradient(to right, #ffffff, #6b7280);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.type-cursor {
    position: relative;
}

.type-cursor::after {
    content: '';
    position: absolute;
    right: -10px;
    bottom: 4px;
    height: 80%;
    width: 4px;
    background-color: var(--text-bright);
    animation: blink 1s step-end infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 4rem;
}

.visual-badges-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 5;
    transform: translateZ(40px);
}

.visual-badge {
    position: absolute;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    color: var(--text-bright);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.05);
    animation: float 6s ease-in-out infinite;
}

.visual-badge:nth-child(1) {
    top: 15%;
    left: 10%;
}

.visual-badge:nth-child(2) {
    top: 45%;
    right: 5%;
    animation-delay: -2s;
}

.visual-badge:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: -4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 6rem;
    align-items: center;
}

.about-profile {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    transform-style: preserve-3d;
    text-align: center;
}

.tilt-card {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.cinematic-portrait {
    width: 100%;
    aspect-ratio: 3 / 4;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: #000;
}

.portrait-base {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1) brightness(0.9);
    position: absolute;
    top: 0;
    left: 0;
    transition: filter 0.5s ease, opacity 0.5s ease;
}

.portrait-color {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    /* Spotlight mask overlay */
    -webkit-mask-image: radial-gradient(circle 120px at var(--card-mouse-x, -50%) var(--card-mouse-y, -50%), black 0%, transparent 100%);
    mask-image: radial-gradient(circle 120px at var(--card-mouse-x, -50%) var(--card-mouse-y, -50%), black 0%, transparent 100%);
    z-index: 2;
}

/* Smooth color-reveal of the base image on hover */
.cinematic-portrait:hover .portrait-base {
    filter: grayscale(0%) contrast(1.1) brightness(1);
}

/* About Card (Reference-style) */
.about-card {
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3.5rem;
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.card-corner-top {
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.2);
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.about-card-inner {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 5;
    width: 100%;
}

.about-card-left {
    width: 100%;
    min-width: 0;
}

.about-card-left .cinematic-portrait {
    width: 100%;
    max-width: 380px;
    height: 480px;
    border-radius: 12px;
    background: #000;
    overflow: hidden;
    position: relative;
}

.about-card-right {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.card-name {
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 0.9;
    font-weight: 900;
    font-family: var(--font-heading);
    letter-spacing: -1px;
    text-shadow: none;
    text-transform: uppercase;
    color: var(--text-bright);
}

.card-role-tag {
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
}

.card-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem 0;
    margin-bottom: 2.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
}

.stat-item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-bright);
    font-family: var(--font-heading);
}

.card-bio p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.card-skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.card-tag {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-tag:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-bright);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-corner-bottom-left {
    position: absolute;
    bottom: 1.5rem;
    left: 2rem;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.15);
    font-family: var(--font-heading);
}

.card-corner-bottom-right {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.15);
    font-family: var(--font-heading);
}

@media (max-width: 1024px) {
    .about-card-inner {
        grid-template-columns: 320px 1fr;
        gap: 2rem;
    }

    .about-card-left .cinematic-portrait {
        height: 400px;
    }
}

@media (max-width: 900px) {
    .about-card {
        padding: 2.5rem;
    }

    .about-card-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-card-left {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .card-header-row {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .card-stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 1rem;
    }

    .card-skills-tags {
        justify-content: center;
    }
}

/* Skills Cards */
/* Skills Bento Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 1.5rem;
}

.skill-category {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: var(--transition);
}

.category-backend,
.category-frontend,
.category-ai,
.category-cloud {
    grid-column: span 6;
}

.skill-category:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.card-bg-icon {
    position: absolute;
    right: -2rem;
    bottom: -2rem;
    font-size: 12rem;
    opacity: 0.03;
    pointer-events: none;
    transform: rotate(-15deg);
    transition: var(--transition);
}

.skill-category:hover .card-bg-icon {
    opacity: 0.06;
    transform: rotate(0deg) scale(1.1);
}

.card-label {
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    display: block;
}

.skill-category h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-bright);
    letter-spacing: -1px;
}

/* Tag variations for smaller bento boxes */
.tags-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag-pro {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.tag-pro:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
    transform: translateY(-3px);
}

@media (max-width: 900px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .category-backend,
    .category-frontend,
    .category-ai,
    .category-cloud {
        grid-column: auto;
        grid-row: auto;
    }
}

/* Experience Card V3 (Impact Focused) */
.experience-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.exp-card-inner {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.exp-card-left {
    flex: 0 0 45%;
}

.exp-status {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #4ade80;
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(74, 222, 128, 0.05);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.exp-status span {
    animation: pulseGreen 2s infinite;
    font-size: 0.8rem;
}

@keyframes pulseGreen {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.4;
    }
}

.exp-job {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-bright);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.exp-company {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 2rem;
}

.exp-company .loc {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    padding-left: 1rem;
}

.exp-focus-tags {
    display: flex;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.exp-focus-tags span {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-bright);
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.exp-focus-tags i {
    color: #fff;
    font-size: 0.8rem;
}

.exp-impact {
    display: flex;
    gap: 2.5rem;
}

.impact-item {
    display: flex;
    flex-direction: column;
}

.impact-num {
    font-size: 1.6rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-bright);
}

.impact-txt {
    font-size: 0.75rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.exp-card-right {
    flex: 1;
}

.exp-date {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    display: block;
    margin-bottom: 2.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.exp-details {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.exp-point {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.exp-point i {
    color: var(--text-bright);
    font-size: 0.9rem;
    margin-top: 0.3rem;
    opacity: 0.6;
}

.exp-point p {
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.6;
}

.exp-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.exp-tech-stack span {
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent);
    border-radius: 5px;
}

@media (max-width: 1024px) {
    .exp-card-inner {
        flex-direction: column;
        gap: 3rem;
    }

    .exp-card-left {
        flex: 0 0 100%;
    }
}

/* Enhanced Education Section */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    gap: 1.5rem;
}

.edu-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.edu-card.card-premium {
    grid-column: span 2;
    display: flex;
    gap: 3.5rem;
    padding: 3.5rem;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.edu-card-half {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.status-live {
    font-size: 0.6rem;
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-left: 0.8rem;
    vertical-align: middle;
}

.edu-degree {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-bright);
    margin: 0.5rem 0;
}

.edu-spec {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.edu-institute {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    opacity: 0.7;
}

.edu-achievements {
    display: flex;
    gap: 3rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.edu-stat {
    display: flex;
    flex-direction: column;
}

.edu-val {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-bright);
    font-family: var(--font-heading);
}

.edu-lab {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.edu-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.edu-subjects span {
    font-size: 0.8rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.edu-degree-small {
    font-size: 1.2rem;
    color: var(--text-bright);
    margin: 0.5rem 0;
}

.edu-institute-small {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 1.2rem;
    opacity: 0.6;
}

.edu-pill-v2 {
    font-size: 0.75rem;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

@media (max-width: 900px) {
    .edu-card.card-premium {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 2.5rem;
        grid-column: auto;
    }

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

    .edu-achievements {
        justify-content: center;
        gap: 2rem;
    }

    .edu-subjects {
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .edu-grid {
        grid-template-columns: 1fr;
    }

    .timeline-v2 {
        padding-left: 2rem;
    }

    .timeline-icon {
        left: -3.2rem;
        width: 2rem;
        height: 2rem;
        font-size: 0.75rem;
    }
}

/* Achievements Section */
.achieve-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.achieve-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.achieve-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--text-bright);
    margin-bottom: 2rem;
}

.achieve-title {
    font-size: 1.4rem;
    color: var(--text-bright);
    margin-bottom: 1.2rem;
}

.achieve-desc {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.achieve-badge {
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--accent);
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .achieve-grid {
        grid-template-columns: 1fr;
    }
}

/* Featured Projects */
.project-featured {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
}

.project-image-wrapper {
    grid-column: 1 / 8;
    grid-row: 1;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transform-style: preserve-3d;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--card-border);
    background: #050508;
}

.project-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top;
    display: block;
    filter: grayscale(80%) contrast(1.1) brightness(0.8);
    transition: filter 0.5s ease;
}

.project-image-wrapper:hover .project-img {
    filter: grayscale(0%) contrast(1.1) brightness(1);
}

.project-details {
    grid-column: 6 / -1;
    grid-row: 1;
    text-align: right;
    z-index: 2;
    pointer-events: none;
}

.project-details>* {
    pointer-events: auto;
}

.project-overline {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--accent);
}

.project-title {
    font-size: 1.8rem;
    margin: 0.5rem 0 1.5rem;
    color: var(--text-bright);
}

.project-description {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 1.8rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent);
    font-size: 0.95rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
    margin-bottom: 1.5rem;
}

.project-tech-list {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.project-links {
    display: flex;
    justify-content: flex-end;
    gap: 1.2rem;
    font-size: 1.3rem;
    color: var(--accent);
}

.project-links a:hover {
    color: var(--text-bright);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* Contact Specifics */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-bright);
}

.contact-item i {
    color: var(--accent);
    width: 24px;
}

.social-flex {
    display: flex;
    gap: 1rem;
}

.contact-form-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2.5rem;
    border-radius: 16px;
    position: relative;
    transform-style: preserve-3d;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 2;
    position: relative;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--text-bright);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

/* Glare for Tilt Cards */
.glass-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06), transparent 50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.tilt-card:hover .glass-glare {
    opacity: 1;
}

/* Scroll Indicator Mouse */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.5;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-main);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--text-bright);
    border-radius: 50%;
    animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* Infinite Marquee */
.marquee-divider {
    overflow: hidden;
    white-space: nowrap;
    padding: 2rem 0;
    margin-top: 5rem;
    position: relative;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.02) 20%, rgba(255, 255, 255, 0.02) 80%, transparent);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
}

.marquee-content {
    display: inline-block;
    animation: marquee-scroll 25s linear infinite;
}

.marquee-content span {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.marquee-dot {
    margin: 0 2rem;
    color: var(--accent) !important;
    opacity: 0.5;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-dark);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-bright);
    font-family: var(--font-heading);
}

.preloader-text {
    font-size: 1.5rem;
    letter-spacing: 10px;
    font-weight: 700;
    margin-bottom: 2rem;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.preloader-counter {
    font-size: clamp(2.5rem, 15vw, 4rem);
    font-weight: 300;
}

/* Hero Typography Animation Masks */
.line-mask {
    display: block;
    overflow: hidden;
    padding-bottom: 5px;
}

.hero-line {
    display: block;
    transform: translateY(100%);
    opacity: 0;
}

/* Footer */
.footer {
    text-align: center;
    padding: 4rem 0 3rem;
}

.footer-credit {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Utility Animations (Fade Up) */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive & Mobile Menu */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-bright);
    transition: var(--transition);
    border-radius: 2px;
}

/* Hamburger to X Animation */
.mobile-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 900px) {
    .container {
        width: 94%;
        padding: 0 1.5rem;
    }

    .section {
        padding: 60px 0;
    }

    /* Skills Bento Grid Mobile */
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .category-backend,
    .category-frontend,
    .category-ai,
    .category-cloud {
        grid-column: auto;
        grid-row: auto;
    }

    .skill-category {
        padding: 2rem;
    }

    .card-bg-icon {
        font-size: 8rem;
    }

    /* Experience Mobile */
    .experience-card {
        padding: 2.5rem;
    }

    /* Education Mobile */
    .edu-card.card-premium {
        flex-direction: column;
        padding: 2.5rem;
        gap: 2rem;
        text-align: center;
    }

    .edu-achievements {
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    /* Project Mobile */
    .project-featured {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .project-image-wrapper {
        grid-column: auto;
        grid-row: auto;
        width: 100%;
    }

    .project-details {
        grid-column: auto;
        grid-row: auto;
        text-align: left;
        padding-top: 1rem;
    }

    .project-description {
        padding: 1.5rem;
    }

    .project-tech-list,
    .project-links {
        justify-content: flex-start;
    }

    .mirror-layout .project-details {
        text-align: left;
    }

    .mirror-layout .project-tech-list,
    .mirror-layout .project-links {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {

    /* Navbar Mobile Menu */
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        gap: 3rem;
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 99;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

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

    .nav-links a {
        font-size: 1.5rem;
    }

    .nav-btn {
        display: none;
        /* Hide resume button from nav on mobile, maybe move it to menu */
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-primary {
        width: 100%;
    }

    /* About Card Mobile */
    .about-card {
        padding: 2rem 1.5rem;
    }

    .about-card-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .card-name {
        font-size: 2.5rem;
    }

    .card-stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem 0;
    }

    .stat-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 1rem;
    }

    /* Contact Mobile */
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .exp-job {
        font-size: 1.6rem;
    }

    .exp-impact {
        flex-direction: column;
        gap: 1.5rem;
    }

    .marquee-content span {
        font-size: 1rem;
    }

    .nav-links {
        width: 100%;
    }
}

/* =========================================
   Accessibility Utilities
   ========================================= */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.section-subtitle {
    color: var(--text-main);
    font-size: 0.95rem;
    margin-top: -1.5rem;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: 0.5px;
}

.form-status {
    font-size: 0.85rem;
    color: var(--accent);
    min-height: 1.2rem;
}

/* =========================================
   Project Cards — Click Affordance
   ========================================= */
.project-featured {
    cursor: pointer;
}

.project-featured:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 6px;
    border-radius: 16px;
}

.project-view-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    color: var(--text-bright);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 3;
    pointer-events: none;
}

.project-image-wrapper:hover .project-view-hint {
    opacity: 1;
}

.project-img-placeholder {
    display: none;
    width: 100%;
    min-height: 260px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    color: var(--text-main);
}

.project-img-placeholder i {
    font-size: 2.2rem;
    color: var(--accent);
}

.project-img-placeholder span {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* =========================================
   Project Detail Modal
   ========================================= */
.project-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.project-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.project-modal {
    position: relative;
    width: min(920px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    background: #0a0a0a;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
    display: grid;
    grid-template-columns: 1fr 1fr;
    transform: scale(0.92) translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.project-modal-overlay.active .project-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-bright);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal-media {
    position: relative;
    min-height: 260px;
    background: #000;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-image-placeholder {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    color: var(--text-main);
}

.modal-image-placeholder i {
    font-size: 2.5rem;
    color: var(--accent);
}

.modal-overline {
    position: absolute;
    bottom: 1.2rem;
    left: 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-bright);
    background: rgba(0, 0, 0, 0.6);
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.modal-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.modal-title {
    font-size: 1.6rem;
    color: var(--text-bright);
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.modal-description {
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.modal-subheading {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.modal-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.modal-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: var(--text-main);
    font-size: 0.9rem;
}

.modal-feature-list i {
    color: var(--accent);
    margin-top: 0.2rem;
}

.modal-tech-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.modal-tech-list li {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: var(--text-bright);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
}

.modal-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

@media (max-width: 900px) {
    .project-modal {
        grid-template-columns: 1fr;
        max-height: 90vh;
    }

    .modal-media {
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .project-modal-overlay {
        padding: 1rem;
    }

    .modal-body {
        padding: 1.75rem;
    }
}

/* =========================================
   Interactive Background Neural Net Canvas
   ========================================= */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 5;
}

/* =========================================
   Theme Switcher & Terminal Button Styling
   ========================================= */
.theme-toggle-btn, .terminal-toggle-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.theme-toggle-btn:hover, .terminal-toggle-btn:hover {
    border-color: var(--accent);
    color: var(--text-bright);
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.08) translateY(-1px);
    box-shadow: 0 0 15px var(--glow-strength);
}

/* =========================================
   Hacker Text Scramble Blinking Cursor
   ========================================= */
.scramble-text::after {
    content: '|';
    animation: blink-cursor 1s step-end infinite;
    margin-left: 2px;
    font-weight: 300;
    color: var(--accent);
}

@keyframes blink-cursor {
    50% { opacity: 0; }
}

/* =========================================
   Theme Variables Overrides
   ========================================= */
body.theme-mono {
    --accent: #e4e4e7;
    --glow-strength: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.08);
}

body.theme-teal {
    --accent: #00f0ff;
    --glow-strength: rgba(0, 240, 255, 0.08);
    --card-border: rgba(0, 240, 255, 0.15);
}

body.theme-teal .text-highlight {
    background: linear-gradient(to right, #00f0ff, #0088cc) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

body.theme-purple {
    --accent: #bd52f5;
    --glow-strength: rgba(189, 82, 245, 0.12);
    --card-border: rgba(189, 82, 245, 0.18);
}

body.theme-purple .text-highlight {
    background: linear-gradient(to right, #bd52f5, #7722cc) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

body.theme-green {
    --accent: #10b981;
    --glow-strength: rgba(16, 185, 129, 0.1);
    --card-border: rgba(16, 185, 129, 0.18);
}

body.theme-green .text-highlight {
    background: linear-gradient(to right, #10b981, #047857) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* General accent override rules */
body.theme-teal .logo span, 
body.theme-purple .logo span, 
body.theme-green .logo span {
    color: var(--accent);
    opacity: 0.8;
}

body.theme-teal .btn-primary:hover,
body.theme-purple .btn-primary:hover,
body.theme-green .btn-primary:hover {
    box-shadow: 0 8px 30px var(--glow-strength);
    border-color: var(--accent);
}

/* =========================================
   Retro Developer CLI Terminal Overlay
   ========================================= */
.terminal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 3, 5, 0.85);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1.5rem;
}

.terminal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.terminal-window {
    width: min(800px, 100%);
    height: 520px;
    background: #050508;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9), 0 0 40px var(--glow-strength);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.96) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.terminal-overlay.active .terminal-window {
    transform: scale(1) translateY(0);
}

.terminal-header {
    background: #0b0b0f;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

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

.terminal-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: opacity 0.2s;
}

.terminal-dots .dot:hover {
    opacity: 0.8;
}

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

.terminal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: monospace;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}

.terminal-body {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
}

.terminal-output {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex-grow: 1;
    justify-content: flex-end; /* Pin output to bottom of output space */
}

.terminal-output div {
    line-height: 1.5;
    word-break: break-all;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.8rem;
}

.terminal-prompt {
    color: var(--accent);
    font-weight: bold;
}

#terminal-input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: inherit;
    font-size: inherit;
    flex: 1;
}

.term-green { color: #10b981; }
.term-cyan { color: #00f0ff; }
.term-red { color: #f43f5e; }
.terminal-spacer { height: 10px; }

/* =========================================
   Skill Badge & Card Interaction Tweaks
   ========================================= */
.tilt-card {
    transition: transform 0.15s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
}

.tilt-card:hover {
    border-color: var(--accent) !important;
    box-shadow: 0 20px 50px var(--glow-strength) !important;
}

.tag-pro {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s, background-color 0.25s, color 0.25s;
}

.tag-pro:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 5px 15px var(--glow-strength);
}

/* =========================================
   Scroll Reveal States for GSAP ScrollTrigger
   ========================================= */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: none; /* Let GSAP handle transition */
}

/* =========================================
   Custom Cursor Trailing Follow System
   ========================================= */
.custom-cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width 0.2s, height 0.2s, background-color 0.3s;
}

.custom-cursor-ring {
    width: 30px;
    height: 30px;
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 10px var(--glow-strength);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
    will-change: top, left, width, height;
}

/* Hover expansion properties */
body.cursor-hovered .custom-cursor-dot {
    width: 0px;
    height: 0px;
    opacity: 0;
}

body.cursor-hovered .custom-cursor-ring {
    width: 52px;
    height: 52px;
    background-color: var(--cursor-bg, rgba(255, 255, 255, 0.04));
    border-color: var(--accent);
    box-shadow: 0 0 18px var(--glow-strength);
}

/* Hide default OS cursor on desktop pointer devices */
@media (pointer: fine) {
    body {
        cursor: none;
    }
    a, button, [role="button"], input, textarea, select, .tilt-card {
        cursor: none !important;
    }
}

/* Hide custom cursor on mobile touch screens */
@media (pointer: coarse) {
    .custom-cursor-dot, .custom-cursor-ring {
        display: none !important;
    }
}

/* Add custom cursor colors to theme sets */
body.theme-mono {
    --cursor-bg: rgba(228, 228, 231, 0.05);
}

body.theme-teal {
    --cursor-bg: rgba(0, 240, 255, 0.06);
}

body.theme-purple {
    --cursor-bg: rgba(189, 82, 245, 0.06);
}

body.theme-green {
    --cursor-bg: rgba(16, 185, 129, 0.06);
}

/* Make project modal widescreen image align to top */
.modal-image {
    object-position: top;
}

/* =========================================
   3D Neural Skill Core Bento Card Layout
   ========================================= */
.category-orb {
    grid-column: span 12 !important;
    padding: 3rem !important;
}

.orb-card-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
}

.orb-details {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
}

.orb-details h3 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-bright);
    letter-spacing: -1px;
}

.orb-details p {
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.6;
}

.orb-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

#skill-orb-canvas {
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
    display: block;
    background: transparent;
    cursor: grab;
}

#skill-orb-canvas:active {
    cursor: grabbing;
}

@media (max-width: 900px) {
    .orb-card-inner {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .orb-details {
        flex: 0 0 100%;
    }
    #skill-orb-canvas {
        width: 300px;
        height: 300px;
    }
}

/* =========================================================
   CodeBucks-inspired theme (cream #FCF6F4 on black)
   Source: codebucks27/react-portfolio-final
   - Karla / Source Sans Pro / Ubuntu Mono / Pacifico fonts
   - 2px solid borders, 0 50px 0 50px cards that invert on hover
   - giant faint watermark titles, fixed social rail, power button
   ========================================================= */
:root {
    --cream: #FCF6F4;
    --cream-rgb: 252, 246, 244;
    --bg-dark: #000000;
    --text-main: rgba(252, 246, 244, 0.72);
    --text-bright: #FCF6F4;
    --accent: #FCF6F4;
    --glow-strength: rgba(252, 246, 244, 0.06);
    --card-bg: transparent;
    --card-border: #FCF6F4;
    --font-heading: 'Karla', sans-serif;
    --font-body: 'Source Sans Pro', sans-serif;
    --font-mono: 'Ubuntu Mono', monospace;
    --card-radius: 0 50px 0 50px;
}

body { font-family: var(--font-body); background: #000; }
::-webkit-scrollbar-thumb { background: var(--cream); }
* { scrollbar-color: var(--cream) #000; }
.fixed-bg { background-image: none; background-color: #000; }
.fixed-bg::after { display: none; }
.cursor-glow { background: radial-gradient(circle, rgba(252, 246, 244, 0.05) 0%, transparent 60%); }

/* Section titles: solid cream + giant faint watermark */
.section { position: relative; overflow: hidden; }
.section-title {
    position: relative;
    background: none;
    -webkit-text-fill-color: var(--cream);
    color: var(--cream);
    text-shadow: none;
    letter-spacing: 0;
    font-weight: 700;
    padding-top: 2.5rem;
}
.section-title::before {
    content: attr(data-text);
    position: absolute;
    top: -0.2em;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-family: var(--font-heading);
    font-size: calc(5rem + 5vw);
    font-weight: 700;
    line-height: 1;
    color: rgba(252, 246, 244, 0.08);
    -webkit-text-fill-color: rgba(252, 246, 244, 0.08);
    text-transform: uppercase;
    pointer-events: none;
    z-index: -1;
}
.section-title::after { height: 2px; width: 80px; background: var(--cream); opacity: 1; }

/* Buttons: flat, 2px, inverting */
.btn-primary {
    background: transparent;
    backdrop-filter: none;
    color: var(--cream);
    border: 2px solid var(--cream);
    border-radius: 0 25px 0 25px;
    text-shadow: none;
    font-weight: 600;
}
.btn-primary:hover {
    background: var(--cream);
    color: #000;
    border-color: var(--cream);
    box-shadow: none;
    transform: scale(1.05);
}
.btn-icon {
    background: transparent;
    backdrop-filter: none;
    border: 2px solid var(--cream);
    border-radius: 50%;
}
.btn-icon:hover { background: var(--cream); color: #000; box-shadow: none; }
.theme-toggle-btn, .terminal-toggle-btn { background: transparent; border: 2px solid var(--cream); color: var(--cream); }
.theme-toggle-btn:hover, .terminal-toggle-btn:hover { background: var(--cream); color: #000; box-shadow: none; }

/* Navbar: flat black strip, Pacifico logo */
.navbar {
    top: 0;
    width: 100%;
    max-width: none;
    border-radius: 0;
    border: 0;
    border-bottom: 2px solid var(--cream);
    background: rgba(0, 0, 0, 0.9);
    box-shadow: none;
}
.nav-container { padding: 0.8rem 2rem 0.8rem 5.5rem; }
.logo { font-family: 'Pacifico', cursive; font-weight: 400; letter-spacing: 0; font-size: 1.8rem; color: var(--cream); }
.logo span { opacity: 1; color: var(--cream); font-weight: 400; }
.nav-links { font-family: var(--font-heading); font-weight: 500; font-size: 1rem; }
.nav-links a { position: relative; color: var(--cream); }
.nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
    background: var(--cream); transition: width 0.3s ease;
}
.nav-links a:hover { text-shadow: none; }
.nav-links a:hover::after { width: 100%; }

/* Fixed social rail (left) + power button (top left) */
.social-rail {
    position: fixed; left: 2rem; bottom: 0; z-index: 90;
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
    font-size: 1.4rem;
}
.social-rail a { color: var(--cream); animation: rail-pop 1s ease backwards; }
.social-rail a:nth-child(2) { animation-delay: 0.2s; }
.social-rail a:hover { transform: scale(1.3); }
.rail-line { width: 2px; height: 8rem; background: var(--cream); animation: rail-grow 1s ease backwards 0.4s; }
@keyframes rail-pop { 0% { transform: scale(0); } 60% { transform: scale(1.5); } 100% { transform: scale(1); } }
@keyframes rail-grow { from { height: 0; } to { height: 8rem; } }

.power-btn {
    position: fixed; top: 0.65rem; left: 1.4rem; z-index: 110;
    width: 2.5rem; height: 2.5rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--cream); color: #000; border: 1px solid #000; font-size: 1.1rem;
}
.power-btn:hover { background: rgba(0, 255, 0, 0.4); box-shadow: 0 0 8px 6px rgba(0, 255, 0, 0.2); }

/* Hero: yin-yang spinner */
.hero-yinyang {
    position: absolute; right: 4%; bottom: 8%;
    font-size: 120px; color: rgba(252, 246, 244, 0.18);
    animation: yy-spin 12s linear infinite; z-index: 1; pointer-events: none;
}
@keyframes yy-spin { to { transform: rotate(360deg); } }
.eyebrow { font-family: var(--font-mono); text-shadow: none; border-bottom: 2px solid var(--cream); color: var(--cream); }
.hero-title { text-shadow: none; font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.01em; }
.hero-title .text-sub { color: rgba(252, 246, 244, 0.4); }
.hero-title .text-highlight {
    background: none; -webkit-text-fill-color: var(--cream); color: var(--cream); text-shadow: none;
    font-family: 'Pacifico', cursive; font-weight: 400;
}
body[class*="theme-"] .hero-title .text-highlight { background: none !important; -webkit-text-fill-color: var(--accent) !important; color: var(--accent); }
.scramble-text::after { color: var(--cream); }

/* Cards: 2px border, leaf corners, invert on hover (variables cascade to children) */
.about-card, .skill-category, .experience-card, .edu-card, .edu-card-half,
.achieve-card, .project-image-wrapper, .contact-form-wrapper, .orb-container {
    background: transparent;
    border: 2px solid var(--cream);
    border-radius: var(--card-radius);
    backdrop-filter: none;
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.about-card:hover, .skill-category:hover, .experience-card:hover, .edu-card:hover,
.edu-card-half:hover, .achieve-card:hover, .project-image-wrapper:hover {
    background: var(--cream);
    color: #000;
    border-color: var(--cream);
    --text-bright: #000;
    --text-main: rgba(0, 0, 0, 0.75);
    --accent: #000;
    --card-border: rgba(0, 0, 0, 0.5);
}
.about-card:hover h1, .about-card:hover h2, .about-card:hover h3,
.skill-category:hover h3, .experience-card:hover h3, .experience-card:hover h4,
.edu-card:hover h3, .edu-card-half:hover h3, .achieve-card:hover h3 { color: #000; }
.glass-glare { display: none; }
.tag-pro, .card-tag, .exp-tech-stack span, .exp-focus-tags span, .edu-subjects span, .project-tech-list li {
    border-radius: 0 12px 0 12px;
    border-color: currentColor;
    font-family: var(--font-mono);
}
.skill-category:hover .tag-pro, .experience-card:hover .exp-tech-stack span,
.edu-card:hover .edu-subjects span, .about-card:hover .card-tag { color: #000; border-color: #000; background: transparent; }
.card-label, .project-overline, .card-corner-top, .card-corner-bottom-left, .card-corner-bottom-right,
.stat-label, .exp-date, .edu-year { font-family: var(--font-mono); }
.card-name, .project-title, .exp-job { font-family: var(--font-heading); font-weight: 700; }
.card-bio p, .project-description, .exp-point p { font-family: var(--font-mono); font-style: italic; }

/* Projects & contact accents */
.project-links a { border: 2px solid var(--cream); border-radius: 0 20px 0 20px; background: transparent; color: var(--cream); }
.project-links a:hover { background: var(--cream); color: #000; }
.contact-form input, .contact-form textarea {
    background: transparent; border: 2px solid var(--cream); border-radius: 0 20px 0 20px;
    color: var(--cream); font-family: var(--font-mono);
}
.contact-form input:focus, .contact-form textarea:focus { background: rgba(252, 246, 244, 0.06); border-color: var(--cream); box-shadow: none; }
.marquee-divider { border-color: var(--cream); }
.marquee-content span { font-family: var(--font-heading); }
.project-modal { background: #000; border: 2px solid var(--cream); border-radius: var(--card-radius); }
.terminal-window { border: 2px solid var(--cream); border-radius: 0 30px 0 30px; }
.footer-credit { font-family: var(--font-mono); font-style: italic; }
.preloader-text { font-family: 'Pacifico', cursive; letter-spacing: 0; }

@media (max-width: 900px) {
    .social-rail { display: none; }
    .nav-container { padding-left: 4.5rem; }
    .hero-yinyang { font-size: 70px; right: 4%; bottom: 4%; }
    .section-title::before { font-size: calc(3rem + 4vw); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-yinyang, .rail-line, .social-rail a { animation: none; }
}

/* Inverted-card text: force dark text for elements with hardcoded light colours */
.skill-category:hover .card-label, .about-card:hover .card-corner-top, .about-card:hover .card-corner-bottom-left,
.about-card:hover .card-corner-bottom-right, .about-card:hover .stat-label, .about-card:hover .stat-value,
.about-card:hover .card-role-tag, .experience-card:hover :is(.exp-company, .exp-date, .impact-num, .impact-txt, .exp-status),
.edu-card:hover :is(.edu-year, .edu-val, .edu-lab, .edu-institute, .edu-degree, .edu-spec),
.edu-card-half:hover :is(.edu-degree-small, .edu-institute-small, .edu-pill-v2),
.achieve-card:hover :is(.achieve-title, .achieve-desc, .achieve-badge) { color: #000; border-color: rgba(0,0,0,0.5); }
.skill-category:hover h3, .experience-card:hover :is(h3, h4), .edu-card:hover h3 { -webkit-text-fill-color: #000; }
