:root {
    --primary: #ff0000;
    --primary-dark: #cc0000;
    --bg-dark: #000000;
    --bg-card: #050505;
    --bg-card-hover: #080808;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent-green: #00ff00;
    --accent-cyan: #00ffff;
    --gradient-red: linear-gradient(135deg, #ff0000, #cc0000);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Fira Code', monospace;
    background: rgba(0, 0, 0, 0.95);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    cursor: none;
}

#background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('src/opf.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0;
    transition: background-image 1.5s ease-in-out;
}

/* Custom Cursor */
.cursor {
    width: 30px;
    height: 30px;
    border: 3px solid var(--primary);
    position: fixed;
    pointer-events: none;
    z-index: 100000;
    transition: transform 0.1s, opacity 0.1s;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    position: fixed;
    pointer-events: none;
    z-index: 100000;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

.cursor.hover {
    transform: translate(-50%, -50%) scale(1.5);
    background: rgba(255, 0, 0, 0.2);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
}

/* Matrix Rain Canvas */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.15;
}

/* Intro Overlay */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
}

.intro-overlay.active {
    opacity: 1;
    visibility: visible;
}

.intro-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Block scroll during intro */
body.intro-active {
    overflow: hidden;
    height: 100vh;
}

.intro-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: #ff0000;
    text-shadow:
        0 0 10px rgb(255, 0, 0),
        0 0 20px rgb(255, 0, 0),
        0 0 40px rgb(255, 0, 0),
        0 0 80px rgb(255, 0, 0);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: inline;
}

.intro-cursor {
    display: inline;
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: #ff0000;
    animation: blink-cursor 0.7s infinite;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

@keyframes blink-cursor {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

@media (max-width: 768px) {

    .intro-text,
    .intro-cursor {
        font-size: 2rem;
    }
}

/* Glitch Effect - Subtle Version */
.glitch {
    position: relative;
}

.glitch:hover {
    animation: glitch-text 0.3s linear;
}

@keyframes glitch-text {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Floating Animation */
.float {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Pulse Glow Animation */
.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    }

    50% {
        box-shadow: 0 0 40px rgba(255, 0, 0, 0.8), 0 0 60px rgba(255, 0, 0, 0.4);
    }
}

/* Typing Animation */
.typing-container {
    display: inline-block;
}

.typing-text {
    border-right: 3px solid var(--primary);
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--primary);
    }
}

/* Scan Line Effect */
.scan-line {
    position: relative;
    overflow: hidden;
}

.scan-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to bottom, transparent, rgba(255, 0, 0, 0.3), transparent);
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% {
        top: -5px;
    }

    100% {
        top: 100%;
    }
}

/* Neon Text */
.neon-text {
    text-shadow:
        0 0 5px var(--primary),
        0 0 10px var(--primary),
        0 0 20px var(--primary),
        0 0 40px var(--primary);
    animation: neon-flicker 1.5s infinite alternate;
}

/* Fixed Neon Title */
.fixed-neon-title {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 2px;
    text-shadow:
        0 0 5px var(--primary),
        0 0 10px var(--primary),
        0 0 20px var(--primary),
        0 0 40px var(--primary),
        0 0 80px var(--primary);
    animation: neon-flicker 1.5s infinite alternate;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fixed-neon-title.visible {
    opacity: 1;
}

/* Removed ::before to avoid double-render and glyph glitch */

@keyframes neon-flicker {

    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        text-shadow:
            0 0 5px var(--primary),
            0 0 10px var(--primary),
            0 0 20px var(--primary),
            0 0 40px var(--primary);
    }

    20%,
    24%,
    55% {
        text-shadow: none;
    }
}

/* ===== Certifications Section ===== */
.cert-terminal {
    max-width: 860px;
    width: 100%;
    display: block;
    margin: 0 auto 2.5rem;
}

.cert-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin: 0 auto 2rem;
    max-width: 700px;
    font-size: 1rem;
}

.cert-stats-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 0 auto 2rem;
    background: rgba(0,0,0,0.75);
    border: 2px solid rgba(255,0,0,0.7);
    border-radius: 50px;
    padding: 1.2rem 3rem;
    max-width: 680px;
    flex-wrap: wrap;
    box-shadow: 0 0 18px rgba(255,0,0,0.4), inset 0 0 30px rgba(255,0,0,0.06);
    backdrop-filter: blur(6px);
}

