/* ============================================
   CATPPUCCIN THEME — Mocha (dark) & Latte (light)
   ============================================ */
:root {
    --transition-speed: 0.35s;
}

[data-theme="mocha"] {
    --rosewater: #f5e0dc;
    --flamingo: #f2cdcd;
    --pink: #f5c2e7;
    --mauve: #cba6f7;
    --red: #f38ba8;
    --maroon: #eba0ac;
    --peach: #fab387;
    --yellow: #f9e2af;
    --green: #a6e3a1;
    --teal: #94e2d5;
    --sky: #89dceb;
    --sapphire: #74c7ec;
    --blue: #89b4fa;
    --lavender: #b4befe;
    --text: #cdd6f4;
    --subtext1: #bac2de;
    --subtext0: #a6adc8;
    --overlay2: #9399b2;
    --overlay1: #7f849c;
    --overlay0: #6c7086;
    --surface2: #585b70;
    --surface1: #45475a;
    --surface0: #313244;
    --base: #1e1e2e;
    --mantle: #181825;
    --crust: #11111b;
}

[data-theme="latte"] {
    --rosewater: #dc8a78;
    --flamingo: #dd7878;
    --pink: #ea76cb;
    --mauve: #8839ef;
    --red: #d20f39;
    --maroon: #e64553;
    --peach: #fe640b;
    --yellow: #df8e1d;
    --green: #40a02b;
    --teal: #179299;
    --sky: #04a5e5;
    --sapphire: #209fb5;
    --blue: #1e66f5;
    --lavender: #7287fd;
    --text: #4c4f69;
    --subtext1: #5c5f77;
    --subtext0: #6c6f85;
    --overlay2: #7c7f93;
    --overlay1: #8c8fa1;
    --overlay0: #9ca0b0;
    --surface2: #acb0be;
    --surface1: #bcc0cc;
    --surface0: #ccd0da;
    --base: #eff1f5;
    --mantle: #e6e9ef;
    --crust: #dce0e8;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-color: var(--surface2) var(--base);
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--base);
    color: var(--text);
    line-height: 1.7;
    transition: background var(--transition-speed) ease, color var(--transition-speed) ease;
    overflow-x: hidden;
}

::selection {
    background: var(--mauve);
    color: var(--base);
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--sapphire);
}

/* ============================================
   NOISE OVERLAY
   ============================================ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

/* ============================================
   THEME TOGGLE
   ============================================ */
.theme-toggle {
    position: fixed;
    top: 4rem;
    right: 1.5rem;
    z-index: 1000;
    background: var(--surface0);
    border: 1px solid var(--surface1);
    color: var(--text);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: var(--surface1);
    transform: rotate(20deg) scale(1.1);
    box-shadow: 0 0 20px var(--mauve);
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    background: color-mix(in srgb, var(--base) 80%, transparent);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--surface0);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background var(--transition-speed) ease;
}

.nav-brand {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--mauve);
    letter-spacing: -0.02em;
}

.nav-brand span {
    color: var(--text);
    opacity: 0.5;
}

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

.nav-links a {
    color: var(--subtext0);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    position: relative;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--mauve);
    border-radius: 1px;
    transition: width 0.3s ease;
}

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

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

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    position: relative;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--surface0) 1px, transparent 1px),
        linear-gradient(90deg, var(--surface0) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
}

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

.hero-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--green);
    margin-bottom: 1.5rem;
    letter-spacing: 0.08em;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-name {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero-name .accent {
    background: linear-gradient(135deg, var(--mauve), var(--blue), var(--sapphire));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--subtext0);
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-hint {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--overlay1);
    padding: 0.8rem 1.5rem;
    background: var(--surface0);
    border: 1px solid var(--surface1);
    border-radius: 8px;
    display: inline-block;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.8s forwards;
}

.hero-hint .blink {
    animation: blink 1s infinite;
}

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

/* ============================================
   SECTIONS
   ============================================ */
section {
    padding: 6rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 3rem;
}

.section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--mauve);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--mauve), var(--blue));
    border-radius: 2px;
    margin-top: 1rem;
}

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

.about-text p {
    color: var(--subtext1);
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.about-card {
    background: var(--surface0);
    border: 1px solid var(--surface1);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green), var(--teal), var(--blue));
}

