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

:root {
    color-scheme: dark;
    --bg-primary: #0A0A0F;
    --bg-secondary: #111122;
    --bg-card: #141428;
    --yellow: #FCEE0A;
    --cyan: #00F0FF;
    --pink: #FF2A6D;
    --purple: #9D4EDD;
    --red: #FF003C;
    --green: #39FF14;
    --text-primary: #E8E8E8;
    --text-secondary: #9999AA;
    --glow-yellow: 0 0 10px #FCEE0A, 0 0 40px rgba(252, 238, 10, 0.3);
    --glow-cyan: 0 0 10px #00F0FF, 0 0 40px rgba(0, 240, 255, 0.3);
    --glow-pink: 0 0 10px #FF2A6D, 0 0 40px rgba(255, 42, 109, 0.3);
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--cyan);
    border-radius: 3px;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
}

.cursor-glow {
    position: fixed;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    will-change: transform;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-text {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--yellow);
    text-shadow: var(--glow-yellow);
}

.preloader-bar {
    width: 200px;
    height: 2px;
    background: rgba(0, 240, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.preloader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: var(--cyan);
    animation: preloaderSlide 1s ease infinite;
}

@keyframes preloaderSlide {
    0% { left: -50%; }
    100% { left: 100%; }
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    transition: var(--transition);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.nav-logo svg {
    height: 36px;
    width: auto;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--yellow);
    outline: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--yellow);
    transition: width var(--transition);
    box-shadow: var(--glow-yellow);
}

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

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    background: none;
    border: none;
}

.nav-burger span {
    width: 28px;
    height: 2px;
    background: var(--yellow);
    transition: var(--transition);
    box-shadow: var(--glow-yellow);
    display: block;
}

.nav-burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-burger.active span:nth-child(2) {
    opacity: 0;
}
.nav-burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
}

.section-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title .accent {
    color: var(--yellow);
    text-shadow: var(--glow-yellow);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-bottom: 3rem;
    max-width: 600px;
}

.cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.cyber-grid::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(60px); }
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--cyan);
    animation: particleFloat linear infinite;
    opacity: 0;
    will-change: transform;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) translateX(100px);
        opacity: 0;
    }
}

.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.glitch::before {
    color: var(--cyan);
    z-index: -1;
    animation: glitch1 3s infinite linear alternate-reverse;
}

.glitch::after {
    color: var(--pink);
    z-index: -2;
    animation: glitch2 2s infinite linear alternate-reverse;
}

@keyframes glitch1 {
    0%, 90%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    92% { clip-path: inset(20% 0 40% 0); transform: translate(-4px, 2px); }
    94% { clip-path: inset(60% 0 10% 0); transform: translate(4px, -1px); }
    96% { clip-path: inset(30% 0 30% 0); transform: translate(-2px, 3px); }
    98% { clip-path: inset(80% 0 5% 0); transform: translate(3px, -2px); }
}

@keyframes glitch2 {
    0%, 88%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    90% { clip-path: inset(50% 0 20% 0); transform: translate(3px, -2px); }
    93% { clip-path: inset(10% 0 70% 0); transform: translate(-3px, 1px); }
    95% { clip-path: inset(40% 0 30% 0); transform: translate(2px, 3px); }
    97% { clip-path: inset(70% 0 10% 0); transform: translate(-4px, -1px); }
}

.cyber-btn {
    position: relative;
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--bg-primary);
    background: var(--yellow);
    border: none;
    cursor: pointer;
    text-decoration: none;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
    transition: all 0.2s ease;
    overflow: hidden;
    font-family: inherit;
}

.cyber-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.cyber-btn:hover::before,
.cyber-btn:focus-visible::before {
    left: 100%;
}

.cyber-btn:hover,
.cyber-btn:focus-visible {
    background: var(--cyan);
    box-shadow: var(--glow-cyan);
    transform: scale(1.05);
    outline: none;
}

.cyber-btn:active {
    transform: scale(0.98);
}