.cert-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.cert-stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(255,0,0,0.8), 0 0 24px rgba(255,0,0,0.4);
}

.cert-stat-label {
    font-size: 0.75rem;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
    font-weight: 600;
}

.cert-stat-sep {
    width: 1px;
    height: 36px;
    background: rgba(255,0,0,0.6);
    box-shadow: 0 0 6px rgba(255,0,0,0.4);
}

/* Filter bar */
.cert-filter-bar {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin: 0 auto 2.5rem;
    flex-wrap: wrap;
}

.cert-filter-btn {
    background: rgba(255,0,0,0.05);
    border: 1px solid rgba(255,0,0,0.2);
    color: var(--text-secondary);
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    padding: 0.45rem 1.1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.cert-filter-btn:hover,
.cert-filter-btn.active {
    background: rgba(255,0,0,0.15);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 10px rgba(255,0,0,0.15);
}

/* Grid */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.cert-card {
    background: rgba(8,8,8,0.95);
    border: 1px solid rgba(255,0,0,0.1);
    border-radius: 14px;
    padding: 1.5rem 1.25rem 1.25rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    position: relative;
    overflow: hidden;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(255,0,0,0.12), 0 0 0 1px rgba(255,0,0,0.2);
    border-color: rgba(255,0,0,0.25);
}

.cert-card:hover::before,
.cert-card:focus-within::before {
    transform: scaleX(1);
}

.cert-card.hidden {
    display: none;
}

/* Verified badge */
.cert-verified-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0,200,80,0.12);
    border: 1px solid rgba(0,200,80,0.35);
    color: #00c850;
    font-size: 0.62rem;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    font-family: 'Fira Code', monospace;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.cert-badge-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,0,0,0.08);
    border: 1px solid rgba(255,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--primary);
    flex-shrink: 0;
}

.cert-image-wrapper {
    width: 100%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
}

.cert-image {
    width: 100%;
    height: 145px;
    object-fit: contain;
    display: block;
    transition: transform 0.35s ease, filter 0.35s ease;
    padding: 0.5rem;
}

.cert-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.3s ease;
    gap: 0.4rem;
}

.cert-image-wrapper:hover .cert-image {
    transform: scale(1.06);
    filter: brightness(0.55) saturate(0.8);
}

.cert-image-wrapper:hover .cert-overlay {
    opacity: 1;
}

/* Meta (issuer & year) */
.cert-meta {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.cert-issuer,
.cert-year {
    font-size: 0.68rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.cert-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary);
    font-size: 1rem;
    margin: 0;
    text-shadow: 0 0 8px rgba(255,0,0,0.3);
}

.cert-desc {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

.cert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
}

.cert-tag {
    background: rgba(255,0,0,0.06);
    border: 1px solid rgba(255,0,0,0.18);
    color: var(--primary);
    font-size: 0.64rem;
    padding: 0.18rem 0.55rem;
    border-radius: 20px;
    font-family: 'Fira Code', monospace;
}

/* Card action buttons */
.cert-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
    width: 100%;
}

.cert-btn-view,
.cert-btn-download {
    flex: 1;
    padding: 0.45rem 0;
    border-radius: 6px;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: all 0.25s ease;
    border: 1px solid rgba(255,0,0,0.25);
}

.cert-btn-view {
    background: rgba(255,0,0,0.1);
    color: var(--primary);
}

.cert-btn-view:hover {
    background: rgba(255,0,0,0.22);
    box-shadow: 0 0 12px rgba(255,0,0,0.2);
}

.cert-btn-download {
    background: rgba(255,255,255,0.04);
    color: var(--text-secondary);
    border-color: rgba(255,255,255,0.08);
}

.cert-btn-download:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
}

/* ===== Cert Lightbox Modal ===== */
.cert-modal {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cert-modal.open {
    opacity: 1;
    visibility: visible;
}

.cert-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(8px);
}

.cert-modal-box {
    position: relative;
    z-index: 1;
    background: #070707;
    border: 1px solid rgba(255,0,0,0.25);
    border-radius: 16px;
    padding: 2rem 1.75rem 1.75rem;
    max-width: min(800px, 94vw);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 0 80px rgba(255,0,0,0.1), 0 0 0 1px rgba(255,0,0,0.08);
    overflow-y: auto;
}

