@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,500&family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ============================================
   PORTFOLIO: Fadia MARDINI
   Dark Theme — 
   Zero External Icon Dependencies
   ============================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
    /* Rose Noir — aubergine-black base, magenta + orchid signal, warm gold for milestones */
    --bg-primary: #170a15;
    --bg-secondary: #1f0f1c;
    --bg-tertiary: #281526;
    --bg-card: #251220;
    --border-color: #3d1e38;
    --border-hover: #66325c;

    --text-primary: #f8ecf3;
    --text-secondary: #caa2c1;
    --text-muted: #b493ac;  /* WCAG AA: ~5.6:1 on bg-secondary, ~5.2:1 on bg-card */

    --accent-primary: #ff4fa3;
    --accent-secondary: #ff8fd1;
    --accent-danger: #ff3d70;
    --accent-warning: #d9a441;
    --accent-purple: #c77dff;

    --gradient-primary: linear-gradient(135deg, #ff4fa3 0%, #c77dff 100%);
    --gradient-danger: linear-gradient(135deg, #ff3d70 0%, #ff8fa8 100%);
    --gradient-purple: linear-gradient(135deg, #c77dff 0%, #7c3aed 100%);
    --gradient-dark: linear-gradient(135deg, #1f0f1c 0%, #281526 100%);
    --gradient-rosegold: linear-gradient(135deg, #d9a441 0%, #ff8fd1 100%);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 8px 30px rgba(10, 3, 9, 0.65);
    --shadow-glow: 0 0 20px rgba(255, 79, 163, 0.2);
    --shadow-glow-blue: 0 0 20px rgba(199, 125, 255, 0.18);

    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);

    --glass-bg: rgba(37, 18, 32, 0.62);
    --glass-bg-strong: rgba(37, 18, 32, 0.78);
    --glass-border: rgba(255, 143, 209, 0.16);
    --glass-blur: blur(18px) saturate(160%);

    --container-max: 1200px;
    --nav-height: 70px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.035;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 10000;
    background: var(--accent-primary);
    color: var(--bg-primary);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 16px;
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
    border-radius: 2px;
    animation: focusPulse 1.4s ease-in-out infinite;
}

@keyframes focusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 79, 163, 0.35); }
    50% { box-shadow: 0 0 0 5px rgba(255, 79, 163, 0.12); }
}

.form-group input:focus-visible,
.form-group textarea:focus-visible,
.terminal-input:focus-visible { outline: none; }

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

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

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

::selection { background: rgba(255, 79, 163, 0.3); color: var(--text-primary); }

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(10, 14, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-base);
}

.navbar.scrolled { box-shadow: var(--shadow-md); border-bottom-color: var(--border-hover); }

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 700; color: var(--text-primary); letter-spacing: -1px; }
.nav-logo .accent { color: var(--accent-primary); }
.nav-menu { display: flex; gap: 32px; }

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast), letter-spacing var(--transition-fast), text-shadow var(--transition-fast);
    position: relative;
    padding: 4px 0;
}

.nav-link:hover {
    letter-spacing: 0.2px;
    text-shadow: 0 0 12px rgba(255, 79, 163, 0.35);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
    transition: width 0.4s var(--ease-spring);
}

.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: transparent; border: none; color: inherit; }
.nav-toggle .bar { width: 22px; height: 2px; background: var(--text-primary); border-radius: 1px; transition: var(--transition-base); }
.nav-toggle.active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active .bar:nth-child(2) { opacity: 0; }
.nav-toggle.active .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    width: 45vw;
    height: 45vw;
    max-width: 620px;
    max-height: 620px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.22;
    pointer-events: none;
    z-index: 0;
}

.hero::before {
    background: radial-gradient(circle, #ff4fa3, transparent 70%);
    top: -14%;
    left: -12%;
    animation: auroraDriftA 18s ease-in-out infinite;
}

.hero::after {
    background: radial-gradient(circle, #c77dff, transparent 70%);
    bottom: -16%;
    right: -10%;
    animation: auroraDriftB 22s ease-in-out infinite;
}

@keyframes auroraDriftA {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(6%, 8%) scale(1.15); }
}

@keyframes auroraDriftB {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-8%, -6%) scale(1.12); }
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 79, 163, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 79, 163, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 40%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 40%, transparent 70%);
}

.hero-container { width: 100%; max-width: 850px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 79, 163, 0.08);
    border: 1px solid rgba(255, 79, 163, 0.2);
    color: var(--accent-primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 32px;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.hero-badge::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
    background-size: 250% 100%;
    animation: foilSheen 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes foilSheen {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -50% 0; }
}

.pulse-dot { width: 8px; height: 8px; background: var(--accent-primary); border-radius: 50%; animation: pulse 2s infinite; }

@keyframes pulse {
    0%,100% { opacity:1; transform:scale(1); }
    50% { opacity:.5; transform:scale(1.3); }
}

.hero-title { margin-bottom: 16px; }
.hero-greeting { display:block; font-size:1.1rem; font-weight:500; color:var(--text-secondary); margin-bottom:8px; }

.hero-name {
    display:block;
    font-family: var(--font-display);
    font-size:3.8rem;
    font-weight:600;
    font-style: italic;
    letter-spacing:-1px;
    background: var(--gradient-primary);
    background-size: 200% auto;
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
    line-height:1.1;
    animation:
        heroRevealIn 1s var(--ease-smooth) both,
        gradientDrift 6s ease-in-out infinite 1s;
}

@keyframes heroRevealIn {
    0% { opacity: 0; filter: blur(6px); text-shadow: 3px 0 #ff4fa3, -3px 0 #c77dff; transform: translateY(10px); }
    18% { opacity: 1; filter: blur(0); text-shadow: -4px 0 #ff4fa3, 4px 0 #c77dff; transform: translateY(0); }
    35% { text-shadow: 3px 0 #ff4fa3, -3px 0 #c77dff; }
    55%, 100% { text-shadow: none; }
}

@keyframes gradientDrift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-role { font-family:var(--font-mono); font-size:1.25rem; font-weight:500; color:var(--text-secondary); margin-bottom:24px; min-height:32px; }
.typing-text { color:var(--accent-primary); }
.cursor { color:var(--accent-primary); animation:blink 1s infinite; }

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

.hero-description { max-width: 640px; margin: 0 auto 40px; font-size: 1.05rem; line-height: 1.8; color: var(--text-secondary); text-align: center; }

@media (max-width: 992px) {
    .hero-name { font-size: 3.2rem; }
    .hero-role { font-size: 1.15rem; }
    .hero-description { max-width: 90%; }
}

@media (max-width: 768px) {
    .hero { padding: 100px 20px 60px; }
    .hero-name { font-size: 2.6rem; }
    .hero-role { font-size: 1rem; }
    .hero-description { font-size: 1rem; max-width: 100%; margin: 0 auto 32px; }
}

@media (max-width: 480px) {
    .hero-name { font-size: 2.1rem; }
    .hero-greeting { font-size: 1rem; }
    .hero-description { font-size: 0.95rem; line-height: 1.7; }
}

.hero-cta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    font-family: var(--font-sans);
}

.btn svg { flex-shrink: 0; }
.btn-primary { background: var(--gradient-primary); color: #170a15; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(255, 79, 163, 0.35), 0 0 60px rgba(199, 125, 255, 0.15); }
.btn-secondary { background: rgba(255, 255, 255, 0.06); color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--border-hover); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text-secondary); border: 1px solid var(--border-color); }
.btn-outline:hover { color: var(--text-primary); border-color: var(--text-muted); transform: translateY(-2px); }

.btn-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 79, 163, 0.08);
    color: var(--accent-primary);
    border: 1px solid rgba(255, 79, 163, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-base);
    cursor: pointer;
}

