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

:root {
    --bg: #0c0a08;
    --bg-alt: #16120e;
    --surface: #1e1a14;
    --surface-hover: #252018;
    --border: #2d261e;
    --border-glow: #ffb00033;
    --text: #e8dcc8;
    --text-dim: #9a8e7a;
    --accent: #ffb000;
    --accent-bright: #ffc847;
    --accent-dim: rgba(255, 176, 0, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Background Pattern - subtle grid + scanlines */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(255, 176, 0, 0.015) 1px,
            rgba(255, 176, 0, 0.015) 2px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 80px,
            rgba(255, 176, 0, 0.025) 80px,
            rgba(255, 176, 0, 0.025) 81px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 80px,
            rgba(255, 176, 0, 0.025) 80px,
            rgba(255, 176, 0, 0.025) 81px
        );
}

.bg-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 25%, rgba(255, 176, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 176, 0, 0.02) 0%, transparent 50%);
}

.bg-pattern::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 176, 0, 0.008) 2px,
        rgba(255, 176, 0, 0.008) 4px
    );
    animation: scanline-drift 8s linear infinite;
}

@keyframes scanline-drift {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    padding: 8px 16px;
    background: var(--accent);
    color: var(--bg);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-xs);
    z-index: 200;
    transition: top 0.15s;
}

.skip-link:focus {
    top: 16px;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* Nav */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: rgba(12, 10, 8, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.85;
}

.logo-mark {
    color: var(--text-dim);
    flex-shrink: 0;
}

.logo-text {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-links a {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
    position: relative;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: var(--accent);
    transition: width 0.25s cubic-bezier(0.23, 1, 0.32, 1), left 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 20px var(--accent-dim), 0 4px 12px rgba(0,0,0,0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 176, 0, 0.3), 0 8px 20px rgba(0,0,0,0.4);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 0 12px var(--accent-dim), 0 2px 6px rgba(0,0,0,0.2);
}

.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn-outline:active {
    transform: translateY(0);
}

.btn-outline:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 20px var(--accent-dim);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* Hero - Terminal Style */
.hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding: 120px 32px 80px;
    max-width: 1300px;
    margin: 0 auto;
}

.hero-terminal {
    flex: 1;
    max-width: 560px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

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

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
    margin-left: 12px;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 12px;
    color: var(--text-dim);
}

.terminal-body {
    padding: 32px;
}

.terminal-line {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 14px;
    margin-bottom: 24px;
}

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

.terminal-cmd {
    color: var(--text);
}

.terminal-cursor {
    color: var(--accent);
    animation: blink 1s step-end infinite;
}

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

.hero-name {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    color: var(--text);
    background: linear-gradient(135deg, var(--text) 0%, var(--accent-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-role {
    font-size: 16px;
    color: var(--text-dim);
    margin-bottom: 24px;
}

.hero-socials {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-dim);
    transition: all 0.2s;
}

.social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 16px var(--accent-dim);
    transform: translateY(-2px);
}

.social-link:active {
    transform: translateY(0);
}

.social-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.hero-photo {
    position: relative;
    width: 280px;
    height: 280px;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--border);
    position: relative;
    z-index: 2;
}

.photo-ring {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    opacity: 0.2;
    animation: pulse-ring 4s ease-in-out infinite;
}

.ring-2 {
    inset: -24px;
    animation-delay: 1s;
    opacity: 0.1;
}

@keyframes pulse-ring {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.03); opacity: 0.1; }
}





