/* ============================================
   Brandon Lippincott - Personal Site
   ============================================ */

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

:root {
    --primary: #00ff41;
    --secondary: #0a8f5f;
    --accent: #00d4ff;
    --dark: #0d1117;
    --darker: #010409;
    --text: #c9d1d9;
    --text-dim: #8b949e;
    --bolt-color: rgba(0, 255, 65, 0.06);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--darker);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================
   Matrix Rain Background
   ============================================ */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
}

/* ============================================
   Navigation
   ============================================ */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(1, 4, 9, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    z-index: 1000;
    transform: translateY(-100%);
    animation: slideDown 0.5s ease forwards 0.5s;
}

@keyframes slideDown {
    to { transform: translateY(0); }
}

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

.nav-logo {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-logo .logo-b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 2px solid var(--primary);
    border-radius: 4px;
    font-size: 1.2rem;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
    position: relative;
}

.nav-logo .logo-b::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -6px;
    width: 8px;
    height: 12px;
    background: var(--primary);
    clip-path: polygon(50% 0%, 0% 40%, 50% 40%, 30% 100%, 100% 55%, 50% 55%);
    opacity: 0.7;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

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

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ============================================
   Glitch Effect
   ============================================ */
@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 rgba(0, 254, 0, 0.75),
                    -0.025em -0.05em 0 rgba(163, 0, 0, 0.75),
                    0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    14% {
        text-shadow: 0.05em 0 0 rgba(0, 254, 0, 0.75),
                    -0.025em -0.05em 0 rgba(163, 0, 0, 0.75),
                    0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    15% {
        text-shadow: -0.05em -0.025em 0 rgba(0, 254, 0, 0.75),
                    0.025em 0.025em 0 rgba(163, 0, 0, 0.75),
                    -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    49% {
        text-shadow: -0.05em -0.025em 0 rgba(0, 254, 0, 0.75),
                    0.025em 0.025em 0 rgba(163, 0, 0, 0.75),
                    -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    50% {
        text-shadow: 0.025em 0.05em 0 rgba(0, 254, 0, 0.75),
                    0.05em 0 0 rgba(163, 0, 0, 0.75),
                    0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    99% {
        text-shadow: 0.025em 0.05em 0 rgba(0, 254, 0, 0.75),
                    0.05em 0 0 rgba(163, 0, 0, 0.75),
                    0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    100% {
        text-shadow: -0.025em 0 0 rgba(0, 254, 0, 0.75),
                    -0.025em -0.025em 0 rgba(163, 0, 0, 0.75),
                    -0.025em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
}

.glitch-title {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glitch 1s infinite;
    position: relative;
}

.glitch-title::before,
.glitch-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glitch-title::before {
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(-0.025em, -0.0125em);
    opacity: 0.8;
}

.glitch-title::after {
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
    clip-path: polygon(0 80%, 100% 20%, 100% 100%, 0 100%);
    transform: translate(0.0125em, 0.025em);
    opacity: 0.8;
}

.glitch-title-sm {
    font-size: 3rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    z-index: 2;
}

.hero-sm {
    min-height: 50vh;
    padding-top: 6rem;
}

.hero-content {
    text-align: center;
    max-width: 900px;
}

/* Terminal */
.terminal {
    background: rgba(13, 17, 23, 0.95);
    border: 1px solid var(--secondary);
    border-radius: 8px;
    padding: 2rem;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.2);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

.terminal-header {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--secondary);
}

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

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

.terminal-content {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    max-height: 200px;
    overflow-y: auto;
}

.terminal-interactive .terminal-content {
    max-height: 350px;
}

.prompt {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Interactive terminal */
.terminal-hint {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--text-dim);
    text-align: center;
    margin-top: 1rem;
    opacity: 0;
    transition: opacity 1s ease;
}

.terminal-input-area {
    border-top: 1px solid rgba(0, 255, 65, 0.2);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.prompt-input {
    display: flex;
    align-items: center;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: var(--primary);
}

.prompt-label {
    white-space: nowrap;
    flex-shrink: 0;
}

#terminal-input {
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    flex: 1;
    caret-color: var(--primary);
}

.terminal-response {
    margin-bottom: 0.75rem;
    color: var(--text-dim);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

.terminal-response a.cmd-link {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cmd-heading {
    color: var(--primary);
    font-weight: 700;
}

.cmd-dim {
    color: var(--text-dim);
    opacity: 0.6;
}

.cmd-green {
    color: var(--primary);
}

.cmd-warn {
    color: #ffbd2e;
    font-weight: 700;
}

.cmd-secret {
    color: #ff5f56;
}

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

.typing {
    display: inline-block;
    border-right: 2px solid var(--primary);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: var(--primary); }
    51%, 100% { border-color: transparent; }
}

/* Status bar */
.status-bar {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    margin-bottom: 2rem;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--primary);
    border-radius: 20px;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.8s;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: pulse 2s ease infinite;
}

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

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1s;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.2s;
}

/* ============================================
   Buttons
   ============================================ */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.5s;
}

.btn {
    padding: 1rem 2rem;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: var(--primary);
    border-radius: 50%;
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 300%;
    height: 300%;
}

.btn:hover {
    color: var(--darker);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.3);
}

.btn-accent {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-accent::before {
    background: var(--accent);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Sections
   ============================================ */
main {
    position: relative;
    z-index: 2;
}

section {
    position: relative;
    z-index: 2;
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* Lightning bolt section divider */
.section-divider {
    text-align: center;
    padding: 2rem 0;
    position: relative;
    z-index: 2;
}

.section-divider svg {
    width: 24px;
    height: 24px;
    fill: var(--primary);
    opacity: 0.3;
}

/* ============================================
   Cards (shared)
   ============================================ */
.card {
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

/* Subtle B watermark on cards */
.card::after {
    content: 'B';
    position: absolute;
    bottom: -10px;
    right: -5px;
    font-size: 5rem;
    font-weight: 900;
    font-family: 'Courier New', monospace;
    color: var(--bolt-color);
    pointer-events: none;
    line-height: 1;
}

/* Shine sweep on hover */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.08), transparent);
    transition: left 0.6s ease;
    z-index: 0;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0, 255, 65, 0.3);
}

.card > * {
    position: relative;
    z-index: 1;
}

/* Card grid layouts */
.card-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Card icon with lightning bolt accent */
.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--primary));
    position: relative;
    display: inline-block;
}