.btn-card svg { flex-shrink: 0; }
.btn-card:hover { background: rgba(255, 79, 163, 0.15); border-color: rgba(255, 79, 163, 0.4); }

.hero-stats { display: flex; justify-content: center; align-items: center; gap: 2rem; margin-top: 3rem; flex-wrap: wrap; }
.stat-item { display: flex; flex-direction: column; align-items: center; min-width: 100px; text-align: center; }
.stat-number { font-family: var(--font-mono); font-size: 2.2rem; font-weight: 700; line-height: 1; color: var(--text-primary); }
.stat-number.stat-text { font-size: 1.8rem; letter-spacing: 0.02em; color: var(--accent-primary); }
.stat-suffix { font-family: var(--font-mono); font-size: 1.4rem; font-weight: 600; color: var(--accent-primary); }
.stat-label { margin-top: 8px; font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; line-height: 1.4; }
.stat-divider { width: 1px; height: 36px; background: var(--border-color); }

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: float 3s ease-in-out infinite;
}

.scroll-indicator svg { flex-shrink: 0; }

@keyframes float {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

@media (max-width: 768px) {
    .hero-stats { gap: 1.5rem; margin-top: 2.5rem; }
    .stat-item { min-width: 90px; }
    .stat-number { font-size: 1.8rem; }
    .stat-number.stat-text { font-size: 1.5rem; }
    .stat-suffix { font-size: 1.2rem; }
    .stat-label { font-size: 0.72rem; }
    .stat-divider { height: 28px; }
    .scroll-indicator { bottom: 20px; font-size: 0.65rem; }
}

@media (max-width: 480px) {
    .hero-stats { gap: 1rem; }
    .stat-item { min-width: 80px; }
    .stat-number { font-size: 1.6rem; }
    .stat-number.stat-text { font-size: 1.35rem; }
    .stat-suffix { font-size: 1rem; }
    .stat-label { font-size: 0.68rem; letter-spacing: 0.5px; }
    .stat-divider { display: none; }
    .scroll-indicator { display: none; }
}

section { padding: 100px 24px; }
.section-container { max-width: var(--container-max); margin: 0 auto; }
.section-title { font-size: 2rem; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; letter-spacing: -0.5px; }
.section-number { font-family: var(--font-mono); font-size: 1.1rem; color: var(--accent-primary); font-weight: 500; margin-right: 8px; }
.section-subtitle { color: var(--text-secondary); font-size: 1rem; margin-bottom: 48px; max-width: 560px; }

.about { background: var(--bg-secondary); }
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: start; }
.about-text p { color: var(--text-secondary); margin-bottom: 16px; font-size: 0.95rem; line-height: 1.75; }
.about-intro { font-size: 1.05rem !important; color: var(--text-primary) !important; }
.highlight { color: var(--accent-primary); font-weight: 500; }
.about-text strong { color: var(--text-primary); font-weight: 600; }
.about-highlights { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    transition: transform 0.4s var(--ease-spring), border-color var(--transition-base);
}

.highlight-item:hover { border-color: var(--border-hover); transform: translateX(4px); }
.highlight-icon { flex-shrink: 0; margin-top: 2px; color: var(--accent-primary); }
.highlight-item strong { display: block; color: var(--text-primary); font-size: 0.9rem; margin-bottom: 2px; }
.highlight-item span { font-size: 0.8rem; color: var(--text-muted); }

.about-image-wrapper { display: flex; flex-direction: column; gap: 24px; }
.about-image-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
    border: 2px solid transparent;
    background:
        linear-gradient(var(--bg-tertiary), var(--bg-tertiary)) padding-box,
        linear-gradient(120deg, #ff4fa3, #c77dff, #dc2b8c, #ff4fa3) border-box;
    background-size: 100% 100%, 300% 300%;
    animation: borderGlow 10s ease infinite;
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 0%, 0% 50%; }
    50% { background-position: 0% 0%, 100% 50%; }
}
.about-profile-img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); transition: transform 0.6s var(--ease-smooth); }
.about-image-container:hover .about-profile-img { transform: scale(1.05); }
.about-quick-facts { display: flex; flex-direction: column; gap: 8px; }
.fact { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--text-secondary); background: var(--bg-card); padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-color); }

.expertise { background: var(--bg-primary); }
.expertise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 48px; }

.expertise-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: transform 0.45s var(--ease-spring), border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.expertise-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; }
.expertise-card.defensive::before { background: var(--gradient-primary); }
.expertise-card.offensive::before { background: var(--gradient-danger); }
.expertise-card:hover { border-color: var(--border-hover); transform: translateY(-6px) rotateX(2deg); box-shadow: var(--shadow-lg); }

.card-icon { margin-bottom: 20px; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); animation: iconFloat 4s ease-in-out infinite; }

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
.card-icon svg { flex-shrink: 0; }
.expertise-card.defensive .card-icon { background: rgba(255, 79, 163, 0.1); color: var(--accent-primary); }
.expertise-card.offensive .card-icon { background: rgba(255, 61, 112, 0.1); color: var(--accent-danger); }
.expertise-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; color: var(--text-primary); }
.card-subtitle { font-size: 0.85rem; color: var(--text-muted); font-family: var(--font-mono); margin-bottom: 24px; }
.expertise-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.expertise-list li { display: flex; gap: 12px; }
.expertise-list li svg { flex-shrink: 0; margin-top: 3px; }
.expertise-card.defensive .expertise-list li svg { color: var(--accent-primary); }
.expertise-card.offensive .expertise-list li svg { color: var(--accent-danger); }
.expertise-list strong { display: block; font-size: 0.88rem; color: var(--text-primary); margin-bottom: 2px; }
.expertise-list span { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.expertise-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.expertise-tags span { font-family: var(--font-mono); font-size: 0.72rem; padding: 4px 10px; border-radius: 4px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-color); color: var(--text-muted); }

.expertise-bridge { display: flex; align-items: center; gap: 20px; text-align: center; }
.bridge-line { flex: 1; height: 1px; background: var(--border-color); }
.bridge-content { max-width: 500px; padding: 20px; }
.bridge-content svg { color: var(--accent-purple); margin-bottom: 8px; flex-shrink: 0; }
.bridge-content h3, .bridge-content h4 { font-size: 0.95rem; color: var(--text-primary); margin-bottom: 6px; }
.bridge-content p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }

