/* ==========================================================================
   NITAANTH — CRESCENT RED & BLACK PORTFOLIO THEME
   Premium design with contours, gradients, and professional aesthetics
   ========================================================================== */

/* ── IMPORTS ─────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ── ROOT TOKENS ─────────────────────────────────────────────────────────── */
:root {
    /* Core Palette */
    --bg-void:          #000000;
    --bg-card:          #000000;
    --bg-card-hover:    rgba(0, 10, 30, 0.85);
    
    /* Electric Blue spectrum */
    --blue-50:          #f0f7ff;
    --blue-100:         #e0efff;
    --blue-200:         #bce0ff;
    --blue-300:         #7fc6ff;
    --blue-400:         #3aa5ff;
    --blue-500:         #007cff;
    --blue-600:         #0059d6;
    --blue-700:         #0042a3;
    --blue-800:         #002b70;
    --blue-950:         #001133;
    
    /* Electric Blue accent — the high-tech glow */
    --crescent:         #00d2ff;
    --crescent-bright:  #0066ff;
    --crescent-soft:    #80e5ff;
    --crescent-deep:    #0033aa;
    --crescent-glow:    rgba(0, 210, 255, 0.15);
    --crescent-glow-md: rgba(0, 210, 255, 0.35);
    --crescent-glow-lg: rgba(0, 210, 255, 0.5);
    
    /* Text */
    --text-primary:     #ffffff;
    --text-secondary:   #f0f0f5;
    --text-muted:       #94a3b8;
    --text-faint:       #64748b;
    
    /* Borders - Vibrant electric blue borders on everything */
    --border-subtle:    rgba(0, 210, 255, 0.3);
    --border-default:   rgba(0, 210, 255, 0.6);
    --border-hover:     rgba(0, 210, 255, 0.95);
    --border-active:    #00d2ff;
    
    /* Typography — Serif display font matching user reference image */
    --font-display:     'Playfair Display', 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
    --font-body:        'Playfair Display', 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
    --font-mono:        'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    
    /* Spacing */
    --section-padding:  clamp(5rem, 10vw, 8rem);
    --container-max:    1200px;
    
    /* Transitions */
    --ease-out-expo:    cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring:      cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── RESET & BASE ────────────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-display);
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: var(--font-body);
    background: var(--bg-void);
    color: var(--text-secondary);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    line-height: 1.7;
    position: relative;
    font-style: normal;
}

/* ── AMBIENT BACKGROUND ──────────────────────────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── CUSTOM SCROLLBAR ────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb {
    background: var(--crescent-glow-md);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--crescent-glow-lg);
}

/* ── TYPOGRAPHY ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--text-primary);
    line-height: 1.2;
}

h1 { font-size: clamp(2.8rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; }

p { line-height: 1.8; }

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s var(--ease-out-expo);
}

img { display: block; max-width: 100%; }

/* ── CONTAINER ───────────────────────────────────────────────────────────── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* ── SECTION STYLING ─────────────────────────────────────────────────────── */
.section {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 1;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.section-number {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--crescent);
    letter-spacing: 0.15em;
}

.section-title {
    white-space: nowrap;
}

.section-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-hover), transparent 80%);
}

/* ── NAVBAR ──────────────────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    z-index: 100;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(3, 1, 8, 0.4);
    transition: all 0.4s var(--ease-out-expo);
}

.navbar.scrolled {
    height: 60px;
    background: rgba(3, 1, 8, 0.85);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
    border-bottom-color: var(--border-default);
}

.navbar-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.logo-accent {
    color: var(--crescent);
    font-style: italic;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, var(--crescent), var(--crescent-bright));
    transition: width 0.4s var(--ease-out-expo);
}

.nav-link:hover, .nav-link.active {
    color: var(--crescent);
    text-shadow: 0 0 20px var(--crescent-glow);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-default);
    border-radius: 8px;
    padding: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    border-color: var(--border-hover);
    color: var(--crescent);
}

.mobile-toggle svg {
    width: 20px;
    height: 20px;
}

/* Mobile Nav Panel */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 360px;
    height: 100vh;
    background: rgba(3, 1, 8, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-left: 1px solid var(--border-default);
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: right 0.5s var(--ease-out-expo);
}

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

