
:root {
    --color-bg-deep: #0b0e14;
    --color-bg-dark: #0f1219;
    --color-bg-mid: #151a22;
    --color-surface: #1a2030;
    --color-surface-up: #212a3a;
    --color-border: #2c3648;
    --color-text-muted: #6b7a8e;
    --color-text-primary: #b8c4d0;
    --color-heading: #dce4ec;
    --color-accent: #c43030;
    --color-accent-dark: #8b2020;
    --color-accent-light: #e04545;
    --color-accent-glow: #ff5555;
    --color-crimson: #c41e3a;
    --color-crimson-dark: #8b1428;
    --color-steel: #3a4858;
    --color-steel-light: #556878;

    /* Blue-black glows */
    --glow-subtle:   0 0 20px rgba(196,48,48,0.05);
    --glow-soft:     0 0 30px rgba(196,48,48,0.08),
                     0 4px 20px rgba(0,0,0,0.30);
    --glow-hover:    0 0 40px rgba(196,48,48,0.14),
                     0 0 80px rgba(196,48,48,0.05),
                     0 6px 24px rgba(0,0,0,0.22);
    --glow-active:   0 0 30px rgba(196,48,48,0.20),
                     0 0 60px rgba(196,48,48,0.08);
    --glow-crimson:  0 0 25px rgba(196,30,58,0.15),
                     0 0 50px rgba(196,30,58,0.05);

    /* Gradients */
    --gradient-page:    radial-gradient(ellipse at 50% 0%, rgba(21,26,34,0.7) 0%, var(--color-bg-deep) 70%);
    --gradient-surface: linear-gradient(180deg, var(--color-surface-up) 0%, var(--color-surface) 100%);
    --gradient-card:    linear-gradient(180deg, rgba(33,42,58,0.5) 0%, rgba(26,32,48,0.3) 100%);
    --gradient-accent:  linear-gradient(135deg, var(--color-accent-dark) 0%, var(--color-accent) 50%, var(--color-accent-light) 100%);

    /* Typography */
    --font-heading: 'Space Grotesk', system-ui, sans-serif;
    --font-body:    'DM Sans', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', 'Fira Code', monospace;
    --text-base:    1rem;
    --text-scale:   1.25;

    /* Spacing */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  2rem;
    --space-xl:  4rem;
    --space-2xl: 6rem;

    /* Transitions */
    --transition-fast: 200ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 600ms ease;

    /* Borders */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}


/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text-primary);
    background: var(--color-bg-deep);
    background-image: var(--gradient-page);
    background-attachment: fixed;
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}


/* --------------------------------------------------------------------------
   Particle Canvas Background
   -------------------------------------------------------------------------- */

#smoke-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    #smoke-canvas { display: none; }
}

.nav, main, .footer {
    position: relative;
    z-index: 1;
}


/* --------------------------------------------------------------------------
   Ambient Background Layers
   -------------------------------------------------------------------------- */

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 20% 70%, rgba(196,48,48,0.02) 0%, transparent 40%),
        radial-gradient(circle at 80% 30%, rgba(196,48,48,0.015) 0%, transparent 40%);
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse at center, transparent 45%, rgba(8,10,16,0.5) 100%);
    pointer-events: none;
}


/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-md);
}

h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.55rem); }
h4 { font-size: calc(var(--text-base) * var(--text-scale)); }

p {
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
}

a {
    color: var(--color-heading);
    text-decoration: none;
    transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

a:hover {
    color: var(--color-accent-light);
    text-shadow: 0 0 12px rgba(196,48,48,0.2);
}

strong {
    color: var(--color-heading);
    font-weight: 600;
}

small, .text-muted {
    color: var(--color-text-muted);
}

code, pre {
    font-family: var(--font-mono);
}


/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-xl) 0;
}


/* --------------------------------------------------------------------------
   Sword Divider
   -------------------------------------------------------------------------- */

