/* ==========================================================================
   CINEMATIC DARK GLASSMORPHISM DESIGN SYSTEM
   Portfolio: Pitchayut Boonporn (Computer Engineering @ Mahidol)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&family=Syne:wght@600;700;800&display=swap');

:root {
    /* Color Palette */
    --bg-base: #07070a;
    --bg-secondary: #0c0d12;
    --bg-surface: rgba(255, 255, 255, 0.035);
    --bg-surface-hover: rgba(255, 255, 255, 0.065);
    --bg-glass-elevated: rgba(255, 255, 255, 0.05);

    /* Glass Borders */
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-glass-hover: rgba(255, 255, 255, 0.22);
    --border-glass-active: rgba(245, 158, 11, 0.4);

    /* Text Colors */
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    /* Accents */
    --accent-gold: #f59e0b;
    --accent-gold-light: #fbbf24;
    --accent-gold-glow: rgba(245, 158, 11, 0.22);
    --accent-cyan: #06b6d4;
    --accent-cyan-glow: rgba(6, 182, 212, 0.2);

    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Sizing & Transitions */
    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base & Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

body {
    background-color: var(--bg-base);
    background-image:
        radial-gradient(circle at 50% -10%, rgba(245, 158, 11, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 85% 35%, rgba(6, 182, 212, 0.02) 0%, transparent 40%),
        radial-gradient(circle at 15% 75%, rgba(245, 158, 11, 0.03) 0%, transparent 45%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    min-height: 100vh;
    position: relative;
}

::selection {
    background: var(--accent-gold);
    color: #07070a;
}

/* --- Film Grain Overlay --- */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Touch & Mobile Cursor Disabling */
@media (hover: none) or (pointer: coarse) {
    .cursor-dot, .cursor-outline {
        display: none !important;
    }
}

/* --- Custom Cursor --- */
.cursor-dot, .cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-gold);
    box-shadow: 0 0 10px var(--accent-gold);
}

.cursor-outline {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.02);
    transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, transform 0.1s ease-out;
}

body.cursor-hover .cursor-outline {
    width: 52px;
    height: 52px;
    border-color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.08);
}

/* --- Layout Container --- */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Glassmorphic Navigation Bar --- */
.glass-nav {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 8%;
    background: rgba(7, 7, 10, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand .brand-badge {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-gold);
    box-shadow: 0 0 10px var(--accent-gold);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1.35rem;
    border-radius: 9999px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    line-height: 1.2;
    transition: var(--transition-smooth);
}

.pill-btn-outline {
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.pill-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-glass-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.pill-btn-primary {
    background: #ffffff;
    color: #07070a !important;
    border: 1px solid #ffffff;
}

.pill-btn-primary:hover {
    background: var(--accent-gold-light);
    border-color: var(--accent-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-gold-glow);
}

/* --- Hero Section with Cinematic Depth --- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem 3rem;
    overflow: hidden;
}

.hero-watermark {
    position: absolute;
    top: 36%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: clamp(4.5rem, 16vw, 13rem);
    font-weight: 800;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.025);
    user-select: none;
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.75rem;
}

.profile-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 25px var(--accent-gold-glow);
    transition: var(--transition-smooth);
}

.avatar-wrapper:hover .profile-img {
    transform: scale(1.03);
    border-color: var(--accent-gold);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.35rem 0.95rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-gold-light);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(12px);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-gold);
    box-shadow: 0 0 8px var(--accent-gold);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero h1 .highlight {
    color: var(--accent-gold);
}

.typewriter-cursor {
    display: inline-block;
    color: var(--accent-gold);
    font-weight: 300;
    animation: blink 0.8s infinite;
}

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

.hero-subheading {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 2.2rem;
    font-weight: 400;
}

.hero-subheading .highlight-tag {
    color: var(--accent-gold-light);
    font-weight: 500;
}

/* --- Social Link Badges --- */
.hero-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.8rem;
}

.social-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.social-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -3px var(--accent-gold-glow);
}