.cyber-btn-outline {
    background: transparent;
    color: var(--yellow);
    border: 2px solid var(--yellow);
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

.cyber-btn-outline:hover,
.cyber-btn-outline:focus-visible {
    background: rgba(252, 238, 10, 0.1);
    color: var(--yellow);
    border-color: var(--yellow);
    box-shadow: var(--glow-yellow);
}

.cyber-btn-glitch:hover {
    animation: btnGlitch 0.3s steps(2) infinite;
}

@keyframes btnGlitch {
    0% { transform: translate(0); }
    25% { transform: translate(-2px, 1px); }
    50% { transform: translate(2px, -1px); }
    75% { transform: translate(-1px, -1px); }
    100% { transform: translate(0); }
}

#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 240, 255, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(255, 42, 109, 0.05) 0%, transparent 50%),
        var(--bg-primary);
    overflow: hidden;
}

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

.hero-logo {
    margin-bottom: 2rem;
}

.hero-logo svg {
    width: clamp(300px, 60vw, 600px);
    height: auto;
    filter: drop-shadow(0 0 20px rgba(252, 238, 10, 0.3));
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    min-height: 2em;
}

.hero-tagline .typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background: var(--yellow);
    margin-left: 4px;
    animation: blink 0.8s infinite;
    vertical-align: middle;
}

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

.hero-location {
    font-size: 0.9rem;
    color: var(--cyan);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.hero-location .pin {
    width: 12px;
    height: 12px;
    background: var(--cyan);
    clip-path: polygon(50% 100%, 0% 35%, 0% 15%, 15% 0%, 85% 0%, 100% 15%, 100% 35%);
    flex-shrink: 0;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: scrollBounce 2s infinite;
}

.hero-scroll-indicator .arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--cyan);
    border-bottom: 2px solid var(--cyan);
    transform: rotate(45deg);
    animation: arrowPulse 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes arrowPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.hero-glitch-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--yellow);
    opacity: 0;
    z-index: 3;
    animation: heroGlitchLine 8s infinite;
}

@keyframes heroGlitchLine {
    0%, 95%, 100% { opacity: 0; top: 0; }
    96% { opacity: 0.8; top: 30%; }
    97% { opacity: 0; top: 30%; }
    98% { opacity: 0.6; top: 70%; }
    99% { opacity: 0; top: 70%; }
}

#about {
    background:
        radial-gradient(ellipse at 70% 30%, rgba(157, 78, 221, 0.05) 0%, transparent 50%),
        var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about-photo-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.about-photo {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 3 / 4;
    background: var(--bg-card);
    border: 2px solid var(--cyan);
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-photo .placeholder-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-secondary);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
}

.about-photo-border {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    max-width: 358px;
    aspect-ratio: 3 / 4;
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
    background: conic-gradient(var(--cyan), var(--yellow), var(--pink), var(--cyan));
    animation: borderRotate 4s linear infinite;
    z-index: -1;
}

@keyframes borderRotate {
    from { filter: hue-rotate(0deg); }
    to { filter: hue-rotate(360deg); }
}

.about-info {
    padding: 1rem 0;
}

.about-info .label {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 0.5rem;
}

.about-info h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.about-info h2 .accent {
    color: var(--yellow);
    text-shadow: var(--glow-yellow);
}

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

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(20, 20, 40, 0.8);
    border: 1px solid rgba(0, 240, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    animation: statLine 3s infinite;
}

@keyframes statLine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--yellow);
    text-shadow: var(--glow-yellow);
    line-height: 1;
    margin-bottom: 0.5rem;
}

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

#skills {
    background:
        radial-gradient(ellipse at 30% 70%, rgba(252, 238, 10, 0.03) 0%, transparent 50%),
        var(--bg-primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid rgba(252, 238, 10, 0.1);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    transition: all var(--transition);
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    transition: height 0.5s ease;
}

.skill-category:hover::before {
    height: 100%;
}

.skill-category:hover {
    border-color: rgba(252, 238, 10, 0.3);
    transform: translateY(-4px);
}

.skill-category:nth-child(1)::before { background: var(--yellow); }
.skill-category:nth-child(2)::before { background: var(--cyan); }
.skill-category:nth-child(3)::before { background: var(--pink); }
.skill-category:nth-child(4)::before { background: var(--purple); }
.skill-category:nth-child(5)::before { background: var(--cyan); }
.skill-category:nth-child(6)::before { background: var(--red); }