/* Marquee */
.marquee-section {
    padding: 20px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.marquee {
    width: 100%;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    gap: 32px;
    animation: marquee 20s linear infinite;
    width: max-content;
}

.marquee-content span {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.marquee-sep {
    color: var(--accent);
    opacity: 0.4;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Sections */
.section {
    position: relative;
    padding: 100px 32px;
}

.section-alt {
    background: var(--bg-alt);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 48px;
    color: var(--text);
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

.bento-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
}

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

.bento-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.bento-wide {
    grid-column: span 2;
    flex-direction: row;
}

.bento-wide .bento-visual {
    width: 50%;
}

.bento-wide .bento-content {
    width: 50%;
}

.bento-tall {
    grid-row: span 2;
}

.bento-visual {
    height: 160px;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

.bento-wide .bento-visual {
    height: auto;
    min-height: 200px;
}

.bento-content {
    padding: 24px;
    flex: 1;
}

.bento-content h3 {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.bento-content p {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 16px;
    line-height: 1.5;
    text-align: justify;
}

.bento-tags {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Project Visuals - Modern */
.bento-visual {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.bento-wide .bento-visual {
    min-height: 200px;
}

/* CloudVerse - Dashboard */
.vis-cloud {
    padding: 20px;
}

.cloud-mesh {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 176, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 176, 0, 0.05) 0%, transparent 50%);
}

.cloud-dashboard {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 320px;
}

.dash-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.dash-widget {
    flex: 1;
    background: rgba(30, 26, 20, 0.8);
    border: 1px solid rgba(255, 176, 0, 0.2);
    border-radius: var(--radius-xs);
    padding: 8px;
}

.dash-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.dash-bar {
    height: 4px;
    background: rgba(255, 176, 0, 0.1);
    border-radius: var(--radius-xs);
    overflow: hidden;
    margin-bottom: 4px;
}

.dash-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-bright));
    border-radius: 2px;
    animation: dash-pulse 3s ease-in-out infinite;
}

.mem-fill {
    animation-delay: 0.5s;
}

.net-fill {
    animation-delay: 1s;
}

.dash-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
}

@keyframes dash-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.dash-chart {
    background: rgba(30, 26, 20, 0.6);
    border: 1px solid rgba(255, 176, 0, 0.15);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 12px;
}

.dash-chart svg {
    width: 100%;
    height: 50px;
}

.chart-line {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: chart-draw 3s ease-out forwards;
}

@keyframes chart-draw {
    to { stroke-dashoffset: 0; }
}

.dash-nodes {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.node {
    width: 8px;
    height: 8px;
    background: rgba(255, 176, 0, 0.3);
    border-radius: 50%;
    animation: node-blink 2s ease-in-out infinite;
}

.node:nth-child(2) { animation-delay: 0.2s; }
.node:nth-child(3) { animation-delay: 0.4s; }
.node:nth-child(4) { animation-delay: 0.6s; }
.node:nth-child(5) { animation-delay: 0.8s; }

.node-active {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

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

/* Network Security - Radar */
.vis-network {
    position: relative;
    background: radial-gradient(circle at 50% 50%, var(--bg-alt) 0%, var(--bg) 100%);
}

.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transform-origin: left center;
    animation: radar-rotate 4s linear infinite;
    opacity: 0.6;
}

@keyframes radar-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.radar-grid {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radar-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 176, 0, 0.15);
    border-radius: 50%;
}

.radar-ring:nth-child(1) { width: 60px; height: 60px; }
.radar-ring:nth-child(2) { width: 120px; height: 120px; }
.radar-ring:nth-child(3) { width: 180px; height: 180px; }

.radar-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px var(--accent), 0 0 40px rgba(255, 176, 0, 0.3);
}

.traffic-packets {
    position: absolute;
    inset: 0;
}

.packet {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: packet-move 3s linear infinite;
}

.p1 { top: 50%; left: 20%; animation-delay: 0s; }
.p2 { top: 30%; right: 20%; animation-delay: 1s; }
.p3 { bottom: 30%; left: 30%; animation-delay: 2s; }

@keyframes packet-move {
    0% { opacity: 0; transform: scale(0); }
    20% { opacity: 1; transform: scale(1); }
    80% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0); }
}

.shield-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255, 176, 0, 0.1);
    border: 1px solid rgba(255, 176, 0, 0.3);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: shield-pulse 2s ease-in-out infinite;
}

@keyframes shield-pulse {
    0%, 100% { box-shadow: 0 0 0 rgba(255, 176, 0, 0); }
    50% { box-shadow: 0 0 20px rgba(255, 176, 0, 0.3); }
}

/* SecureVault - 3D Lock */
.vis-vault {
    position: relative;
    background: radial-gradient(circle at 50% 50%, var(--surface) 0%, var(--bg) 100%);
}

.vault-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 176, 0, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: vault-glow-pulse 3s ease-in-out infinite;
}

