/* ===========================
   GLOBAL STYLES & RESET
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3b82f6;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --dark: #0b1120;
    --surface: rgba(30, 41, 59, 0.55);
    --surface-strong: rgba(30, 41, 59, 0.85);
    --glass-border: rgba(148, 163, 184, 0.16);
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --success: #10b981;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
    --radius: 16px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--dark);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

::selection {
    background: rgba(59, 130, 246, 0.4);
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6.5rem 0;
    position: relative;
}

.section-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.section-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4.5vw, 2.9rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #ffffff 20%, #93c5fd 60%, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: fit-content;
}

/* ===========================
   PAGE-LEVEL EFFECTS
   =========================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: var(--gradient);
    transform-origin: 0 50%;
    transform: scaleX(0);
    z-index: 1100;
}

.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 520px;
    height: 520px;
    margin: -260px 0 0 -260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.13), transparent 62%);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
}

#particle-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.45;
    pointer-events: none;
}

/* ===========================
   NAVIGATION
   =========================== */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(11, 17, 32, 0.6);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(11, 17, 32, 0.88);
    border-bottom-color: var(--glass-border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}

.logo-mark {
    display: block;
    flex: none;
}

.logo-text {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

/* The tagline under the name: Python in its yellow, DevOps in the site blue. */
.logo-tag {
    display: block;
    margin-top: 3px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.logo-tag b {
    color: #ffd43b;
    font-weight: 700;
}

.logo-tag i {
    font-style: normal;
    font-weight: 700;
    color: #60a5fa;
}

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

.nav-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.9rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 999px;
    transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link.active:not(.nav-cta) {
    background: rgba(148, 163, 184, 0.12);
}

.nav-cta {
    margin-left: 0.5rem;
    color: #fff;
    background: var(--gradient);
    padding: 0.5rem 1.2rem;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

/* Tooltips */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 0.3rem 0.65rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    color: #fff;
    background: #1e293b;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===========================
   HERO
   =========================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3.5rem;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: -1;
}

.hero-blob-1 {
    width: 520px;
    height: 520px;
    top: -140px;
    left: -160px;
    background: rgba(59, 130, 246, 0.28);
}

.hero-blob-2 {
    width: 480px;
    height: 480px;
    bottom: -120px;
    right: -140px;
    background: rgba(139, 92, 246, 0.24);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
    width: 100%;
}

.hero-text,
.hero-visual {
    min-width: 0;
}

.hero-greeting {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text);
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--surface);
    margin-bottom: 1.5rem;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    animation: pulse 2s infinite;
    flex: none;
}

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

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.hero-name {
    font-family: var(--font-head);
    font-size: clamp(2.8rem, 7.5vw, 5.2rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 1rem;
}

.word-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-bottom: 0.08em;
}

.word {
    display: inline-block;
}

.word-accent {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-family: var(--font-mono);
    font-size: clamp(1.05rem, 2.4vw, 1.45rem);
    font-weight: 500;
    color: var(--accent);
    min-height: 2.2rem;
    margin-bottom: 1.4rem;
}

.cursor {
    animation: blink 1s steps(1) infinite;
    margin-left: 2px;
}

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

.hero-description {
    font-size: 1.08rem;
    color: var(--text-muted);
    max-width: 580px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.7rem;
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    will-change: transform;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 14px 40px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--glass-border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.12);
}

.btn-large {
    width: 100%;
}

.hero-social {
    display: flex;
    gap: 0.8rem;
}

.hero-social a,
.footer-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    text-decoration: none;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.hero-social a:hover,
.footer-social a:hover {
    color: #fff;
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.18);
}

/* Terminal */
.terminal {
    background: rgba(2, 6, 23, 0.85);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(59, 130, 246, 0.08);
    overflow: hidden;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.8rem 1rem;
    background: rgba(30, 41, 59, 0.7);
    border-bottom: 1px solid var(--glass-border);
}

.t-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.t-red {
    background: #ef4444;
}

.t-yellow {
    background: #f59e0b;
}

.t-green {
    background: #10b981;
}

.terminal-title {
    margin-left: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 1.2rem 1.3rem 1.4rem;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    line-height: 1.85;
}