.skill-category:nth-child(1):hover { box-shadow: 0 0 30px rgba(252, 238, 10, 0.1); }
.skill-category:nth-child(2):hover { box-shadow: 0 0 30px rgba(0, 240, 255, 0.1); }
.skill-category:nth-child(3):hover { box-shadow: 0 0 30px rgba(255, 42, 109, 0.1); }
.skill-category:nth-child(4):hover { box-shadow: 0 0 30px rgba(157, 78, 221, 0.1); }
.skill-category:nth-child(5):hover { box-shadow: 0 0 30px rgba(0, 240, 255, 0.1); }
.skill-category:nth-child(6):hover { box-shadow: 0 0 30px rgba(255, 0, 60, 0.1); }

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

.skill-category h3 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.skill-category:nth-child(1) h3 { color: var(--yellow); }
.skill-category:nth-child(2) h3 { color: var(--cyan); }
.skill-category:nth-child(3) h3 { color: var(--pink); }
.skill-category:nth-child(4) h3 { color: var(--purple); }
.skill-category:nth-child(5) h3 { color: var(--cyan); }
.skill-category:nth-child(6) h3 { color: var(--red); }

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    transition: all var(--transition);
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.skill-category:nth-child(1) .skill-tag:hover { border-color: var(--yellow); color: var(--yellow); background: rgba(252, 238, 10, 0.05); }
.skill-category:nth-child(2) .skill-tag:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(0, 240, 255, 0.05); }
.skill-category:nth-child(3) .skill-tag:hover { border-color: var(--pink); color: var(--pink); background: rgba(255, 42, 109, 0.05); }
.skill-category:nth-child(4) .skill-tag:hover { border-color: var(--purple); color: var(--purple); background: rgba(157, 78, 221, 0.05); }
.skill-category:nth-child(5) .skill-tag:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(0, 240, 255, 0.05); }
.skill-category:nth-child(6) .skill-tag:hover { border-color: var(--red); color: var(--red); background: rgba(255, 0, 60, 0.05); }

#services {
    background:
        radial-gradient(ellipse at 50% 50%, rgba(255, 42, 109, 0.04) 0%, transparent 50%),
        var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-card {
    background: rgba(20, 20, 40, 0.6);
    border: 1px solid rgba(255, 42, 109, 0.1);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--pink), var(--yellow));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-card:hover {
    border-color: rgba(255, 42, 109, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 10px 40px rgba(255, 42, 109, 0.1);
}

.service-number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 42, 109, 0.1);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    line-height: 1;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--yellow);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

#portfolio {
    background:
        radial-gradient(ellipse at 60% 40%, rgba(0, 240, 255, 0.04) 0%, transparent 50%),
        var(--bg-primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--bg-card);
    border: 1px solid rgba(0, 240, 255, 0.1);
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item .placeholder-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-secondary);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity var(--transition);
    clip-path: inset(0);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    animation: portfolioGlitch 0.2s steps(2);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

@keyframes portfolioGlitch {
    0% { clip-path: inset(40% 0 50% 0); }
    25% { clip-path: inset(10% 0 60% 0); }
    50% { clip-path: inset(60% 0 10% 0); }
    75% { clip-path: inset(20% 0 30% 0); }
    100% { clip-path: inset(0); }
}

.portfolio-overlay h4 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--yellow);
    margin-bottom: 0.5rem;
    text-align: center;
}

.portfolio-overlay p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}

.portfolio-overlay .tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.portfolio-overlay .tag {
    padding: 0.2rem 0.6rem;
    font-size: 0.65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid var(--cyan);
    color: var(--cyan);
}

#contact {
    background:
        radial-gradient(ellipse at 40% 60%, rgba(252, 238, 10, 0.03) 0%, transparent 50%),
        var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.contact-info h3 .accent {
    color: var(--yellow);
}

.contact-info p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    border-left: 2px solid transparent;
    transition: all var(--transition);
}

.contact-link:hover,
.contact-link:focus-visible {
    color: var(--yellow);
    border-left-color: var(--yellow);
    background: rgba(252, 238, 10, 0.03);
    outline: none;
}