.cert-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255,0,0,0.1);
    border: 1px solid rgba(255,0,0,0.3);
    color: var(--primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.cert-modal-close:hover {
    background: rgba(255,0,0,0.28);
    transform: rotate(90deg);
}

.cert-modal-header {
    text-align: center;
}

.cert-modal-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary);
    font-size: 1.25rem;
    margin: 0 0 0.4rem;
    text-shadow: 0 0 10px rgba(255,0,0,0.4);
}

.cert-modal-meta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.cert-modal-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Nav row: arrows + image */
.cert-modal-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    justify-content: center;
}

.cert-modal-arrow {
    background: rgba(255,0,0,0.08);
    border: 1px solid rgba(255,0,0,0.25);
    color: var(--primary);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.2s;
}

.cert-modal-arrow:hover {
    background: rgba(255,0,0,0.25);
    transform: scale(1.1);
}

.cert-modal-img {
    max-width: 100%;
    flex: 1;
    max-height: 55vh;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(255,0,0,0.1);
    transition: opacity 0.2s ease;
}

.cert-modal-counter {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: 'Fira Code', monospace;
}

.cert-modal-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cert-modal-actions .btn {
    padding: 0.65rem 1.4rem;
    font-size: 0.85rem;
}

@media (max-width: 1024px) {
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .cert-grid { grid-template-columns: 1fr; }
    .cert-image { height: 170px; }
    .cert-stats-bar { flex-direction: column; gap: 0.75rem; border-radius: 14px; padding: 1rem 1.5rem; }
    .cert-stat-sep { width: 50px; height: 1px; }
    .cert-modal-nav { gap: 0.4rem; }
    .cert-modal-arrow { width: 36px; height: 36px; }
}

.cert-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.cert-stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.cert-stat-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.cert-stat-sep {
    width: 1px;
    height: 40px;
    background: rgba(255,0,0,0.2);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.cert-card {
    background: rgba(8,8,8,0.9);
    border: 1px solid rgba(255,0,0,0.12);
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient-red);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(255,0,0,0.12);
    border-color: rgba(255,0,0,0.3);
}

.cert-card:hover::before {
    transform: scaleX(1);
}

.cert-badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,0,0,0.08);
    border: 1px solid rgba(255,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
}

.cert-image-wrapper {
    width: 100%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255,255,255,0.02);
}

.cert-image {
    width: 100%;
    height: 150px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
    padding: 0.5rem;
}

.cert-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cert-image-wrapper:hover .cert-image {
    transform: scale(1.04);
    filter: brightness(0.65);
}

.cert-image-wrapper:hover .cert-overlay {
    opacity: 1;
}

.cert-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary);
    font-size: 1rem;
    margin: 0;
}

.cert-desc {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.cert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

.cert-tag {
    background: rgba(255,0,0,0.08);
    border: 1px solid rgba(255,0,0,0.2);
    color: var(--primary);
    font-size: 0.68rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-family: 'Fira Code', monospace;
}

/* Cert Lightbox Modal */
.cert-modal {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cert-modal.open {
    opacity: 1;
    visibility: visible;
}

.cert-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(6px);
}

.cert-modal-box {
    position: relative;
    z-index: 1;
    background: #0a0a0a;
    border: 1px solid rgba(255,0,0,0.25);
    border-radius: 14px;
    padding: 2.5rem 2rem 2rem;
    max-width: min(700px, 92vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 0 60px rgba(255,0,0,0.12);
    overflow-y: auto;
}

.cert-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255,0,0,0.1);
    border: 1px solid rgba(255,0,0,0.3);
    color: var(--primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.cert-modal-close:hover {
    background: rgba(255,0,0,0.25);
}

.cert-modal-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary);
    font-size: 1.2rem;
    margin: 0;
}

.cert-modal-img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(255,0,0,0.1);
}

@media (max-width: 1024px) {
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .cert-grid { grid-template-columns: 1fr; }
    .cert-image { height: 180px; }
    .cert-stats-bar { flex-direction: column; gap: 1rem; border-radius: 12px; }
    .cert-stat-sep { width: 40px; height: 1px; }
}

/* 3D Card Tilt Effect */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

.tilt-card:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Shake Animation */
.shake:hover {
    animation: shake 0.5s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

/* Bounce Animation */
.bounce:hover {
    animation: bounce 0.6s;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

/* Heartbeat Animation */
.heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.1);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.1);
    }

    70% {
        transform: scale(1);
    }
}