.portfolio { background: var(--bg-secondary); }
.portfolio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.portfolio-card { background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 28px; transition: transform 0.4s var(--ease-spring), border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base); }
.portfolio-card:hover { border-color: var(--border-hover); transform: translateY(-5px); box-shadow: var(--shadow-md); }
.portfolio-card.featured {
    border: 2px solid transparent;
    background:
        linear-gradient(135deg, var(--glass-bg) 0%, rgba(255, 79, 163, 0.06) 100%) padding-box,
        linear-gradient(120deg, #ff4fa3, #c77dff, #d9a441, #ff4fa3) border-box;
    background-size: 100% 100%, 300% 300%;
    animation: cardEnter 0.7s var(--ease-smooth) both, borderGlow 10s ease infinite;
}
.portfolio-card-header { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.portfolio-card-header svg { flex-shrink: 0; color: var(--text-secondary); }
.portfolio-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.portfolio-card > p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.5; }
.portfolio-card ul { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.portfolio-card ul li { font-size: 0.83rem; color: var(--text-secondary); display: flex; align-items: center; gap: 10px; }
.portfolio-card ul li svg { flex-shrink: 0; color: var(--accent-primary); }

.certifications { background: var(--bg-primary); }
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.cert-card { background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); border-radius: var(--radius-md); padding: 20px; transition: transform 0.4s var(--ease-spring), border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base); position: relative; }
.cert-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cert-card.elite {
    border-color: rgba(255, 79, 163, 0.2);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 79, 163, 0.04) 100%);
    position: relative;
    overflow: hidden;
}

.cert-card.elite::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 45%, rgba(217, 164, 65, 0.18) 50%, transparent 55%);
    background-size: 260% 100%;
    animation: foilSheen 6s ease-in-out infinite;
    pointer-events: none;
}
.cert-badge { position: absolute; top: 12px; right: 12px; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 2px 8px; border-radius: 3px; background: rgba(255, 79, 163, 0.12); color: var(--accent-primary); }
.cert-card h3, .cert-card h4 { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.cert-card p { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; }
.cert-issuer { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted); opacity: 0.7; }
.cert-more { text-align: center; font-size: 0.82rem; color: var(--text-muted); }
.cert-links{ display:flex; gap:16px; margin-top:14px; }
.cert-links a{ font-size:.72rem; color:var(--accent-primary); text-decoration:none; font-weight:600; }
.cert-links a:hover{ text-decoration:underline; }

.tech-stack { background: var(--bg-secondary); }
.stack-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.stack-category { background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); border-radius: var(--radius-md); padding: 24px; transition: transform 0.35s var(--ease-spring), border-color var(--transition-base); }
.stack-category:hover { border-color: var(--border-hover); }
.stack-category h3, .stack-category h4 { font-size: 0.95rem; color: var(--text-primary); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.stack-category h3 svg, .stack-category h4 svg { flex-shrink: 0; color: var(--accent-primary); }
.stack-items { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-items span { font-family: var(--font-mono); font-size: 0.75rem; padding: 5px 12px; border-radius: 4px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-color); color: var(--text-secondary); }

.social-proof { background: var(--bg-primary); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.proof-card { background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); border-radius: var(--radius-md); padding: 24px; text-align: center; transition: transform 0.4s var(--ease-spring), border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base); }
.proof-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.proof-card svg { color: var(--accent-primary); margin-bottom: 14px; flex-shrink: 0; }
.proof-card h3, .proof-card h4 { font-size: 0.95rem; color: var(--text-primary); margin-bottom: 8px; font-weight: 600; }
.proof-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

.contact-grid { max-width: 820px; margin: 0 auto; }
.contact-info h3 { font-size: 1.6rem; color: var(--text-primary); margin-bottom: 0.75rem; }
.contact-info > p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 2rem; max-width: 720px; }
.contact-card { background: var(--glass-bg-strong); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); border-radius: var(--radius-md); padding: 28px; margin-bottom: 2rem; transition: border-color var(--transition-base), box-shadow var(--transition-base); }
.contact-card:hover { border-color: var(--accent-primary); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-card h3 { margin-bottom: 0.75rem; color: var(--text-primary); }
.contact-card p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.75rem; }
.availability { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.availability-item { background: rgba(255,255,255,0.02); border: 1px solid var(--border-color); border-radius: 10px; padding: 16px; }
.availability-item strong { display: block; color: var(--accent-primary); margin-bottom: 6px; font-size: 0.9rem; }
.availability-item span { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }
.contact-methods { margin-top: 2rem; display: grid; gap: 1rem; }
.contact-method { display: flex; align-items: center; gap: 18px; padding: 18px 20px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); text-decoration: none; color: inherit; transition: var(--transition-base); }
.contact-method:hover { transform: translateY(-3px); border-color: var(--accent-primary); background: rgba(255, 79, 163, 0.05); }
.contact-method svg { flex-shrink: 0; color: var(--accent-primary); }
.contact-method div { display: flex; flex-direction: column; }
.contact-method strong { color: var(--text-primary); font-size: 0.95rem; margin-bottom: 4px; }
.contact-method span { color: var(--text-muted); font-size: 0.85rem; }
.contact-note { margin-top: 2rem; padding: 22px; border-radius: var(--radius-md); border-left: 3px solid var(--accent-primary); background: rgba(255, 79, 163, 0.05); }
.contact-note h4 { color: var(--accent-primary); margin-bottom: 10px; }
.contact-note p { margin: 0; color: var(--text-secondary); line-height: 1.8; }

@media (max-width:768px){
    .availability{ grid-template-columns:1fr; }
    .contact-card{ padding:22px; }
    .contact-method{ padding:16px; }
}

.footer { background: var(--bg-secondary); border-top: 1px solid var(--border-color); padding: 40px 24px 20px; }
.footer-container { max-width: var(--container-max); margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 24px; border-bottom: 1px solid var(--border-color); margin-bottom: 20px; }
.footer-logo { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; }
.footer-logo .accent { color: var(--accent-primary); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.82rem; color: var(--text-secondary); transition: var(--transition-fast); }
.footer-links a:hover { color: var(--text-primary); }
.footer-social { display: flex; gap: 14px; }
.footer-social a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--border-color); color: var(--text-secondary); transition: transform 0.35s var(--ease-spring), border-color var(--transition-base), color var(--transition-base), background var(--transition-base); }
.footer-social a svg { flex-shrink: 0; }
.footer-social a:hover { border-color: var(--accent-primary); color: var(--accent-primary); background: rgba(255, 79, 163, 0.06); transform: translateY(-3px) scale(1.08); }
.footer-bottom { text-align: center; }
.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); }