.contact-link .link-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(20, 20, 40, 0.8);
    border: 1px solid rgba(0, 240, 255, 0.15);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: all var(--transition);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--cyan);
    box-shadow: var(--glow-cyan);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(153, 153, 170, 0.5);
}

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: var(--red);
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: var(--green);
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.popup-card {
    position: relative;
    background: rgba(20, 20, 40, 0.95);
    border: 1px solid var(--yellow);
    box-shadow:
        0 0 30px rgba(252, 238, 10, 0.15),
        0 0 60px rgba(252, 238, 10, 0.05),
        inset 0 0 30px rgba(252, 238, 10, 0.03);
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
    padding: 3rem 3.5rem 2.5rem;
    text-align: center;
    max-width: 480px;
    width: 90%;
    transform: scale(0.85) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.popup-overlay.active .popup-card {
    transform: scale(1) translateY(0);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.popup-close svg {
    width: 16px;
    height: 16px;
}

.popup-close:hover,
.popup-close:focus-visible {
    border-color: var(--pink);
    color: var(--pink);
    box-shadow: 0 0 15px rgba(255, 42, 109, 0.3);
    outline: none;
}

.popup-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    border: 2px solid var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yellow);
    box-shadow: var(--glow-yellow);
    animation: popupIconPulse 2s ease-in-out infinite;
    position: relative;
}

.popup-icon svg {
    width: 36px;
    height: 36px;
}

@keyframes popupIconPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(252, 238, 10, 0.3); }
    50% { box-shadow: 0 0 25px rgba(252, 238, 10, 0.6), 0 0 50px rgba(252, 238, 10, 0.2); }
}

.popup-title {
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--yellow);
    text-shadow: var(--glow-yellow);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.popup-text {
    font-size: 1rem;
    color: var(--cyan);
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    animation: popupTextGlitch 4s infinite;
}

@keyframes popupTextGlitch {
    0%, 92%, 100% { opacity: 1; transform: translate(0); }
    93% { opacity: 0.8; transform: translate(-2px, 1px); color: var(--pink); }
    95% { opacity: 0.9; transform: translate(2px, -1px); }
    97% { opacity: 0.8; transform: translate(-1px, -1px); color: var(--cyan); }
}

.popup-decor {
    width: 100%;
    height: 3px;
    margin-top: 2rem;
    background: linear-gradient(90deg, transparent, var(--yellow), var(--pink), var(--cyan), transparent);
    opacity: 0.6;
    animation: popupDecorShift 3s linear infinite;
}

@keyframes popupDecorShift {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.popup-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 1;
}

.popup-card::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    border: 1px solid rgba(0, 240, 255, 0.1);
    pointer-events: none;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
    z-index: 1;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--cyan);
    color: var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
    background: var(--cyan);
    color: var(--bg-primary);
    box-shadow: var(--glow-cyan);
    outline: none;
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

.footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    background: var(--bg-primary);
}

.footer p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer .accent {
    color: var(--yellow);
}

.neon-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    margin: 2rem 0;
    opacity: 0.3;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

.corner-decor {
    position: absolute;
    width: 40px;
    height: 40px;
    pointer-events: none;
}

.corner-decor.top-left {
    top: 20px;
    left: 20px;
    border-top: 2px solid var(--cyan);
    border-left: 2px solid var(--cyan);
}

.corner-decor.top-right {
    top: 20px;
    right: 20px;
    border-top: 2px solid var(--cyan);
    border-right: 2px solid var(--cyan);
}

.corner-decor.bottom-left {
    bottom: 20px;
    left: 20px;
    border-bottom: 2px solid var(--cyan);
    border-left: 2px solid var(--cyan);
}

.corner-decor.bottom-right {
    bottom: 20px;
    right: 20px;
    border-bottom: 2px solid var(--cyan);
    border-right: 2px solid var(--cyan);
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
    box-shadow: 0 0 8px var(--green);
    flex-shrink: 0;
}

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

.moving-line {
    position: absolute;
    width: 100%;
    height: 1px;
    overflow: hidden;
    pointer-events: none;
}

.moving-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -30%;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--yellow), transparent);
    animation: moveLine 5s linear infinite;
}

@keyframes moveLine {
    0% { left: -30%; }
    100% { left: 100%; }
}

.status-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(20, 20, 40, 0.6);
    border: 1px solid rgba(0, 240, 255, 0.1);
    margin-bottom: 2rem;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.status-bar .status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.data-stream {
    position: absolute;
    right: 2rem;
    top: 0;
    width: 1px;
    height: 100%;
    overflow: hidden;
    opacity: 0.15;
    pointer-events: none;
}