.about-card h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--green);
    margin-bottom: 1rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: var(--mantle);
    border-radius: 8px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--mauve);
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--overlay1);
    margin-top: 0.25rem;
}

/* ============================================
   SKILLS
   ============================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: var(--surface0);
    border: 1px solid var(--surface1);
    border-radius: 12px;
    padding: 1.8rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card:hover {
    border-color: var(--mauve);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px color-mix(in srgb, var(--mauve) 15%, transparent);
}

.skill-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.skill-card p {
    color: var(--subtext0);
    font-size: 0.9rem;
    line-height: 1.6;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
}

.skill-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    background: var(--mantle);
    color: var(--subtext0);
    border-radius: 4px;
    border: 1px solid var(--surface1);
}

/* ============================================
   BLOG / WRITE-UPS
   ============================================ */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog-entry {
    background: var(--surface0);
    border: 1px solid var(--surface1);
    border-radius: 12px;
    padding: 2rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-entry:hover {
    border-color: var(--blue);
    transform: translateX(6px);
}

.blog-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--overlay1);
    text-align: center;
    min-width: 60px;
}

.blog-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue);
    display: block;
}

.blog-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.blog-info p {
    color: var(--subtext0);
    font-size: 0.85rem;
}

.blog-category {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
    background: var(--mantle);
    color: var(--mauve);
    border-radius: 20px;
    border: 1px solid var(--surface1);
    white-space: nowrap;
}

/* ============================================
   CTF SCOREBOARD
   ============================================ */
.ctf-section {
    background: var(--mantle);
    border-top: 1px solid var(--surface0);
    border-bottom: 1px solid var(--surface0);
    padding: 6rem 2rem;
}

.ctf-section .section-inner {
    max-width: 900px;
    margin: 0 auto;
}

.ctf-intro {
    color: var(--subtext1);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.ctf-board {
    background: var(--base);
    border: 1px solid var(--surface1);
    border-radius: 12px;
    overflow: hidden;
}

.ctf-board-header {
    display: grid;
    grid-template-columns: 50px 1fr 100px 120px;
    padding: 1rem 1.5rem;
    background: var(--surface0);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--overlay1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ctf-flag-row {
    display: grid;
    grid-template-columns: 50px 1fr 100px 120px;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--surface0);
    align-items: center;
    transition: background 0.2s ease;
}

.ctf-flag-row:last-child {
    border-bottom: none;
}

.ctf-flag-row:hover {
    background: var(--surface0);
}

.ctf-flag-row.found {
    background: color-mix(in srgb, var(--green) 8%, transparent);
}

.ctf-flag-num {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--overlay1);
    font-size: 0.85rem;
}

.ctf-flag-name {
    font-weight: 500;
}

.ctf-flag-diff {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}

.diff-easy { color: var(--green); }
.diff-medium { color: var(--yellow); }
.diff-hard { color: var(--red); }
.diff-bonus { color: var(--mauve); }

.ctf-flag-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--overlay0);
}

.ctf-flag-status.solved {
    color: var(--green);
}

.ctf-submit {
    padding: 2rem 1.5rem;
    background: var(--surface0);
    display: flex;
    gap: 1rem;
    align-items: center;
}

.ctf-input {
    flex: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    padding: 0.8rem 1.2rem;
    background: var(--base);
    border: 1px solid var(--surface1);
    border-radius: 8px;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease;
}

.ctf-input:focus {
    border-color: var(--mauve);
}

.ctf-input::placeholder {
    color: var(--overlay0);
}

.ctf-btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    padding: 0.8rem 1.5rem;
    background: var(--mauve);
    color: var(--base);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ctf-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.ctf-progress {
    padding: 1.5rem;
    text-align: center;
}

.ctf-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--surface1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.ctf-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green), var(--teal));
    border-radius: 3px;
    transition: width 0.5s ease;
    width: 0%;
}

.ctf-progress-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--overlay1);
}

.ctf-reset {
    padding: 0 1.5rem 1.5rem;
    text-align: center;
}

