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

body {
    font-family: 'Arial', sans-serif;
    background: #0f0f0f;
    color: #fff;
    overflow-x: hidden;
    overflow-y: auto;
}

body.lock-scroll {
    overflow: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header — GPU layer + эпичное свечение */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.98);
    border-bottom: 1px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.15), 0 4px 20px rgba(0, 0, 0, 0.3);
    contain: layout style paint;
    transform: translateZ(0);
}

.header-video,
.header-video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.header-video-fallback {
    background: radial-gradient(ellipse 80% 50% at 50% 50%, rgba(255,107,53,0.08) 0%, transparent 70%);
}

nav {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    max-width: 100%;
    margin: 0;
    padding: 0 0.5rem;
    gap: 1rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #00ff88, #00d4aa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .logo {
    color: #00ff88;
    background: none;
    -webkit-text-fill-color: unset;
}

.logo-subtitle {
    font-size: 0.8rem;
    color: #aaa;
}

.about-site-btn {
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid rgba(0, 255, 136, 0.5);
    color: #00ff88;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
    font-family: 'Consolas', 'Monaco', monospace;
}

.about-site-btn:hover {
    background: rgba(0, 255, 136, 0.25);
    color: #00ff88;
    box-shadow: 0 0 18px rgba(0, 255, 136, 0.4);
}

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

.nav-menu a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.nav-menu a:hover {
    color: #00ff88;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin-top: 60px;
    overflow: hidden;
    padding-top: 15rem;
}

.hero-bg,
.hero-video-fallback {
    position: absolute;
    top: 3%;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg {
    background-image: url('/assets/images/desktop invest.png');
    background-size: cover;
    background-position: center 70%;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    .hero-bg {
        background-image: url('/assets/images/hero imajes Mobile.jpg');
    }
}

.hero-video-fallback {
    background: radial-gradient(ellipse 70% 90% at 50% 15%, rgba(0,255,136,0.15) 0%, rgba(0,255,136,0.04) 35%, transparent 65%);
    pointer-events: none;
}

.hero-content {
    text-align: left;
    z-index: 1;
    margin-left: 0;
    padding: 2rem 0;
    padding-left: 2rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #00ff88;
    font-weight: bold;
    letter-spacing: 2px;
    overflow: hidden;
    white-space: nowrap;
    animation: typing 0.8s steps(8, end) 0s forwards;
    width: fit-content;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.4);
}

.hero .word {
    color: #00ff88;
    margin-bottom: 0.5rem;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    animation: typing 0.8s steps(50, end) forwards;
}

.hero h1.word {
    animation-delay: 0s;
    font-size: 4rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.hero .word:nth-of-type(2) {
    animation-delay: 1s;
    font-size: 2rem;
}

.hero .word:nth-of-type(3) {
    animation-delay: 2s;
    font-size: 1.5rem;
}

.hero .word:nth-of-type(4) {
    animation-delay: 3s;
    font-size: 1.5rem;
}

.hero .word:nth-of-type(5) {
    animation-delay: 4s;
    font-size: 1.5rem;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* Projects Section — хакерский стиль */
.projects {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0a0a0d 0%, #0d0f14 50%, #0a0a0d 100%);
    position: relative;
    overflow: hidden;
    background-image: url('/assets/images/1674619824_19-7fon-club-p-oboi-noutbuk-chb-19.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}

.projects-hacker::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 136, 0.02) 2px,
        rgba(0, 255, 136, 0.02) 4px
    );
    pointer-events: none;
    z-index: 0;
}

.projects-scanline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        180deg,
        transparent 0px,
        transparent 2px,
        rgba(0, 255, 136, 0.015) 2px,
        rgba(0, 255, 136, 0.015) 3px
    );
    pointer-events: none;
    z-index: 0;
}

.projects .container {
    position: relative;
    z-index: 1;
}

.projects-header {
    text-align: center;
    margin-bottom: 2rem;
}

.projects-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #00ff88;
    font-weight: bold;
    text-shadow: 0 0 25px rgba(0, 255, 136, 0.5);
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    letter-spacing: 0.15em;
}

.projects-subtitle {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    color: rgba(0, 255, 136, 0.6);
    letter-spacing: 0.05em;
}

.projects-subtitle.typewriter::after,
.skills-subtitle.typewriter::after,
.contact-subtitle.typewriter::after,
.projects-grid-label.typewriter::after,
.footer-copy.typewriter::after {
    content: '▌';
    animation: blink 1s step-end infinite;
    color: #00ff88;
}