/* Matrix Background Effect */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.03;
    background-image:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(255, 0, 0, 0.03) 2px,
            rgba(255, 0, 0, 0.03) 4px);
}

/* Navigation */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    margin-left: 0;
    width: calc(95% - 40px);
    max-width: 1600px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    padding: 0.5rem 5rem;
    z-index: 1000;
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    transform: translate(-50%, 0);
    will-change: transform, opacity;
    opacity: 1;
}

nav.nav-hidden {
    transform: translate(-50%, -120px) !important;
    opacity: 0;
}

nav.nav-visible {
    transform: translate(-50%, 0) !important;
    opacity: 1 !important;
}

nav:hover {
    background: rgba(25, 25, 25, 0.98);
    box-shadow: 0 12px 40px rgba(255, 0, 0, 0.2);
}

nav .container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    animation: pulse 2s infinite;
    color: #ffffff !important;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    width: 100%;
    max-width: 1400px;
    gap: 1rem;
    margin-left: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    margin-right: 1rem;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 0, 0, 0.1) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.avatar {
    width: 200px;
    height: 200px;
    border: 4px solid black;
    margin-bottom: 2rem;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    animation: glow 3s infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    }

    to {
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    }
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.hero h1 .text-gradient {
    background: var(--gradient-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1 .emoji {
    -webkit-text-fill-color: initial;
    background: none;
}

.hero .subtitle {
    font-size: 1.6rem;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-shadow:
        0 0 8px var(--primary),
        0 0 20px rgba(255, 0, 0, 0.5),
        0 0 40px rgba(255, 0, 0, 0.2);
    margin-bottom: 1rem;
}

.hero .tagline {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.badge {
    background: var(--bg-card);
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 1;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    opacity: 1;
}

.btn-primary {
    background: var(--gradient-red);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* Sections */
section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-red);
}

/* Terminal Style */
.terminal {
    background: #0d0d0d;
    overflow: hidden;
    margin: 2rem 0;
    border: 1px solid #333;
    position: relative;
    opacity: 0.95;
}

.cert-terminal.terminal {
    margin-left: auto;
    margin-right: auto;
}

.terminal-header {
    background: #1a1a1a;
    padding: 0.8rem 1rem;
    display: flex;
    gap: 0.5rem;
}

.terminal-btn {
    width: 12px;
    height: 12px;
}

.terminal-btn.red {
    background: #ff5f56;
}

.terminal-btn.yellow {
    background: #ffbd2e;
}

.terminal-btn.green {
    background: #27c93f;
}

.terminal-body {
    padding: 1.5rem;
    font-size: 0.9rem;
}

.terminal-line {
    margin-bottom: 0.5rem;
}

.terminal-prompt {
    color: var(--accent-green);
}

.terminal-command {
    color: var(--accent-cyan);
}

.terminal-output {
    color: var(--text-secondary);
    margin-left: 1rem;
}

/* Cards Grid */
.cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0;
}

.card {
    background: var(--bg-card);
    padding: 2rem;
    border: 1px solid #222;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    opacity: 0.95;
    text-align: center;
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.65rem;
    margin-bottom: 1rem;
}

.card ul {
    padding: 0;
    list-style: none;
    display: inline-block;
    text-align: left;
}

.card ul li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.card:nth-child(1) {
    transform: scale(1.1);
    order: 1;
}

.card:nth-child(2) {
    transform: scale(0.9);
    order: 2;
}

.card:nth-child(3) {
    transform: scale(1.05);
    order: 3;
}

.card:nth-child(4) {
    transform: scale(0.95);
    order: 4;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-item {
    background: var(--bg-card);
    padding: 1.5rem;
    border: 1px solid #222;
    opacity: 0.95;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 600;
}

.skill-percentage {
    color: var(--primary);
}

.skill-bar {
    height: 8px;
    background: #222;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-red);
    transition: width 1s ease-out;
}

/* Tools Section */
.tools-category {
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    padding: 1rem;
    text-align: center;
}

.tools-category h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.95rem;
    margin-bottom: 2rem;
    margin-top: 1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.tool-badge {
    background: var(--bg-card);
    padding: 0.7rem 1.2rem;
    border: 1px solid #333;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    opacity: 0.95;
}

.tool-badge:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* Projects Section */
.project-card {
    background: var(--bg-card);
    padding: 2rem;
    border: 1px solid #222;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    opacity: 0.95;
}

.project-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-icon {
    font-size: 2rem;
}

.project-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.65rem;
}

.project-lang {
    background: #222;
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    color: var(--accent-cyan);
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-link {
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.project-link:hover {
    text-decoration: underline;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid #222;
    position: relative;
    overflow: hidden;
    opacity: 0.95;
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--primary);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Team Section */
.team-section {
    background: var(--bg-card);
    padding: 3rem;
    border: 1px solid #222;
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0.95;
}

.team-badge {
    display: inline-block;
    background: var(--gradient-red);
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.team-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-feature {
    padding: 1.5rem;
}

.team-feature i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.team-feature h4 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.team-feature p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border: 1px solid #222;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    opacity: 0.95;
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.contact-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-card h4 {
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Disclaimer */
.disclaimer {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(255, 0, 0, 0.05));
    border: 1px solid var(--primary);
    padding: 2rem;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
    opacity: 0.95;
}

.disclaimer h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.95rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 2.5rem;
}

.disclaimer-list {
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
}

.disclaimer-list li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: var(--bg-card);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid #222;
    margin-top: 5rem;
    opacity: 0.95;
}

.footer-quote {
    font-style: italic;
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-social a:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {

    /* Hamburger visible on mobile */
    .hamburger {
        display: flex;
    }

    /* Navigation adjustments */
    nav {
        padding: 0.5rem 1.5rem;
        width: calc(100% - 20px);
    }

    nav .container {
        flex-wrap: wrap;
    }

    /* Mobile menu styles */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        margin: 0;
        padding: 2rem;
        transform: translateX(-100%);
        transition: transform 0.4s ease;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.3rem;
        display: block;
        padding: 1rem;
    }

    /* Hero adjustments */
    .hero {
        padding: 6rem 1rem 3rem;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .hero .tagline {
        font-size: 1.1rem;
    }

    /* Avatar responsive */
    .avatar {
        width: min(180px, 40vw);
        height: min(180px, 40vw);
    }

    /* Section titles */
    .section-title {
        font-size: clamp(1.5rem, 6vw, 1.8rem);
        margin-bottom: 2rem;
    }

    /* Cards grid */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Fixed neon title */
    .fixed-neon-title {
        font-size: 1.2rem;
        padding: 0.4rem 1rem;
    }

    /* Logo */
    .logo {
        font-size: 1.1rem;
    }

    /* Buttons */
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Stats */
    .stat-number {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-item {
        padding: 1rem;
    }

    /* Skills grid */
    .skills-container {
        grid-template-columns: 1fr !important;
    }

    /* Contact grid */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    /* Language selector */
    .lang-selector {
        margin-left: 0;
    }

    /* Sections padding */
    section {
        padding: 3rem 1rem;
    }
}

/* Marker/Highlight Effect for Titles - Subtle underline style */
.section-title {
    display: block;
    margin-top: 2rem;
    margin-bottom: 5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title .marker {
    background: linear-gradient(to top, var(--primary) 45%, transparent 45%);
    padding: 0.2rem 0.4rem;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.section-title::before {
    display: none;
}

.section-title::after {
    display: none;
}

/* Hero title - no marker effect */
.hero h1 {
    background: none;
    padding: 0;
    box-shadow: none;
    transform: none;
    margin: 0;
}

.hero h1::before,
.hero h1::after {
    display: none;
}



/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Typing Effect */
.typing-text {
    border-right: 2px solid var(--primary);
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    100% {
        border-color: var(--primary);
    }

    50% {
        border-color: transparent;
    }
}

/* Language Selector */
.lang-selector {
    position: relative;
    margin-left: 1.5rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 0, 0, 0.1);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--primary);
    margin-top: 0.5rem;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.lang-selector:hover .lang-dropdown,
.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.lang-option:hover {
    background: rgba(255, 0, 0, 0.1);
    color: var(--text-primary);
}

.lang-option.active {
    color: var(--primary);
    background: rgba(255, 0, 0, 0.05);
}

.lang-option:first-child {}

.lang-option:last-child {}

.lang-flag {
    font-size: 1.2rem;
}

/* Background Video */
#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 1;
}

@media (max-width: 768px) {
    .lang-selector {
        margin-left: 0;
        margin-top: 1rem;
    }
}

/* Enter Screen */
.enter-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9) 0%, rgba(20, 0, 0, 0.95) 100%),
        linear-gradient(135deg, rgba(255, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.9) 100%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.enter-screen.active {
    opacity: 1;
}

.enter-content {
    text-align: center;
    color: white;
    animation: pulse 2s infinite;
}

.enter-text {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff0000;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.enter-icon {
    font-size: 3rem;
    color: #ff0000;
    opacity: 0.8;
    animation: bounce 1s infinite alternate;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .enter-text {
        font-size: 2rem;
    }

    .enter-icon {
        font-size: 2.5rem;
    }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 800px;
        margin: 0 auto;
        place-items: center;
        width: 100%;
    }

    .intro-text,
    .intro-cursor {
        font-size: 1.8rem;
    }

    .enter-text {
        font-size: 2.2rem;
    }

    .enter-icon {
        font-size: 2.8rem;
    }
}

/* Large Tablets / Small Laptops (1025px - 1200px) */
@media (min-width: 1025px) and (max-width: 1200px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.8rem;
    }

    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        max-width: 1000px;
        margin: 0 auto;
        place-items: center;
        width: 100%;
    }
}

/* Large Screens (1201px+) */
@media (min-width: 1201px) {
    .hero h1 {
        font-size: 4rem;
    }

    .section-title {
        font-size: 3.5rem;
    }

    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
        max-width: 1400px;
        margin: 0 auto;
        place-items: center;
        width: 100%;
    }
}