.timeline-section { background: var(--bg-primary); overflow: hidden; }
.timeline-controls { display: flex; gap: 12px; margin-bottom: 48px; flex-wrap: wrap; }
.timeline-btn { padding: 8px 20px; border-radius: 50px; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: transform 0.3s var(--ease-spring), border-color var(--transition-base), color var(--transition-base), background var(--transition-base); background: transparent; color: var(--text-secondary); border: 1px solid var(--border-color); font-family: var(--font-sans); }
.timeline-btn:hover { border-color: var(--border-hover); color: var(--text-primary); transform: translateY(-2px); }
.timeline-btn.active { background: rgba(255, 79, 163, 0.1); border-color: var(--accent-primary); color: var(--accent-primary); }
.timeline-container { position: relative; max-width: 900px; margin: 0 auto; padding: 20px 0; }
.timeline-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--border-color); transform: translateX(-50%); }
.timeline-progress { position: absolute; left: 50%; top: 0; width: 2px; background: var(--gradient-primary); transform: translateX(-50%); transition: height 0.3s ease; height: 0; }
.timeline-item { position: relative; width: 50%; padding: 0 40px 48px; opacity: 1; transition: opacity 0.4s ease, transform 0.4s ease; }
.timeline-item.left { left: 0; text-align: right; padding-right: 60px; padding-left: 0; }
.timeline-item.right { left: 50%; text-align: left; padding-left: 60px; padding-right: 0; }
.timeline-item.hidden-item { opacity: 0; height: 0; padding: 0; margin: 0; overflow: hidden; }
.timeline-dot { position: absolute; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-card); border: 2px solid var(--border-color); display: flex; align-items: center; justify-content: center; color: var(--text-muted); z-index: 2; transition: var(--transition-base); }
.timeline-item.left .timeline-dot { right: -22px; }
.timeline-item.right .timeline-dot { left: -22px; }
.timeline-dot.major { width: 52px; height: 52px; border-color: var(--accent-warning); color: var(--accent-warning); background: rgba(217, 164, 65, 0.08); box-shadow: 0 0 16px rgba(217, 164, 65, 0.2); }
.timeline-item.left .timeline-dot.major { right: -26px; }
.timeline-item.right .timeline-dot.major { left: -26px; }
.timeline-dot.active { width: 56px; height: 56px; border-color: var(--accent-primary); color: var(--accent-primary); background: rgba(255, 79, 163, 0.1); box-shadow: 0 0 24px rgba(255, 79, 163, 0.3); animation: dotGlow 2s infinite; }
.timeline-item.left .timeline-dot.active { right: -28px; }
.timeline-item.right .timeline-dot.active { left: -28px; }

@keyframes dotGlow {
    0%, 100% { box-shadow: 0 0 24px rgba(255, 79, 163, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 79, 163, 0.6); }
}

.timeline-pulse { position: absolute; width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--accent-primary); animation: pulseRing 2s infinite; }

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

.timeline-content { background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); border-radius: var(--radius-md); padding: 20px 24px; transition: transform 0.35s var(--ease-spring), border-color var(--transition-base), box-shadow var(--transition-base); }
.timeline-content:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.timeline-year { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent-primary); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.timeline-content h3, .timeline-content h4 { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin: 6px 0 4px; }
.timeline-content p { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 8px; }
.timeline-tag { display: inline-block; font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted); background: rgba(255, 255, 255, 0.03); padding: 3px 10px; border-radius: 3px; margin-bottom: 12px; }
.timeline-stat { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--border-color); }
.timeline-stat-value { font-family: var(--font-mono); font-size: 1rem; font-weight: 700; color: var(--accent-primary); }
.timeline-stat-label { font-size: 0.72rem; color: var(--text-muted); }
.highlight-stat .timeline-stat-value { color: var(--accent-primary); font-size: 1.1rem; }
.current-content { border-color: rgba(255, 79, 163, 0.3); background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 79, 163, 0.04) 100%); box-shadow: var(--shadow-glow); }

.career-stats-bar { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 56px; padding: 28px 32px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); max-width: 900px; margin-left: auto; margin-right: auto; }
.career-stat { text-align: center; }
.career-stat-number { display: block; font-family: var(--font-mono); font-size: 1.8rem; font-weight: 800; color: var(--accent-primary); }
.career-stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.career-stat-divider { width: 1px; height: 30px; background: var(--border-color); }

.terminal-section { background: var(--bg-secondary); }
.terminal-wrapper {
    max-width: 850px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(255, 79, 163, 0.08);
    background: #150911;
    position: relative;
}

.terminal-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.025) 0px,
        rgba(255, 255, 255, 0.025) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    z-index: 1;
}
.terminal-header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #1f0e1a; border-bottom: 1px solid var(--border-color); }
.terminal-dots { display: flex; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.close { background: #ff3d70; }
.dot.minimize { background: #d9a441; }
.dot.maximize { background: #3ddc84; }
.terminal-title { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); flex: 1; }
.terminal-clear-btn { background: transparent; border: 1px solid var(--border-color); color: var(--text-muted); padding: 4px 12px; border-radius: 4px; font-family: var(--font-mono); font-size: 0.7rem; cursor: pointer; transition: var(--transition-fast); }
.terminal-clear-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }
.terminal-body { padding: 20px 24px; min-height: 400px; max-height: 600px; overflow-y: auto; font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.7; color: var(--text-secondary); }
.terminal-body::-webkit-scrollbar { width: 4px; }
.terminal-body::-webkit-scrollbar-track { background: transparent; }
.terminal-body::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 2px; }
.terminal-welcome { margin-bottom: 16px; }
.ascii-art { color: var(--accent-primary); font-size: 0.55rem; line-height: 1.1; margin-bottom: 12px; text-align: center; }
.terminal-welcome p { margin-bottom: 4px; font-size: 0.82rem; }
.terminal-hint { color: var(--text-muted); font-size: 0.78rem; margin-top: 8px; }
.cmd-highlight { color: var(--accent-primary); font-weight: 600; cursor: pointer; }
.terminal-divider { height: 1px; background: var(--border-color); margin: 16px 0; }
.terminal-input-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.terminal-prompt { color: var(--accent-primary); font-size: 0.78rem; white-space: nowrap; }
.terminal-prompt-arrow { color: var(--accent-primary); font-size: 0.78rem; }
.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    outline: none;
    caret-color: var(--accent-primary);
    min-width: 100px;
    animation: caretGlow 1.4s ease-in-out infinite;
}

@keyframes caretGlow {
    0%, 100% { text-shadow: none; }
    50% { text-shadow: 0 0 6px rgba(255, 79, 163, 0.4); }
}
.terminal-output-line { padding: 2px 0; animation: fadeInTerm 0.2s ease; }

