/* ============================================
   PANIAGO - Cybersecurity Portfolio
   Color Palette: #D40000 (Red), #FFFFFF (White), #0A0A0F (Dark)
   ============================================ */

/* --- CSS Variables --- */
:root {
    --red: #D40000;
    --red-light: #FF1A1A;
    --red-dark: #A00000;
    --red-glow: rgba(212, 0, 0, 0.4);
    --red-subtle: rgba(212, 0, 0, 0.1);
    --bg-primary: #0A0A0F;
    --bg-secondary: #0F0F17;
    --bg-card: #12121C;
    --bg-card-hover: #1A1A28;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0B8;
    --text-muted: #8585A0;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(212, 0, 0, 0.3);
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--red) var(--bg-primary);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 4px; }

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

img { max-width: 100%; height: auto; }

ul { list-style: none; }

/* --- Focus Visible (Keyboard Navigation) --- */
:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

/* --- Skip to Content --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10001;
    padding: 8px 16px;
    background: var(--red);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 0 0 6px 6px;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

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

/* --- Preloader --- */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 60px;
    height: 60px;
    animation: pulse-glow 1.5s ease-in-out infinite;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: var(--border);
    margin: 24px auto 16px;
    border-radius: 2px;
    overflow: hidden;
}

.loader-progress {
    height: 100%;
    width: 0;
    background: var(--red);
    border-radius: 2px;
    animation: load-progress 1.8s ease-in-out forwards;
}

.loader-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

@keyframes load-progress {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 8px var(--red-glow)); }
    50% { filter: drop-shadow(0 0 20px var(--red-glow)); }
}

/* --- Particle Canvas --- */
#particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* --- Blink Cursor --- */
.blink {
    animation: blink-cursor 1s step-end infinite;
}

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

/* --- Navigation --- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
    backdrop-filter: blur(0px);
}

#navbar.scrolled {
    padding: 10px 0;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.nav-logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    letter-spacing: 0.5px;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width var(--transition);
}

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

.nav-link-cta {
    color: var(--text-primary);
    background: var(--red);
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
}

.nav-link-cta::after { display: none; }

.nav-link-cta:hover {
    background: var(--red-light);
    color: white;
}

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

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

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 45%, rgba(212, 0, 0, 0.10) 0%, transparent 70%),
        radial-gradient(ellipse 40% 35% at 55% 40%, rgba(212, 0, 0, 0.07) 0%, transparent 60%);
    animation: ambient-breathe 6s ease-in-out infinite;
}

@keyframes ambient-breathe {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-line {
    display: block;
    animation: fade-in-up 0.8s ease-out backwards;
}

.hero-line:nth-child(2) { animation-delay: 0.15s; }

.hero-accent {
    background: linear-gradient(135deg, var(--red), var(--red-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: clamp(0.85rem, 2vw, 1.05rem);
    color: var(--text-secondary);
    margin-bottom: 16px;
    min-height: 1.6em;
    animation: fade-in-up 0.8s ease-out 0.3s backwards;
}

.hero-tagline {
    margin-bottom: 40px;
    animation: fade-in-up 0.8s ease-out 0.45s backwards;
}

.hero-tagline code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--red-light);
    background: var(--red-subtle);
    padding: 6px 16px;
    border-radius: 4px;
    border: 1px solid rgba(212, 0, 0, 0.15);
    display: inline-block;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
    animation: fade-in-up 0.8s ease-out 0.6s backwards;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--red);
    color: white;
    box-shadow: 0 4px 24px var(--red-glow);
}

.btn-primary:hover {
    background: var(--red-light);
    box-shadow: 0 8px 32px var(--red-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--red);
    color: var(--red-light);
    background: var(--red-subtle);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- Hero Stats --- */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    animation: fade-in-up 0.8s ease-out 0.75s backwards;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-plus {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--red);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--border);
}

/* --- Hero Scroll Indicator --- */
.hero-scroll {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--red), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 1; height: 40px; }
    50% { opacity: 0.3; height: 20px; }
}

/* --- Animations --- */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Section Styles --- */
.section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

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

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* --- About Section --- */