/* --- Floating Highlight Micro-Pills (Hero Cards) --- */
.hero-pills {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.hero-pill-card {
    background: transparent;
    border-top: 1px solid var(--border-glass);
    padding: 1.1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    transition: var(--transition-smooth);
}

.hero-pill-card:nth-child(even) {
    transform: translateY(16px);
}

.hero-pill-card:hover {
    border-top-color: var(--accent-gold-light);
    transform: translateY(-2px);
}

.hero-pill-card:nth-child(even):hover {
    transform: translateY(14px);
}

.pill-card-icon {
    font-size: 1.25rem;
    color: var(--accent-gold);
    margin-bottom: 0.2rem;
}

.pill-card-title {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.pill-card-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- Line-Bracketed Section Dividers --- */
.section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 5rem 0 2.5rem;
}

.section-header::before,
.section-header::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
}

.section-header::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.12), transparent);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 600;
    font-style: italic;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-title i {
    font-size: 0.95rem;
    color: var(--accent-gold);
}

/* --- Glass Panels & Cards --- */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 24px 4px 24px 24px;
    padding: 2.2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-panel:hover {
    border-color: var(--border-glass-hover);
    background: var(--bg-surface-hover);
}

/* --- About Statement --- */
.about-statement {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 860px;
    margin: 0 auto;
}

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

.about-statement .accent-text {
    color: var(--accent-gold-light);
    font-weight: 500;
}

/* --- Vertical Node Timeline --- */
.timeline-track {
    position: relative;
    padding-left: 2.5rem;
    margin: 1.5rem 0;
}

.timeline-track::before {
    content: "";
    position: absolute;
    top: 15px;
    bottom: 25px;
    left: 11px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-gold) 0%, rgba(255, 255, 255, 0.12) 80%, transparent 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-node {
    position: absolute;
    left: -2.5rem;
    top: 1.35rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-base);
    border: 2px solid var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 14px var(--accent-gold-glow);
    z-index: 2;
}

.timeline-node::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-gold);
}

.timeline-card {
    border-top: 1px solid var(--border-glass);
    padding: 1.6rem 0;
    transition: var(--transition-smooth);
    display: grid;
    grid-template-columns: 1fr 240px;
    grid-template-rows: auto auto;
    column-gap: 1.75rem;
    row-gap: 0.6rem;
    align-items: center;
}

.timeline-card:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-glass-hover);
    transform: translateX(4px);
}

.timeline-header {
    grid-column: 1;
    grid-row: 1;
}

.timeline-desc {
    grid-column: 1;
    grid-row: 2;
}

.timeline-chevron {
    display: none !important;
}

.timeline-image-zone {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 240px;
    height: 135px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-radius 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    align-self: center;
}