.card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.card p {
    color: var(--text-dim);
    line-height: 1.8;
}

/* List items with lightning bolt markers */
.bolt-list {
    list-style: none;
    color: var(--text-dim);
}

.bolt-list li {
    padding: 0.4rem 0;
    padding-left: 1.8rem;
    position: relative;
}

.bolt-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 12px;
    height: 16px;
    background: var(--primary);
    clip-path: polygon(50% 0%, 0% 40%, 50% 40%, 30% 100%, 100% 55%, 50% 55%);
    opacity: 0.6;
}

/* ============================================
   Contact Cards
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.contact-item {
    padding: 2rem;
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text);
    display: block;
    position: relative;
    overflow: hidden;
}

/* Radial glow on hover */
.contact-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 255, 65, 0.15), transparent);
    border-radius: 50%;
    transition: width 0.6s ease, height 0.6s ease;
}

.contact-item:hover::before {
    width: 300%;
    height: 300%;
}

.contact-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.2);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--primary));
}

.contact-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* ============================================
   About Page
   ============================================ */
.about-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    z-index: 2;
}

.about-section h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.about-section h2 .bolt-icon {
    width: 18px;
    height: 22px;
    fill: var(--primary);
    opacity: 0.6;
    flex-shrink: 0;
}

.about-section p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-section strong {
    color: var(--text);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin-top: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--secondary), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.35rem;
    top: 0.3rem;
    width: 14px;
    height: 18px;
    background: var(--primary);
    clip-path: polygon(50% 0%, 0% 40%, 50% 40%, 30% 100%, 100% 55%, 50% 55%);
}

.timeline-year {
    color: var(--primary);
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.timeline-text {
    color: var(--text-dim);
    font-size: 1rem;
}

/* Certifications */
.cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.cert-badge {
    background: rgba(0, 255, 65, 0.1);
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(0, 255, 65, 0.3);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* ============================================
   About Photo Gallery
   ============================================ */
.about-headshot {
    text-align: center;
    margin-bottom: 2rem;
}

.about-headshot img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.2);
}

.about-photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.about-photo-gallery figure {
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    transition: all 0.3s ease;
}

.about-photo-gallery figure:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(0, 255, 65, 0.2);
    transform: translateY(-4px);
}

.about-photo-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.about-photo-gallery figure:hover img {
    transform: scale(1.05);
}

.about-photo-gallery figcaption {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
    color: var(--text-dim);
    background: rgba(13, 17, 23, 0.9);
    text-align: center;
}

@media (max-width: 768px) {
    .about-photo-gallery {
        grid-template-columns: 1fr;
    }

    .about-photo-gallery img {
        height: 250px;
    }
}