.t-line {
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.t-prompt {
    color: var(--secondary);
    margin-right: 0.4rem;
}

.t-out {
    color: var(--text-muted);
    padding-left: 1rem;
}

.t-ok {
    color: #a7f3d0;
}

.t-ok i {
    color: var(--success);
    margin-right: 0.5rem;
    font-size: 0.75rem;
}

.t-caret {
    display: inline-block;
    width: 8px;
    height: 1em;
    background: var(--accent);
    vertical-align: -2px;
    animation: blink 1s steps(1) infinite;
}

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

.stat {
    padding: 1.3rem 1.4rem;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
}

.stat-num {
    display: block;
    font-family: var(--font-head);
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1.1;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Marquee */
.marquee {
    overflow: hidden;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.6);
    padding: 1rem 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.marquee-track span {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 0 1.6rem;
    white-space: nowrap;
}

.marquee-track span::after {
    content: '◆';
    margin-left: 3.2rem;
    font-size: 0.55rem;
    color: var(--primary);
    vertical-align: middle;
}

/* ===========================
   ABOUT
   =========================== */
.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.1rem;
}

.about-text .about-intro {
    font-family: var(--font-head);
    font-size: 1.45rem;
    line-height: 1.4;
    color: #fff;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.2rem;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.highlight-item:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: var(--surface-strong);
}

.highlight-item i {
    font-size: 1.5rem;
    width: 2rem;
    text-align: center;
    color: var(--primary);
}

.highlight-item h4 {
    font-family: var(--font-head);
    font-size: 1.02rem;
    color: #fff;
}

.about-text .highlight-item p {
    font-size: 0.88rem;
    margin: 0;
}

.about-info {
    display: grid;
    gap: 1.2rem;
}

.info-card {
    padding: 1.6rem;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
}

.info-card h3 {
    font-family: var(--font-head);
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 1rem;
}

.info-list,
.edu-list {
    list-style: none;
}

.info-list li {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    padding: 0.45rem 0;
    font-size: 0.95rem;
    color: var(--text);
}

.info-list i {
    color: var(--primary);
    width: 1.1rem;
    text-align: center;
}

.edu-list li {
    position: relative;
    display: grid;
    padding: 0 0 1.1rem 1.2rem;
    border-left: 2px solid rgba(59, 130, 246, 0.35);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.edu-list li:last-child {
    padding-bottom: 0;
}

.edu-list li::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
}

.edu-list strong {
    color: #fff;
    font-size: 0.98rem;
}

.edu-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
}

/* ===========================
   SKILLS
   =========================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.skill-category {
    padding: 1.5rem;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: var(--surface-strong);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.45);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.1rem;
}

.category-header i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #fff;
    background: var(--gradient);
    border-radius: 10px;
    flex: none;
}

.category-header h3 {
    font-family: var(--font-head);
    font-size: 1.08rem;
    color: #fff;
    line-height: 1.25;
}

.chips,
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.chips span,
.project-tech span {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    padding: 0.28rem 0.65rem;
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.09);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 7px;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.chips span:hover,
.project-tech span:hover {
    color: #fff;
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.16);
}

/* ===========================
   EXPERIENCE TIMELINE
   =========================== */
.timeline {
    position: relative;
    max-width: 900px;
    padding-left: 2.2rem;
}

.timeline::before,
.timeline-progress {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    border-radius: 2px;
}

.timeline::before {
    background: rgba(148, 163, 184, 0.18);
}

.timeline-progress {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    transform-origin: 50% 0;
}

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

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2.2rem;
    top: 1.7rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--dark);
    border: 3px solid var(--primary);
    box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.15);
    z-index: 1;
}

.timeline-content {
    padding: 1.6rem 1.8rem;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.timeline-content:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: var(--surface-strong);
}

.timeline-date {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent);
    padding: 0.2rem 0.7rem;
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: 999px;
    margin-bottom: 0.7rem;
}

.timeline-content h3 {
    font-family: var(--font-head);
    font-size: 1.35rem;
    color: #fff;
    line-height: 1.25;
}

.timeline-company {
    color: #93c5fd;
    font-weight: 500;
    margin: 0.2rem 0 0.9rem;
}

.timeline-company a {
    text-decoration: none;
}

.timeline-company a:hover {
    text-decoration: underline;
}

.timeline-company i {
    font-size: 0.7rem;
    margin-left: 0.2rem;
}

.timeline-description,
.project-points {
    list-style: none;
}

.timeline-description li,
.project-points li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.55rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.timeline-description li::before,
.project-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--gradient);
    transform: rotate(45deg);
}

/* ===========================
   PROJECTS
   =========================== */
.projects-grid {
    display: grid;
    gap: 1.6rem;
}