@keyframes fadeInTerm {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.terminal-output-line .prompt { color: var(--accent-primary); }
.terminal-output-line .command { color: var(--text-primary); font-weight: 500; }
.terminal-output-line .output { color: var(--text-secondary); }
.terminal-output-line .output-title { color: var(--accent-primary); font-weight: 700; font-size: 0.9rem; display: block; margin-top: 4px; }
.terminal-output-line .output-subtitle { color: var(--text-muted); font-size: 0.78rem; }
.terminal-output-line .output-highlight { color: var(--accent-warning); font-weight: 600; }
.terminal-output-line .output-error { color: var(--accent-danger); }
.terminal-output-line .output-success { color: #3ddc84; }
.terminal-output-line .output-divider { color: var(--border-color); margin: 4px 0; }
.terminal-output-line .output-link { color: var(--accent-secondary); text-decoration: underline; }
.terminal-skill-tree { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; padding-left: 12px; border-left: 1px solid var(--border-color); }
.terminal-skill-item { display: flex; align-items: center; gap: 8px; }
.terminal-skill-bar { width: 100px; height: 6px; background: var(--border-color); border-radius: 3px; overflow: hidden; }
.terminal-skill-fill { height: 100%; border-radius: 3px; background: var(--gradient-primary); transition: width 1s var(--ease-smooth); position: relative; overflow: hidden; }

.terminal-skill-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
    background-size: 200% 100%;
    animation: foilSheen 2.5s ease-in-out infinite;
}
.terminal-table { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 8px 0; }
.terminal-table .key { color: var(--accent-primary); font-weight: 600; }
.terminal-table .val { color: var(--text-secondary); }

@media (max-width: 768px) {
    .terminal-body { padding: 16px; max-height: 450px; }
    .ascii-art { font-size: 0.4rem; }
    .terminal-prompt { font-size: 0.7rem; }
    .terminal-input { font-size: 0.78rem; }
    .terminal-skill-bar { width: 60px; }
}

@media (max-width: 768px) {
    .timeline-line, .timeline-progress { left: 20px; }
    .timeline-item { width: 100%; padding-left: 56px !important; padding-right: 0 !important; text-align: left !important; left: 0 !important; }
    .timeline-dot { left: -2px !important; right: auto !important; width: 36px !important; height: 36px !important; }
    .timeline-dot.major { left: -6px !important; width: 44px !important; height: 44px !important; }
    .timeline-dot.active { left: -8px !important; width: 48px !important; height: 48px !important; }
    .career-stats-bar { flex-wrap: wrap; gap: 16px; }
    .career-stat-divider { display: none; }
    .career-stat { flex: 1 1 40%; min-width: 100px; }
}

@media (max-width: 1024px) {
    .hero-name { font-size: 3rem; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .expertise-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
    .stack-grid { grid-template-columns: 1fr; }
    .proof-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-menu { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--bg-secondary); flex-direction: column; padding: 100px 32px 32px; gap: 24px; border-left: 1px solid var(--border-color); transition: right var(--transition-base); }
    .nav-menu.active { right: 0; }
    .nav-toggle { display: flex; z-index: 1001; }
    .hero-name { font-size: 2.3rem; }
    .hero-stats { gap: 20px; }
    .stat-number { font-size: 1.6rem; }
    section { padding: 72px 20px; }
    .section-title { font-size: 1.6rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 280px; justify-content: center; }
    .cert-grid { grid-template-columns: 1fr; }
    .proof-grid { grid-template-columns: 1fr; }
    .footer-top { flex-direction: column; gap: 16px; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
}

.post-main { max-width: 760px; margin: 0 auto; padding: 120px 24px 80px; }
.post-article { color: var(--text-primary); }
.post-header { margin-bottom: 48px; }
.post-eyebrow { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent-primary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.post-eyebrow a { color: var(--accent-primary); text-decoration: none; transition: opacity 0.2s ease; }
.post-eyebrow a:hover { opacity: 0.7; }
.post-title { font-size: 2.4rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 16px; color: var(--text-primary); }
.post-dek { font-size: 1.15rem; line-height: 1.55; color: var(--text-muted); margin-bottom: 24px; font-weight: 400; }
.post-meta { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.post-meta-divider { color: var(--border-color); }
.post-body { font-size: 1.05rem; line-height: 1.75; color: var(--text-primary); }
.post-body p { margin-bottom: 20px; }
.post-body h2 { font-size: 1.6rem; font-weight: 700; margin-top: 48px; margin-bottom: 16px; color: var(--text-primary); letter-spacing: -0.01em; }
.post-body h3 { font-size: 1.15rem; font-weight: 600; margin-top: 28px; margin-bottom: 8px; color: var(--accent-primary); }
.post-body em { color: var(--text-muted); font-style: italic; }
.post-body strong { color: var(--text-primary); font-weight: 700; }
.post-body a { color: var(--accent-primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: opacity 0.2s ease; }
.post-body a:hover { opacity: 0.75; }
.post-body code { font-family: var(--font-mono); font-size: 0.9em; background: var(--bg-card); padding: 2px 6px; border-radius: 4px; color: var(--accent-primary); }
.post-body blockquote { border-left: 3px solid var(--accent-primary); padding: 4px 20px; margin: 24px 0; color: var(--text-muted); font-style: italic; }
.post-footer { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.post-author-card { margin-bottom: 24px; }
.post-author-card a { color: var(--accent-primary); text-decoration: none; }
.post-author-card a:hover { text-decoration: underline; }
.post-share { font-family: var(--font-mono); font-size: 0.85rem; margin-bottom: 24px; }
.post-share a { color: var(--accent-primary); text-decoration: none; }
.post-share a:hover { text-decoration: underline; }
.post-back a { color: var(--accent-primary); text-decoration: none; font-family: var(--font-mono); font-size: 0.9rem; }
.post-back a:hover { text-decoration: underline; }
.post-list { list-style: none; padding: 0; margin: 32px 0 0; }
.post-list-item { padding: 32px 0; border-top: 1px solid var(--border-color); }
.post-list-item:first-child { border-top: none; padding-top: 0; }
.post-list-meta { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.post-list-title { font-size: 1.5rem; font-weight: 700; line-height: 1.25; margin-bottom: 8px; letter-spacing: -0.01em; }
.post-list-title a { color: var(--text-primary); text-decoration: none; transition: color 0.2s ease; }
.post-list-title a:hover { color: var(--accent-primary); }
.post-list-dek { color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.post-list-tags { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent-primary); text-transform: uppercase; letter-spacing: 0.08em; }
.post-list-cta { margin-top: 48px; padding: 20px 24px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; }
.post-list-cta a { color: var(--accent-primary); text-decoration: none; }
.post-list-cta a:hover { text-decoration: underline; }

@media (max-width: 720px) {
    .post-main { padding: 100px 20px 60px; }
    .post-title { font-size: 1.8rem; }
    .post-dek { font-size: 1rem; }
    .post-body { font-size: 1rem; }
    .post-body h2 { font-size: 1.35rem; margin-top: 36px; }
    .post-body h3 { font-size: 1.05rem; }
    .post-list-title { font-size: 1.2rem; }
}

.post-main ~ .footer .footer-container, .post-main + .footer .footer-container { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 40px 24px; max-width: 760px; margin: 0 auto; }
.post-main ~ .footer .footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }
.post-main ~ .footer .footer-links, .post-main ~ .footer .footer-social { display: flex; flex-wrap: wrap; gap: 18px; }
.post-main ~ .footer .footer-links a, .post-main ~ .footer .footer-social a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s ease; }
.post-main ~ .footer .footer-links a:hover, .post-main ~ .footer .footer-social a:hover { color: var(--accent-primary); }
.post-main ~ .footer .footer-copyright { color: var(--text-muted); font-size: 0.8rem; margin-top: 16px; }

.resume-meta, .resume-contact { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 8px; line-height: 1.6; }
.resume-contact a { color: var(--accent-primary); text-decoration: none; transition: opacity 0.2s ease; }
.resume-contact a:hover { opacity: 0.7; text-decoration: underline; }
.resume-download { margin-top: 16px; margin-bottom: 0; }
.resume-skills { margin: 0 0 24px; }
.resume-skills dt { font-weight: 700; color: var(--text-primary); margin-top: 12px; margin-bottom: 2px; }
.resume-skills dt:first-child { margin-top: 0; }
.resume-skills dd { margin-left: 0; margin-bottom: 8px; color: var(--text-primary); line-height: 1.6; }
.resume-role { margin-bottom: 28px; }
.resume-role-header { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 2px; }
.resume-role-header h3 { margin-top: 0 !important; margin-bottom: 0 !important; color: var(--text-primary) !important; font-size: 1.1rem !important; flex: 1 1 auto; }
.resume-role-dates { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent-primary); white-space: nowrap; }
.resume-role-meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 8px !important; }
.resume-role ul { margin: 0 0 0 24px; padding: 0; color: var(--text-primary); line-height: 1.6; }
.resume-role ul li { margin-bottom: 6px; }
.resume-list { margin: 0 0 16px 24px; padding: 0; color: var(--text-primary); line-height: 1.7; }
.resume-list li { margin-bottom: 6px; }
.resume-list-meta { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.85rem; }
.resume-projects li { margin-bottom: 12px; }

@media (max-width: 720px) {
    .resume-role-header { flex-direction: column; gap: 4px; }
    .resume-role-dates { font-size: 0.8rem; }
}

/* ---------- GLASS CARD HIGHLIGHT ----------
   A thin light streak along the top edge, the classic frosted-glass
   "refraction" cue. Purely decorative, never overlaps the card's text. */
.portfolio-card,
.cert-card,
.proof-card,
.stack-category,
.contact-card,
.timeline-content {
    position: relative;
}

.portfolio-card::before,
.cert-card::before,
.proof-card::before,
.stack-category::before,
.contact-card::before,
.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    pointer-events: none;
}

/* ---------- STAGGERED CARD ENTRANCE ----------
   Runs once, universally supported (no scroll-timeline dependency, no JS).
   Each grid's cards fade + rise in with a slight delay per position so
   they arrive as a cascade rather than all at once. */
@keyframes cardEnter {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.expertise-card,
.portfolio-card,
.cert-card,
.proof-card,
.timeline-content {
    animation: cardEnter 0.7s var(--ease-smooth) both;
}

.expertise-grid > .expertise-card:nth-child(1),
.portfolio-grid > .portfolio-card:nth-child(1) { animation-delay: 0s; }
.expertise-grid > .expertise-card:nth-child(2),
.portfolio-grid > .portfolio-card:nth-child(2) { animation-delay: 0.12s; }

.cert-grid > .cert-card:nth-child(1),
.proof-grid > .proof-card:nth-child(1) { animation-delay: 0s; }
.cert-grid > .cert-card:nth-child(2),
.proof-grid > .proof-card:nth-child(2) { animation-delay: 0.08s; }
.cert-grid > .cert-card:nth-child(3),
.proof-grid > .proof-card:nth-child(3) { animation-delay: 0.16s; }
.cert-grid > .cert-card:nth-child(4),
.proof-grid > .proof-card:nth-child(4) { animation-delay: 0.24s; }

.timeline-item:nth-child(1) .timeline-content { animation-delay: 0s; }
.timeline-item:nth-child(2) .timeline-content { animation-delay: 0.08s; }
.timeline-item:nth-child(3) .timeline-content { animation-delay: 0.16s; }
.timeline-item:nth-child(4) .timeline-content { animation-delay: 0.24s; }
.timeline-item:nth-child(5) .timeline-content { animation-delay: 0.32s; }

/* ---------- MOTION PREFERENCE ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
/* ==========================================================================\n   Fadia MARDINI PORTFOLIO\n   Unified Dark Rose Glass Design System\n   Drop-in final layer: append after the existing stylesheet.\n   HTML selectors are based on the supplied portfolio markup.\n   ========================================================================== */

:root {
    --bg-primary: #09070b;
    --bg-secondary: #100b12;
    --bg-tertiary: #171019;
    --bg-card: rgba(24, 14, 23, 0.78);

    --surface-1: rgba(255, 255, 255, 0.035);
    --surface-2: rgba(255, 255, 255, 0.055);
    --surface-3: rgba(255, 79, 163, 0.075);

    --border-color: rgba(255, 143, 209, 0.14);
    --border-hover: rgba(255, 79, 163, 0.48);
    --border-strong: rgba(255, 143, 209, 0.28);

    --text-primary: #fff5fb;
    --text-secondary: #d8bdce;
    --text-muted: #ad91a5;

    --accent-primary: #ff4fa3;
    --accent-secondary: #ff9bd5;
    --accent-danger: #ff5f91;
    --accent-warning: #e6b96a;
    --accent-purple: #c78cff;
    --accent-rose-gold: #e9a4bd;

    --gradient-primary: linear-gradient(135deg, #ff4fa3 0%, #d66cff 100%);
    --gradient-dark: linear-gradient(135deg, #100b12 0%, #1b101b 100%);
    --gradient-rose: linear-gradient(135deg, rgba(255, 79, 163, 0.22), rgba(199, 140, 255, 0.12));
    --gradient-mesh: radial-gradient(circle at 10% 15%, rgba(255, 79, 163, 0.24), transparent 32%), radial-gradient(circle at 85% 20%, rgba(214, 108, 255, 0.20), transparent 30%), radial-gradient(circle at 70% 90%, rgba(255, 155, 213, 0.14), transparent 34%);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 999px;

    --glass-bg: rgba(24, 14, 23, 0.64);
    --glass-bg-strong: rgba(27, 15, 26, 0.82);
    --glass-border: rgba(255, 143, 209, 0.15);
    --glass-blur: blur(22px) saturate(155%);

    --shadow-card: 0 18px 45px rgba(0, 0, 0, 0.42), 0 4px 16px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.035);
    --shadow-card-hover: 0 28px 70px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(255, 79, 163, 0.10), 0 0 42px rgba(255, 79, 163, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --shadow-glow: 0 0 26px rgba(255, 79, 163, 0.24);
    --shadow-glow-strong: 0 0 34px rgba(255, 79, 163, 0.36), 0 0 80px rgba(214, 108, 255, 0.14);

    --transition-fast: 160ms cubic-bezier(0.22, 1, 0.36, 1);
    --transition-base: 280ms cubic-bezier(0.22, 1, 0.36, 1);
    --transition-slow: 520ms cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);

    --container-max: 1200px;
    --nav-height: 70px;
}

/* ---------- GLOBAL DARK ROSE ATMOSPHERE ---------- */
html,
body {
    background: var(--bg-primary);
}

body {
    color: var(--text-primary);
    background-image: var(--gradient-mesh), radial-gradient(circle at 50% -10%, rgba(255, 79, 163, 0.08), transparent 38%);
    background-attachment: fixed;
}

::selection {
    background: rgba(255, 79, 163, 0.28);
    color: #ffffff;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 79, 163, 0.75), rgba(199, 140, 255, 0.55));
    border-radius: var(--radius-pill);
}

/* ---------- NAVIGATION ---------- */
.navbar {
    background: rgba(9, 7, 11, 0.72);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.navbar.scrolled {
    border-bottom-color: var(--border-strong);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.34);
}

.nav-logo,
.nav-link {
    transition: color var(--transition-base), text-shadow var(--transition-base);
}

.nav-logo:hover,
.nav-link:hover,
.nav-link.active {
    color: var(--accent-secondary);
    text-shadow: 0 0 22px rgba(255, 79, 163, 0.30);
}

/* ---------- UNIVERSAL BUTTON SYSTEM ---------- */
.btn,
.btn-card,
.cert-links a,
.timeline-btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: var(--radius-pill);
    transition: transform var(--transition-base), background var(--transition-base), border-color var(--transition-base), color var(--transition-base), box-shadow var(--transition-base);
}

.btn::before,
.btn-card::before,
.cert-links a::before,
.timeline-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.20) 48%, transparent 72%);
    transform: translateX(-120%);
    transition: transform 700ms var(--ease-smooth);
}