.pot-link.typewriter::after {
    content: '';
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Project of the Year — по центру под заголовком */
.project-of-year-wrapper {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.project-of-year {
    display: block;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(135deg, rgba(0, 20, 15, 0.95) 0%, rgba(0, 30, 20, 0.9) 100%);
    border: 2px solid #00ff88;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2), inset 0 0 60px rgba(0, 255, 136, 0.03);
}

.project-of-year:hover {
    border-color: #00ff88;
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.5), 0 0 100px rgba(0, 255, 136, 0.2);
    transform: translateY(-4px);
}

.pot-badge {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(0, 255, 136, 0.3);
}

.pot-preview {
    line-height: 0;
}

.pot-preview img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.pot-content {
    padding: 1.5rem 2rem;
}

.pot-title {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 1.5rem;
    color: #00ff88;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.pot-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.pot-link {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    color: rgba(0, 255, 136, 0.9);
}

/* Abatherapy Bot tg — компактный блок под проектом года */
.project-bot-tg {
    display: flex;
    flex-direction: column;
    max-width: 320px;
    margin: 0 auto 3rem;
    text-decoration: none;
    color: inherit;
    background: rgba(0, 30, 20, 0.6);
    border: 1px solid rgba(0, 255, 136, 0.25);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.25s;
}

.project-bot-tg:hover {
    border-color: rgba(0, 255, 136, 0.6);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
}

.pbt-preview {
    line-height: 0;
}

.pbt-preview {
    display: flex;
    justify-content: center;
}

.pbt-preview img {
    width: 33.33%;
    height: auto;
    display: block;
    object-fit: contain;
}

.pbt-content {
    padding: 1rem 1.25rem;
}

.pbt-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #0a0a0a;
    background: #00ff88;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.pbt-title {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 1.1rem;
    color: #00ff88;
    margin-bottom: 0.3rem;
}

.pbt-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.pbt-link {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.75rem;
    color: rgba(0, 255, 136, 0.8);
}

@media (min-width: 769px) {
    .project-bot-tg {
        max-width: 480px;
    }
    .pbt-content {
        padding-bottom: 0.5rem;
    }
}

.projects-grid-label {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.8rem;
    color: rgba(0, 255, 136, 0.5);
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    min-height: 1.2em;
}

.projects-grid-label.typewriter::after {
    content: '▌';
    animation: blink 1s step-end infinite;
    color: #00ff88;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: linear-gradient(135deg, rgba(10, 25, 30, 0.95) 0%, rgba(5, 15, 20, 0.95) 100%);
    border: 1px solid rgba(0, 255, 136, 0.25);
    border-radius: 4px;
    padding: 2rem 2rem 2rem 2.25rem;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    contain: layout style paint;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.05);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #00ff88, transparent);
    opacity: 0.6;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 255, 136, 0.6);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.25), 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-card:hover::before {
    opacity: 1;
    box-shadow: 0 0 10px #00ff88;
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #00ff88;
    font-weight: bold;
    font-family: 'Consolas', 'Monaco', monospace;
}

.project-card p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.expand-btn {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.5);
    color: #00ff88;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
}

.expand-btn:hover {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.project-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 255, 136, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

/* Skills Section — хакерский стиль */
.skills {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0d 0%, #0d0f14 50%, #0a0a0d 100%);
    background-image: url('/assets/images/asset-v1_NYIF+ECS-IBFx+1T2020+type@asset+block@course_image.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    background-color: rgba(0, 0, 0, 0.5);
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}

.skills-hacker::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 136, 0.02) 2px,
        rgba(0, 255, 136, 0.02) 4px
    );
    pointer-events: none;
    z-index: 0;
}

.skills-scanline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        180deg,
        transparent 0px,
        transparent 2px,
        rgba(0, 255, 136, 0.015) 2px,
        rgba(0, 255, 136, 0.015) 3px
    );
    pointer-events: none;
    z-index: 0;
}

.skills .container {
    position: relative;
    z-index: 1;
}

.skills-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.skills-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #00ff88;
    font-weight: bold;
    text-shadow: 0 0 25px rgba(0, 255, 136, 0.5);
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    letter-spacing: 0.15em;
}

.skills-subtitle {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    color: rgba(0, 255, 136, 0.6);
    letter-spacing: 0.05em;
}