.mobile-nav .nav-link {
    font-size: 0.85rem;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ── HERO / ABOUT ME ─────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    padding-bottom: 80px;
    z-index: 1;
    overflow: hidden;
    background: #000000;
    border-bottom: 1.5px solid var(--border-default);
}

/* ── HERO RESPONSIVE TWO-COLUMN GRID ────────────────────────────────────────── */
.hero-container-relative {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-grid-layout {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hero-portrait-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-portrait-frame {
    position: relative;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 4 / 5;
    border-radius: 24px;
    overflow: hidden;
    border: 1.5px solid var(--border-default);
    background: rgba(0, 10, 30, 0.6);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px var(--crescent-glow-md);
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo);
}

.hero-portrait-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    pointer-events: none;
    box-shadow: inset 0 0 25px rgba(0, 210, 255, 0.2);
}

.hero-portrait-frame:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--crescent);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 45px var(--crescent-glow-lg);
}

.hero-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.6s var(--ease-out-expo);
}

.hero-portrait-frame:hover .hero-portrait-img {
    transform: scale(1.05);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    background: var(--crescent-glow);
    border: 1px solid rgba(0, 210, 255, 0.3);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--crescent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    width: fit-content;
    animation: badgePulse 2.5s infinite ease;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--crescent);
    box-shadow: 0 0 10px var(--crescent);
}

@keyframes badgePulse {
    0%   { box-shadow: 0 0 0 0 var(--crescent-glow-md); }
    70%  { box-shadow: 0 0 0 12px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

.hero-greeting {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--crescent-soft);
    letter-spacing: 0.04em;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 8vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.05;
    background: linear-gradient(135deg, #ffffff 30%, #a5e9ff 70%, #00d2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 4px 30px rgba(0, 210, 255, 0.2);
}

.hero-skills {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--crescent-soft);
    letter-spacing: 0.05em;
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.hero-university {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--crescent);
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.hero-description {
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: #e2e8f0;
    max-width: 680px;
    margin-bottom: 2rem;
    line-height: 1.85;
    font-weight: 400;
}

.hero-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2.5rem;
}

.interest-tag {
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid rgba(0, 210, 255, 0.25);
    background: rgba(0, 210, 255, 0.05);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--crescent-soft);
    letter-spacing: 0.08em;
    transition: all 0.3s ease;
}

.interest-tag:hover {
    background: rgba(0, 210, 255, 0.15);
    border-color: var(--border-hover);
    transform: translateY(-1px);
    box-shadow: 0 0 15px var(--crescent-glow-md);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #ffffff 0%, #00d2ff 100%);
    color: #000000;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 210, 255, 0.25);
    transition: all 0.4s var(--ease-out-expo);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 210, 255, 0.5);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 100px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.4s var(--ease-out-expo);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    background: rgba(0, 210, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.25);
}

/* Fallback if portrait image fails to load */
.hero-portrait-frame.img-fallback {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 43, 112, 0.8) 60%, rgba(0, 210, 255, 0.2) 100%);
}

/* Fallback initial */
.profile-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-void) 0%, rgba(12, 3, 8, 1) 100%);
    font-family: var(--font-display);
    font-size: 6rem;
    font-weight: 800;
    color: var(--crescent);
    opacity: 0.3;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.scroll-mouse {
    width: 20px;
    height: 32px;
    border: 1.5px solid var(--border-default);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-dot {
    width: 3px;
    height: 7px;
    background: var(--crescent);
    border-radius: 3px;
    animation: scrollBounce 2s infinite ease;
}

@keyframes scrollBounce {
    0%   { opacity: 0; transform: translateY(-3px); }
    30%  { opacity: 1; }
    60%  { opacity: 0; transform: translateY(8px); }
    100% { opacity: 0; }
}

/* ── CARD SYSTEM ─────────────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.12), transparent 50%, rgba(0, 210, 255, 0.06));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 210, 255, 0.35);
}

.card:hover::before {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.6), transparent 50%, rgba(0, 102, 255, 0.3));
}

/* ── EDUCATION CARDS ─────────────────────────────────────────────────────── */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: 2rem;
}

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