/* Organic Blob Shapes for Placeholders */
.timeline-item:nth-child(1) .timeline-image-zone { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
.timeline-item:nth-child(2) .timeline-image-zone { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
.timeline-item:nth-child(3) .timeline-image-zone { border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%; }
.timeline-item:nth-child(4) .timeline-image-zone { border-radius: 84% 16% 85% 15% / 21% 83% 17% 79%; }
.timeline-item:nth-child(5) .timeline-image-zone { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }

.timeline-card:hover .timeline-image-zone {
    border-radius: 40% 60% 50% 50% / 50% 50% 60% 40%; /* Organic morph on hover */
}

.timeline-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    position: relative;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.timeline-card:hover .timeline-img {
    opacity: 0.95;
}

.timeline-image-zone {
    text-decoration: none;
    display: block;
}

.timeline-image-zone:hover .timeline-img {
    transform: scale(1.08);
    opacity: 1;
}

.timeline-image-zone::after {
    content: "Placeholder";
    position: absolute;
    z-index: 0;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
}
.timeline-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.timeline-meta .role {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.timeline-meta .timeline-year,
.timeline-meta .badge-year {
    font-family: var(--font-mono);
    font-size: 0.84rem;
    color: var(--accent-gold-light);
    font-weight: 500;
    letter-spacing: 0.04em;
    background: transparent;
    border: none;
    padding: 0;
}

.timeline-org {
    font-size: 0.92rem;
    color: var(--accent-cyan);
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Core Expertise Bento Grid --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.bento-card {
    padding: 1.8rem 0;
    border-top: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.bento-card:first-child {
    grid-column: 1 / -1;
}

.bento-card:hover {
    border-top-color: var(--accent-gold-light);
    transform: translateY(-2px);
}

.bento-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.bento-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-gold);
}

.bento-card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.bento-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.skill-chip {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.skill-chip:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--accent-gold);
    color: #ffffff;
    transform: translateY(-2px);
}

/* --- Featured Projects Cards --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.project-card {
    padding: 1.8rem 0;
    border-top: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.project-card:hover {
    border-top-color: var(--accent-gold-light);
    transform: translateY(-2px);
}

.project-tag {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    font-style: italic;
    color: var(--accent-gold-light);
    margin-bottom: 0.6rem;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.7rem;
}

.project-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.4rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.4rem;
}

.tech-badge {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.project-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-links .pill-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    gap: 0.35rem;
    border-radius: 9999px;
    line-height: 1.2;
}

.project-links .pill-btn i {
    font-size: 0.74rem;
}

/* --- Flagship Project Showcase Card --- */
.project-card.project-flagship {
    grid-column: 1 / -1;
    background: transparent;
    border-top: 1px solid rgba(245, 158, 11, 0.4);
    padding: 2.4rem 0;
    position: relative;
    overflow: hidden;
}

.project-card.project-flagship::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.project-card.project-flagship:hover {
    border-top-color: rgba(245, 158, 11, 0.8);
    transform: translateY(-2px);
}

.flagship-meta-row,
.flagship-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.flagship-meta-info,
.flagship-tag-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.flagship-kicker {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-gold);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.meta-divider {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.75rem;
}

.status-live,
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: #34d399;
    letter-spacing: 0.03em;
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.flagship-visit-btn {
    font-size: 0.85rem;
    padding: 0.55rem 1.35rem;
    gap: 0.5rem;
    display: inline-flex;
    align-items: center;
}

.flagship-header {
    margin-bottom: 1.6rem;
}

.flagship-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.8vw, 1.85rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin-top: 0.35rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.flagship-desc {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.68;
    max-width: 900px;
}

/* 4 Engineering Highlight Pillars Sub-Grid */
.flagship-pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
    margin: 1.5rem 0 1.8rem;
}

.pillar-card {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px 4px 16px 16px;
    padding: 1.15rem 1.35rem;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.pillar-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.4);
}

.pillar-card.is-expanded {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(212, 163, 115, 0.35);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.pillar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.pillar-icon {
    font-size: 1.1rem;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: rgba(212, 163, 115, 0.1);
    border: 1px solid rgba(212, 163, 115, 0.2);
    border-radius: 8px;
    transition: var(--transition-smooth);
    margin-bottom: 0;
}

.pillar-card:hover .pillar-icon,
.pillar-card.is-expanded .pillar-icon {
    background: rgba(212, 163, 115, 0.2);
    border-color: rgba(212, 163, 115, 0.45);
    color: #ffffff;
}

.pillar-title {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.35;
}

.pillar-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease,
                margin-top 0.25s ease;
}

.pillar-card.is-expanded .pillar-desc {
    max-height: 250px;
    opacity: 1;
    margin-top: 0.75rem;
}

.code-inline {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    color: var(--accent-gold-light);
}

.flagship-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.4rem;
}

.tech-badge-highlight {
    background: rgba(245, 158, 11, 0.12) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    color: var(--accent-gold-light) !important;
    font-weight: 600;
}

/* --- Floating Glass Contact Panel --- */
.contact-section {
    margin-bottom: 4rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 24px 4px 24px 24px;
    padding: 3rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.contact-card h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.85rem;
    color: #ffffff;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 540px;
    margin: 0 auto 2.2rem;
}

.contact-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.email-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #ffffff;
    color: #07070a;
    padding: 0.75rem 1.85rem;
    border-radius: 9999px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 1px solid #ffffff;
}

.email-pill-btn:hover {
    background: var(--accent-gold-light);
    border-color: var(--accent-gold-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--accent-gold-glow);
}