/* Ultra Wide Screens (1600px+) */
@media (min-width: 1600px) {
    .hero h1 {
        font-size: 4.5rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    .section-title {
        font-size: 4rem;
    }

    .container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 2rem;
    }
}

/* Panels Sidebar Styles */
.panels-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    border-right: 1px solid rgba(255, 0, 0, 0.3);
    z-index: 1000;
    overflow-y: auto;
    transition: left 0.3s ease;
}

.panels-sidebar.active {
    left: 0;
}

.panels-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 0, 0, 0.2);
}

.panels-sidebar-header h3 {
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin: 0;
}

.panels-sidebar-content {
    padding: 1rem 0;
}

.panels-sidebar-link {
    display: flex;
    align-items: center;
    padding: 1.2rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0.5rem 1rem;
    border-radius: 8px;
}

.panels-sidebar-link:hover {
    background: rgba(255, 0, 0, 0.1);
    color: var(--primary);
    border-left: 3px solid var(--primary);
    padding-left: 1.2rem;
    transform: translateX(5px);
}

.panels-sidebar-link.active {
    background: rgba(255, 0, 0, 0.2);
    border-left: 3px solid var(--primary);
    color: var(--primary);
}

.panels-sidebar-link i {
    margin-right: 1rem;
    width: 20px;
    text-align: center;
    font-size: 1.2rem;
}

