/* ============================================
   AMR SHAWKY — PORTFOLIO DESIGN SYSTEM
   Premium Dark / Refined Brutalism & Modern Glass
   ============================================ */

:root {
    --bg-main: #07090e;
    --bg-secondary: #0d111a;
    --surface-card: #121824;
    --surface-card-hover: #182030;
    --surface-elevated: #1a2234;
    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(99, 102, 241, 0.35);
    --border-accent: rgba(99, 102, 241, 0.5);

    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.25);
    --dotnet: #683cd4;
    --dotnet-glow: rgba(104, 60, 212, 0.3);
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-rose: #f43f5e;
    --accent-amber: #f59e0b;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-heading);
    overflow-x: hidden;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.07) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(104, 60, 212, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.03) 0%, transparent 60%);
    background-attachment: fixed;
}

::selection {
    background: rgba(99, 102, 241, 0.35);
    color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
    border: 2px solid var(--bg-main);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-main);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    text-align: center;
}

.preloader-brand {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 20px;
}

.preloader-brand span {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.preloader-track {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    margin: 0 auto;
    overflow: hidden;
}

.preloader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
    border-radius: 3px;
    transition: width 0.25s ease;
}

.preloader-sub {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 14px;
    letter-spacing: 0.05em;
    font-family: var(--font-mono);
}

/* ============================================
   TOP SCROLL PROGRESS
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
    z-index: 10001;
    transform-origin: left;
    transform: scaleX(0);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all var(--transition-smooth);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--primary-glow);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 22px 0;
    transition: all var(--transition-smooth);
}

.navbar-custom.scrolled {
    padding: 12px 0;
    background: rgba(7, 9, 14, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.brand-logo .logo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-light);
    box-shadow: 0 0 10px var(--primary);
}

.brand-logo .code-tag {
    color: var(--primary-light);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nav-item-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.nav-item-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-item-link.active-link {
    color: #fff;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.mobile-nav-toggle {
    display: none;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}

.mobile-nav-toggle:hover {
    border-color: var(--border-hover);
    background: var(--surface-card-hover);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 130px 0 80px;
    overflow: hidden;
}

.hero-grid {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* Status Pill */
.hero-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 18px;
    background: rgba(18, 24, 36, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.hero-status-badge .live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 10px var(--accent-emerald);
    position: relative;
}

.hero-status-badge .live-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid var(--accent-emerald);
    animation: status-pulse 2s infinite ease-out;
}

@keyframes status-pulse {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(2.2); opacity: 0; }
}

.hero-intro {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.hero-title {
    font-size: clamp(2.6rem, 5.5vw, 4.4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin-bottom: 16px;
    color: #fff;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 15%, var(--primary-light) 65%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subhead {
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-subhead .highlight-role {
    color: #fff;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-light), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Typing Container */
.typing-box {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.92rem;
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.06);
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    width: fit-content;
    margin-bottom: 24px;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--accent-cyan);
    animation: blink-caret 0.8s step-start infinite;
    vertical-align: middle;
}

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

/* Key Highlights Row */
.hero-achievements-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.achievement-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--border-subtle);
    background: var(--surface-card);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.achievement-pill:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    color: #fff;
}

.achievement-pill i {
    font-size: 0.85rem;
}

.achievement-pill.linkedin {
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.08);
    color: #93c5fd;
}

.achievement-pill.academic {
    border-color: rgba(168, 85, 247, 0.35);
    background: rgba(168, 85, 247, 0.08);
    color: #d8b4fe;
}

.achievement-pill.location {
    border-color: rgba(244, 63, 94, 0.35);
    background: rgba(244, 63, 94, 0.08);
    color: #fda4af;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 580px;
}

.hero-description strong {
    color: #fff;
    font-weight: 600;
}

/* Hero CTA Buttons */
.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-bottom: 36px;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: var(--radius-full);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: 1px solid transparent;
    font-family: inherit;
}

.btn-modern-primary {
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: #fff;
    box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-modern-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(99, 102, 241, 0.4);
}

.btn-modern-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-modern-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-light);
    color: var(--primary-light);
    transform: translateY(-3px);
}

/* Social Icon Badges */
.hero-social-list {
    display: flex;
    align-items: center;
    gap: 14px;
}

.social-pill-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.15rem;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-pill-btn:hover {
    color: #fff;
    border-color: var(--border-hover);
    background: var(--surface-card-hover);
    transform: translateY(-3px);
}

.social-pill-btn.linkedin:hover {
    color: #60a5fa;
    border-color: #3b82f6;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
}

.social-pill-btn.youtube:hover {
    color: #f87171;
    border-color: #ef4444;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.25);
}