@keyframes vault-glow-pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

.encryption-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px dashed rgba(255, 176, 0, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ring-rotate 10s linear infinite;
}

.encryption-ring:nth-child(2) {
    width: 100px;
    height: 100px;
    animation-duration: 8s;
    animation-direction: reverse;
}

.encryption-ring:nth-child(3) {
    width: 140px;
    height: 140px;
    animation-duration: 12s;
}

@keyframes ring-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.lock-3d {
    position: relative;
    z-index: 2;
    width: 50px;
    height: 60px;
}

.lock-body-3d {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 100%);
    border-radius: var(--radius-xs);
    box-shadow: 0 4px 20px rgba(255, 176, 0, 0.4);
}

.lock-shackle-3d {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 20px;
    border: 4px solid var(--accent);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
}

.keyhole {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 12px;
    background: var(--bg);
    border-radius: 50% 50% 2px 2px;
}

.hex-particles {
    position: absolute;
    inset: 0;
}

.hex {
    position: absolute;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    color: var(--accent);
    opacity: 0;
    animation: hex-float 4s ease-in-out infinite;
}

.h1 { top: 20%; left: 15%; animation-delay: 0s; }
.h2 { top: 25%; right: 15%; animation-delay: 1s; }
.h3 { bottom: 25%; left: 20%; animation-delay: 2s; }
.h4 { bottom: 20%; right: 20%; animation-delay: 3s; }

@keyframes hex-float {
    0%, 100% { opacity: 0; transform: translateY(10px); }
    50% { opacity: 0.6; transform: translateY(-10px); }
}

/* PhishGuard - Email Scanner */
.vis-phish {
    position: relative;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
    padding: 20px;
}

.scan-line-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: scan-down 2s linear infinite;
}

@keyframes scan-down {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.email-display {
    position: relative;
    z-index: 2;
    background: rgba(30, 26, 20, 0.9);
    border: 1px solid rgba(255, 176, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    max-width: 260px;
    margin: 0 auto;
}

.email-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 176, 0, 0.05);
    border-bottom: 1px solid rgba(255, 176, 0, 0.1);
}

.email-dots {
    display: flex;
    gap: 4px;
}

.email-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-dim);
    opacity: 0.4;
}

.email-from {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    color: var(--accent);
    opacity: 0.7;
}

.email-body {
    padding: 16px;
}

.email-line {
    height: 6px;
    background: rgba(255, 176, 0, 0.15);
    border-radius: var(--radius-xs);
    margin-bottom: 8px;
}

.email-line.short {
    width: 60%;
}

.email-link {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    color: #ff5f56;
    text-decoration: line-through;
    margin-top: 8px;
    animation: link-flash 1.5s ease-in-out infinite;
}

@keyframes link-flash {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.block-shield {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 176, 0, 0.1);
    border: 1px solid rgba(255, 95, 86, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: block-pulse 2s ease-in-out infinite;
}

@keyframes block-pulse {
    0%, 100% { box-shadow: 0 0 0 rgba(255, 95, 86, 0); }
    50% { box-shadow: 0 0 20px rgba(255, 95, 86, 0.3); }
}

/* PortScan CLI - Modern Terminal */
.vis-scan {
    padding: 16px;
    background: #080808;
}

.terminal-modern {
    position: relative;
    z-index: 2;
    background: #0f0f0f;
    border: 1px solid rgba(255, 176, 0, 0.15);
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.term-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--surface-hover);
    border-bottom: 1px solid rgba(255, 176, 0, 0.1);
}

.term-dots {
    display: flex;
    gap: 6px;
}