.edu-image {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.edu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55) saturate(0.85);
    transition: all 0.6s ease;
}

.edu-card:hover .edu-image img {
    filter: brightness(0.7) saturate(1);
    transform: scale(1.04);
}

.edu-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(3, 1, 8, 0.9) 100%);
    pointer-events: none;
}

.edu-image-placeholder {
    font-size: 2.5rem;
    color: var(--crescent);
    opacity: 0.15;
    font-family: var(--font-display);
}

.edu-level-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(225, 29, 72, 0.1);
    font-family: var(--font-mono);
    font-size: 0.5rem;
    font-weight: 700;
    color: var(--crescent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    z-index: 2;
}

.edu-grade-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(225, 29, 72, 0.1);
    border: 1px solid rgba(225, 29, 72, 0.2);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--crescent-bright);
    z-index: 2;
}

.edu-body-grade {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--crescent);
    background: var(--crescent-glow);
    border: 1px solid var(--border-subtle);
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    font-weight: 600;
}

.edu-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.edu-institution {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.edu-card:hover .edu-institution {
    color: var(--crescent);
}

.edu-degree {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--crescent-soft);
    margin-bottom: 8px;
    opacity: 0.8;
}

.edu-meta {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-faint);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.edu-activities {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.edu-activities-title {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--crescent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.edu-activities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.activity-chip {
    padding: 3px 10px;
    border-radius: 100px;
    background: rgba(225, 29, 72, 0.04);
    border: 1px solid var(--border-subtle);
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.activity-chip:hover {
    background: rgba(225, 29, 72, 0.08);
    border-color: var(--border-hover);
    color: var(--crescent-soft);
}

/* ── CO-CURRICULARS ──────────────────────────────────────────────────────── */
.cocurricular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: 1.5rem;
}

.cocurricular-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
}

.cocurricular-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--crescent-glow);
    border: 1.5px solid var(--border-default);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--crescent);
    flex-shrink: 0;
}

.cocurricular-icon svg {
    width: 20px;
    height: 20px;
    color: var(--crescent);
}

.cocurricular-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.cocurricular-item:hover .cocurricular-title {
    color: var(--crescent);
}

.cocurricular-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── PROJECT / WORK / CERT CARDS ─────────────────────────────────────────── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
}

.project-card-body {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.project-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--crescent-glow);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--crescent);
    font-size: 1.1rem;
}

.project-status {
    padding: 3px 10px;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 700;
}

.status-live {
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
    background: rgba(34, 197, 94, 0.05);
}

.status-beta {
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.2);
    background: rgba(234, 179, 8, 0.05);
}

.status-cli {
    color: #00d2ff;
    border: 1px solid rgba(0, 210, 255, 0.3);
    background: rgba(0, 210, 255, 0.08);
}

.status-testing {
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.08);
}

.status-dev {
    color: var(--crescent-soft);
    border: 1px solid rgba(225, 29, 72, 0.15);
    background: var(--crescent-glow);
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.card:hover .project-title {
    color: var(--crescent);
}

.project-domain-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--crescent);
    background: rgba(0, 210, 255, 0.06);
    border: 1px solid rgba(0, 210, 255, 0.15);
    margin-bottom: 0.8rem;
    width: fit-content;
}

.project-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.2rem;
    flex-grow: 1;
    font-weight: 300;
}

.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1.2rem;
}

.tag {
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.tag:hover {
    border-color: var(--border-hover);
    color: var(--crescent-soft);
}

.project-links {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--crescent);
}

.project-link svg {
    width: 14px;
    height: 14px;
}

.project-link-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-faint);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    padding: 3px 9px;
    border-radius: 5px;
    cursor: default;
}