.social-pill-btn.github:hover {
    color: #fff;
    border-color: #fff;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

/* Hero Portrait Visual */
.hero-visual-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.portrait-frame {
    position: relative;
    width: 320px;
    height: 380px;
    border-radius: 28px;
    padding: 10px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.portrait-frame::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 40px;
    z-index: -1;
    filter: blur(20px);
}

.portrait-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Floating Badges on Portrait */
.floating-hero-chip {
    position: absolute;
    background: rgba(13, 17, 26, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    animation: float-gentle 4s ease-in-out infinite alternate;
}

.floating-hero-chip.top-right {
    top: -15px;
    right: -25px;
}

.floating-hero-chip.bottom-left {
    bottom: -15px;
    left: -25px;
    animation-delay: -2s;
}

@keyframes float-gentle {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-10px); }
}

.chip-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.chip-icon-box.dotnet {
    background: rgba(104, 60, 212, 0.2);
    color: #a78bfa;
    border: 1px solid rgba(104, 60, 212, 0.35);
}

.chip-icon-box.award {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.chip-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.chip-desc {
    font-size: 0.72rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

/* ============================================
   SECTIONS GENERAL
   ============================================ */
.section-wrapper {
    padding: 110px 0;
    position: relative;
}

.section-wrapper.surface-bg {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.container-custom {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header-block {
    margin-bottom: 56px;
}

.section-header-block.center {
    text-align: center;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary-light);
    font-family: var(--font-mono);
    margin-bottom: 12px;
}

.section-heading {
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 14px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 620px;
    line-height: 1.7;
}

.section-header-block.center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   BENTO GRID (ABOUT ME)
   ============================================ */
.bento-showcase-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.bento-box {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.bento-box:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Bento Main Bio (Span 8) */
.bento-bio-card {
    grid-column: span 8;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bio-greeting-badge {
    font-size: 0.82rem;
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    margin-bottom: 12px;
}

.bio-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.3;
}

.bio-text {
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.bio-text strong {
    color: #fff;
    font-weight: 600;
}

.bio-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.pillar-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
}

.pillar-item .pillar-icon {
    font-size: 1.25rem;
    color: var(--primary-light);
    margin-bottom: 6px;
}

.pillar-item .pillar-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
}

.pillar-item .pillar-sub {
    font-size: 0.72rem;
    color: var(--text-dim);
}

/* Bento Stats Card (Span 4) */
.bento-stat-card {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

.mini-stat-unit {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    transition: all var(--transition-fast);
}

.mini-stat-unit:hover {
    border-color: var(--border-hover);
    background: var(--surface-card-hover);
}

.stat-unit-val {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-unit-val.gold {
    color: #facc15;
}

.stat-unit-val.cyan {
    color: var(--accent-cyan);
}

.stat-unit-val.purple {
    color: var(--primary-light);
}

.stat-unit-val.green {
    color: var(--accent-emerald);
}

.stat-unit-label {
    font-size: 0.82rem;
    color: var(--text-dim);
    font-weight: 500;
}

/* Bento Sub-Cards (Span 6 each) */
.bento-detail-card {
    grid-column: span 6;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.detail-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.detail-card-icon.arch {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.detail-card-icon.mentor {
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent-rose);
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.detail-card-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.detail-card-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   JOURNEY / TIMELINE SECTION
   ============================================ */
.journey-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.journey-column-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.journey-column-title i {
    color: var(--primary-light);
}

.journey-stream {
    position: relative;
    padding-left: 28px;
    border-left: 2px solid rgba(255, 255, 255, 0.08);
}

.journey-node {
    position: relative;
    padding-bottom: 40px;
}

.journey-node:last-child {
    padding-bottom: 0;
}

.node-bullet {
    position: absolute;
    left: -35px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 2.5px solid var(--primary);
    box-shadow: 0 0 0 4px var(--surface-card);
    transition: all var(--transition-fast);
}

.journey-node:hover .node-bullet {
    background: var(--primary);
    border-color: #fff;
    box-shadow: 0 0 12px var(--primary);
}

.node-card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    transition: all var(--transition-smooth);
}

.journey-node:hover .node-card {
    border-color: var(--border-hover);
    background: var(--surface-card-hover);
    transform: translateX(4px);
}

.node-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.node-role {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.node-tag-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.node-tag-badge.promoted {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.node-tag-badge.scholarship {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(6, 182, 212, 0.35);
}

.node-tag-badge.grad {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.35);
}

.node-org {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 10px;
}

.node-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.node-pill {
    font-size: 0.74rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
}

.node-pill.highlight {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.node-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.node-bullets-list {
    list-style: none;
    margin-top: 10px;
}

.node-bullets-list li {
    font-size: 0.86rem;
    color: var(--text-muted);
    padding: 4px 0 4px 18px;
    position: relative;
}

.node-bullets-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-size: 0.9rem;
}

/* ============================================
   TECH STACK MATRIX
   ============================================ */
.tech-matrix-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.matrix-category-card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: all var(--transition-smooth);
}

.matrix-category-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.cat-header-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 18px;
}

.cat-header-icon.c-purple {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
}

.cat-header-icon.c-cyan {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-cyan);
}

.cat-header-icon.c-green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
}

.cat-header-icon.c-rose {
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent-rose);
}

.matrix-category-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.skills-pill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tech-tag-chip {
    font-size: 0.76rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.tech-tag-chip:hover {
    color: #fff;
    border-color: var(--primary);
    background: var(--primary-glow);
    transform: translateY(-2px);
}

/* ============================================
   STATS COUNTER BAR
   ============================================ */
.stats-banner-wrap {
    margin-top: 40px;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
}

.counter-column {
    padding: 34px 24px;
    text-align: center;
    border-right: 1px solid var(--border-subtle);
    transition: background var(--transition-fast);
}

.counter-column:last-child {
    border-right: none;
}

.counter-column:hover {
    background: var(--surface-card-hover);
}

.counter-val-large {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.counter-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* ============================================
   PROJECTS SECTION & CARDS
   ============================================ */
.projects-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 48px;
}

.filter-button-tab {
    padding: 9px 22px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.filter-button-tab:hover {
    color: #fff;
    border-color: var(--border-hover);
    background: var(--surface-card-hover);
}

.filter-button-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 6px 20px var(--primary-glow);
}

.projects-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Project Card */
.showcase-card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
}

.showcase-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
}

.showcase-card.payon-spotlight {
    border-color: rgba(16, 185, 129, 0.35);
}

.showcase-card.payon-spotlight:hover {
    border-color: rgba(16, 185, 129, 0.7);
    box-shadow: 0 25px 50px rgba(16, 185, 129, 0.15);
}

.showcase-card.elevate-spotlight {
    border-color: rgba(99, 102, 241, 0.4);
}

.showcase-card.elevate-spotlight:hover {
    border-color: rgba(99, 102, 241, 0.8);
    box-shadow: 0 25px 50px var(--primary-glow);
}

.card-media-wrap {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.card-media-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.showcase-card:hover .card-media-wrap img {
    transform: scale(1.08);
}

.media-shade-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--surface-card) 5%, rgba(18, 24, 36, 0.4) 50%, transparent 100%);
    z-index: 1;
}

