/* =========================================
   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);
}

.project-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    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;
    }
}