/* Skills track — горизонтальный скролл технологий */
.skills-track-wrap {
    overflow: hidden;
    position: relative;
    margin-bottom: 2.5rem;
}
.skills-track-wrap::before,
.skills-track-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 3;
    pointer-events: none;
}
.skills-track-wrap::before {
    left: 0;
    background: linear-gradient(90deg, rgba(10, 25, 30, 0.98), transparent);
}
.skills-track-wrap::after {
    right: 0;
    background: linear-gradient(-90deg, rgba(10, 25, 30, 0.98), transparent);
}
.skills-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: skills-marquee 28s linear infinite;
    margin-bottom: 16px;
}
.skills-track.reverse {
    animation-direction: reverse;
    animation-duration: 35s;
}
@keyframes skills-marquee {
    to { transform: translateX(-50%); }
}
.skill-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    background: rgba(10, 25, 30, 0.9);
    white-space: nowrap;
    font-size: 12px;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    transition: border-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.skill-chip:hover {
    border-color: rgba(0, 255, 136, 0.6);
    color: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.15);
}
.skill-chip .skill-icon {
    font-size: 18px;
}
.skill-chip .skill-level {
    font-size: 9px;
    letter-spacing: 2px;
    color: #00ff88;
    text-transform: uppercase;
    border: 1px solid rgba(0, 255, 136, 0.3);
    padding: 2px 8px;
}

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

.skill-card {
    background: linear-gradient(135deg, rgba(10, 25, 30, 0.95) 0%, rgba(5, 15, 20, 0.95) 100%);
    border: 1px solid rgba(0, 255, 136, 0.25);
    border-radius: 4px;
    padding: 2rem 2rem 2rem 2.25rem;
    text-align: center;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.3s;
    contain: layout style paint;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.05);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #00ff88, transparent);
    opacity: 0.6;
}

.skill-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 255, 136, 0.6);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.25), 0 12px 35px rgba(0, 0, 0, 0.25);
}

.skill-card:hover::before {
    opacity: 1;
    box-shadow: 0 0 10px #00ff88;
}

.skill-card h3 {
    font-size: 1.2rem;
    color: #00ff88;
    margin-bottom: 1rem;
    font-family: 'Consolas', 'Monaco', monospace;
}

.skill-card p {
    color: rgba(255, 255, 255, 0.75);
}

/* Contact Section — хакерский стиль */
.contact {
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: auto 400px;
    background: linear-gradient(135deg, #0a0a0d 0%, #0d0f14 50%, #0a0a0d 100%);
}

.contact-hacker::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 136, 0.02) 2px,
        rgba(0, 255, 136, 0.02) 4px
    );
    pointer-events: none;
    z-index: 0;
}

.contact-scanline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        180deg,
        transparent 0px,
        transparent 2px,
        rgba(0, 255, 136, 0.015) 2px,
        rgba(0, 255, 136, 0.015) 3px
    );
    pointer-events: none;
    z-index: 0;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #00ff88;
    font-weight: bold;
    text-shadow: 0 0 25px rgba(0, 255, 136, 0.5);
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    letter-spacing: 0.15em;
}

.contact-subtitle {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    color: rgba(0, 255, 136, 0.6);
    letter-spacing: 0.05em;
    min-height: 1.4em;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #00ff88;
    font-family: 'Consolas', 'Monaco', monospace;
}

.contact-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
    text-decoration: none;
    border: 1px solid rgba(0, 255, 136, 0.5);
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s;
    font-family: 'Consolas', 'Monaco', monospace;
}

.contact-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.4);
    background: rgba(0, 255, 136, 0.25);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 136, 0.25);
    border-radius: 4px;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    color: #00ff88;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-family: 'Consolas', 'Monaco', monospace;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.25);
    border-radius: 4px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(0, 255, 136, 0.6);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

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

.error-message {
    display: block;
    color: #ff4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    min-height: 1.2rem;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ff4444;
}

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

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: #4CAF50;
}

.contact-alternative {
    margin-top: 2rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 255, 136, 0.2);
}

.contact-alternative p {
    margin-bottom: 1rem;
    color: rgba(0, 255, 136, 0.8);
}

.contact-content > p {
    color: rgba(0, 255, 136, 0.7);
    font-family: 'Consolas', 'Monaco', monospace;
    margin-bottom: 1.5rem;
}

.telegram-btn {
    display: inline-block;
}