.data-stream::after {
    content: '01001 10110 01101 11001 00110 10010 01101 11010 00101 10101 01010 11001 00110 10110 01100 10011 11001 01010 00110 10101 11010 01001 10110 01101 11001 00110 10010';
    position: absolute;
    top: 0;
    left: 0;
    font-family: monospace;
    font-size: 0.6rem;
    color: var(--cyan);
    writing-mode: vertical-rl;
    line-height: 1.5;
    animation: dataScroll 30s linear infinite;
}

@keyframes dataScroll {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.hex-pattern {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 150px;
    height: 150px;
    opacity: 0.05;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%2300F0FF' fill-opacity='1'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: no-preference) {
    .crt-flicker {
        animation: crtFlicker 0.15s infinite;
    }
}

@keyframes crtFlicker {
    0% { opacity: 0.97; }
    50% { opacity: 1; }
    100% { opacity: 0.98; }
}

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

    .reveal {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}

.cyber-player {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 998;
    width: 320px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 240, 255, 0.2);
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    padding: 1rem 1.2rem;
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
}

.cyber-player.visible {
    opacity: 1;
    transform: translateY(0);
}

.cyber-player.hidden-manual {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.player-label {
    font-size: 0.6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cyan);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.player-label .eq-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}

.player-label .eq-bar {
    width: 2px;
    background: var(--yellow);
    animation: eqBounce 0.8s ease infinite;
}

.player-label .eq-bar:nth-child(1) { height: 4px; animation-delay: 0s; }
.player-label .eq-bar:nth-child(2) { height: 8px; animation-delay: 0.15s; }
.player-label .eq-bar:nth-child(3) { height: 6px; animation-delay: 0.3s; }
.player-label .eq-bar:nth-child(4) { height: 10px; animation-delay: 0.1s; }

.player-label .eq-bars.paused .eq-bar {
    animation: none;
    height: 3px !important;
}

@keyframes eqBounce {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.3); }
}

.player-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 2px 4px;
    font-size: 0.9rem;
    transition: color var(--transition);
    line-height: 1;
}

.player-close:hover,
.player-close:focus-visible {
    color: var(--pink);
    outline: none;
}

.player-track-info {
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.player-track-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--yellow);
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-track-number {
    font-size: 0.6rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.player-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    margin-bottom: 0.3rem;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px));
}

.player-progress:hover {
    height: 6px;
}

.player-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--yellow), var(--pink));
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
}

.player-progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--yellow);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: var(--glow-yellow);
}

.player-progress:hover .player-progress-fill::after {
    opacity: 1;
}

.player-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    font-family: monospace;
    margin-bottom: 0.6rem;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.6rem;
}

.player-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px));
    padding: 0;
}

.player-btn:hover,
.player-btn:focus-visible {
    border-color: var(--yellow);
    color: var(--yellow);
    box-shadow: var(--glow-yellow);
    outline: none;
}

.player-btn:active {
    transform: scale(0.92);
}

.player-btn svg {
    width: 14px;
    height: 14px;
    pointer-events: none;
}

.player-btn-play {
    width: 40px;
    height: 40px;
    border-color: var(--yellow);
    color: var(--yellow);
}

.player-btn-play:hover {
    background: var(--yellow);
    color: var(--bg-primary);
}

.player-btn-play svg {
    width: 16px;
    height: 16px;
}

.player-volume {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.player-volume-icon {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition);
}

.player-volume-icon:hover,
.player-volume-icon:focus-visible {
    color: var(--cyan);
    outline: none;
}

.player-volume-icon svg {
    width: 14px;
    height: 14px;
    pointer-events: none;
}

.player-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
    border-radius: 0;
}