.panels-sidebar-link span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .panels-sidebar {
        width: 280px;
    }

    section {
        margin-left: 0 !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}


/* Mobile Responsive for Portfolio Sidebar - REMOVED */

/* Touch Device Support - Hide custom cursor */
@media (pointer: coarse),
(hover: none) {

    .cursor,
    .cursor-dot {
        display: none !important;
    }

    body {
        cursor: auto !important;
    }

    /* Better touch targets */
    .btn,
    .nav-links a,
    .contact-card,
    .card {
        min-height: 44px;
    }
}

/* Very Small Phones (max-width: 480px) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: clamp(1.5rem, 10vw, 2rem);
    }

    .hero .subtitle {
        font-size: 0.85rem;
    }

    .hero .tagline {
        font-size: 0.95rem;
    }

    .avatar {
        width: min(140px, 35vw);
        height: min(140px, 35vw);
    }

    .section-title {
        font-size: clamp(1.2rem, 6vw, 1.5rem);
    }

    .badges {
        gap: 0.5rem;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: clamp(1.8rem, 12vw, 2.5rem);
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .fixed-neon-title {
        font-size: 1rem;
        padding: 0.3rem 0.8rem;
    }

    /* Card adjustments */
    .card {
        transform: none !important;
    }

    /* Footer */
    .footer-social {
        flex-wrap: wrap;
        justify-content: center;
    }
}