/* Modern CSS Reset & Variables */
:root {
    --bg-primary: #0a0a0b;
    --bg-secondary: #14141a;
    --bg-accent: #1a1a24;
    --text-primary: #f5f5f5;
    --text-secondary: #b8bcc8;
    --accent-blue: #66b3ff;
    --accent-purple: #9d5cff;
    --accent-green: #4ade80;
    --border-color: #2a2a3e;
    --shadow-color: rgba(102, 179, 255, 0.1);
    --font-sans: system-ui, -apple-system, sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-accent: #f1f3f5;
    --text-primary: #1a1a1a;
    --text-secondary: #495057;
    --accent-blue: #0066cc;
    --accent-purple: #6842ff;
    --border-color: #e9ecef;
    --shadow-color: rgba(0, 102, 204, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 3rem);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 11, 0.9);
    backdrop-filter: blur(15px);
    z-index: 1000;
    transition: transform 0.3s ease;
}

[data-theme="light"] nav {
    background: rgba(255, 255, 255, 0.9);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-blue);
    text-decoration: none;
    font-family: var(--font-mono);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--accent-blue);
    transform: translateY(-2px);
}

.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.theme-toggle:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: rotate(180deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background:
        radial-gradient(ellipse at top right, var(--accent-purple) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, var(--accent-blue) 0%, transparent 50%);
    background-size: 150% 150%;
    animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(102, 179, 255, 0.1);
    border: 1px solid var(--accent-blue);
    border-radius: 30px;
    font-size: 0.875rem;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
    animation: fadeInUp 0.8s ease;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw + 1rem, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s 0.2s ease both;
}

.text-accent {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-tagline {
    font-family: system-ui, -apple-system, sans-serif;
    font-family: var(--font-sans);
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    max-width: 650px;
    font-style: italic;
    border-left: 3px solid var(--accent-purple);
    padding-left: 1.25rem;
    animation: fadeInUp 0.8s 0.3s ease both;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    animation: fadeInUp 0.8s 0.5s ease both;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s 0.6s ease both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
}

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

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px var(--shadow-color);
}

/* Floating particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent-blue);
    border-radius: 50%;
    opacity: 0.6;
    animation: float linear infinite;
}

@keyframes float {
    from {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    to {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Sections */
section {
    padding: 5rem 0;
    position: relative;
}

section:nth-child(even) {
    background: var(--bg-secondary);
}