/* Portrait + Intro layout */
.about-intro {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 56px;
}

.about-portrait {
    position: relative;
    display: flex;
    justify-content: center;
}

.portrait-wrapper {
    position: relative;
    width: 280px;
    height: 380px;
}

.portrait-img {
    width: 280px;
    height: 380px;
    object-fit: cover;
    object-position: center top;
    display: block;
    clip-path: polygon(12% 0%, 100% 0%, 100% 88%, 88% 100%, 0% 100%, 0% 12%);
    transition: filter 0.5s ease, transform 0.5s ease;
}

/* Outer angular border */
.portrait-wrapper::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: calc(100% + 6px);
    height: calc(100% + 6px);
    clip-path: polygon(12% 0%, 100% 0%, 100% 88%, 88% 100%, 0% 100%, 0% 12%);
    background: linear-gradient(135deg, var(--red) 0%, transparent 50%, var(--red) 100%);
    z-index: -1;
    opacity: 0.6;
    transition: opacity 0.5s ease;
}

.portrait-wrapper:hover::before {
    opacity: 1;
}

.portrait-wrapper:hover .portrait-img {
    transform: scale(1.02);
}

.about-intro-text {
    display: flex;
    flex-direction: column;
}

.about-headline {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.about-role {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 500;
}

.text-red { color: var(--red); }

.about-intro-text > p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.detail {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.detail i {
    color: var(--red);
    width: 16px;
    text-align: center;
}

/* Experience Cards Row */
.about-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    transition: all var(--transition);
}

.about-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

.about-card-icon {
    width: 44px;
    height: 44px;
    background: var(--red-subtle);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--red);
    margin-bottom: 16px;
}

.about-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.about-card > p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.about-card ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.about-card li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
}

.about-card li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--red);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

/* --- Certifications --- */
.certs-section {
    margin-top: 80px;
}

.subsection-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.subsection-title i { color: var(--red); }

.certs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all var(--transition);
}

.cert-item:hover {
    border-color: var(--border-hover);
}

.cert-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(212, 0, 0, 0.15);
    color: var(--red-light);
    white-space: nowrap;
    flex-shrink: 0;
}

.cert-badge.cert-complete {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-8px);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    position: relative;
    width: 56px;
    height: 56px;
    background: var(--red-subtle);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--red);
    margin-bottom: 24px;
}

.service-icon-glow {
    position: absolute;
    inset: -8px;
    background: var(--red-glow);
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover .service-icon-glow {
    opacity: 0.4;
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

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

.service-tags li {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

/* --- Timeline / Achievements --- */
.timeline {
    position: relative;
    padding-left: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--red), var(--border), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
    padding-left: 24px;
}

.timeline-marker {
    position: absolute;
    left: -49px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--red);
    transition: all var(--transition);
}

.timeline-item:hover .timeline-marker {
    background: var(--red);
    box-shadow: 0 0 16px var(--red-glow);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--red);
    font-weight: 600;
}

.timeline-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 4px 0 8px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.timeline-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
    background: var(--red-subtle);
    color: var(--red-light);
    margin-top: 8px;
    border: 1px solid rgba(212, 0, 0, 0.2);
}

.timeline-badge.trophy {
    background: rgba(255, 193, 7, 0.1);
    color: #FFC107;
    border-color: rgba(255, 193, 7, 0.2);
}

/* --- Community Section --- */
.community-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 80px;
}

.community-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.community-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.community-logo {
    height: 52px;
    margin-bottom: 16px;
    object-fit: contain;
    max-width: 200px;
}

.community-logo.synack-logo {
    border-radius: 8px;
}

.community-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.community-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Hall of Fame --- */
.hof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.hof-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all var(--transition);
}

.hof-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    background: var(--bg-card-hover);
}

.hof-logo-wrap {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hof-logo-wrap img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(1) brightness(1.2);
    opacity: 0.5;
    transition: filter var(--transition), opacity var(--transition), transform var(--transition);
}

.hof-item:hover .hof-logo-wrap img {
    filter: grayscale(0) brightness(1);
    opacity: 1;
    transform: scale(1.1);
}