.project-link-badge.badge-testing {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.08);
}

.project-link-badge.badge-cli {
    color: #00d2ff;
    border-color: rgba(0, 210, 255, 0.3);
    background: rgba(0, 210, 255, 0.08);
}

/* ── WORK TIMELINE ───────────────────────────────────────────────────────── */
.work-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.work-card {
    padding: 2rem;
    display: block;
    cursor: pointer;
}

.work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.work-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.card:hover .work-title {
    color: var(--crescent);
}

.work-company {
    font-size: 0.85rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--crescent), var(--crescent-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.work-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.work-period {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-faint);
    letter-spacing: 0.1em;
}

.work-role {
    padding: 3px 10px;
    border-radius: 6px;
    background: var(--crescent-glow);
    border: 1px solid rgba(225, 29, 72, 0.1);
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--crescent);
    font-weight: 600;
}

.work-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-weight: 300;
}

.work-view-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: rgba(225, 29, 72, 0.5);
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

.card:hover .work-view-link {
    color: var(--crescent);
}

.work-view-link svg {
    width: 12px;
    height: 12px;
}

/* ── NOBLENET STORY & VENTURES SECTION ───────────────────────────────────── */
.noblenet-story-card {
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    background: rgba(10, 16, 28, 0.75);
    border: 1px solid rgba(0, 210, 255, 0.28);
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.45), inset 0 0 35px rgba(0, 210, 255, 0.03);
    backdrop-filter: blur(12px);
    margin-bottom: 2rem;
}

.noblenet-card-glow {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.12) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

.noblenet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.noblenet-title-group {
    flex-grow: 1;
}

.noblenet-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.noblenet-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: #00d2ff;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.35);
    padding: 4px 12px;
    border-radius: 9999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.noblenet-badge-secondary {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    padding: 4px 12px;
    border-radius: 9999px;
}

.noblenet-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.45rem 0;
    letter-spacing: -0.01em;
}

.noblenet-lineage {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--crescent-soft);
    font-weight: 400;
}

.noblenet-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.noblenet-period {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-faint);
}

.noblenet-status-pill {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #10b981;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.noblenet-body {
    position: relative;
    z-index: 1;
}

.noblenet-narrative {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.noblenet-narrative strong {
    color: var(--text-primary);
    font-weight: 600;
}

.noblenet-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2rem;
}

.highlight-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-primary);
    background: rgba(0, 210, 255, 0.05);
    border: 1px solid rgba(0, 210, 255, 0.2);
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 500;
}

.pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00d2ff;
    box-shadow: 0 0 6px #00d2ff;
}

.noblenet-projects-section {
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

.noblenet-projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 10px;
}

.noblenet-projects-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.noblenet-projects-count {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--crescent);
    background: var(--crescent-glow);
    border: 1px solid var(--border-subtle);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.noblenet-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
}

.client-project-card {
    background: rgba(14, 22, 38, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.client-project-card:hover {
    background: rgba(16, 28, 48, 0.8);
    border-color: rgba(0, 210, 255, 0.45);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 210, 255, 0.1);
}

.client-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.client-badge-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.client-category-badge {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    color: var(--crescent-soft);
    background: rgba(0, 210, 255, 0.08);
    border: 1px solid rgba(0, 210, 255, 0.25);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.client-status-badge.status-live {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 600;
}

.client-status-badge.status-prelaunch {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 600;
}

.client-project-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    transition: color 0.3s ease;
}

.client-project-card:hover .client-project-name {
    color: var(--crescent);
}

.client-role-title {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
}

.client-link-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.client-project-card:hover .client-link-icon {
    color: #00d2ff;
    border-color: rgba(0, 210, 255, 0.4);
    background: rgba(0, 210, 255, 0.1);
    transform: translate(2px, -2px);
}

.client-project-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.2rem;
    font-weight: 300;
    flex-grow: 1;
}

.client-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
    flex-wrap: wrap;
}

.client-note {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-faint);
}