.media-corner-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.media-corner-badge.gold {
    background: rgba(16, 185, 129, 0.9);
    color: #fff;
    border: 1px solid rgba(16, 185, 129, 0.8);
}

.media-corner-badge.live {
    background: rgba(99, 102, 241, 0.9);
    color: #fff;
    border: 1px solid rgba(99, 102, 241, 0.8);
}

.card-heading-overlay {
    position: absolute;
    bottom: 14px;
    left: 20px;
    right: 20px;
    z-index: 2;
}

.card-heading-overlay h3 {
    font-size: 1.18rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 2px;
}

.card-heading-overlay .card-category-sub {
    font-size: 0.78rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.card-content-body {
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-summary-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 16px;
    flex: 1;
}

.card-tags-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.project-mini-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 5px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
}

.project-mini-tag.accent {
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.08);
}

.project-mini-tag.emerald {
    border-color: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.08);
}

.card-buttons-pair {
    display: flex;
    gap: 8px;
}

.action-btn-pill {
    flex: 1;
    padding: 10px 14px;
    text-align: center;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 600;
    border: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
}

.action-btn-pill:hover {
    border-color: var(--border-hover);
    color: #fff;
    background: var(--surface-card-hover);
}

.action-btn-pill.primary-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.action-btn-pill.primary-link:hover {
    background: var(--primary-light);
}

.hidden-project {
    display: none !important;
}

/* Creative Mini Projects */
.mini-vault-block {
    margin-top: 70px;
    padding-top: 40px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.mini-vault-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.mini-vault-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.vault-link-item {
    padding: 9px 20px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    background: var(--surface-card);
    transition: all var(--transition-fast);
}

.vault-link-item:hover {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary-glow);
    transform: translateY(-2px);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-layout-split {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 60px;
    align-items: start;
}

.contact-direct-info h3 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
}

.contact-direct-info p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 32px;
}

.contact-channels-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.contact-channel-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.contact-channel-card:hover {
    border-color: var(--border-hover);
    background: var(--surface-card-hover);
    transform: translateX(4px);
}

.channel-icon-square {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    background: var(--bg-secondary);
    color: var(--primary-light);
    border: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.contact-channel-card:hover .channel-icon-square {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.channel-data-label {
    font-size: 0.74rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--font-mono);
}

.channel-data-val {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

/* Contact Form */
.contact-form-box {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.form-split-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-field-group {
    margin-bottom: 16px;
}

.form-field-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-field-control {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: all var(--transition-fast);
}

.form-field-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-field-control.input-error {
    border-color: var(--accent-rose);
}

.form-field-control.input-success {
    border-color: var(--accent-emerald);
}

textarea.form-field-control {
    min-height: 120px;
    resize: vertical;
}

.form-err-msg {
    display: block;
    font-size: 0.76rem;
    color: var(--accent-rose);
    margin-top: 5px;
    min-height: 1rem;
}

.form-send-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 20px var(--primary-glow);
}

.form-send-btn:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.4);
}