.player-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    background: var(--cyan);
    cursor: pointer;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.player-volume-slider::-moz-range-thumb {
    width: 10px;
    height: 10px;
    background: var(--cyan);
    cursor: pointer;
    border: none;
    border-radius: 0;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.player-volume-slider::-webkit-slider-runnable-track {
    height: 3px;
}

.player-volume-slider::-moz-range-track {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.player-toggle {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 997;
    width: 44px;
    height: 44px;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid var(--yellow);
    color: var(--yellow);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    box-shadow: var(--glow-yellow);
}

.player-toggle.visible {
    display: flex;
}

.player-toggle:hover,
.player-toggle:focus-visible {
    background: var(--yellow);
    color: var(--bg-primary);
    outline: none;
}

.player-toggle svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .cyber-player,
    .player-toggle {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-photo-wrapper {
        display: flex;
        justify-content: center;
    }

    .about-stats {
        max-width: 500px;
        margin: 0 auto;
    }

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

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

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .contact-links {
        align-items: center;
    }
}

@media (max-width: 768px) {
    section {
        padding: 5rem 1.5rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(10, 10, 15, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        padding: 2rem;
        transition: right var(--transition);
        border-left: 1px solid rgba(0, 240, 255, 0.2);
    }

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

    .nav-burger {
        display: flex;
    }

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

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

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

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

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

    .hero-buttons .cyber-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .cursor-glow {
        display: none;
    }

    .cyber-player {
        display: none !important;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .nav {
        padding: 0.75rem 1rem;
    }

    section {
        padding: 4rem 1rem;
    }

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

    .stat-item {
        padding: 1rem;
    }

    .skill-category {
        padding: 1.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .contact-grid {
        gap: 2rem;
    }
}

.parallax-layer {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.terminal-monitor {
    grid-column: 1 / -1;
    margin-top: 3rem;
    perspective: 800px;
}

.terminal-monitor-frame {
    background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 50%, #1a1a1a 100%);
    border: 3px solid #2a2a2a;
    border-radius: 12px;
    padding: 1.5rem 1.5rem 0.8rem;
    position: relative;
    box-shadow:
        0 0 0 1px rgba(57, 255, 20, 0.05),
        0 8px 32px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.terminal-monitor-screen {
    background: #020A02;
    border: 2px solid #1a3a1a;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow:
        inset 0 0 60px rgba(57, 255, 20, 0.03),
        inset 0 0 120px rgba(57, 255, 20, 0.02),
        0 0 15px rgba(57, 255, 20, 0.08);
}

.terminal-screen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(0, 0, 0, 0.15) 1px,
            rgba(0, 0, 0, 0.15) 2px
        );
    animation: terminalCRTFlicker 0.1s infinite;
}

@keyframes terminalCRTFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.985; }
}

.terminal-monitor-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(
        ellipse at center,
        transparent 60%,
        rgba(0, 0, 0, 0.4) 100%
    );
    border-radius: 8px;
}

.terminal-monitor-brand {
    text-align: center;
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 0.55rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #333;
    padding: 0.6rem 0 0.2rem;
    border-top: 1px solid #1a1a1a;
    margin-top: 0.5rem;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: rgba(57, 255, 20, 0.03);
    border-bottom: 1px solid rgba(57, 255, 20, 0.1);
    position: relative;
    z-index: 1;
}

.terminal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 4px currentColor;
}

.terminal-dot:nth-child(1) { background: #FF003C; color: #FF003C; }
.terminal-dot:nth-child(2) { background: #FCEE0A; color: #FCEE0A; }
.terminal-dot:nth-child(3) { background: #39FF14; color: #39FF14; }

.terminal-title {
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 0.65rem;
    color: rgba(57, 255, 20, 0.5);
    letter-spacing: 2px;
    margin-left: 0.5rem;
    text-transform: uppercase;
}

.terminal-body {
    padding: 1.2rem 1.5rem 1rem;
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 2;
    color: #39FF14;
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.6), 0 0 20px rgba(57, 255, 20, 0.2);
    position: relative;
    z-index: 1;
}

.terminal-line {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.terminal-line.visible {
    opacity: 1;
    transform: translateX(0);
}

.terminal-success {
    color: #39FF14;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.8), 0 0 25px rgba(57, 255, 20, 0.4);
}

.terminal-accent {
    color: #00F0FF;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.6), 0 0 20px rgba(0, 240, 255, 0.3);
}

.terminal-cursor-line {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
}

.terminal-prompt {
    color: #39FF14;
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.6);
}

.terminal-cursor-blink {
    animation: terminalBlink 1s step-end infinite;
    color: #39FF14;
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.6);
}

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

.terminal-monitor.terminal-done {
    animation: terminalPowerOff 1.2s ease-out forwards;
}

@keyframes terminalPowerOff {
    0% { transform: scale(1); opacity: 1; filter: brightness(1); }
    15% { transform: scale(1.01); filter: brightness(1.8); }
    30% { transform: scale(1); filter: brightness(0.3); }
    50% { transform: scaleY(0.005) scaleX(1.1); filter: brightness(2); opacity: 0.8; }
    70% { transform: scaleY(0.005) scaleX(0.8); filter: brightness(1.5); opacity: 0.4; }
    100% { transform: scaleY(0) scaleX(0); filter: brightness(0); opacity: 0; margin-top: 0; padding: 0; max-height: 0; overflow: hidden; }
}

.terminal-monitor.terminal-collapsed {
    display: none;
}

body.fast-scroll-glitch {
    animation: fastScrollGlitch 0.3s steps(2);
}

@keyframes fastScrollGlitch {
    0% { filter: none; }
    25% { filter: hue-rotate(20deg) saturate(2); text-shadow: -3px 0 #FF2A6D, 3px 0 #00F0FF; }
    50% { filter: hue-rotate(-10deg); text-shadow: 2px 0 #FCEE0A, -2px 0 #9D4EDD; }
    75% { filter: hue-rotate(5deg) saturate(1.5); }
    100% { filter: none; text-shadow: none; }
}

::selection {
    background: rgba(252, 238, 10, 0.3);
    color: #FCEE0A;
}

::-moz-selection {
    background: rgba(252, 238, 10, 0.3);
    color: #FCEE0A;
}

body.konami-active {
    animation: konamiChaos 0.5s steps(3) infinite;
}

body.konami-active::after {
    opacity: 0.15 !important;
}

@keyframes konamiChaos {
    0% { filter: hue-rotate(0deg); text-shadow: -2px 0 #FF2A6D, 2px 0 #00F0FF; }
    33% { filter: hue-rotate(120deg); text-shadow: 2px 0 #FCEE0A, -2px 0 #9D4EDD; }
    66% { filter: hue-rotate(240deg); text-shadow: -1px 1px #FF2A6D, 1px -1px #00F0FF; }
    100% { filter: hue-rotate(360deg); text-shadow: none; }
}

.skill-bars {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.skill-bar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skill-bar-label {
    font-size: 0.65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    min-width: 120px;
    text-align: right;
    flex-shrink: 0;
}

.skill-bar-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px));
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    width: 0%;
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skill-bar-fill.filled {
    width: var(--fill-level);
}

.skill-category:nth-child(1) .skill-bar-fill { background: var(--yellow); box-shadow: 0 0 8px rgba(252, 238, 10, 0.4); }
.skill-category:nth-child(2) .skill-bar-fill { background: var(--cyan); box-shadow: 0 0 8px rgba(0, 240, 255, 0.4); }
.skill-category:nth-child(3) .skill-bar-fill { background: var(--pink); box-shadow: 0 0 8px rgba(255, 42, 109, 0.4); }
.skill-category:nth-child(4) .skill-bar-fill { background: var(--purple); box-shadow: 0 0 8px rgba(157, 78, 221, 0.4); }
.skill-category:nth-child(5) .skill-bar-fill { background: var(--cyan); box-shadow: 0 0 8px rgba(0, 240, 255, 0.4); }
.skill-category:nth-child(6) .skill-bar-fill { background: var(--red); box-shadow: 0 0 8px rgba(255, 0, 60, 0.4); }

.skill-category:nth-child(1) .skill-bar-label { color: rgba(252, 238, 10, 0.7); }
.skill-category:nth-child(2) .skill-bar-label { color: rgba(0, 240, 255, 0.7); }
.skill-category:nth-child(3) .skill-bar-label { color: rgba(255, 42, 109, 0.7); }
.skill-category:nth-child(4) .skill-bar-label { color: rgba(157, 78, 221, 0.7); }
.skill-category:nth-child(5) .skill-bar-label { color: rgba(0, 240, 255, 0.7); }
.skill-category:nth-child(6) .skill-bar-label { color: rgba(255, 0, 60, 0.7); }

.skill-category:nth-child(1) .skill-bar-track { border-color: rgba(252, 238, 10, 0.15); }
.skill-category:nth-child(2) .skill-bar-track { border-color: rgba(0, 240, 255, 0.15); }
.skill-category:nth-child(3) .skill-bar-track { border-color: rgba(255, 42, 109, 0.15); }
.skill-category:nth-child(4) .skill-bar-track { border-color: rgba(157, 78, 221, 0.15); }
.skill-category:nth-child(5) .skill-bar-track { border-color: rgba(0, 240, 255, 0.15); }
.skill-category:nth-child(6) .skill-bar-track { border-color: rgba(255, 0, 60, 0.15); }

.theme-toggle {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid rgba(252, 238, 10, 0.3);
    color: var(--yellow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all var(--transition);
    clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
    flex-shrink: 0;
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    border-color: var(--yellow);
    box-shadow: 0 0 10px rgba(252, 238, 10, 0.3);
    background: rgba(252, 238, 10, 0.05);
    outline: none;
}

.theme-icon-blade {
    display: none;
}

[data-theme="bladerunner"] .theme-icon-cyber {
    display: none;
}

[data-theme="bladerunner"] .theme-icon-blade {
    display: block;
}

[data-theme="bladerunner"] {
    --yellow: #FF6B00;
    --cyan: #00C9A7;
    --pink: #FF4500;
    --purple: #1A936F;
    --bg-primary: #0A0A0F;
    --bg-secondary: #0F1118;
    --bg-card: #12151E;
    --text-primary: #E8E0D4;
    --text-secondary: #8A8078;
    --glow-yellow: 0 0 10px #FF6B00, 0 0 40px rgba(255, 107, 0, 0.3);
    --glow-cyan: 0 0 10px #00C9A7, 0 0 40px rgba(0, 201, 167, 0.3);
    --glow-pink: 0 0 10px #FF4500, 0 0 40px rgba(255, 69, 0, 0.3);
}

[data-theme="bladerunner"] .skill-category:nth-child(1) .skill-bar-fill {
    background: #FF6B00;
    box-shadow: 0 0 8px rgba(255, 107, 0, 0.4);
}

[data-theme="bladerunner"] .skill-category:nth-child(2) .skill-bar-fill {
    background: #00C9A7;
    box-shadow: 0 0 8px rgba(0, 201, 167, 0.4);
}

[data-theme="bladerunner"] .skill-category:nth-child(3) .skill-bar-fill {
    background: #FF4500;
    box-shadow: 0 0 8px rgba(255, 69, 0, 0.4);
}

[data-theme="bladerunner"] .skill-category:nth-child(4) .skill-bar-fill {
    background: #1A936F;
    box-shadow: 0 0 8px rgba(26, 147, 111, 0.4);
}

[data-theme="bladerunner"] .skill-category:nth-child(5) .skill-bar-fill {
    background: #00B4D8;
    box-shadow: 0 0 8px rgba(0, 180, 216, 0.4);
}

[data-theme="bladerunner"] .skill-category:nth-child(6) .skill-bar-fill {
    background: #FF2A6D;
    box-shadow: 0 0 8px rgba(255, 42, 109, 0.4);
}

[data-theme="bladerunner"] .skill-category:nth-child(5) h3 { color: #00B4D8; }
[data-theme="bladerunner"] .skill-category:nth-child(6) h3 { color: #FF2A6D; }

[data-theme="bladerunner"] .terminal-body {
    color: #FF6B00;
    text-shadow: 0 0 8px rgba(255, 107, 0, 0.6), 0 0 20px rgba(255, 107, 0, 0.2);
}

[data-theme="bladerunner"] .terminal-success {
    color: #00C9A7;
    text-shadow: 0 0 10px rgba(0, 201, 167, 0.8), 0 0 25px rgba(0, 201, 167, 0.4);
}

[data-theme="bladerunner"] .terminal-accent {
    color: #FF6B00;
    text-shadow: 0 0 8px rgba(255, 107, 0, 0.6), 0 0 20px rgba(255, 107, 0, 0.3);
}

[data-theme="bladerunner"] .terminal-prompt,
[data-theme="bladerunner"] .terminal-cursor-blink {
    color: #FF6B00;
    text-shadow: 0 0 8px rgba(255, 107, 0, 0.6);
}

[data-theme="bladerunner"] .terminal-header {
    background: rgba(255, 107, 0, 0.03);
    border-bottom-color: rgba(255, 107, 0, 0.1);
}

[data-theme="bladerunner"] .terminal-title {
    color: rgba(255, 107, 0, 0.5);
}

[data-theme="bladerunner"] .terminal-monitor-frame {
    border-color: #2a2015;
}

[data-theme="bladerunner"] .terminal-monitor-screen {
    background: #0A0502;
    border-color: #2a1a0a;
    box-shadow:
        inset 0 0 60px rgba(255, 107, 0, 0.03),
        inset 0 0 120px rgba(255, 107, 0, 0.02),
        0 0 15px rgba(255, 107, 0, 0.08);
}