.client-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--crescent);
    font-weight: 600;
    transition: transform 0.2s ease;
}

.client-project-card:hover .client-action-btn {
    color: var(--crescent-bright);
}

@media (max-width: 768px) {
    .noblenet-story-card {
        padding: 1.5rem;
    }
    .noblenet-title {
        font-size: 1.4rem;
    }
    .noblenet-meta {
        align-items: flex-start;
    }
    .noblenet-projects-grid {
        grid-template-columns: 1fr;
    }
}

/* ── RESEARCH PAPERS (Single Unified Container) ────────────────────────── */
.research-unified-container {
    padding: 0 !important;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
}

.research-disclaimer-banner {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.6rem 2rem;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.06) 0%, rgba(0, 43, 112, 0.08) 100%);
    border-bottom: 1px solid rgba(0, 210, 255, 0.18);
}

.disclaimer-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--crescent-glow);
    border: 1.5px solid var(--border-default);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--crescent);
    flex-shrink: 0;
}

.disclaimer-content {
    flex: 1;
}

.disclaimer-title {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--crescent-soft);
    margin-bottom: 5px;
    letter-spacing: -0.01em;
}

.disclaimer-text {
    font-size: 0.81rem;
    color: var(--text-muted);
    line-height: 1.65;
    font-weight: 300;
}

.disclaimer-text strong {
    color: #ffffff;
    font-weight: 600;
}

.research-items-list {
    display: flex;
    flex-direction: column;
}

.research-item-row {
    display: flex;
    align-items: flex-start;
    gap: 1.35rem;
    padding: 1.85rem 2rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.research-item-row:last-child {
    border-bottom: none;
}

.research-item-row:hover {
    background: linear-gradient(90deg, rgba(0, 210, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.research-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--crescent-glow);
    border: 1px solid var(--border-default);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--crescent);
    flex-shrink: 0;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-item-row:hover .research-icon {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 210, 255, 0.3);
}

.research-row-content {
    flex-grow: 1;
    min-width: 0;
}

.research-row-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.research-title {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.research-item-row:hover .research-title {
    color: var(--crescent);
}

.research-status-note {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--crescent-soft);
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.research-abstract {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 300;
}

.research-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--crescent);
    margin-top: 10px;
    transition: all 0.3s ease;
}

.research-item-row:hover .research-link {
    color: var(--crescent-bright);
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .research-disclaimer-banner {
        padding: 1.25rem 1.2rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    .research-item-row {
        padding: 1.35rem 1.2rem;
        flex-direction: column;
        gap: 0.9rem;
    }
    .research-icon {
        width: 38px;
        height: 38px;
    }
}

/* ── CERTIFICATIONS ──────────────────────────────────────────────────────── */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1.5rem;
}

.cert-card {
    padding: 1.8rem;
    text-align: center;
    cursor: pointer;
}

.cert-badge {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cert-title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.card:hover .cert-title {
    color: var(--crescent);
}

.cert-issuer {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.cert-date {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--crescent-soft);
    opacity: 0.95;
}

.cert-verify {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--crescent);
    margin-top: 12px;
    transition: all 0.3s ease;
}

.card:hover .cert-verify {
    color: #ffffff;
    text-shadow: 0 0 8px var(--crescent-glow-md);
}

/* ── COVER LETTER ────────────────────────────────────────────────────────── */
.cover-letter-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.cover-letter-card {
    padding: 3rem;
    position: relative;
    overflow: visible;
}

.cover-letter-card::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 2rem;
    right: 2rem;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--crescent), transparent);
    border-radius: 2px;
}

.cover-letter-salutation {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.cover-letter-body p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 1.2rem;
    font-weight: 300;
}

.cover-letter-body p strong {
    color: var(--crescent-soft);
    font-weight: 600;
}

.cover-letter-closing {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.cover-letter-closing p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.cover-letter-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--crescent-bright), var(--crescent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cover-letter-download {
    margin-top: 2rem;
    text-align: center;
}

/* ── CONTACT SECTION ─────────────────────────────────────────────────────── */
.contact-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-terminal-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 550px;
    flex: 1 1 450px;
}