.btn:hover::before,
.btn-card:hover::before,
.cert-links a:hover::before,
.timeline-btn:hover::before {
    transform: translateX(120%);
}

.btn:hover,
.btn-card:hover,
.cert-links a:hover,
.timeline-btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    color: #170b13;
    background: var(--gradient-primary);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow-strong);
}

.btn-secondary,
.btn-outline {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.btn-secondary:hover,
.btn-outline:hover {
    color: #ffffff;
    background: rgba(255, 79, 163, 0.075);
    border-color: var(--border-hover);
    box-shadow: 0 0 24px rgba(255, 79, 163, 0.12);
}

.btn-card {
    padding: 10px 18px;
    color: var(--accent-secondary);
    background: rgba(255, 79, 163, 0.075);
    border: 1px solid rgba(255, 79, 163, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.btn-card:hover {
    color: #ffffff;
    background: rgba(255, 79, 163, 0.14);
    border-color: rgba(255, 79, 163, 0.55);
    box-shadow: 0 0 24px rgba(255, 79, 163, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ---------- SHARED GLASS CARD SYSTEM ---------- */
.expertise-card,
.portfolio-card,
.cert-card,
.proof-card,
.stack-category,
.contact-card,
.timeline-content {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)), var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.expertise-card::before,
.portfolio-card::before,
.cert-card::before,
.proof-card::before,
.stack-category::before,
.contact-card::before,
.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 9%;
    right: 9%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 190, 224, 0.55), transparent);
    opacity: 0.65;
    pointer-events: none;
}

.expertise-card::after,
.portfolio-card::after,
.cert-card::after,
.proof-card::after,
.stack-category::after,
.contact-card::after,
.timeline-content::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    right: -90px;
    top: -90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 79, 163, 0.12), transparent 68%);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.expertise-card:hover,