.sword-divider {
    text-align: center;
    padding: var(--space-lg) 0;
    line-height: 0;
}

.sword-divider-svg {
    width: 280px;
    max-width: 70%;
    height: auto;
    color: var(--color-steel);
    opacity: 0.5;
    filter: drop-shadow(0 0 6px rgba(196,30,58,0.15));
    transition: opacity var(--transition-base), filter var(--transition-base);
    animation: sword-glow 5s ease-in-out infinite alternate;
}

.sword-divider:hover .sword-divider-svg {
    opacity: 0.8;
    filter: drop-shadow(0 0 10px rgba(196,30,58,0.3))
            drop-shadow(0 0 20px rgba(196,30,58,0.1));
}

@keyframes sword-glow {
    0%   { opacity: 0.35; filter: drop-shadow(0 0 4px rgba(196,30,58,0.1)); }
    100% { opacity: 0.55; filter: drop-shadow(0 0 8px rgba(196,30,58,0.2)); }
}

/* Footer sword */
.footer-sword {
    text-align: center;
    margin-bottom: var(--space-md);
    line-height: 0;
}

.footer-sword-svg {
    width: 120px;
    height: auto;
    color: var(--color-steel);
    opacity: 0.35;
}


/* --------------------------------------------------------------------------
   Section Headings
   -------------------------------------------------------------------------- */

.section h2 {
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-lg);
}

.section h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    margin-top: var(--space-sm);
    background: var(--gradient-accent);
    box-shadow: 0 0 8px rgba(196,48,48,0.25);
    transition: width var(--transition-base);
}

.section:hover h2::after {
    width: 65px;
}


/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11,14,20,0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(196,48,48,0.12);
    transition: background var(--transition-base);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    max-width: 1100px;
    margin: 0 auto;
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-heading);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    transition: text-shadow var(--transition-base);
}

.nav-brand:hover {
    text-shadow: 0 0 16px rgba(196,48,48,0.25);
    color: var(--color-heading);
}

.nav-brand-logo {
    height: 34px;
    width: auto;
    filter: drop-shadow(0 0 6px rgba(196,48,48,0.12));
    transition: filter var(--transition-base);
}

.nav-brand:hover .nav-brand-logo {
    filter: drop-shadow(0 0 10px rgba(196,48,48,0.25));
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: var(--space-xs) 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    box-shadow: 0 0 8px rgba(196,48,48,0.3);
    transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-heading);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}


/* --------------------------------------------------------------------------
   Contact Dropdown
   -------------------------------------------------------------------------- */

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    padding: var(--space-xs) 0;
    display: flex;
    align-items: center;
    gap: 0.35em;
    transition: color var(--transition-fast);
}

.nav-dropdown-toggle:hover {
    color: var(--color-heading);
}

.dropdown-arrow {
    font-size: 0.65em;
    transition: transform var(--transition-fast);
}

.nav-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    min-width: 200px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: 2px solid var(--color-accent);
    border-radius: var(--radius-md);
    padding: var(--space-sm) 0;
    list-style: none;
    box-shadow: var(--glow-hover), 0 16px 48px rgba(0,0,0,0.4);
    z-index: 1001;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
    animation: dropdown-fade 0.25s ease;
}