.terminal-bar {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.terminal-dot:nth-child(1) { background: var(--crescent); }
.terminal-dot:nth-child(2) { background: var(--crescent-deep); }
.terminal-dot:nth-child(3) { background: var(--red-950); }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-faint);
    font-weight: 600;
    margin-left: 12px;
}

.terminal-body {
    padding: 1.5rem;
    flex-grow: 1;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 2;
}

.terminal-prompt {
    color: var(--crescent);
}

.terminal-cursor {
    animation: cursorBlink 1.1s infinite step-end;
}

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

/* Contact Form */
.contact-form {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    max-width: 550px;
    flex: 1 1 450px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.3s ease;
    resize: none;
}

.form-input:focus {
    border-color: var(--border-active);
}

.form-input::placeholder {
    color: var(--text-faint);
    font-weight: 400;
}

.form-label {
    position: absolute;
    left: 16px;
    top: 14px;
    font-size: 0.72rem;
    color: var(--text-faint);
    pointer-events: none;
    transition: all 0.3s var(--ease-out-expo);
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    transform: translate(-4px, -28px);
    font-size: 0.6rem;
    color: var(--crescent);
}

.btn-submit {
    align-self: flex-start;
}

.form-feedback {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    display: none;
}

.form-feedback.show {
    display: block;
}

.form-feedback.success { color: #22c55e; }
.form-feedback.error   { color: var(--crescent); }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border-subtle);
    background: rgba(0, 0, 0, 0.6);
    padding: 2.5rem 0;
    position: relative;
    z-index: 1;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-faint);
}

.footer-tagline {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 300;
}

.footer-contact-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.footer-email-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--crescent);
    background: rgba(0, 210, 255, 0.06);
    border: 1px solid rgba(0, 210, 255, 0.25);
    padding: 6px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-email-link:hover {
    background: rgba(0, 210, 255, 0.12);
    border-color: rgba(0, 210, 255, 0.5);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.footer-socials {
    display: flex;
    gap: 8px;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-default);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s var(--ease-out-expo);
}

.social-icon:hover {
    border-color: var(--border-hover);
    color: var(--crescent);
    transform: translateY(-2px);
}

.social-icon svg {
    width: 14px;
    height: 14px;
}

/* ── SCROLL REVEAL ───────────────────────────────────────────────────────── */
.scroll-reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── LOADING SKELETON ────────────────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(225, 29, 72, 0.03) 25%,
        rgba(225, 29, 72, 0.06) 50%,
        rgba(225, 29, 72, 0.03) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.8s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 14px;
    margin-bottom: 10px;
    width: 80%;
}

.skeleton-title {
    height: 22px;
    margin-bottom: 12px;
    width: 60%;
}