.hof-item span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    margin-top: auto;
    padding-top: 12px;
}

/* --- CVE Section --- */
.cve-section {
    margin-top: 80px;
}

.cve-grid {
    display: grid;
    gap: 8px;
}

.cve-item {
    display: grid;
    grid-template-columns: 160px 100px 1fr;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all var(--transition);
}

.cve-item:hover {
    border-color: var(--border-hover);
}

.cve-id {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.cve-id:hover {
    color: var(--red-light);
}

.cve-severity {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    text-align: center;
}

.cve-severity.high {
    background: rgba(220, 53, 69, 0.15);
    color: #FF4D5E;
}

.cve-severity.medium {
    background: rgba(255, 193, 7, 0.12);
    color: #FFB800;
}

.cve-desc {
    color: var(--text-secondary);
}

/* --- Speaking Section --- */
.speaking-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.speaking-list h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
}

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

.speaking-item:last-child { border-bottom: none; }

.speaking-item-icon {
    width: 40px;
    height: 40px;
    background: var(--red-subtle);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    flex-shrink: 0;
}

.speaking-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.speaking-item p {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* --- Blog Section --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.blog-card-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.blog-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.blog-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 3px;
    background: var(--red-subtle);
    color: var(--red-light);
}

.blog-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-excerpt {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.blog-card-date {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.blog-card-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--red);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color var(--transition);
}

.blog-card-link:hover {
    color: var(--red-light);
}

.blog-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
}

.terminal-loader {
    display: inline-block;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.terminal-line {
    display: block;
    margin-bottom: 8px;
}

.blog-cta {
    text-align: center;
    margin-top: 48px;
}

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

.contact-terminal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

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

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

.terminal-dot.red { background: #FF5F57; }
.terminal-dot.yellow { background: #FFBD2E; }
.terminal-dot.green { background: #28CA42; }

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

.terminal-body {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 2;
}

.t-prompt { color: var(--red); }
.t-cmd { color: var(--text-primary); }
.t-output { color: var(--text-secondary); padding-left: 16px; }

/* --- Contact Form --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-subtle);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23A0A0B8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

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

/* --- Footer --- */
#footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

.footer-logo {
    max-width: 180px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.footer-motto {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-col a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 4px 0;
    transition: color var(--transition);
}

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

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-hack code {
    font-family: var(--font-mono);
    color: var(--red);
    opacity: 0.85;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-intro {
        grid-template-columns: 320px 1fr;
        gap: 40px;
    }

    .portrait-wrapper {
        width: 240px;
        height: 340px;
    }

    .portrait-img {
        width: 240px;
        height: 340px;
    }

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

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

    .community-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 0;
        transition: right var(--transition);
        border-left: 1px solid var(--border);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--transition), visibility var(--transition);
        z-index: -1;
    }

    .nav-links.open::before {
        opacity: 1;
        visibility: visible;
    }

    body.nav-open {
        overflow: hidden;
    }

    .nav-link {
        padding: 14px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--border);
        width: 100%;
    }

    .nav-link::after { display: none; }

    .nav-link-cta {
        margin-top: 16px;
        text-align: center;
        border-bottom: none;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .section {
        padding: 80px 0;
    }

    .about-intro {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .about-portrait {
        order: -1;
    }

    .portrait-wrapper {
        width: 220px;
        height: 300px;
        margin: 0 auto;
    }

    .portrait-img {
        width: 220px;
        height: 300px;
    }

    .about-headline {
        font-size: 1.6rem;
    }

    .about-details {
        align-items: center;
    }

    .about-cards-row {
        grid-template-columns: 1fr;
    }

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

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

    .hero-scroll {
        display: none;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

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

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

    .cve-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .hof-grid {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 12px;
    }

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .stat-divider {
        width: 48px;
        height: 1px;
    }

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

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

    .reveal {
        opacity: 1;
        transform: none;
    }

    #particles {
        display: none;
    }

    .hero-grid-bg {
        animation: none;
        opacity: 1;
    }
}