@keyframes dropdown-fade {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nav-dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.6rem 1.2rem;
    color: var(--color-text-primary);
    font-size: 0.88rem;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-dropdown-menu li a::after { display: none; }

.nav-dropdown-menu li a:hover {
    background: rgba(196,48,48,0.08);
    color: var(--color-heading);
    text-shadow: none;
}

.dropdown-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.nav-dropdown-menu li a:hover .dropdown-icon { opacity: 1; }

@media (max-width: 768px) {
    .nav-dropdown-menu {
        position: static;
        background: rgba(26,32,48,0.4);
        border: none;
        border-top: 1px solid rgba(196,48,48,0.1);
        border-radius: var(--radius-sm);
        box-shadow: none;
        margin-top: var(--space-xs);
        padding: var(--space-xs) 0;
    }
    .nav-dropdown-menu li a { padding: 0.5rem 1rem; }
}


/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */

.hero {
    padding: var(--space-2xl) 0 var(--space-xl) 0;
}

.hero-photo {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 3px solid var(--color-accent);
    box-shadow: 0 0 18px rgba(196,48,48,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto var(--space-lg) auto;
}

.hero-photo .pfp-placeholder { color: var(--color-steel); }

.hero-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 50%;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.hero-role {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.fortress-frame {
    position: relative;
    display: inline-block;
    padding: var(--space-md) var(--space-xl);
    margin-bottom: var(--space-lg);
}

.fortress-frame::before,
.fortress-frame::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--color-accent) 30%, var(--color-accent) 70%, transparent 100%);
    opacity: 0.3;
}

.fortress-frame::before { top: 0; }
.fortress-frame::after { bottom: 0; }

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: var(--space-lg);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

.hero-logo {
    width: 160px;
    height: auto;
    margin: 0 auto var(--space-lg) auto;
    display: block;
    filter: drop-shadow(0 0 16px rgba(196,48,48,0.12))
            drop-shadow(0 0 40px rgba(196,48,48,0.05));
    transition: filter var(--transition-slow), transform var(--transition-slow);
    animation: logo-float 7s ease-in-out infinite;
}

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

.hero-logo:hover {
    filter: drop-shadow(0 0 20px rgba(196,48,48,0.25))
            drop-shadow(0 0 50px rgba(196,48,48,0.10));
    transform: scale(1.04);
}

.hero-title {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0;
    color: var(--color-heading);
    letter-spacing: -0.01em;
}


.id-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--color-accent);
    background: rgba(196,48,48,0.06);
    border: 1px solid rgba(196,48,48,0.12);
    padding: 0.2em 0.6em;
    border-radius: var(--radius-sm);
    letter-spacing: 0.02em;
}

/* Section header with inline action */
.section-header-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.section-header-row h2 {
    margin-bottom: var(--space-sm);
}

.btn-sm {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card {
    background: var(--gradient-card);
    border: 1px solid rgba(196,48,48,0.08);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
    box-shadow: var(--glow-subtle);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card:hover {
    box-shadow: var(--glow-hover);
    transform: translateY(-3px);
    border-color: rgba(196,48,48,0.2);
}

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

.card-title {
    font-size: calc(var(--text-base) * var(--text-scale));
    margin-bottom: var(--space-sm);
}

.card-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.card-summary {
    color: var(--color-text-primary);
    line-height: 1.65;
}


/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.6rem 1.6rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: var(--color-surface-up);
    color: var(--color-heading);
    box-shadow: var(--glow-soft);
    border-color: rgba(196,48,48,0.25);
}

.btn-primary {
    background: var(--color-accent-dark);
    color: var(--color-heading);
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background: var(--color-accent);
    box-shadow: var(--glow-hover);
    border-color: var(--color-accent-light);
}

.btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}


/* --------------------------------------------------------------------------
   Code Blocks
   -------------------------------------------------------------------------- */

pre {
    background: var(--color-bg-deep);
    border: 1px solid rgba(196,48,48,0.08);
    border-left: 3px solid var(--color-accent-dark);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    overflow-x: auto;
    margin-bottom: var(--space-lg);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.2);
}

pre code {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-text-primary);
}

:not(pre) > code {
    background: rgba(196,48,48,0.1);
    padding: 0.15em 0.4em;
    border-radius: var(--radius-sm);
    font-size: 0.875em;
    color: var(--color-accent-light);
}


/* --------------------------------------------------------------------------
   About Preview (homepage intro with photo)
   -------------------------------------------------------------------------- */

.about-preview {
    max-width: 700px;
}

.about-preview p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-primary);
}