/* ── RESPONSIVE BREAKPOINTS ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-grid-layout {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 2.5rem;
    }
    
    .hero-portrait-frame {
        max-width: 320px;
    }
    
    .hero-description {
        max-width: 100%;
    }
    
    .edu-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .certs-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    
    .cocurricular-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 110px;
        padding-bottom: 60px;
        min-height: auto;
    }

    .hero-grid-layout {
        grid-template-columns: 1fr;
        gap: 2.2rem;
        text-align: center;
    }

    .hero-portrait-wrapper {
        order: -1;
        margin: 0 auto;
    }

    .hero-portrait-frame {
        max-width: 240px;
        aspect-ratio: 4 / 5;
        border-radius: 20px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 25px var(--crescent-glow-md);
    }

    .hero-content {
        align-items: center;
        text-align: center;
    }

    .hero-greeting {
        margin-bottom: 0.2rem;
    }

    .hero-name {
        font-size: clamp(2.6rem, 10vw, 3.8rem);
        margin-bottom: 0.8rem;
    }

    .hero-skills {
        font-size: 0.82rem;
        text-align: center;
        margin-bottom: 0.8rem;
    }

    .hero-university {
        font-size: 0.68rem;
        text-align: center;
        margin-bottom: 1.2rem;
    }

    .hero-description {
        text-align: center;
        font-size: 0.95rem;
        line-height: 1.75;
        margin-bottom: 1.8rem;
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
        width: 100%;
        gap: 0.85rem;
    }

    .nav-links {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .noblenet-projects-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .work-header {
        flex-direction: column;
    }
    
    .cover-letter-card {
        padding: 1.75rem 1.25rem;
    }

    .noblenet-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

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

    .hero {
        padding-top: 95px;
        padding-bottom: 45px;
    }

    .hero-portrait-frame {
        max-width: 200px;
        border-radius: 18px;
    }

    .hero-name {
        font-size: clamp(2.2rem, 11vw, 3rem);
    }

    .hero-description {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
        font-size: 0.82rem;
    }

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

    .edu-card-body {
        padding: 1.25rem 1rem;
    }

    .project-card-body {
        padding: 1.4rem 1.1rem;
    }

    .client-project-card {
        padding: 1.25rem 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

/* ── SENTINEL AI CLI MODAL & TERMINAL SNIPPETS ──────────────────────────── */
.sentinel-cli-trigger {
    cursor: pointer !important;
    user-select: none;
    transition: all 0.25s ease;
}

.sentinel-cli-trigger:hover {
    transform: translateY(-2px);
    border-color: var(--crescent) !important;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
    color: var(--crescent-bright) !important;
}

.sentinel-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sentinel-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.sentinel-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 18, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.sentinel-modal-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 860px;
    max-height: 88vh;
    background: #090e17;
    border: 1px solid rgba(0, 210, 255, 0.35);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 210, 255, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(12px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.sentinel-terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.terminal-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red {
    background: #ff5f56;
    cursor: pointer;
    transition: opacity 0.2s;
}

.dot-red:hover {
    opacity: 0.8;
}

.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #27c93f;
}

.terminal-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--crescent-soft);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.sentinel-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sentinel-close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.sentinel-modal-body {
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sentinel-modal-body::-webkit-scrollbar {
    width: 8px;
}

.sentinel-modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.sentinel-modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 210, 255, 0.25);
    border-radius: 4px;
}

.sentinel-intro {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.06) 0%, rgba(0, 43, 112, 0.08) 100%);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 14px;
    padding: 16px 20px;
}

.sentinel-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.sentinel-intro-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.sentinel-snippets-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sentinel-snippet-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.sentinel-snippet-card:hover {
    border-color: rgba(0, 210, 255, 0.3);
    background: rgba(0, 210, 255, 0.02);
}

.snippet-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.snippet-num {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--crescent);
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.3);
    padding: 2px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}

.snippet-info {
    flex-grow: 1;
}

.snippet-title {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.snippet-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.snippet-desc code {
    font-family: var(--font-mono);
    color: var(--crescent-soft);
    background: rgba(0, 210, 255, 0.08);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.74rem;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: rgba(0, 210, 255, 0.12);
    border-color: rgba(0, 210, 255, 0.4);
    color: var(--crescent-bright);
}

.copy-btn.copied {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
    color: #34d399 !important;
}

.terminal-block {
    background: #04070d;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 12px 16px;
    overflow-x: auto;
}

.terminal-block pre {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.6;
    color: #f1f5f9;
}

.terminal-block code {
    font-family: inherit;
}

.terminal-block .prompt {
    color: var(--crescent);
    font-weight: 700;
    user-select: none;
    margin-right: 6px;
}

.terminal-block .comment {
    color: #64748b;
    font-style: italic;
    display: block;
}

@media (max-width: 640px) {
    .snippet-header {
        flex-direction: column;
        gap: 8px;
    }
    .copy-btn {
        align-self: flex-start;
    }
    .sentinel-modal-container {
        max-height: 94vh;
        border-radius: 14px;
    }
    .sentinel-modal-body {
        padding: 16px;
    }
}