/* ============================================
   Blog Page
   ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.blog-card {
    background: rgba(13, 17, 23, 0.9);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    text-decoration: none;
    color: var(--text);
    display: block;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.08), transparent);
    transition: left 0.6s ease;
}

.blog-card:hover::before {
    left: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 255, 65, 0.3);
    border-color: var(--primary);
}

.blog-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
}

.blog-card-date {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--primary);
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.blog-card-body {
    padding: 1.5rem;
}

.blog-card-excerpt {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.blog-tag {
    background: rgba(0, 255, 65, 0.08);
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 255, 65, 0.2);
}

/* Blog post single */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.blog-post-meta {
    font-family: 'Courier New', monospace;
    color: var(--primary);
    opacity: 0.7;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.blog-post-content {
    color: var(--text);
    line-height: 1.9;
    font-size: 1.1rem;
}

.blog-post-content h2 {
    color: var(--primary);
    margin: 2rem 0 1rem;
    font-size: 1.6rem;
}

.blog-post-content h3 {
    color: var(--accent);
    margin: 1.5rem 0 0.75rem;
    font-size: 1.3rem;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
    color: var(--text-dim);
}

.blog-post-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-post-content blockquote {
    border-left: 3px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(0, 255, 65, 0.05);
    border-radius: 0 4px 4px 0;
    color: var(--text-dim);
    font-style: italic;
}

.blog-post-content code {
    font-family: 'Courier New', monospace;
    background: rgba(0, 255, 65, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    color: var(--primary);
    font-size: 0.95rem;
}

.blog-post-content pre {
    background: rgba(13, 17, 23, 0.95);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.blog-post-content pre code {
    background: none;
    padding: 0;
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text-dim);
}

.blog-post-content li {
    margin-bottom: 0.5rem;
}

/* ============================================
   Hack / CTF Page
   ============================================ */
.hack-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.hack-level {
    background: rgba(13, 17, 23, 0.9);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.5s ease;
}

.hack-level.locked {
    opacity: 0.4;
    pointer-events: none;
    filter: blur(2px);
}

.hack-level.completed {
    border-color: var(--primary);
    opacity: 0.7;
}

.hack-level.completed .hack-level-status {
    color: var(--primary);
}

.hack-level.active {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.hack-level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.hack-level-title {
    font-family: 'Courier New', monospace;
    color: var(--primary);
    font-size: 1.2rem;
}

.hack-level-status {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.hack-level-description {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.hack-level-hint {
    font-family: 'Courier New', monospace;
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.hack-input-group {
    display: flex;
    gap: 0.5rem;
}

.hack-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.hack-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}

.hack-input::placeholder {
    color: var(--text-dim);
    opacity: 0.5;
}

.hack-submit {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.hack-submit:hover {
    background: var(--primary);
    color: var(--darker);
}

.hack-feedback {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    margin-top: 0.75rem;
    min-height: 1.2rem;
}

.hack-feedback.error {
    color: #ff5f56;
}

.hack-feedback.success {
    color: var(--primary);
}

/* Progress bar */
.hack-progress {
    margin-bottom: 2rem;
    text-align: center;
}

.hack-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 255, 65, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.hack-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 0%;
}

.hack-progress-text {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Completion overlay */
.hack-completion {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: var(--darker);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.hack-completion.show {
    display: flex;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hack-completion-text {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    opacity: 0;
    animation: fadeInUp 1.5s ease forwards 0.5s;
}

.hack-completion-subtext {
    font-size: 1.8rem;
    color: var(--accent);
    font-family: 'Courier New', monospace;
    opacity: 0;
    animation: fadeInUp 1.5s ease forwards 3s;
    margin-top: 1rem;
}

.hack-completion-cta {
    opacity: 0;
    animation: fadeInUp 1s ease forwards 5.5s;
    margin-top: 3rem;
}

/* Hidden flag for level 2 */
.hack-hidden-flag {
    color: transparent;
    font-size: 0;
    line-height: 0;
    user-select: all;
    position: absolute;
}

/* ============================================
   Footer
   ============================================ */
footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(0, 255, 65, 0.2);
    color: var(--text-dim);
}

footer .footer-bolt {
    display: inline-block;
    width: 14px;
    height: 18px;
    fill: var(--primary);
    opacity: 0.3;
    vertical-align: middle;
    margin: 0 0.5rem;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 2;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

.scroll-indicator svg {
    width: 30px;
    height: 30px;
    fill: var(--primary);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .glitch-title {
        font-size: 2.5rem;
    }

    .glitch-title-sm {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    nav .nav-inner {
        position: relative;
    }

    .nav-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: -2rem;
        right: -2rem;
        background: rgba(1, 4, 9, 0.98);
        padding: 1rem;
        border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    }

    nav ul.open {
        display: flex;
    }

    nav ul li {
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .card-grid-3,
    .card-grid-2,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .terminal {
        padding: 1.5rem;
    }

    .terminal-content {
        font-size: 0.9rem;
    }

    .about-section {
        padding: 3rem 1.5rem;
    }
}