.ctf-reset-btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    padding: 0.6rem 1.2rem;
    background: var(--surface0);
    color: var(--overlay1);
    border: 1px solid var(--surface1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ctf-reset-btn:hover {
    background: var(--red);
    color: var(--base);
    border-color: var(--red);
    transform: translateY(-1px);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--surface0);
    border: 1px solid var(--surface1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    border-color: var(--mauve);
    transform: translateY(-3px);
    color: var(--text);
}

.contact-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mantle);
    border-radius: 10px;
}

.contact-info h3 {
    font-size: 1rem;
    font-weight: 600;
}

.contact-info p {
    font-size: 0.85rem;
    color: var(--subtext0);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--surface0);
    font-size: 0.85rem;
    color: var(--overlay1);
}

footer .footer-hint {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--overlay0);
    margin-top: 0.5rem;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 1rem 2rem;
    background: var(--green);
    color: var(--base);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

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

.toast.error {
    background: var(--red);
}

/* ============================================
   SECRET TERMINAL (Flag 11 - Konami Code)
   ============================================ */
.secret-terminal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.secret-terminal.active {
    display: flex;
}

.terminal-window {
    background: var(--crust);
    border: 1px solid var(--surface1);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0,0,0,0.5);
}

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

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

.terminal-body {
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--green);
    min-height: 200px;
    line-height: 1.8;
}

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

.terminal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--overlay1);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================
   HIDDEN LOGIN FORM (Flag 09 - SQLi)
   ============================================ */
.hidden-login {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.hidden-login.active {
    display: flex;
}

.login-box {
    background: var(--base);
    border: 1px solid var(--surface1);
    border-radius: 12px;
    padding: 2.5rem;
    width: 90%;
    max-width: 400px;
}

.login-box h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.login-field {
    width: 100%;
    margin-bottom: 1rem;
}

.login-field label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--subtext0);
    margin-bottom: 0.3rem;
}

.login-field input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--surface0);
    border: 1px solid var(--surface1);
    border-radius: 8px;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    outline: none;
}

.login-field input:focus {
    border-color: var(--mauve);
}

.login-submit {
    width: 100%;
    padding: 0.8rem;
    background: var(--mauve);
    color: var(--base);
    border: none;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
}

.login-error {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--red);
    margin-top: 1rem;
    display: none;
}

/* ============================================
   ADMIN DASHBOARD (IDOR)
   ============================================ */
.admin-dashboard {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.admin-dashboard.active {
    display: flex;
}

.admin-container {
    background: var(--base);
    border: 1px solid var(--surface1);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: var(--surface0);
    border-bottom: 1px solid var(--surface1);
}

.admin-header h2 {
    font-size: 1.3rem;
    color: var(--text);
}

.admin-close {
    background: none;
    border: none;
    color: var(--overlay1);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.admin-close:hover {
    color: var(--red);
}

.admin-content {
    padding: 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

.admin-profile {
    background: var(--surface0);
    border: 1px solid var(--surface1);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.admin-profile h3 {
    color: var(--mauve);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.admin-profile-field {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: var(--mantle);
    border-radius: 6px;
}

.admin-profile-field .label {
    color: var(--overlay1);
    min-width: 100px;
}

.admin-profile-field .value {
    color: var(--text);
    flex: 1;
}

.admin-hint {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--mantle);
    border-left: 3px solid var(--blue);
    border-radius: 4px;
    color: var(--subtext0);
    font-size: 0.85rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Hamburger Menu */
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: color-mix(in srgb, var(--base) 95%, transparent);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--surface1);
        flex-direction: column;
        gap: 0;
        padding: 5rem 2rem 2rem;
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    }

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

    .nav-links li {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--surface0);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        font-size: 1rem;
        display: block;
        padding: 0.5rem 0;
    }

    .nav-links a::after {
        display: none;
    }

    .blog-entry {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .blog-date {
        text-align: left;
    }

    .blog-date .day {
        display: inline;
        font-size: 1rem;
    }

    .ctf-board-header,
    .ctf-flag-row {
        grid-template-columns: 40px 1fr 80px;
    }

    .ctf-flag-status {
        display: none;
    }

    .ctf-submit {
        flex-direction: column;
    }

    .ctf-btn {
        width: 100%;
    }
}