/* --------------------------------------------------------------------------
   Threat Showcase — Huntress-style detection cards
   -------------------------------------------------------------------------- */

.threat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 700px) {
    .threat-grid { grid-template-columns: repeat(2, 1fr); }
}

.threat-card {
    background: var(--gradient-card);
    border: 1px solid rgba(196,48,48,0.08);
    border-left: 3px solid var(--color-crimson);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.threat-card:hover {
    border-color: rgba(196,48,48,0.15);
    box-shadow: var(--glow-soft);
    transform: translateY(-2px);
}

.threat-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.threat-card h4 {
    font-size: 1rem;
    margin-bottom: 0;
    font-family: var(--font-heading);
}

.threat-severity {
    flex-shrink: 0;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2em 0.6em;
    border-radius: var(--radius-sm);
    line-height: 1;
}

.threat-severity.high {
    background: rgba(196,30,58,0.15);
    color: #e8475a;
    border: 1px solid rgba(196,30,58,0.25);
}

.threat-severity.medium {
    background: rgba(212,160,42,0.12);
    color: #d4a02a;
    border: 1px solid rgba(212,160,42,0.2);
}

.threat-severity.low {
    background: rgba(196,48,48,0.1);
    color: var(--color-accent-light);
    border: 1px solid rgba(196,48,48,0.15);
}

.threat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: var(--space-sm);
}

.threat-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--color-accent);
    background: rgba(196,48,48,0.06);
    border: 1px solid rgba(196,48,48,0.1);
    padding: 0.15em 0.5em;
    border-radius: var(--radius-sm);
}

/* Screenshot slot inside threat cards */
.threat-screenshot {
    position: relative;
    margin-bottom: var(--space-md);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-bg-deep);
    border: 1px solid var(--color-border);
    min-height: 120px;
}

.threat-screenshot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

/* Placeholder shown when image fails to load */
.threat-screenshot-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: var(--color-steel);
    font-size: 0.72rem;
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
}

/* Hide placeholder when image loads */
.threat-screenshot img:not([src=""]) ~ .threat-screenshot-placeholder {
    z-index: -1;
}

.threat-card p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.threat-card .threat-date {
    font-size: 0.72rem;
    color: var(--color-steel-light);
    font-family: var(--font-mono);
    margin-bottom: 0;
}


/* --------------------------------------------------------------------------
   Stats Row
   -------------------------------------------------------------------------- */

.stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    max-width: 700px;
}

@media (min-width: 600px) {
    .stats-row { grid-template-columns: repeat(4, 1fr); }
}

.stat-item {
    text-align: center;
    padding: var(--space-md);
    background: var(--gradient-card);
    border: 1px solid rgba(196,48,48,0.06);
    border-radius: var(--radius-md);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-heading);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}


/* --------------------------------------------------------------------------
   About Page
   -------------------------------------------------------------------------- */

.about-page {
    padding: var(--space-xl) 0 var(--space-lg) 0;
    max-width: 700px;
    margin: 0 auto;
}

.about-header {
    margin-bottom: var(--space-xl);
}

.about-header h1 {
    margin-bottom: 0.2rem;
}

.about-bio {
    position: relative;
    margin-bottom: var(--space-xl);
}

.about-bio h2 {
    margin-bottom: var(--space-md);
}

.about-bio p {
    font-size: 1rem;
    line-height: 1.8;
}

/* Shield logo as a faint watermark behind the bio */
.about-watermark {
    position: absolute;
    top: 0;
    right: -20px;
    width: 200px;
    height: auto;
    opacity: 0.04;
    pointer-events: none;
    animation: logo-float 7s ease-in-out infinite;
}

.about-timeline {
    margin-bottom: var(--space-xl);
}

.about-timeline h2 {
    margin-bottom: var(--space-lg);
}

/* Tighter timeline items on about page */
.about-page .timeline-item {
    padding-bottom: var(--space-lg);
}

.about-page .timeline-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.about-connect {
    padding-top: var(--space-md);
}