/* --- Footer --- */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--accent-gold);
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Media Queries --- */
@media (max-width: 860px) {
    .hero-pills {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .hero-pill-card:nth-child(even) {
        transform: none;
    }
    .hero-pill-card:nth-child(even):hover {
        transform: translateY(-4px);
    }
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .flagship-pillars-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .glass-nav {
        padding: 0.75rem 0.6rem;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.55rem;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    .nav-brand {
        font-size: 0.95rem;
        letter-spacing: 0.08em;
    }
    .nav-links {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        gap: 0.45rem;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0.15rem 0.2rem;
    }
    .nav-links::-webkit-scrollbar {
        display: none;
    }
    .nav-links li {
        flex-shrink: 0;
    }
    .nav-links a {
        font-size: 0.76rem;
        letter-spacing: 0.01em;
        white-space: nowrap;
    }
    .nav-links .pill-btn {
        padding: 0.32rem 0.68rem;
        font-size: 0.76rem;
        gap: 0.35rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .hero h1 {
        font-size: 2rem;
        margin-top: 1rem;
    }
    .hero-subheading {
        font-size: 0.95rem;
    }
    .hero-socials {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    .hero-socials .pill-btn {
        margin-left: 0 !important;
    }
    .hero-pills {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
    .hero-pill-card:hover,
    .hero-pill-card:nth-child(even):hover {
        transform: translateY(-2px);
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .timeline-track {
        padding-left: 1.5rem;
    }
    .timeline-node {
        left: -1.5rem;
        width: 20px;
        height: 20px;
        top: 1.5rem;
    }
    .timeline-node::after {
        width: 6px;
        height: 6px;
    }
    .timeline-track::before {
        left: 9px;
    }
    .timeline-item {
        margin-bottom: 0.95rem;
    }
    .timeline-card {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        column-gap: 0.85rem;
        row-gap: 0;
        align-items: center;
        padding: 0.85rem 0;
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
    .timeline-card:hover {
        transform: none;
    }
    .timeline-card:active {
        background: var(--bg-surface-hover);
    }
    .timeline-header {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }
    .timeline-meta {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
        margin-bottom: 0.25rem;
    }
    .timeline-meta .role {
        font-size: 0.92rem;
        line-height: 1.3;
    }
    .timeline-meta .timeline-year {
        font-size: 0.75rem;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }
    .timeline-chevron {
        display: inline-block !important;
        font-size: 0.65rem;
        color: var(--accent-gold);
        transition: transform 0.3s ease;
    }
    .timeline-card.is-expanded .timeline-chevron {
        transform: rotate(180deg);
    }
    .timeline-org {
        font-size: 0.78rem;
        margin-bottom: 0;
        line-height: 1.35;
    }
    .timeline-image-zone {
        grid-column: 2;
        grid-row: 1;
        width: 80px;
        height: 60px;
        flex-shrink: 0;
        align-self: center;
        justify-self: end;
        margin-bottom: 0;
    }
    .timeline-image-zone::after {
        font-size: 0.55rem;
    }
    .timeline-desc {
        grid-column: 1 / -1;
        grid-row: 2;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        margin-top: 0;
        padding-top: 0;
        font-size: 0.8rem;
        line-height: 1.48;
        border-top: 1px solid transparent;
        transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                    opacity 0.25s ease,
                    margin-top 0.25s ease,
                    padding-top 0.25s ease,
                    border-color 0.25s ease;
    }
    .timeline-card.is-expanded .timeline-desc {
        max-height: 350px;
        opacity: 1;
        margin-top: 0.65rem;
        padding-top: 0.65rem;
        border-color: rgba(255, 255, 255, 0.08);
    }
    .timeline-img {
        border-radius: inherit;
    }
    .bento-card,
    .project-card,
    .project-card.project-flagship {
        padding: 1.25rem;
    }
    .flagship-meta-row,
    .flagship-badge-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .flagship-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .contact-card {
        padding: 1.5rem;
    }
    .contact-actions {
        flex-direction: column;
        width: 100%;
    }
    .contact-actions a,
    .hero-socials .pill-btn,
    .flagship-visit-btn {
        width: 100%;
        justify-content: center;
    }
    .cursor-dot, .cursor-outline {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    .hero-watermark {
        font-size: 3rem;
    }
    .section-title {
        font-size: 0.95rem;
        letter-spacing: 0.12em;
    }
    .section-header {
        gap: 0.85rem;
        margin: 3.5rem 0 2rem;
    }
    .timeline-track {
        padding-left: 1.25rem;
    }
    .timeline-node {
        left: -1.25rem;
        width: 18px;
        height: 18px;
        top: 1.1rem;
    }
    .timeline-track::before {
        left: 8px;
    }
    .timeline-card {
        padding: 0.75rem 0.85rem;
        column-gap: 0.65rem;
    }
    .timeline-image-zone {
        width: 72px;
        height: 54px;
    }
    .timeline-meta .role {
        font-size: 0.86rem;
    }
    .timeline-desc {
        font-size: 0.76rem;
    }
}

@media (max-width: 380px) {
    .nav-links {
        gap: 0.3rem;
        padding: 0.1rem 0.15rem;
    }
    .nav-links a {
        font-size: 0.7rem;
    }
    .nav-links .pill-btn {
        padding: 0.28rem 0.5rem;
        font-size: 0.7rem;
    }
    .timeline-card {
        padding: 0.7rem 0.75rem;
        column-gap: 0.5rem;
    }
    .timeline-image-zone {
        width: 64px;
        height: 48px;
    }
    .timeline-meta .role {
        font-size: 0.82rem;
    }
    .timeline-desc {
        font-size: 0.74rem;
        line-height: 1.4;
    }
}

/* ==========================================================================
   INTERACTIVE DEVELOPER TERMINAL (CLI)
   ========================================================================== */
.terminal-card {
    background: rgba(10, 11, 16, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 20px 4px 20px 20px;
    margin-top: 1.75rem;
    overflow: hidden;
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7), 0 0 20px -5px var(--accent-gold-glow);
    transition: var(--transition-smooth);
}

.terminal-card:hover {
    border-color: var(--border-glass-hover);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-glass);
    padding: 0.65rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

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

.dot-red { background: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.5); }
.dot-yellow { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, 0.5); }
.dot-green { background: #10b981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.5); }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.terminal-status {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.term-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
    animation: status-pulse 2s infinite;
}

.terminal-body {
    padding: 1.1rem 1.35rem;
    max-height: 280px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.terminal-body::-webkit-scrollbar {
    width: 6px;
}
.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.terminal-line {
    margin-bottom: 0.85rem;
    word-break: break-word;
}

.prompt-user {
    color: var(--accent-gold);
    font-weight: 600;
}

.prompt-path {
    color: var(--accent-cyan);
}

.cmd-run {
    color: #ffffff;
    font-weight: 500;
}

.terminal-output {
    margin-top: 0.35rem;
    color: #d1d5db;
    padding-left: 0.75rem;
    border-left: 2px solid rgba(245, 158, 11, 0.3);
}

.term-highlight {
    color: var(--accent-gold-light);
    font-weight: 600;
}

.term-hint {
    color: var(--text-muted);
    font-size: 0.76rem;
    display: block;
    margin-top: 0.3rem;
}

.terminal-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.35rem;
    background: rgba(255, 255, 255, 0.015);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.term-chip {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--accent-gold-light);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.term-chip:hover {
    background: rgba(245, 158, 11, 0.16);
    border-color: var(--accent-gold);
    color: #ffffff;
    transform: translateY(-1px);
}

.terminal-input-row {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.35rem;
    background: rgba(0, 0, 0, 0.35);
    border-top: 1px solid var(--border-glass);
    font-family: var(--font-mono);
    font-size: 0.84rem;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    caret-color: var(--accent-gold);
}

.terminal-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   LIVE GITHUB ACTIVITY & METRICS BENTO CARD
   ========================================================================== */
.bento-card-github {
    grid-column: 1 / -1 !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 4px 24px 24px 24px;
    padding: 2rem;
    gap: 1.25rem;
}

.bento-github-handle {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.bento-github-handle a {
    color: var(--accent-gold-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.bento-github-handle a:hover {
    color: #ffffff;
}

.github-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gh-stat-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 1.1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    transition: var(--transition-smooth);
}

.gh-stat-box:hover {
    border-color: var(--border-glass-hover);
    background: rgba(255, 255, 255, 0.035);
    transform: translateY(-2px);
}

.gh-stat-num {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent-gold);
    letter-spacing: -0.01em;
}

.gh-stat-label {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

.github-card-footer {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.85rem;
}

.github-view-btn {
    font-size: 0.82rem;
    padding: 0.45rem 1.1rem;
    gap: 0.45rem;
}

/* ==========================================================================
   IN-PAGE DIRECT CONTACT FORM
   ========================================================================== */
.contact-form {
    margin: 1.85rem auto 1.5rem;
    max-width: 620px;
    text-align: left;
}

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

.form-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
}

.form-input,
.form-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 16px var(--accent-gold-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.86rem;
}

.form-textarea {
    resize: vertical;
    min-height: 105px;
}

.form-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.form-submit-btn {
    padding: 0.65rem 1.65rem;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

.form-feedback {
    font-size: 0.84rem;
    font-family: var(--font-mono);
    min-height: 20px;
    transition: all 0.3s ease;
}

.form-feedback.success {
    color: #34d399;
}

.form-feedback.error {
    color: #f87171;
}

.contact-actions-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 1.5rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-actions-divider::before,
.contact-actions-divider::after {
    content: "";
    height: 1px;
    width: 60px;
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   GLASSMORPHIC MODAL SYSTEM (PROJECT PREVIEWS & RESUME VIEWER)
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 8, 0.86);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal-dialog {
    background: #0d0e14;
    border: 1px solid var(--border-glass-hover);
    border-radius: 24px 4px 24px 24px;
    width: 100%;
    max-width: 700px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 2rem 2.2rem;
    transform: translateY(24px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px var(--accent-gold-glow);
    position: relative;
}

.modal-backdrop.is-open .modal-dialog {
    transform: translateY(0) scale(1);
}

.modal-dialog-resume {
    max-width: 920px;
    height: 90vh;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.75rem;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1.1rem;
    margin-bottom: 1.4rem;
}

.modal-category {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--accent-gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.25rem;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
}

.modal-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: var(--border-glass-hover);
    transform: rotate(90deg);
}

.modal-resume-toolbar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.modal-toolbar-btn {
    padding: 0.42rem 1rem;
    font-size: 0.8rem;
    gap: 0.4rem;
}

.modal-image-preview {
    width: 100%;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.02);
}

.modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-section {
    margin-bottom: 1.4rem;
}

.modal-section-heading {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
}

.modal-section-heading i {
    color: var(--accent-gold);
    font-size: 0.88rem;
}

.modal-highlights-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.modal-highlights-list li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
    position: relative;
    padding-left: 1.25rem;
}

.modal-highlights-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

.modal-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.25rem;
    margin-top: 1.5rem;
}

.modal-body-pdf {
    flex: 1;
    height: 100%;
    min-height: 400px;
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
}

.resume-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #1e1e24;
}

/* ==========================================================================
   MOBILE ADJUSTMENTS FOR NEW COMPONENTS
   ========================================================================== */
@media (max-width: 680px) {
    .github-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .modal-dialog {
        padding: 1.35rem;
        max-height: 92vh;
    }
    .modal-image-preview {
        height: 160px;
    }
    .modal-resume-toolbar .modal-toolbar-btn span {
        display: none;
    }
    .modal-footer {
        flex-direction: column;
        width: 100%;
    }
    .modal-footer .pill-btn {
        width: 100%;
        justify-content: center;
    }
    .terminal-card {
        margin-top: 1.25rem;
    }
    .terminal-body {
        padding: 0.85rem 1rem;
        font-size: 0.78rem;
        max-height: 220px;
    }
    .terminal-chips {
        padding: 0.5rem 0.85rem;
        gap: 0.35rem;
    }
    .term-chip {
        font-size: 0.7rem;
        padding: 0.2rem 0.55rem;
    }
}