.form-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast-notice {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--surface-card);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
    min-width: 320px;
}

.toast-notice.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast-icon-side {
    color: var(--accent-emerald);
    font-size: 1.4rem;
}

.toast-body-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: #fff;
}

.toast-body-msg {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.toast-btn-close {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    margin-left: auto;
    padding: 4px;
    transition: color var(--transition-fast);
}

.toast-btn-close:hover {
    color: #fff;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    padding: 48px 0;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-main);
    text-align: center;
}

.footer-inner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-brand-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}

.footer-brand-title span {
    color: var(--primary-light);
}

.footer-copy-text {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* ============================================
   PROJECT DETAILS MODAL
   ============================================ */
.custom-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 6, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.custom-modal-overlay.active {
    display: flex;
    animation: modal-fade 0.25s ease-out;
}

@keyframes modal-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.custom-modal-dialog {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    max-width: 880px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
}

.modal-close-cross {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 10;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1rem;
}

.modal-close-cross:hover {
    background: var(--surface-card);
    color: #fff;
    border-color: #fff;
}

.modal-banner-holder {
    height: 280px;
    position: relative;
    overflow: hidden;
}

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

.modal-banner-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--surface-card) 5%, transparent 60%);
}

.modal-banner-titlebox {
    position: absolute;
    bottom: 24px;
    left: 32px;
    right: 32px;
    z-index: 2;
}

.modal-banner-titlebox h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.2;
}

.modal-banner-titlebox p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.modal-content-area {
    padding: 32px;
}

.modal-long-desc {
    font-size: 0.96rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
}

.modal-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-section-title i {
    color: var(--primary-light);
}

.modal-tech-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.modal-tech-pill {
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    color: var(--primary-light);
    font-size: 0.84rem;
    font-weight: 600;
}

.modal-features-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 36px;
}

.modal-features-list li {
    font-size: 0.88rem;
    color: var(--text-muted);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.modal-features-list li i {
    color: var(--accent-emerald);
    margin-top: 3px;
    flex-shrink: 0;
}

.modal-footer-actions {
    display: flex;
    gap: 14px;
}

.modal-footer-actions a,
.modal-footer-actions button {
    flex: 1;
    justify-content: center;
}

/* ============================================
   RESPONSIVE QUERIES
   ============================================ */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-status-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-subhead {
        justify-content: center;
    }

    .typing-box {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-achievements-row {
        justify-content: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-social-list {
        justify-content: center;
    }

    .hero-visual-wrapper {
        order: -1;
    }

    .portrait-frame {
        width: 280px;
        height: 330px;
    }

    .floating-hero-chip.top-right {
        right: -10px;
    }

    .floating-hero-chip.bottom-left {
        left: -10px;
    }

    .bento-bio-card {
        grid-column: span 12;
    }

    .bento-stat-card {
        grid-column: span 12;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-detail-card {
        grid-column: span 12;
    }

    .tech-matrix-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .journey-grid-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-layout-split {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .section-wrapper {
        padding: 70px 0;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 16px;
        right: 16px;
        background: var(--surface-card);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-md);
        padding: 16px;
        flex-direction: column;
        gap: 6px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-item-link {
        width: 100%;
        padding: 10px 16px;
        border-radius: var(--radius-sm);
    }

    .mobile-nav-toggle {
        display: flex;
    }

    .hero-section {
        padding: 100px 0 50px;
    }

    .bio-pillars {
        grid-template-columns: 1fr;
    }

    .bento-stat-card {
        grid-template-columns: 1fr;
    }

    .tech-matrix-grid {
        grid-template-columns: 1fr;
    }

    .stats-banner-wrap {
        grid-template-columns: repeat(2, 1fr);
    }

    .counter-column:nth-child(2) {
        border-right: none;
    }

    .counter-column:nth-child(1),
    .counter-column:nth-child(2) {
        border-bottom: 1px solid var(--border-subtle);
    }

    .projects-showcase-grid {
        grid-template-columns: 1fr;
    }

    .form-split-row {
        grid-template-columns: 1fr;
    }

    .modal-features-list {
        grid-template-columns: 1fr;
    }

    .modal-banner-holder {
        height: 200px;
    }

    .modal-banner-titlebox h1 {
        font-size: 1.6rem;
    }

    .modal-content-area {
        padding: 22px;
    }

    .modal-footer-actions {
        flex-direction: column;
    }
}