.term-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.td-red { background: #ff5f56; }
.td-yellow { background: #ffbd2e; }
.td-green { background: #27c93f; }

.term-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    color: var(--text-dim);
    opacity: 0.6;
}

.term-body {
    padding: 12px;
}

.term-line {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    color: var(--text);
    margin-bottom: 12px;
}

.t-prompt {
    color: var(--accent);
    margin-right: 6px;
}

.port-line {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    opacity: 0;
    animation: port-appear 0.5s ease forwards;
}

.pl-1 { animation-delay: 0.5s; }
.pl-2 { animation-delay: 1s; }
.pl-3 { animation-delay: 1.5s; }
.pl-4 { animation-delay: 2s; }

@keyframes port-appear {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.port-num {
    color: var(--text);
    min-width: 35px;
}

.port-state {
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 8px;
    font-weight: 600;
}

.port-state.open {
    background: rgba(39, 201, 63, 0.2);
    color: #27c93f;
}

.port-state.filtered {
    background: rgba(255, 189, 46, 0.2);
    color: #ffbd2e;
}

.port-svc {
    color: var(--text-dim);
}

.scan-progress {
    margin-top: 12px;
    height: 3px;
    background: rgba(255, 176, 0, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.scan-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-bright));
    border-radius: var(--radius-xs);
    animation: scan-fill 3s ease-in-out infinite;
}

@keyframes scan-fill {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 0%; }
}

.term-cursor {
    width: 6px;
    height: 12px;
    background: var(--accent);
    margin-top: 10px;
    animation: cursor-blink 1s step-end infinite;
}

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

/* Reduced motion */
/* Split Screen */
.split-screen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.split-text {
    font-size: 17px;
    color: var(--text-dim);
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: justify;
}

.about-highlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
}

.highlight-item {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.highlight-num {
    display: block;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.highlight-label {
    font-size: 13px;
    color: var(--text-dim);
}

.experience-block {
    margin-bottom: 40px;
}

.exp-title {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 24px;
}

.exp-item {
    display: flex;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.exp-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.exp-dot {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.exp-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.exp-company {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 0;
}

.exp-sub {
    font-size: 12px;
    color: var(--text-dim);
    opacity: 0.6;
    margin-top: 2px;
}

.exp-date {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 12px;
    color: var(--accent);
    margin: 4px 0;
}

.exp-desc {
    font-size: 14px;
    color: var(--text-dim);
    margin-top: 8px;
    text-align: justify;
}

.exp-company-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.exp-logo {
    height: 32px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    opacity: 0.9;
    transition: all 0.2s;
    flex-shrink: 0;
    border-radius: var(--radius-xs);
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    mix-blend-mode: screen;
}



.exp-logo-bright {
    filter: none;
}

.exp-institution {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Skills Bento */
.skills-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

.skill-card {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.skill-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-dim);
}

.skill-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.skill-featured {
    grid-column: span 2;
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.skill-header svg {
    color: var(--accent);
    flex-shrink: 0;
}

.skill-card h3 {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tags span {
    font-size: 13px;
    padding: 8px 12px;
    background: var(--accent-dim);
    color: var(--text);
    border-radius: 100px;
    border: 1px solid var(--border);
}/* Cert Grid */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.cert-card {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.2s;
    text-decoration: none;
}

.cert-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-dim);
    transform: translateY(-2px);
}

.cert-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.cert-featured {
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--surface) 0%, rgba(255, 176, 0, 0.05) 100%);
}

.cert-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.cert-card h3 {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cert-card p {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.cert-date {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px;
    color: var(--accent);
}

/* Contact */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-desc {
    font-size: 17px;
    color: var(--text-dim);
    margin-bottom: 32px;
    line-height: 1.8;
    text-align: justify;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-dim);
    transition: color 0.2s;
}

.contact-link:hover {
    color: var(--accent);
}

.contact-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 4px;
}

.contact-link svg {
    flex-shrink: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    display: block;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    color: var(--text-dim);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
    opacity: 0.6;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 0;
}

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

/* Footer */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 64px 32px 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo .logo-text {
    font-size: 20px;
    color: var(--accent);
}

.footer-logo .logo-mark {
    color: var(--accent);
    opacity: 0.7;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h4 {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 12px;
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-dim);
}

/* FAQ Widget */
.faq-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
}

.faq-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg);
    border: none;
    cursor: pointer;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(255, 176, 0, 0.3);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(255, 176, 0, 0.4);
}

.faq-panel {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 320px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.faq-widget.active .faq-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.faq-panel h4 {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent);
}

.faq-item {
    margin-bottom: 16px;
}

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

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-question:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.6;
    padding-bottom: 8px;
}

/* Mobile Header Bar */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: rgba(12, 10, 8, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 176, 0, 0.08);
    z-index: 100;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
}