.project-card {
    position: relative;
    padding: 2rem;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.5s ease;
}

.project-card:hover {
    border-color: rgba(59, 130, 246, 0.45);
    background: var(--surface-strong);
    box-shadow: 0 25px 60px rgba(2, 6, 23, 0.55);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-top {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.project-num {
    font-family: var(--font-head);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(96, 165, 250, 0.65);
    flex: none;
}

.project-heading {
    flex: 1;
    min-width: 0;
}

.project-heading h3 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    line-height: 1.2;
    color: #fff;
}

.project-role {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent);
    margin-top: 0.25rem;
}

.project-actions {
    flex: none;
}

.project-link,
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.86rem;
    font-weight: 600;
    border-radius: 999px;
    white-space: nowrap;
}

.project-link {
    color: #fff;
    background: var(--gradient);
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(59, 130, 246, 0.3);
    transition: box-shadow 0.3s ease;
}

.project-link:hover {
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.55);
}

.project-link i {
    font-size: 0.72rem;
}

.status-badge {
    color: #a7f3d0;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.project-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.2rem;
}

.project-main {
    min-width: 0;
}

.project-description {
    color: var(--text);
    margin-bottom: 1.3rem;
}

.arch-diagram {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    padding: 1rem;
    margin-bottom: 1.3rem;
    background: rgba(2, 6, 23, 0.5);
    border: 1px dashed rgba(148, 163, 184, 0.22);
    border-radius: 12px;
}

.arch-box {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 500;
    padding: 0.4rem 0.7rem;
    color: #dbeafe;
    background: rgba(59, 130, 246, 0.16);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 8px;
    white-space: nowrap;
}

.arch-arrow {
    color: var(--accent);
    font-weight: 700;
}

.project-points code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.14);
    padding: 0.05rem 0.35rem;
    border-radius: 4px;
}

/* ===========================
   CONTACT
   =========================== */
.contact-content {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.contact-info,
.contact-form-wrapper {
    min-width: 0;
}

.contact-info h3 {
    font-family: var(--font-head);
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 0.6rem;
}

.contact-info>p {
    color: var(--text-muted);
    margin-bottom: 1.8rem;
    max-width: 520px;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    text-decoration: none;
    min-width: 0;
    transition: border-color 0.3s ease, background 0.3s ease;
}

a.contact-item:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.12);
}

.contact-item i {
    font-size: 1.25rem;
    width: 1.6rem;
    text-align: center;
    color: var(--primary);
    flex: none;
}

.contact-item div {
    min-width: 0;
}

.contact-item h4 {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.contact-item span {
    display: block;
    font-size: 0.92rem;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.email-direct-card {
    padding: 2.2rem;
    text-align: center;
    background: linear-gradient(160deg, rgba(59, 130, 246, 0.16), rgba(139, 92, 246, 0.12));
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 20px;
}

.email-icon-wrapper {
    width: 68px;
    height: 68px;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    background: var(--gradient);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(59, 130, 246, 0.4);
}

.email-direct-card h3 {
    font-family: var(--font-head);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.4rem;
}

.email-direct-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.email-buttons {
    display: grid;
    gap: 0.8rem;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    padding: 3rem 0 0;
    border-top: 1px solid var(--glass-border);
    overflow: hidden;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.footer-social {
    display: flex;
    gap: 0.6rem;
}

.footer-brand-large {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 22vw;
    letter-spacing: -0.04em;
    line-height: 0.8;
    text-align: center;
    margin-top: 3rem;
    margin-bottom: -0.08em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(148, 163, 184, 0.22);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
    }

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

    .project-body {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.4rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: minmax(0, 1fr);
    }
}

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

    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
        padding: 1rem 1.5rem 1.4rem;
        background: rgba(11, 17, 32, 0.97);
        border-bottom: 1px solid var(--glass-border);
        display: none;
    }

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

    .nav-cta {
        margin-left: 0;
        text-align: center;
    }

    .hero-section {
        padding-top: 7rem;
    }

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

    .skills-grid,
    .about-highlights,
    .contact-details {
        grid-template-columns: minmax(0, 1fr);
    }

    .project-card {
        padding: 1.4rem;
    }

    .project-top {
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .project-num {
        font-size: 2rem;
    }

    .project-heading {
        flex-basis: calc(100% - 4rem);
    }

    .project-heading h3 {
        font-size: 1.25rem;
    }

    .terminal-body {
        font-size: 0.72rem;
        padding: 1rem;
    }

    .timeline-content {
        padding: 1.3rem;
    }

    .cursor-glow {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .status-dot,
    .cursor,
    .t-caret {
        animation: none;
    }
}

/* ===========================
   FEATURED PROJECT (own product)
   =========================== */
.project-featured {
    border-color: rgba(99, 102, 241, 0.45);
    background: linear-gradient(160deg, rgba(59, 130, 246, 0.14), rgba(139, 92, 246, 0.1) 45%, var(--surface));
    box-shadow: 0 25px 60px rgba(2, 6, 23, 0.45), 0 0 0 1px rgba(99, 102, 241, 0.15);
}

.project-featured::before {
    transform: scaleX(1);
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.project-link-alt {
    background: var(--surface-strong);
    border: 1px solid rgba(99, 102, 241, 0.5);
    box-shadow: none;
}

.about-text a,
.info-list a {
    color: #93c5fd;
    text-decoration: none;
}

.about-text a:hover,
.info-list a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .project-actions {
        justify-content: flex-start;
        width: 100%;
    }
}

/* ===========================
   WEBSITES (free sites under whisperperks.com)
   =========================== */
.sites-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.2rem 2rem;
    margin: -1.6rem 0 2.4rem;
}

.sites-intro p {
    max-width: 640px;
    color: var(--text-muted);
}

.sites-intro a {
    color: #93c5fd;
    text-decoration: none;
}

.sites-intro a:hover {
    text-decoration: underline;
}

.sites-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
}