.portfolio-card:hover,
.cert-card:hover,
.proof-card:hover,
.stack-category:hover,
.contact-card:hover,
.timeline-content:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card-hover);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 79, 163, 0.025)), var(--glass-bg-strong);
}

.expertise-card:hover::after,
.portfolio-card:hover::after,
.cert-card:hover::after,
.proof-card:hover::after,
.stack-category:hover::after,
.contact-card:hover::after,
.timeline-content:hover::after {
    opacity: 1;
}

/* ---------- PROJECT GRID + CARDS ---------- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.portfolio-card {
    display: flex;
    padding: 28px;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
}

.portfolio-card.featured {
    border-color: rgba(255, 79, 163, 0.22);
    background: linear-gradient(145deg, rgba(255, 79, 163, 0.065), rgba(255, 255, 255, 0.018)), var(--glass-bg);
}

.portfolio-card-header {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--accent-secondary);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portfolio-card-header svg {
    color: var(--accent-primary);
    filter: drop-shadow(0 0 8px rgba(255, 79, 163, 0.32));
}

.portfolio-card h3 {
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.portfolio-card > p,
.portfolio-card > ul {
    position: relative;
    z-index: 1;
}

.portfolio-card > p {
    color: var(--text-secondary);
    line-height: 1.75;
}

.portfolio-card > ul {
    display: grid;
    gap: 10px;
    margin: 4px 0 22px;
}

.portfolio-card > ul > li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.portfolio-card > ul > li svg {
    flex: 0 0 auto;
    margin-top: 4px;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 6px rgba(255, 79, 163, 0.25));
}

.portfolio-card > a.btn-card,
.portfolio-card > div[style] {
    margin-top: auto;
}

.portfolio-card > div[style] {
    align-items: center;
}

/* ---------- CERTIFICATIONS ---------- */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.cert-card {
    display: flex;
    flex-direction: column;
    min-height: 230px;
    padding: 24px;
}

.cert-card.elite {
    border-color: rgba(255, 79, 163, 0.24);
    background: linear-gradient(145deg, rgba(255, 79, 163, 0.065), rgba(199, 140, 255, 0.025)), var(--glass-bg);
}

.cert-card.elite:hover {
    border-color: rgba(255, 79, 163, 0.58);
}

.cert-badge {
    align-self: flex-start;
    margin-bottom: 18px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 79, 163, 0.28);
    border-radius: var(--radius-pill);
    background: rgba(255, 79, 163, 0.08);
    color: var(--accent-secondary);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: inset 0 0 14px rgba(255, 79, 163, 0.05);
}

.cert-card h3 {
    color: var(--text-primary);
    font-size: 1.08rem;
    line-height: 1.35;
}

.cert-card p {
    min-height: 25px;
    margin-top: 7px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
}

.cert-issuer {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-top: 12px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 143, 209, 0.13);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.68rem;
}

.cert-links {
    display: flex;
    margin-top: auto;
    padding-top: 22px;
}

.cert-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 79, 163, 0.26);
    background: rgba(255, 79, 163, 0.075);
    color: var(--accent-secondary);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.cert-links a:hover {
    color: #ffffff;
    border-color: rgba(255, 79, 163, 0.58);
    background: rgba(255, 79, 163, 0.15);
    box-shadow: 0 0 22px rgba(255, 79, 163, 0.20);
}

.cert-more {
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    margin-top: 28px;
    padding-top: 20px;
}

/* ---------- TECHNOLOGY TAGS / STACK PILLS ---------- */
.expertise-tags,
.stack-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.expertise-tags span,
.stack-items span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 79, 163, 0.19);
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, rgba(255, 79, 163, 0.095), rgba(199, 140, 255, 0.045));
    color: var(--accent-secondary);
    font-family: var(--font-mono);
    font-size: 0.70rem;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.expertise-tags span:hover,