.about-connect h2 {
    margin-bottom: var(--space-md);
}

/* Skills / Focus Areas grid */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 600px) {
    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.skill-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--gradient-card);
    border: 1px solid rgba(196,48,48,0.08);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.skill-item:hover {
    border-color: rgba(196,48,48,0.2);
    box-shadow: var(--glow-subtle);
}

.skill-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196,48,48,0.08);
    border: 1px solid rgba(196,48,48,0.12);
    border-radius: var(--radius-sm);
    color: var(--color-accent);
    font-size: 1.1rem;
}

.skill-item h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.skill-item p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
    line-height: 1.55;
}


/* --------------------------------------------------------------------------
   Timeline (Career / Journey)
   -------------------------------------------------------------------------- */

.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 28px;
}

/* Vertical line */
.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-accent), var(--color-accent-dark), transparent);
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-xl);
}

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

/* Dot on the line */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 10px rgba(196,48,48,0.3);
    border: 2px solid var(--color-bg-dark);
}

/* Active/current item gets a glow ring */
.timeline-item.current::before {
    width: 12px;
    height: 12px;
    left: -26px;
    top: 5px;
    box-shadow: 0 0 0 4px rgba(196,48,48,0.15), 0 0 12px rgba(196,48,48,0.3);
    animation: dot-pulse 2.5s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(196,48,48,0.15), 0 0 12px rgba(196,48,48,0.3); }
    50%      { box-shadow: 0 0 0 7px rgba(196,48,48,0.08), 0 0 18px rgba(196,48,48,0.2); }
}

.timeline-date {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 0.3rem;
}

.timeline-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.timeline-item .timeline-org {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.timeline-item p {
    font-size: 0.92rem;
    color: var(--color-text-primary);
    line-height: 1.7;
}


/* --------------------------------------------------------------------------
   Card Grid
   -------------------------------------------------------------------------- */

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .card-grid { grid-template-columns: repeat(3, 1fr); }
}


/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
    border-top: 1px solid rgba(196,48,48,0.06);
    padding: var(--space-lg) 0;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.footer a { color: var(--color-text-muted); }
.footer a:hover { color: var(--color-accent-light); }


/* --------------------------------------------------------------------------
   Mobile Nav
   -------------------------------------------------------------------------- */

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-muted);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links { display: none; }

    .nav-links.nav-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(11,14,20,0.97);
        backdrop-filter: blur(20px);
        padding: var(--space-md) var(--space-lg);
        gap: var(--space-md);
        border-bottom: 1px solid rgba(196,48,48,0.12);
    }

    .nav-inner { padding: var(--space-sm) var(--space-md); }
}


/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--color-surface-up);
    color: var(--color-heading);
    border: 1px solid var(--color-border);
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-family: var(--font-body);
    box-shadow: var(--glow-hover);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}


/* --------------------------------------------------------------------------
   Placeholders
   -------------------------------------------------------------------------- */

.coming-soon-placeholder {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    color: var(--color-text-muted);
    font-size: 1.05rem;
    font-style: italic;
    letter-spacing: 0.04em;
}


/* --------------------------------------------------------------------------
   Scrollbar & Selection
   -------------------------------------------------------------------------- */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg-deep); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-accent-dark); }

::selection {
    background: rgba(196,48,48,0.3);
    color: var(--color-heading);
}


/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.text-center  { text-align: center; }
.text-glow    { text-shadow: 0 0 20px rgba(196,48,48,0.15), 0 0 50px rgba(196,48,48,0.06); }
.text-accent  { color: var(--color-accent); }
.text-crimson { color: var(--color-crimson); }
.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }


/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 640px) {
    .container { padding: 0 var(--space-lg); }
}

@media (min-width: 1024px) {
    .container { padding: 0 var(--space-xl); }
}

@media (min-width: 1280px) {
    .container { max-width: 1100px; padding: 0 var(--space-lg); }
}