.sites-facts li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #dbeafe;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 999px;
}

.sites-facts i {
    color: var(--accent);
}

.sites-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
}

.site-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.site-card:hover {
    border-color: rgba(59, 130, 246, 0.45);
    background: var(--surface-strong);
    box-shadow: 0 25px 60px rgba(2, 6, 23, 0.55);
}

.site-shot {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
}

.site-shot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.site-card:hover .site-shot img {
    transform: scale(1.04);
}

.site-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.6rem;
}

.site-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.site-num {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(96, 165, 250, 0.65);
    flex: none;
}

.site-head h3 {
    font-family: var(--font-head);
    font-size: 1.3rem;
    line-height: 1.2;
    color: #fff;
}

.site-tagline {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    margin-top: 0.2rem;
}

.site-description {
    margin-bottom: 1rem;
}

.site-points {
    list-style: none;
    margin-bottom: 1.2rem;
}

.site-points li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
}

.site-points li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    position: absolute;
    left: 0;
    top: 0.2rem;
    color: var(--success);
}

.site-card .project-tech {
    margin-bottom: 1.4rem;
}

.site-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1rem;
    margin-top: auto;
}

.site-domain {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}

/* ===========================
   CV (view in the browser, download the PDF)
   =========================== */
.cv-content {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 3.5rem;
}

.cv-paper {
    position: relative;
    display: block;
    max-width: 380px;
    justify-self: center;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 30px 70px rgba(2, 6, 23, 0.6), 0 0 0 1px rgba(148, 163, 184, 0.2);
    transform: rotate(-2deg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.cv-paper:hover,
.cv-paper:focus-visible {
    transform: rotate(0deg) translateY(-6px);
    box-shadow: 0 40px 80px rgba(2, 6, 23, 0.7), 0 0 0 2px rgba(59, 130, 246, 0.6);
}

.cv-paper img {
    display: block;
    width: 100%;
    height: auto;
}

.cv-paper-hint {
    position: absolute;
    left: 50%;
    bottom: 1.2rem;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: #fff;
    background: var(--gradient);
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(59, 130, 246, 0.4);
    white-space: nowrap;
}

.cv-info h3 {
    font-family: var(--font-head);
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 0.8rem;
}

.cv-info > p {
    color: var(--text-muted);
    margin-bottom: 1.4rem;
}

.cv-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.4rem;
    list-style: none;
    margin-bottom: 2rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #dbeafe;
}

.cv-meta i {
    color: var(--accent);
    margin-right: 0.35rem;
}

.cv-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.cv-buttons .btn-large {
    width: auto;
}

@media (max-width: 1024px) {
    .cv-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
    }
}

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

    .sites-intro {
        margin-top: -1.2rem;
    }

    .site-body {
        padding: 1.3rem;
    }

    .cv-paper {
        max-width: 280px;
    }

    .cv-buttons .btn {
        flex: 1 1 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-shot img,
    .cv-paper {
        transition: none;
    }
}