/* Footer */
footer {
    background: #0a0a0a;
    padding: 3rem 0;
    border-top: 1px solid rgba(0, 255, 136, 0.2);
    position: relative;
    overflow: hidden;
}

footer .container {
    position: relative;
    z-index: 1;
}

.footer-video,
.footer-video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.footer-video-fallback {
    background: linear-gradient(180deg, transparent 0%, rgba(0,255,136,0.04) 100%);
}

.footer-hacker {
    background: linear-gradient(180deg, #0a0a0d 0%, #0d0f14 100%);
}

.footer-copy {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    color: rgba(0, 255, 136, 0.7);
}

footer h3 {
    color: #00ff88;
    margin-bottom: 1.5rem;
    font-family: 'Consolas', 'Monaco', monospace;
}

.tech-icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tech-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s;
}

.tech-icon-wrapper:hover {
    background: rgba(0, 255, 136, 0.1);
    transform: translateY(-3px);
}

.tech-label {
    font-size: 0.85rem;
    color: #aaa;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

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

    .tech-icons-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }

    .projects {
        background-color: #0a0a0d;
        background-image: url('/assets/images/Screenshot_2_projects_mobile.png') !important;
        background-size: 100% auto;
        background-repeat: no-repeat;
        background-position: center top;
        min-height: 100vh;
    }

    .project-of-year-wrapper {
        margin-bottom: 2rem;
    }

    .projects-title,
    .skills-title {
        font-size: 1.8rem;
        letter-spacing: 0.1em;
        color: #33ff99 !important;
        text-shadow: 0 0 10px rgba(0, 255, 136, 0.6),
                     0 2px 6px rgba(0, 0, 0, 0.95),
                     0 0 2px #000 !important;
    }

    .pot-content {
        padding: 1rem 1.25rem;
    }

    .skills {
        background-image: url('/assets/images/Mobilephoto/Screenshot_2.png') !important;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: right center;
        min-height: 100vh;
    }

    .hero {
        padding-top: 8rem;
        overflow: hidden;
    }

    .hero-content {
        margin-left: 0;
        padding-left: 1rem;
    }

    .hero-content img {
        max-width: 160px !important;
        width: 160px !important;
        height: auto;
        margin-bottom: -2rem !important;
    }

    .hero h1,
    .hero .word {
        color: #33ff99 !important;
        text-shadow: 0 0 12px rgba(0, 255, 136, 0.9),
                     0 0 24px rgba(0, 255, 136, 0.6),
                     0 2px 6px rgba(0, 0, 0, 0.95),
                     0 0 2px #000 !important;
    }

    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.4rem;
    }

    .hero .word:nth-of-type(2) {
        font-size: 1.2rem !important;
    }

    .hero .word:nth-of-type(3),
    .hero .word:nth-of-type(4),
    .hero .word:nth-of-type(5) {
        font-size: 1rem !important;
    }

    .hero .word[style*="font-size: 2rem"] {
        font-size: 1.2rem !important;
    }
}

.fade-in {
    animation: fadeInUp 1s ease-out;
}

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

.projects-skills-combined {
    position: relative;
}

.combined-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    z-index: -1;
}

main {
    position: relative;
    contain: layout;
}

#transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    display: none;
}

/* Код по бокам — хакерский декор */
.code-side {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 56px;
    max-width: 6vw;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 2rem 0.5rem;
}

.code-side-left {
    left: 0;
    align-items: flex-start;
}

.code-side-right {
    right: 0;
    align-items: flex-end;
}

.code-side-line {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.6rem;
    color: rgba(0, 255, 136, 0.35);
    line-height: 1.8;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

.code-side-right .code-side-line {
    writing-mode: vertical-lr;
    transform: rotate(0deg);
}

@media (max-width: 900px) {
    .code-side {
        width: 32px;
        max-width: 10vw;
        padding: 1.5rem 0.25rem;
    }

    .code-side-line {
        font-size: 0.5rem;
        color: rgba(0, 255, 136, 0.25);
    }
}

/* Scroll Progress Bar — transform + свечение */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #00ff88, #00d4aa);
    z-index: 10000;
    transform-origin: left;
    transform: scaleX(0);
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.6);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.9), rgba(0, 212, 170, 0.9));
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.6), 0 8px 25px rgba(0, 255, 136, 0.3);
}

.back-to-top:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}


/* Lazy Loading Images */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}