.stack-items span:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 79, 163, 0.52);
    background: rgba(255, 79, 163, 0.14);
    box-shadow: 0 0 18px rgba(255, 79, 163, 0.12);
}

/* ---------- GITHUB FEATURE CARD ---------- */
.portfolio-card {
    isolation: isolate;
}

.portfolio-card > .portfolio-card-header,
.portfolio-card > h3,
.portfolio-card > p,
.portfolio-card > a {
    position: relative;
    z-index: 2;
}

/* Exact GitHub card selector without changing the supplied HTML. */
.portfolio-grid > .portfolio-card:last-child {
    grid-column: 1 / -1;
    min-height: 250px;
    justify-content: center;
    padding: clamp(28px, 5vw, 52px);
    border-color: rgba(255, 79, 163, 0.30);
    background: var(--gradient-mesh), linear-gradient(145deg, rgba(255, 79, 163, 0.09), rgba(199, 140, 255, 0.055)), var(--glass-bg-strong);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48), 0 0 50px rgba(255, 79, 163, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.portfolio-grid > .portfolio-card:last-child::before {
    left: 12%;
    right: 12%;
    background: linear-gradient(90deg, transparent, rgba(255, 190, 224, 0.85), transparent);
}

.portfolio-grid > .portfolio-card:last-child::after {
    inset: -20%;
    width: auto;
    height: auto;
    background: radial-gradient(circle at 18% 20%, rgba(255, 79, 163, 0.24), transparent 27%), radial-gradient(circle at 82% 78%, rgba(199, 140, 255, 0.20), transparent 30%);
    opacity: 1;
    z-index: -1;
}

.portfolio-grid > .portfolio-card:last-child h3 {
    font-size: clamp(1.45rem, 2vw, 2rem);
}

.portfolio-grid > .portfolio-card:last-child > p {
    max-width: 850px;
}

.portfolio-grid > .portfolio-card:last-child > a.btn-card {
    align-self: flex-start;
    margin-top: 18px;
    padding: 12px 20px;
    font-size: 0.82rem;
    border-color: rgba(255, 79, 163, 0.45);
    box-shadow: 0 0 24px rgba(255, 79, 163, 0.12);
}

.portfolio-grid > .portfolio-card:last-child > a.btn-card:hover {
    box-shadow: 0 0 28px rgba(255, 79, 163, 0.30), 0 0 70px rgba(199, 140, 255, 0.12);
}

@keyframes githubCtaPulse {
    0%, 100% { box-shadow: 0 0 22px rgba(255, 79, 163, 0.12); }
    50% { box-shadow: 0 0 34px rgba(255, 79, 163, 0.30), 0 0 64px rgba(199, 140, 255, 0.10); }
}

.portfolio-grid > .portfolio-card:last-child > a.btn-card {
    animation: githubCtaPulse 2.8s ease-in-out infinite;
}

/* ---------- SECTION TITLES / COPY ---------- */
.section-number {
    color: var(--accent-primary);
    text-shadow: 0 0 18px rgba(255, 79, 163, 0.25);
}

.section-subtitle,
.about-text p,
.about-highlights span,
.card-subtitle,
.expertise-list span {
    color: var(--text-secondary);
}

.highlight {
    color: var(--accent-secondary);
}

/* ---------- FORM / CONTACT GLASS CONSISTENCY ---------- */
.form-group input,
.form-group textarea,
.terminal-input {
    background: rgba(255, 255, 255, 0.035);
    border-color: var(--glass-border);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.terminal-input:focus {
    border-color: var(--border-hover);
    box-shadow: 0 0 0 3px rgba(255, 79, 163, 0.08), 0 0 24px rgba(255, 79, 163, 0.08);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cert-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .portfolio-grid,
    .cert-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid > .portfolio-card:last-child {
        grid-column: auto;
        min-height: 0;
    }

    .portfolio-card,
    .cert-card,
    .expertise-card,
    .proof-card,
    .stack-category,
    .contact-card,
    .timeline-content {
        border-radius: 17px;
    }

    .portfolio-grid > .portfolio-card:last-child > a.btn-card {
        align-self: stretch;
    }
}

@media (max-width: 480px) {
    .portfolio-card,
    .cert-card {
        padding: 20px;
    }

    .btn,
    .btn-card {
        min-height: 44px;
    }

    .cert-links a {
        min-height: 36px;
    }

    .expertise-tags,
    .stack-items {
        gap: 6px;
    }
}

/* ---------- ACCESSIBILITY / REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .btn:hover,
    .btn-card:hover,
    .cert-links a:hover,
    .timeline-btn:hover,
    .expertise-card:hover,
    .portfolio-card:hover,
    .cert-card:hover,
    .proof-card:hover,
    .stack-category:hover,
    .contact-card:hover,
    .timeline-content:hover,
    .expertise-tags span:hover,
    .stack-items span:hover {
        transform: none;
    }
}

/* ============================================
   THE DEFINITIVE Awwwards LOADER STYLING
   ============================================ */
.site-loader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #09070b;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: auto;
    transition: visibility 0s linear 1.2s;
}

.site-loader.loaded {
    visibility: hidden;
}

/* Split Curtains with GPU Acceleration */
.loader-panel {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    background: #09070b;
    z-index: 1;
    will-change: transform;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    border-bottom: 1px solid rgba(255, 79, 163, 0.12);
}

.loader-panel-top {
    top: 0;
    transform-origin: top;
}

.loader-panel-bottom {
    bottom: 0;
    transform-origin: bottom;
    border-top: 1px solid rgba(255, 79, 163, 0.12);
    border-bottom: none;
}

.site-loader.loaded .loader-panel-top {
    transform: translateY(-100%);
}

.site-loader.loaded .loader-panel-bottom {
    transform: translateY(100%);
}

/* Content Container & Entrance Fades */
.loader-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-loader.loaded .loader-content-wrapper {
    opacity: 0;
    transform: scale(0.96);
}

/* Top Meta Bar */
.loader-top-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.loader-status-text {
    color: var(--accent-primary);
    font-weight: 600;
    letter-spacing: 3px;
    transition: opacity 0.3s ease;
}

/* Center Cinematic Typography */
.loader-center-brand {
    text-align: center;
}

.loader-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 6.5rem);
    font-weight: 600;
    font-style: italic;
    color: var(--text-primary);
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loader-subtitle {
    font-family: var(--font-mono);
    font-size: clamp(0.75rem, 1.2vw, 1rem);
    color: var(--text-secondary);
    letter-spacing: 6px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Bottom Progress Track & Percentage */
.loader-bottom-bar {
    display: flex;
    align-items: center;
    gap: 32px;
}

.loader-progress-track {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    box-shadow: 0 0 20px rgba(255, 79, 163, 0.5);
    transition: width 0.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.loader-percentage {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 48px;
    text-align: right;
}

body.is-loading {
    overflow: hidden;
}

@media (max-width: 768px) {
    .loader-content-wrapper {
        padding: 30px 20px;
    }
    .loader-top-meta {
        font-size: 0.65rem;
    }
}