.mobile-header-logo {
    display: flex;
    align-items: center;
    color: var(--text);
    transition: opacity 0.2s;
}

.mobile-header-logo:hover {
    opacity: 0.8;
}

.mobile-header-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #27c93f;
    border-radius: 50%;
    animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.02em;
}

/* Mobile Bottom Nav */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(12, 10, 8, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 176, 0, 0.1);
    z-index: 100;
    justify-content: space-around;
    align-items: center;
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--text-dim);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    transition: color 0.2s, transform 0.15s;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item:active {
    transform: scale(0.92);
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--accent);
}

.bottom-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.bottom-nav-item span {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.bottom-nav-item svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    /* Tablet: stacked hero, 2-col bento */
    .hero {
        flex-direction: column;
        gap: 40px;
        padding: 100px 24px 60px;
    }

    .hero-terminal {
        max-width: 100%;
    }

    .hero-photo {
        width: 220px;
        height: 220px;
    }

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

    .bento-wide {
        grid-column: span 2;
        flex-direction: column;
    }

    .bento-wide .bento-visual {
        width: 100%;
        height: 180px;
    }

    .bento-wide .bento-content {
        width: 100%;
    }

    .bento-tall {
        grid-row: span 1;
    }

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

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

    .skill-featured {
        grid-column: span 2;
    }

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

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

@media (max-width: 768px) {
    /* === NAVIGATION === */
    .mobile-header { display: flex; }
    .bottom-nav { display: flex; }
    .nav { display: none; }
    body { padding-top: 48px; padding-bottom: 56px; }

    /* FAQ */
    .faq-widget { bottom: 72px; right: 16px; }
    .faq-panel { width: 280px; }

    /* === HERO === */
    .hero {
        flex-direction: column-reverse;
        gap: 20px;
        padding: 40px 16px 28px;
        min-height: auto;
        align-items: center;
    }
    .hero-terminal { max-width: 100%; }
    .terminal-body { padding: 20px; }
    .hero-name { font-size: clamp(1.5rem, 5vw, 1.9rem); }
    .hero-role { font-size: 13px; line-height: 1.5; }
    .hero-socials { gap: 12px; margin-bottom: 16px; }
    .social-link { width: 40px; height: 40px; }
    .hero-btns { gap: 12px; }
    .hero-photo { width: 130px; height: 130px; }
    .photo-ring { inset: -8px; }
    .ring-2 { inset: -14px; }
    .hero-visual { gap: 0; }

    /* === SECTIONS === */
    .section { padding: 48px 16px; }
    .section-alt { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
    .section-title { font-size: 1.1rem; margin-bottom: 24px; letter-spacing: 0.02em; }

    /* === BENTO: 2-column grid === */
    .bento-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .bento-wide {
        grid-column: span 2;
        flex-direction: column;
    }
    .bento-wide .bento-visual { width: 100%; height: 130px; }
    .bento-wide .bento-content { width: 100%; padding: 14px; }
    .bento-tall { grid-row: span 1; }
    .bento-visual { height: 100px; }
    .bento-content { padding: 12px; }
    .bento-content h3 { font-size: 13px; margin-bottom: 4px; }
    .bento-content p { font-size: 11px; margin-bottom: 6px; line-height: 1.4; }
    .bento-tags { font-size: 9px; }

    /* === BENTO VISUALS: scale animated elements === */
    .vis-cloud { padding: 12px; }
    .cloud-dashboard { max-width: 100%; }
    .dash-row { gap: 6px; margin-bottom: 8px; }
    .dash-widget { padding: 6px; }
    .dash-label { font-size: 7px; margin-bottom: 4px; }
    .dash-bar { height: 3px; margin-bottom: 2px; }
    .dash-value { font-size: 8px; }
    .dash-chart { height: 30px; margin-top: 4px; }
    .dash-nodes { gap: 6px; margin-top: 6px; }
    .node { width: 6px; height: 6px; }

    .radar-ring:nth-child(1) { width: 30px; height: 30px; }
    .radar-ring:nth-child(2) { width: 60px; height: 60px; }
    .radar-ring:nth-child(3) { width: 90px; height: 90px; }
    .radar-sweep { width: 40px; }
    .shield-badge { bottom: 8px; right: 8px; }
    .shield-badge svg { width: 18px; height: 18px; }

    .encryption-ring:nth-child(2) { width: 60px; height: 60px; }
    .encryption-ring:nth-child(3) { width: 80px; height: 80px; }
    .vault-glow { width: 60px; height: 60px; }
    .lock-3d { width: 36px; height: 44px; }
    .hex-particles { display: none; }

    .email-display { max-width: 100%; }
    .email-header { padding: 5px 8px; }
    .email-from { font-size: 8px; }
    .email-body { padding: 6px 8px; }
    .email-line { height: 4px; margin-bottom: 4px; }
    .email-link { font-size: 8px; padding: 3px 6px; }
    .block-shield { bottom: 6px; right: 6px; }
    .block-shield svg { width: 22px; height: 22px; }

    .vis-scan { padding: 10px; }
    .terminal-modern { max-width: 100%; }
    .term-header { padding: 5px 8px; }
    .term-dots span { width: 6px; height: 6px; }
    .term-title { font-size: 9px; }
    .term-body { padding: 8px; }
    .term-line { font-size: 9px; margin-bottom: 6px; }
    .port-line { font-size: 8px; margin-bottom: 3px; }
    .scan-progress { margin-top: 6px; height: 2px; }
    .term-cursor { width: 4px; height: 8px; margin-top: 4px; }

    /* === SKILLS: horizontal scroll === */
    .skills-bento {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        padding-right: 16px;
        scrollbar-width: none;
    }
    .skills-bento::-webkit-scrollbar { display: none; }
    .skill-card { flex: 0 0 72%; min-width: 200px; padding: 14px; scroll-snap-align: start; }
    .skill-featured { flex: 0 0 85%; }
    .skill-card h3 { font-size: 11px; }
    .skill-tags span { font-size: 11px; padding: 4px 8px; }

    /* === ABOUT: single column, timeline === */
    .split-screen { grid-template-columns: 1fr; gap: 40px; }
    .split-left { padding: 0 4px; }
    .split-text { font-size: 15px; padding: 0 4px; }
    .about-highlight { margin-top: 24px; }
    .experience-block {
        border-left: 2px solid var(--border);
        margin-left: 8px;
        padding-left: 24px;
    }
    .exp-item { padding-bottom: 16px; margin-bottom: 0; border-bottom: none; position: relative; }
    .exp-dot { position: absolute; left: -30px; }

    /* === CERTS: timeline with breathing room === */
    .cert-grid {
        display: flex;
        flex-direction: column;
        border-left: 2px solid var(--border);
        margin-left: 20px;
        gap: 0;
    }
    .cert-card {
        text-align: left;
        padding: 12px 16px;
        background: none;
        border: none;
        border-radius: 0;
        margin-left: -1px;
        position: relative;
    }
    .cert-card::before {
        content: '';
        width: 10px;
        height: 10px;
        background: var(--accent);
        border-radius: 50%;
        border: 2px solid var(--bg);
        position: absolute;
        left: -21px;
        top: 18px;
    }
    .cert-card.cert-featured::before {
        background: var(--accent-bright);
        box-shadow: 0 0 8px var(--accent-dim);
    }
    .cert-card:hover { transform: none; box-shadow: none; }
    .cert-card h3 { font-size: 13px; }
    .cert-card p { font-size: 11px; margin-bottom: 2px; }
    .cert-icon { display: none; }

    /* === CONTACT === */
    .contact-split { display: flex; flex-direction: column; gap: 24px; }
    .contact-info { text-align: center; }
    .contact-info .section-title { margin-bottom: 12px; }
    .contact-desc { font-size: 14px; margin-bottom: 16px; text-align: center; }
    .contact-links { flex-direction: row; justify-content: center; gap: 12px; flex-wrap: wrap; }
    .contact-link {
        padding: 10px 16px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 100px;
        font-size: 13px;
        gap: 8px;
        transition: all 0.2s;
    }
    .contact-link:hover, .contact-link:focus-visible { border-color: var(--accent); color: var(--accent); }
    .contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; gap: 16px; }
    .form-group label { font-size: 10px; margin-bottom: 6px; }
    .form-group input, .form-group textarea { padding: 12px 14px; font-size: 16px; background: rgba(255, 255, 255, 0.03); }
    .form-group textarea { min-height: 100px; }

    /* === FOOTER: 2-column grid === */
    .footer { padding: 32px 16px 72px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-brand { grid-column: span 2; }
    .footer-logo { margin-bottom: 12px; }
    .footer-logo .logo-text { font-size: 18px; }
    .footer-brand p { font-size: 13px; }
    .footer-col h4 { margin-bottom: 12px; }
    .footer-col a { font-size: 13px; margin-bottom: 8px; }
    .footer-bottom { text-align: center; padding-top: 24px; }

    .faq-panel { width: calc(100vw - 32px); right: -8px; bottom: 64px; }
}

@media (max-width: 480px) {
    /* === HERO === */
    .hero { padding: 32px 12px 20px; gap: 16px; }
    .terminal-body { padding: 16px; }
    .terminal-line { font-size: 12px; }
    .hero-name { font-size: 1.3rem; }
    .hero-photo { width: 110px; height: 110px; }
    .hero-btns { flex-direction: column; width: 100%; }
    .hero-btns .btn, .hero-btns .btn-outline { width: 100%; }

    /* === SECTIONS === */
    .section { padding: 36px 12px; }
    .section-title { font-size: 1rem; margin-bottom: 20px; }

    /* === BENTO: tighter 2-column === */
    .bento-grid { gap: 8px; }
    .bento-visual { height: 85px; }
    .bento-wide .bento-visual { height: 110px; }
    .bento-content { padding: 10px; }
    .bento-content h3 { font-size: 12px; }
    .bento-content p { font-size: 10px; }
    .bento-tags { font-size: 8px; }

    /* === BENTO VISUALS: even smaller === */
    .vis-cloud { padding: 8px; }
    .dash-row { gap: 4px; margin-bottom: 6px; }
    .dash-widget { padding: 4px; }
    .dash-label { font-size: 6px; margin-bottom: 3px; }
    .dash-value { font-size: 7px; }
    .dash-chart { height: 22px; }
    .dash-nodes { gap: 4px; margin-top: 4px; }
    .node { width: 5px; height: 5px; }

    .radar-ring:nth-child(1) { width: 24px; height: 24px; }
    .radar-ring:nth-child(2) { width: 48px; height: 48px; }
    .radar-ring:nth-child(3) { width: 72px; height: 72px; }
    .radar-sweep { width: 32px; }

    .encryption-ring:nth-child(2) { width: 48px; height: 48px; }
    .encryption-ring:nth-child(3) { width: 64px; height: 64px; }
    .vault-glow { width: 48px; height: 48px; }
    .lock-3d { width: 28px; height: 36px; }

    .email-header { padding: 4px 6px; }
    .email-from { font-size: 7px; }
    .email-body { padding: 4px 6px; }
    .email-line { height: 3px; margin-bottom: 3px; }
    .email-link { font-size: 7px; padding: 2px 4px; }

    .vis-scan { padding: 8px; }
    .term-header { padding: 4px 6px; }
    .term-dots span { width: 5px; height: 5px; }
    .term-title { font-size: 8px; }
    .term-body { padding: 6px; }
    .term-line { font-size: 8px; margin-bottom: 4px; }
    .port-line { font-size: 7px; margin-bottom: 2px; }
    .term-cursor { width: 3px; height: 6px; margin-top: 3px; }

    /* === SKILLS === */
    .skill-card { flex: 0 0 80%; }

    /* === ABOUT === */
    .split-text { font-size: 14px; }
    .about-highlight { grid-template-columns: 1fr; }

    /* === CERTS === */
    .cert-grid { margin-left: 16px; }
    .cert-card { padding: 10px 12px; }
    .cert-card h3 { font-size: 12px; }

    .highlight-item { padding: 14px; }
    .footer { padding-bottom: 72px; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .marquee-content {
        animation: none;
    }

    .bg-pattern::after {
        animation: none;
    }

    svg animate,
    svg animateMotion,
    svg animateTransform {
        dur: 0.01ms;
        repeatCount: 1;
    }
}

/* Focus */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