h2 {
    font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Mobile: horizontal swipe carousel */
@media (max-width: 1023px) {
    .skills-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 1rem 0;
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .skills-grid::-webkit-scrollbar {
        display: none;
    }

    .skill-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        min-width: 280px;
        max-width: 350px;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .skill-card {
        flex: 0 0 70%;
        max-width: 400px;
    }
}

@media (min-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    .skill-card {
        padding: 1.25rem;
        transition: transform 0.4s ease, opacity 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease;
    }

    .skill-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
        border-radius: 10px;
    }

    .skill-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .skill-description {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .skill-list {
        gap: 0.25rem;
    }

    .skill-list li {
        font-size: 0.8rem;
        padding-left: 1rem;
    }

    .skill-list li::before {
        font-size: 0.6rem;
    }

    /* Focus effect - unfocused cards shrink */
    .skills-grid.has-focus .skill-card {
        transform: scale(0.92);
        opacity: 0.6;
        filter: blur(1px);
    }

    .skills-grid.has-focus .skill-card.focused,
    .skills-grid.has-focus .skill-card:hover {
        transform: scale(1.05);
        opacity: 1;
        filter: blur(0);
        z-index: 10;
        box-shadow: 0 25px 50px var(--shadow-color);
    }
}

.skill-card {
    background: var(--bg-accent);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.skill-card:hover::before {
    transform: translateX(0);
}

.skill-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

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

.skill-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    position: relative;
    padding-left: 1.5rem;
}

.skill-list li::before {
    content: '▸';
    color: var(--accent-green);
    position: absolute;
    left: 0;
    top: 0.5rem;
}

/* Speaking Section */
.speaking-grid {
    display: grid;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.speaking-card {
    background: var(--bg-accent);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
    transition: all 0.3s ease;
}

.speaking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.conference-date {
    background: rgba(102, 179, 255, 0.1);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-family: var(--font-mono);
    min-width: 80px;
}

.conference-date .year {
    font-size: 0.875rem;
    color: var(--accent-blue);
    font-weight: 600;
}

.conference-date .event {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.speaking-content h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.conference-location {
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.speaking-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTF Section */
.ctf-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Mobile: horizontal swipe carousel */
@media (max-width: 1023px) {
    .ctf-showcase {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 0.5rem 0;
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .ctf-showcase::-webkit-scrollbar {
        display: none;
    }

    .ctf-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        min-width: 260px;
        max-width: 320px;
        padding: 0.75rem;
    }

    .ctf-title {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }

    .ctf-role {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .ctf-description {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }

    .ctf-stats {
        margin-top: 0.5rem;
        gap: 0.75rem;
    }

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

    .stat-label {
        font-size: 0.65rem;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .ctf-card {
        flex: 0 0 70%;
        max-width: 380px;
    }
}

@media (min-width: 1024px) {
    .ctf-showcase {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
}

.ctf-card {
    background: var(--bg-accent);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ctf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow-color);
}

/* Desktop: cards start smaller, expand on hover */
@media (min-width: 1024px) {
    .ctf-card {
        padding: 0.75rem;
        transform: scale(0.92);
        opacity: 0.85;
        transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
    }

    .ctf-card:hover {
        transform: scale(1.02);
        opacity: 1;
        box-shadow: 0 20px 45px var(--shadow-color);
        z-index: 10;
    }

    .ctf-title {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }

    .ctf-role {
        font-size: 0.75rem;
    }

    .ctf-description {
        font-size: 0.85rem;
        line-height: 1.4;
        margin: 0.5rem 0;
    }

    .ctf-stats {
        margin-top: 0.5rem;
        gap: 0.5rem;
    }

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

    .stat-label {
        font-size: 0.65rem;
    }
}

.ctf-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
}

.ctf-title {
    font-size: 1.5rem;
    color: var(--accent-green);
    margin-bottom: 0.5rem;
}

.ctf-role {
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.ctf-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.ctf-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-number {
    color: var(--accent-blue);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Certifications */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

/* Mobile: horizontal swipe carousel */
@media (max-width: 1023px) {
    .cert-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 0.5rem 0;
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .cert-grid::-webkit-scrollbar {
        display: none;
    }

    .cert-badge {
        flex: 0 0 70%;
        scroll-snap-align: center;
        min-width: 200px;
        max-width: 280px;
        padding: 1.25rem;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .cert-badge {
        flex: 0 0 45%;
        max-width: 300px;
    }
}

.cert-badge {
    background: linear-gradient(135deg, rgba(102, 179, 255, 0.1), rgba(157, 92, 255, 0.1));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.cert-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.cert-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.cert-badge h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.cert-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.125rem;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--bg-accent);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-secondary);
}

.contact-method:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--shadow-color);
    color: var(--accent-blue);
}

.contact-method svg {
    width: 20px;
    height: 20px;
}

/* Mobile: horizontal swipe carousel for contact buttons */
@media (max-width: 1023px) {
    .contact-methods {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 0.5rem 0;
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .contact-methods::-webkit-scrollbar {
        display: none;
    }

    .contact-method {
        flex: 0 0 auto;
        scroll-snap-align: center;
        min-width: 140px;
        white-space: nowrap;
        padding: 0.875rem 1.25rem;
    }
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-primary);
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li:last-child a,
    .nav-menu li:last-child {
        border-bottom: none;
    }

    .theme-toggle {
        margin: 1rem auto 0;
    }

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

    .speaking-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ctf-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-methods {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 0.5rem 0;
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .contact-methods::-webkit-scrollbar {
        display: none;
    }

    .contact-method {
        flex: 0 0 auto;
        scroll-snap-align: center;
        min-width: 140px;
        white-space: nowrap;
        padding: 0.875rem 1.25rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

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

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

/* Focus states for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-blue);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
}

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

/* Footer */
footer {
    background: var(--bg-secondary);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-content {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-content a {
    color: var(--accent-blue);
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

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

/* Konami Code Easter Egg Transition */
.konami-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.konami-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.konami-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 50%,
        rgba(157, 92, 255, 0.03) 50%
    );
    background-size: 100% 4px;
    animation: scanlines 0.1s linear infinite;
    pointer-events: none;
}

.konami-overlay .glitch-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-mono);
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: #9d5cff;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    animation: glitch 0.3s infinite;
    text-shadow:
        2px 0 #ff0040,
        -2px 0 #00ffff;
}

@keyframes scanlines {
    0% { background-position: 0 0; }
    100% { background-position: 0 4px; }
}

@keyframes glitch {
    0% { transform: translate(-50%, -50%) skew(0deg); }
    20% { transform: translate(-52%, -50%) skew(2deg); }
    40% { transform: translate(-48%, -50%) skew(-1deg); }
    60% { transform: translate(-50%, -52%) skew(1deg); }
    80% { transform: translate(-50%, -48%) skew(-2deg); }
    100% { transform: translate(-50%, -50%) skew(0deg); }
}

@media (prefers-reduced-motion: reduce) {
    .konami-overlay::before {
        animation: none;
    }
    .konami-overlay .glitch-text {
        animation: none;
    }
}
