/* Modern Dark Theme with Purple Accents */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #14141f;
    --accent-primary: #9d4edd;
    --accent-secondary: #7b2cbf;
    --accent-glow: rgba(157, 78, 221, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --glass-bg: rgba(20, 20, 31, 0.7);
    --glass-border: rgba(157, 78, 221, 0.2);
}

body {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header/Large Header */
.large-header {
    position: relative;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    overflow: hidden;
    z-index: 1;
}

.large-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            radial-gradient(circle at 20% 50%, rgba(157, 78, 221, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(123, 44, 191, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Main Block */
.main-block {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    background-color: transparent;
    z-index: 999;
    padding: 20px;
}

/* Glass Card Effect */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(157, 78, 221, 0.1),
            0 0 20px var(--accent-glow);
    max-width: 950px;
    width: 100%;
    padding: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow:
            0 12px 48px rgba(0, 0, 0, 0.4),
            0 0 0 1px rgba(157, 78, 221, 0.2),
            0 0 30px var(--accent-glow);
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Typography */
h4 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.glitch-text {
    position: relative;
    animation: glitch 3s infinite;
}

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

.glitch-text::before {
    color: var(--accent-primary);
    z-index: -1;
    animation: glitch-offset 0.3s infinite;
}

.glitch-text::after {
    color: var(--accent-secondary);
    z-index: -2;
    animation: glitch-offset 0.2s infinite reverse;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    92% { transform: translate(0); }
    93% { transform: translate(-2px, 1px); }
    94% { transform: translate(2px, -1px); }
    95% { transform: translate(-1px, 2px); }
    96% { transform: translate(1px, -2px); }
    97% { transform: translate(0); }
}

@keyframes glitch-offset {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 2px); }
    40% { transform: translate(3px, -2px); }
    60% { transform: translate(-2px, 3px); }
    80% { transform: translate(2px, -3px); }
    100% { transform: translate(0); }
}

.accent {
    color: var(--accent-primary);
    font-weight: 500;
}

/* Skills Section */
.skills-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.skill-tag {
    background: rgba(157, 78, 221, 0.1);
    border: 1px solid rgba(157, 78, 221, 0.3);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.skill-tag:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(157, 78, 221, 0.3);
}

.skill-tag.past {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.skill-tag.past:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.past-experience {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.past-experience small {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-right: 8px;
}

/* Social Links */
.soc-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 24px 0;
}

.soc-link {
    color: var(--text-primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(157, 78, 221, 0.1);
    border: 1px solid rgba(157, 78, 221, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.soc-link:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 20px rgba(157, 78, 221, 0.3);
    color: white;
}

/* ===== LIQUID GLASS ЧАСЫ ===== */
.time-info {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 60px;
    border: 1px solid rgba(157, 78, 221, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    flex-wrap: wrap;
    justify-content: center;
    overflow: hidden;
}

/* Liquid Glass эффект */
.time-info::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 60px;
    padding: 1px;
    background: linear-gradient(
            135deg,
            rgba(157, 78, 221, 0.1),
            rgba(157, 78, 221, 0.02),
            rgba(255, 255, 255, 0.05)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: liquidBorder 4s ease-in-out infinite;
}

@keyframes liquidBorder {
    0%, 100% {
        background: linear-gradient(135deg,
        rgba(157, 78, 221, 0.1),
        rgba(157, 78, 221, 0.02),
        rgba(255, 255, 255, 0.05)
        );
    }
    50% {
        background: linear-gradient(135deg,
        rgba(157, 78, 221, 0.2),
        rgba(255, 255, 255, 0.02),
        rgba(157, 78, 221, 0.1)
        );
    }
}

.time-info::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
            ellipse at 30% 50%,
            rgba(157, 78, 221, 0.05) 0%,
            transparent 60%
    );
    animation: liquidGlow 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes liquidGlow {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    33% {
        transform: translate(10%, -10%) scale(1.2);
        opacity: 0.6;
    }
    66% {
        transform: translate(-10%, 10%) scale(0.8);
        opacity: 0.2;
    }
}

.time-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: timePulse 2s ease-in-out infinite;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.1);
}

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

.time-info:hover {
    border-color: rgba(157, 78, 221, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}

.time-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

.time-clock {
    font-family: 'Inter', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 0 40px rgba(157, 78, 221, 0.03);
}

.time-date {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.25);
    font-weight: 400;
    letter-spacing: 0.02em;
    padding: 2px 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.04);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.time-zone {
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.12);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@media (max-width: 480px) {
    .time-info {
        padding: 6px 14px;
        gap: 6px;
        border-radius: 40px;
    }

    .time-clock {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .time-label {
        font-size: 0.5rem;
    }

    .time-date {
        font-size: 0.5rem;
        padding: 2px 6px;
        border: none;
        width: 100%;
        text-align: center;
        order: 10;
    }

    .time-zone {
        font-size: 0.45rem;
    }
}


.accent-icon {
    color: var(--accent-primary);
}

.accent-text {
    color: var(--accent-primary);
    font-weight: 600;
}

#clock {
    font-family: 'Inter', monospace;
    letter-spacing: 1px;
}

/* Quote */
.quote {
    text-align: center;
    margin-top: 16px;
    padding: 20px;
    position: relative;
}

.quote q {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-secondary);
    position: relative;
    quotes: "“" "”" "‘" "’";
}

.quote q::before {
    content: "“";
    color: var(--accent-primary);
    font-size: 2rem;
    margin-right: 8px;
    opacity: 0.5;
}

.quote q::after {
    content: "”";
    color: var(--accent-primary);
    font-size: 2rem;
    margin-left: 8px;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .glass-card {
        padding: 30px 20px;
    }

    h4 {
        font-size: 1.5rem;
    }

    .skill-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .soc-link {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .time-info {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .glass-card {
        padding: 20px 15px;
    }

    h4 {
        font-size: 1.2rem;
    }

    .quote q {
        font-size: 1rem;
    }
}

/* Canvas Animation Enhancement */
#demo-canvas {
    opacity: 0.6;
    mix-blend-mode: screen;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-secondary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Selection Color */
::selection {
    background: var(--accent-primary);
    color: var(--text-primary);
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.noscript h2 {
    color: var(--text-primary);
    animation: pulse 2s infinite;
}

/* Projects Section */
.projects-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0f 0%, #14141f 100%);
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
}

.projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            radial-gradient(circle at 10% 20%, rgba(157, 78, 221, 0.08) 0%, transparent 30%),
            radial-gradient(circle at 90% 80%, rgba(123, 44, 191, 0.08) 0%, transparent 30%);
    pointer-events: none;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
}

.section-title .accent {
    color: var(--accent-primary);
    position: relative;
    display: inline-block;
}

.section-title .accent::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Project Card */
.project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
            0 20px 40px rgba(0, 0, 0, 0.4),
            0 0 0 1px rgba(157, 78, 221, 0.3),
            0 0 30px var(--accent-glow);
    border-color: var(--accent-primary);
}

/* Project Image */
.project-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

/* Project Overlay */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            to bottom,
            rgba(157, 78, 221, 0.2),
            rgba(20, 20, 31, 0.95)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 15px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.project-card:hover .project-links {
    transform: translateY(0);
}

.project-link {
    padding: 10px 20px;
    background: var(--accent-primary);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.project-link:hover {
    background: transparent;
    border-color: var(--accent-primary);
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--accent-glow);
}

.project-link i {
    font-size: 1rem;
}

/* Project Info */
.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.project-info h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.project-card:hover .project-info h3::after {
    width: 100%;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Project Tech Tags */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: rgba(157, 78, 221, 0.1);
    border: 1px solid rgba(157, 78, 221, 0.2);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

/* Scroll Indicator */
.scroll-indicator {
    text-align: center;
    margin-top: 40px;
    animation: bounce 2s infinite;
}

.scroll-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.scroll-arrow {
    color: var(--accent-primary);
    font-size: 2rem;
    line-height: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Responsive for Projects */
@media (max-width: 768px) {
    .projects-section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-info h3 {
        font-size: 1.3rem;
    }

    .project-links {
        flex-direction: column;
        gap: 10px;
    }

    .project-link {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .projects-section {
        padding: 40px 15px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .project-image {
        height: 180px;
    }
}

/* Animation for cards on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }
/* More projects text */
.more-projects {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    position: relative;
}

.more-text {
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-style: italic;
    position: relative;
    display: inline-block;
    padding: 10px 30px;
    background: rgba(157, 78, 221, 0.05);
    border-radius: 50px;
    border: 1px solid rgba(157, 78, 221, 0.2);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.more-text:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.3);
    transform: scale(1.05);
}

.more-text::before,
.more-text::after {
    content: '✦';
    color: var(--accent-primary);
    margin: 0 10px;
    opacity: 0.7;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .more-text {
        font-size: 1rem;
        padding: 8px 20px;
    }
}
/* Project Status - Вариант 1 (угол изображения) */
.project-status {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(20, 20, 31, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 30px;
    padding: 6px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid;
    z-index: 10;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.status-text {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-year {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
}

/* Статус "Закрыт" */
.status-closed {
    border-color: #ff4757;
    color: #ff4757;
}

.status-closed .status-year {
    background: rgba(255, 71, 87, 0.2);
}

.status-working {
    border-color: #22c55e;
    color: #22c55e;
}

.status-working .status-year {
    background: rgba(34, 197, 94, 0.2);
}

/* Статус "Устарел" */
.status-deprecated {
    border-color: #ffa502;
    color: #ffa502;
}

.status-deprecated .status-year {
    background: rgba(255, 165, 2, 0.2);
}

/* Статус "Архив" */
.status-archived {
    border-color: #747d8c;
    color: #a4b0be;
}

.status-archived .status-year {
    background: rgba(116, 125, 140, 0.2);
}

/* Вариант 2: Бейдж под названием */
.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.project-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(20, 20, 31, 0.9);
    border: 1px solid;
}

.project-status-badge i {
    font-size: 0.75rem;
}

.project-status-badge.status-closed {
    background: rgba(255, 71, 87, 0.1);
    border-color: rgba(255, 71, 87, 0.3);
    color: #ff4757;
}

.project-status-badge.status-deprecated {
    background: rgba(255, 165, 2, 0.1);
    border-color: rgba(255, 165, 2, 0.3);
    color: #ffa502;
}

.project-status-badge.status-archived {
    background: rgba(116, 125, 140, 0.1);
    border-color: rgba(116, 125, 140, 0.3);
    color: #a4b0be;
}

/* Адаптивность */
@media (max-width: 768px) {
    .project-status {
        padding: 4px 10px;
        font-size: 0.75rem;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* Технологичные полоски на фон */
.tech-lines-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    opacity: 0.25; /* Прозрачность чтобы не перебивать контент */
}

/* Горизонтальные линии */
.tech-line-horizontal {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(157, 78, 221, 0.5) 20%,
            rgba(157, 78, 221, 0.8) 50%,
            rgba(157, 78, 221, 0.5) 80%,
            transparent
    );
    animation: techGlow 4s infinite ease-in-out;
}

/* Вертикальные линии */
.tech-line-vertical {
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(
            180deg,
            transparent,
            rgba(157, 78, 221, 0.5) 20%,
            rgba(157, 78, 221, 0.8) 50%,
            rgba(157, 78, 221, 0.5) 80%,
            transparent
    );
    animation: techGlow 6s infinite ease-in-out;
}

/* Диагональные линии */
.tech-line-diagonal {
    position: absolute;
    width: 200%;
    height: 1px;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(157, 78, 221, 0.4) 20%,
            rgba(157, 78, 221, 0.6) 50%,
            rgba(157, 78, 221, 0.4) 80%,
            transparent
    );
    transform-origin: center;
    animation: techPulse 8s infinite;
}

/* Светящиеся точки на пересечениях */
.tech-dot {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(157, 78, 221, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.8);
    animation: techPulse 3s infinite;
    transform: translate(-50%, -50%);
}

/* Альтернативный вариант: сетка из точек */
.tech-grid-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(
            rgba(157, 78, 221, 0.3) 1px,
            transparent 1px
    );
    background-size: 50px 50px;
    animation: techFade 8s infinite;
}

/* Вариант с движущимися линиями */
.tech-scan-line {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(157, 78, 221, 0.6),
            rgba(157, 78, 221, 0.9),
            rgba(157, 78, 221, 0.6),
            transparent
    );
    animation: techScan 8s infinite linear;
    opacity: 0.3;
}

/* Анимации */
@keyframes techGlow {
    0%, 100% {
        opacity: 0.3;
        filter: blur(0.5px);
    }
    50% {
        opacity: 0.8;
        filter: blur(1px);
    }
}

@keyframes techPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.5);
    }
}

@keyframes techScan {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

@keyframes techFade {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.4;
    }
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */

/* Базовые настройки для мобилок */
@media (max-width: 768px) {

    /* Главная секция */
    .main-block {
        padding: 15px;
        align-items: flex-start;
        overflow-y: auto;
    }

    .glass-card {
        padding: 25px 20px;
        margin: 20px 0;
        border-radius: 20px;
        max-width: 100%;
    }

    h4 {
        font-size: 1.3rem;
        line-height: 1.4;
        word-break: break-word;
    }

    .glitch-text {
        font-size: 1.2rem;
    }

    /* Скиллы */
    .skills-section {
        gap: 8px;
        justify-content: center;
    }

    .skill-tag {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .past-experience {
        justify-content: center;
    }

    .past-experience small {
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }

    /* Соц ссылки */
    .soc-links {
        gap: 12px;
        margin: 15px 0;
    }

    .soc-link {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    /* Время */
    .time-info {
        flex-wrap: wrap;
        font-size: 0.9rem;
        padding: 10px;
    }

    /* Цитата */
    .quote {
        padding: 10px;
    }

    .quote q {
        font-size: 1rem;
    }

    .quote q::before,
    .quote q::after {
        font-size: 1.5rem;
    }

    /* Индикатор скролла */
    .scroll-indicator {
        margin-top: 20px;
    }

    .scroll-text {
        font-size: 0.8rem;
    }

    .scroll-arrow {
        font-size: 1.5rem;
    }

    /* Секция проектов */
    .projects-section {
        padding: 40px 15px !important;
        min-height: auto;
    }

    .section-title {
        font-size: 2rem !important;
        margin-bottom: 30px !important;
    }

    /* Сетка проектов */
    .projects-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 5px;
    }

    /* Карточка проекта */
    .project-card {
        margin-bottom: 5px;
    }

    .project-image {
        height: 180px !important;
    }

    .project-image img {
        object-fit: cover;
    }

    /* Статус проекта */
    .project-status {
        padding: 4px 10px !important;
        font-size: 0.7rem !important;
        top: 10px !important;
        right: 10px !important;
    }

    .status-year {
        padding: 2px 6px !important;
        font-size: 0.65rem !important;
    }

    /* Информация проекта */
    .project-info {
        padding: 15px !important;
    }

    .project-info h3 {
        font-size: 1.2rem !important;
        margin-bottom: 5px !important;
    }

    .project-info p {
        font-size: 0.85rem !important;
        margin-bottom: 12px !important;
        line-height: 1.4;
    }

    /* Технологии */
    .project-tech {
        gap: 6px !important;
    }

    .tech-tag {
        font-size: 0.7rem !important;
        padding: 3px 8px !important;
    }

    /* "и еще много чего" */
    .more-projects {
        margin-top: 30px !important;
        padding: 10px !important;
    }

    .more-text {
        font-size: 0.9rem !important;
        padding: 8px 20px !important;
    }

    .more-text::before,
    .more-text::after {
        font-size: 0.8rem !important;
        margin: 0 5px !important;
    }

    /* Технологичные полоски для мобилок (упрощаем) */
    .tech-lines-bg {
        opacity: 0.15 !important;
    }

    /* Убираем вертикальные и диагональные линии на мобилках */
    .tech-line-vertical,
    .tech-line-diagonal {
        display: none;
    }

    /* Оставляем только горизонтальные, но реже */
    .tech-line-horizontal {
        opacity: 0.3;
    }

    .tech-line-horizontal:nth-child(odd) {
        display: none; /* Каждая вторая линия скрыта */
    }

    /* Точки тоже убираем */
    .tech-dot {
        display: none;
    }
}

/* Для очень маленьких экранов (до 480px) */
@media (max-width: 480px) {
    .glass-card {
        padding: 20px 15px;
    }

    h4 {
        font-size: 1.1rem;
    }

    .glitch-text {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem !important;
    }

    .project-image {
        height: 160px !important;
    }

    .project-info h3 {
        font-size: 1.1rem !important;
    }

    .project-info p {
        font-size: 0.8rem !important;
    }

    .skill-tag {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .soc-link {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    /* Убираем размытые фигуры на совсем маленьких */
    .projects-shape {
        opacity: 0.05 !important;
    }
}

/* Для планшетов (от 768 до 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .glass-card {
        max-width: 90%;
    }

    h4 {
        font-size: 1.8rem;
    }
}

/* Исправление для touch-устройств */
@media (hover: none) and (pointer: coarse) {
    /* Убираем hover-эффекты на touch-устройствах */
    .project-card:hover {
        transform: none !important;
    }

    .soc-link:hover {
        transform: none !important;
    }

    .skill-tag:hover {
        transform: none !important;
    }

    /* Добавляем active-эффекты вместо hover */
    .project-card:active {
        transform: scale(0.98) !important;
    }

    .soc-link:active {
        background: var(--accent-primary) !important;
    }
}

/* Улучшение скролла на мобилках */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 3px;
    }

    ::-webkit-scrollbar-thumb {
        background: var(--accent-primary);
    }

    .large-header {
        background-attachment: scroll !important;
    }

    .large-header::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.25);
        z-index: 1;
        pointer-events: none;
    }

    .main-block {
        position: absolute;
        height: auto;
        min-height: 100vh;
    }
}

@media (min-height: 800px) and (max-width: 768px) {
    .projects-section {
        min-height: auto;
        padding-bottom: 50px !important;
    }
}


.spotify-widget {
    background: rgba(20, 20, 25, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 14px 16px;
    margin: 12px 0 10px 0;
    min-height: 74px;

    /* 👇 ПЛАВНЫЙ ПЕРЕХОД */
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease, box-shadow 0.3s ease;
    pointer-events: none;
    max-height: 0;
    padding: 0 16px;
    overflow: hidden;
    margin: 0;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    max-height 0.5s ease, padding 0.5s ease, margin 0.5s ease;
}

/* 👇 КОГДА ВИДЖЕТ ПОКАЗАН */
.spotify-widget.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
    max-height: 200px;
    padding: 14px 16px;
    margin: 12px 0 10px 0;
}

/* 👇 КОГДА ВИДЖЕТ СКРЫТ */
.spotify-widget.hidden {
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
    pointer-events: none;
    max-height: 0;
    padding: 0 16px;
    margin: 0;
    overflow: hidden;
}

/* Анимация контента внутри */
.spotify-widget .spotify-widget-content {
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}

.spotify-widget.visible .spotify-widget-content {
    opacity: 1;
    transform: translateY(0);
}

.spotify-widget.hidden .spotify-widget-content {
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Остальные стили */
.spotify-widget-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.spotify-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #9d4edd, #7b2cbf);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 4px 14px rgba(157, 78, 221, 0.25);
}

.spotify-icon i {
    font-size: 20px;
}

.spotify-info {
    flex: 1;
    min-width: 0;
}

.spotify-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 2px;
    font-weight: 600;
}

.spotify-label i {
    margin-right: 4px;
    color: #9d4edd;
}

.spotify-track-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.spotify-artist {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.spotify-progress {
    margin-top: 5px;
}

.spotify-time {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.25);
    font-variant-numeric: tabular-nums;
    margin-bottom: 2px;
}

.spotify-current-time {
    color: #9d4edd;
    font-weight: 500;
}

.spotify-progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.spotify-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #9d4edd, #7b2cbf);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.spotify-album-art {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.spotify-album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Адаптивность */
@media (max-width: 480px) {
    .spotify-widget.visible {
        padding: 10px 12px;
    }

    .spotify-icon {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .spotify-icon i {
        font-size: 16px;
    }

    .spotify-album-art {
        width: 40px;
        height: 40px;
    }

    .spotify-track-name {
        font-size: 12px;
    }

    .spotify-artist {
        font-size: 10px;
    }
}

/* ===== СЕКЦИЯ 2: АКТИВНЫЙ ПРОЕКТ ===== */
#section2 {
    height: 100vh !important;
    min-height: 100vh !important;
}

.active-project-section {
    height: 100vh;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0f 0%, #14141f 100%);
    padding: 15px 40px 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Заголовок — повыше */
.active-project-section .section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    flex-shrink: 0;
    text-align: center;
}

/* Карточка */
.active-project-card {
    background: rgba(20, 20, 31, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(157, 78, 221, 0.08);
    border-radius: 20px;
    padding: 20px 28px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

/* Логотип */
.active-project-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px auto;
    border: 2px solid rgba(157, 78, 221, 0.15);
    flex-shrink: 0;
    box-shadow: 0 4px 24px rgba(157, 78, 221, 0.08);
}

.active-project-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.active-project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.active-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.25);
    font-weight: 600;
}

.active-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: activePulse 1.5s ease-in-out infinite;
}

@keyframes activePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.2; transform: scale(0.6); }
}

.active-status {
    font-size: 0.6rem;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.06);
    padding: 3px 12px;
    border-radius: 30px;
    border: 1px solid rgba(34, 197, 94, 0.06);
}

.active-project-body {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 20px;
}

.active-project-left {
    min-width: 0;
}

.active-project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.active-project-description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin-bottom: 12px;
}

.active-project-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
}

.stat-label {
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.15);
}

.active-project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.active-project-tech .tech-tag {
    background: rgba(157, 78, 221, 0.06);
    border-color: rgba(157, 78, 221, 0.08);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.65rem;
    padding: 2px 10px;
}

.active-project-tech .tech-tag:hover {
    background: var(--accent-primary);
    color: white;
}

/* Правая колонка */
.active-project-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.progress-block {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 4px;
}

.progress-percent {
    color: var(--accent-primary);
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 1s ease;
}

.progress-tasks {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.15);
}

.progress-tasks span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-links-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.project-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px;
    background: var(--accent-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(157, 78, 221, 0.15);
}

.project-link-btn.secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.4);
}

.project-link-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ===== ФУТЕР — ПРИБИТ К НИЗУ, ЧИТАЕМЫЙ ===== */
.site-footer {
    margin-top: 16px;
    padding: 14px 0 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
}

.footer-logo::before {
    content: '✦ ';
    color: var(--accent-primary);
}

.footer-desc {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.2);
}

.footer-links {
    display: flex;
    gap: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    transition: all 0.3s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.footer-links a:hover {
    color: #fff;
    border-color: rgba(157, 78, 221, 0.12);
    background: rgba(157, 78, 221, 0.04);
}

.footer-copy {
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.1);
}

/* Адаптив */
@media (max-width: 768px) {
    #section2 {
        height: auto !important;
        min-height: 100vh !important;
    }

    .active-project-section {
        height: auto;
        min-height: 100vh;
        padding: 25px 20px 15px;
        justify-content: flex-start;
    }

    .active-project-section .section-title {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .active-project-card {
        padding: 16px;
    }

    .active-project-logo {
        width: 54px;
        height: 54px;
    }

    .active-project-body {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .active-project-title {
        font-size: 1.3rem;
    }

    .active-project-stats {
        gap: 16px;
    }

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

    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .footer-brand {
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }
}

@media (max-width: 480px) {
    .active-project-section {
        padding: 15px 12px 10px;
    }

    .active-project-section .section-title {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

    .active-project-card {
        padding: 12px;
    }

    .active-project-logo {
        width: 44px;
        height: 44px;
    }

    .active-project-title {
        font-size: 1.1rem;
    }

    .active-project-description {
        font-size: 0.75rem;
    }

    .stat-value {
        font-size: 0.95rem;
    }

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

    .footer-logo {
        font-size: 0.75rem;
    }

    .footer-desc {
        font-size: 0.5rem;
    }

    .footer-copy {
        font-size: 0.45rem;
    }
}
/* ========================================
   АКТИВНЫЙ ПРОЕКТ — ЧИТАЕМЫЙ
   ======================================== */
#section2 {
    height: 100vh !important;
    min-height: 100vh !important;
}

.active-project-section {
    height: 100vh;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0f 0%, #14141f 100%);
    padding: 20px 40px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.active-project-section .section-title {
    font-size: 2.2rem;
    text-align: center;
    color: #ffffff;
    margin-bottom: 16px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.active-project-section .section-title .accent {
    color: var(--accent-primary);
}

/* ===== КАРТОЧКА ===== */
.active-project-card {
    background: rgba(20, 20, 31, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(157, 78, 221, 0.1);
    border-radius: 24px;
    padding: 24px 30px;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.4);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.project-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid rgba(157, 78, 221, 0.15);
    box-shadow: 0 4px 24px rgba(157, 78, 221, 0.06);
    flex-shrink: 0;
}

.project-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.meta-badge {
    font-size: 0.7rem;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
    padding: 4px 14px;
    border-radius: 30px;
    border: 1px solid rgba(34, 197, 94, 0.08);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meta-version {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 12px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

/* ===== ТЕЛО ===== */
.card-body {
    display: grid;
    grid-template-columns: 1fr 230px;
    gap: 24px;
}

.project-main {
    min-width: 0;
}

.project-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.project-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin-bottom: 14px;
}

/* ===== СТАТИСТИКА ===== */
.project-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
}

.stat-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.25);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.06);
}

/* ===== ТЕХНОЛОГИИ ===== */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-tech .tech-tag {
    background: rgba(157, 78, 221, 0.06);
    border: 1px solid rgba(157, 78, 221, 0.06);
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.7rem;
    padding: 3px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.project-tech .tech-tag:hover {
    background: rgba(157, 78, 221, 0.1);
    border-color: rgba(157, 78, 221, 0.12);
    color: rgba(255, 255, 255, 0.7);
}

/* ===== САЙДБАР ===== */
.project-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.progress-widget {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 14px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.progress-title {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.progress-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.progress-track {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    overflow: hidden;
}

.progress-track .progress-bar {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 1s ease;
}

/* ===== КНОПКИ ===== */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(157, 78, 221, 0.25);
}

.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
}

/* ===== ФУТЕР ===== */
.site-footer {
    margin-top: 14px;
    padding: 10px 0 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    flex-shrink: 0;
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.brand-name::before {
    content: '✦ ';
    color: var(--accent-primary);
}

.brand-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.25);
    font-size: 1.1rem;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: #ffffff;
    border-color: rgba(157, 78, 221, 0.15);
    background: rgba(157, 78, 221, 0.04);
    transform: translateY(-2px);
}

.footer-copy {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.15);
    font-weight: 400;
}
/* Адаптив */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .footer-brand {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .brand-desc {
        font-size: 0.7rem;
    }

    .footer-social a {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .footer-copy {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 0.9rem;
    }

    .brand-desc {
        font-size: 0.6rem;
    }

    .footer-social a {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .footer-copy {
        font-size: 0.55rem;
    }
}

/* ========================================
   ГЛАВНАЯ СЕКЦИЯ — АДАПТИВ
   ======================================== */

/* ===== ПЛАНШЕТЫ (до 1024px) ===== */
@media (max-width: 1024px) {
    .glass-card {
        max-width: 90% !important;
        padding: 30px !important;
    }

    h4 {
        font-size: 1.6rem !important;
    }

    .skills-section {
        gap: 8px !important;
    }

    .skill-tag {
        font-size: 0.8rem !important;
        padding: 6px 12px !important;
    }

    .soc-link {
        width: 42px !important;
        height: 42px !important;
        font-size: 1.2rem !important;
    }
}

/* ===== МОБИЛКИ (до 768px) ===== */
@media (max-width: 768px) {
    /* Блок */
    .main-block {
        padding: 12px !important;
        align-items: flex-start !important;
        height: auto !important;
        min-height: 100vh !important;
        position: relative !important;
        padding-top: 40px !important;
    }

    .glass-card {
        padding: 20px 16px !important;
        border-radius: 18px !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .content-wrapper {
        gap: 16px !important;
    }

    /* Заголовок */
    h4 {
        font-size: 1.2rem !important;
        line-height: 1.4 !important;
        text-align: center !important;
        word-break: break-word !important;
    }

    .glitch-text {
        font-size: 1rem !important;
    }

    .glitch-text .accent {
        display: block !important;
        font-size: 0.9rem !important;
        margin-top: 4px !important;
    }

    /* Скиллы — 2 колонки */
    .skills-section {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
        justify-content: stretch !important;
        margin: 8px 0 !important;
    }

    .skill-tag {
        font-size: 0.7rem !important;
        padding: 5px 10px !important;
        text-align: center !important;
        border-radius: 14px !important;
    }

    .past-experience {
        justify-content: center !important;
        gap: 6px !important;
        margin-top: 4px !important;
    }

    .past-experience small {
        font-size: 0.7rem !important;
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 2px !important;
    }

    .past-experience .skill-tag.past {
        font-size: 0.65rem !important;
        padding: 4px 10px !important;
    }

    /* Соцсети */
    .soc-links {
        gap: 10px !important;
        margin: 12px 0 !important;
    }

    .soc-link {
        width: 38px !important;
        height: 38px !important;
        font-size: 1rem !important;
        border-radius: 50% !important;
    }

    /* Часы */
    .time-info {
        padding: 6px 12px !important;
        gap: 4px !important;
        border-radius: 40px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        font-size: 0.7rem !important;
    }

    .time-dot {
        width: 5px !important;
        height: 5px !important;
    }

    .time-label {
        font-size: 0.45rem !important;
        letter-spacing: 0.08em !important;
    }

    .time-clock {
        font-size: 0.9rem !important;
        letter-spacing: 0.5px !important;
    }

    .time-date {
        font-size: 0.45rem !important;
        padding: 2px 6px !important;
        border: none !important;
        width: 100% !important;
        text-align: center !important;
        order: 10 !important;
    }

    .time-zone {
        font-size: 0.4rem !important;
        padding: 1px 4px !important;
    }

    /* Spotify */
    .spotify-widget {
        padding: 8px 10px !important;
        min-height: 56px !important;
        margin: 6px 0 !important;
        border-radius: 12px !important;
    }

    .spotify-widget.visible {
        padding: 8px 10px !important;
        margin: 6px 0 !important;
        max-height: 150px !important;
    }

    .spotify-widget-content {
        gap: 10px !important;
    }

    .spotify-icon {
        width: 30px !important;
        height: 30px !important;
        font-size: 14px !important;
        border-radius: 8px !important;
    }

    .spotify-icon i {
        font-size: 14px !important;
    }

    .spotify-label {
        font-size: 7px !important;
        letter-spacing: 0.08em !important;
    }

    .spotify-track-name {
        font-size: 11px !important;
    }

    .spotify-artist {
        font-size: 9px !important;
    }

    .spotify-progress {
        margin-top: 3px !important;
    }

    .spotify-time {
        font-size: 7px !important;
    }

    .spotify-progress-bar {
        height: 2px !important;
    }

    .spotify-album-art {
        width: 34px !important;
        height: 34px !important;
        border-radius: 6px !important;
    }

    /* Цитата */
    .quote {
        padding: 8px !important;
        margin-top: 6px !important;
    }

    .quote q {
        font-size: 0.85rem !important;
    }

    .quote q::before,
    .quote q::after {
        font-size: 1.2rem !important;
    }

    /* Индикатор скролла */
    .scroll-indicator {
        margin-top: 12px !important;
    }

    .scroll-text {
        font-size: 0.65rem !important;
    }

    .scroll-arrow {
        font-size: 1.2rem !important;
    }
}

/* ===== ТЕЛЕФОНЫ (до 480px) ===== */
@media (max-width: 480px) {
    .main-block {
        padding: 8px !important;
        padding-top: 30px !important;
    }

    .glass-card {
        padding: 14px 12px !important;
        border-radius: 14px !important;
    }

    .content-wrapper {
        gap: 12px !important;
    }

    h4 {
        font-size: 1rem !important;
    }

    .glitch-text {
        font-size: 0.9rem !important;
    }

    .glitch-text .accent {
        font-size: 0.75rem !important;
    }

    /* Скиллы — 2 колонки */
    .skills-section {
        grid-template-columns: 1fr 1fr !important;
        gap: 4px !important;
    }

    .skill-tag {
        font-size: 0.6rem !important;
        padding: 4px 8px !important;
        border-radius: 10px !important;
    }

    .past-experience small {
        font-size: 0.6rem !important;
    }

    .past-experience .skill-tag.past {
        font-size: 0.55rem !important;
        padding: 3px 8px !important;
    }

    .soc-link {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.85rem !important;
    }

    .time-info {
        padding: 4px 10px !important;
        border-radius: 30px !important;
    }

    .time-clock {
        font-size: 0.8rem !important;
        letter-spacing: 0.3px !important;
    }

    .time-label {
        font-size: 0.4rem !important;
    }

    .time-date {
        font-size: 0.4rem !important;
    }

    .time-zone {
        font-size: 0.35rem !important;
    }

    .spotify-widget {
        padding: 6px 8px !important;
        min-height: 48px !important;
        border-radius: 10px !important;
    }

    .spotify-widget.visible {
        padding: 6px 8px !important;
        max-height: 120px !important;
    }

    .spotify-widget-content {
        gap: 8px !important;
    }

    .spotify-icon {
        width: 26px !important;
        height: 26px !important;
        font-size: 12px !important;
    }

    .spotify-icon i {
        font-size: 12px !important;
    }

    .spotify-track-name {
        font-size: 10px !important;
    }

    .spotify-artist {
        font-size: 8px !important;
    }

    .spotify-label {
        font-size: 6px !important;
    }

    .spotify-time {
        font-size: 6px !important;
    }

    .spotify-album-art {
        width: 28px !important;
        height: 28px !important;
    }

    .quote q {
        font-size: 0.75rem !important;
    }

    .quote q::before,
    .quote q::after {
        font-size: 1rem !important;
    }

    .scroll-text {
        font-size: 0.55rem !important;
    }
}

/* ===== ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (до 360px) ===== */
@media (max-width: 360px) {
    .glass-card {
        padding: 10px 8px !important;
        border-radius: 10px !important;
    }

    h4 {
        font-size: 0.85rem !important;
    }

    .skills-section {
        grid-template-columns: 1fr 1fr !important;
        gap: 3px !important;
    }

    .skill-tag {
        font-size: 0.5rem !important;
        padding: 3px 6px !important;
    }

    .time-clock {
        font-size: 0.7rem !important;
    }

    .spotify-track-name {
        font-size: 9px !important;
    }

    .spotify-artist {
        font-size: 7px !important;
    }
}

/* ========================================
   RESPONSIVE LAYOUT FIXES
   layout-only, no visual redesign
   ======================================== */
.main,
.project-card,
.project-info,
.project-main,
.project-sidebar,
.project-links,
.spotify-info,
.footer-inner {
    min-width: 0;
}

.large-header,
.main-block,
#section2,
.active-project-section {
    min-height: 100svh;
}

@media (max-width: 1024px) {
    .main-block {
        position: relative !important;
        height: auto !important;
        min-height: 100svh !important;
        align-items: flex-start !important;
        padding: 32px 20px 40px !important;
        overflow: visible !important;
    }

    .glass-card {
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    .projects-section {
        min-height: auto;
        padding: 64px 24px !important;
    }

    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 24px !important;
    }

    .card-body {
        grid-template-columns: minmax(0, 1fr) 220px;
    }
}

@media (max-width: 768px) {
    .main-block {
        padding: 24px 16px 36px !important;
    }

    .glass-card {
        padding: 24px 18px !important;
        border-radius: 18px !important;
    }

    .content-wrapper {
        gap: 18px !important;
    }

    h4,
    .glitch-text {
        text-align: center !important;
    }

    .skills-section {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        justify-content: stretch !important;
    }

    .skill-tag {
        text-align: center !important;
    }

    .past-experience {
        justify-content: center !important;
    }

    .past-experience small {
        width: 100%;
        margin-right: 0;
        text-align: center;
    }

    .time-info {
        width: 100%;
        max-width: 440px;
    }

    .spotify-widget.visible {
        max-height: 260px !important;
    }

    .spotify-widget-content {
        align-items: flex-start;
    }

    .projects-section {
        padding: 56px 16px !important;
    }

    .projects-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
        padding: 0 !important;
    }

    .project-card {
        width: 100%;
    }

    .project-image {
        height: 190px !important;
    }

    .project-info {
        padding: 20px 16px !important;
    }

    .project-status {
        top: 12px !important;
        right: 12px !important;
        max-width: calc(100% - 24px);
        padding: 4px 10px !important;
    }

    .project-overlay {
        position: static;
        height: auto;
        opacity: 1;
        padding: 0 16px 16px;
        background: none;
    }

    .project-links {
        transform: none;
        flex-direction: column;
        gap: 10px;
    }

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

    .tech-lines-bg {
        display: none;
    }

    #section2,
    .active-project-section {
        height: auto !important;
        min-height: 100svh !important;
    }

    .active-project-section {
        padding: 56px 16px 24px !important;
        justify-content: flex-start !important;
        overflow: visible;
    }

    .active-project-section .section-title {
        font-size: 1.9rem !important;
        margin-bottom: 14px !important;
    }

    .active-project-card {
        padding: 18px 16px !important;
    }

    .card-body {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .project-stats {
        flex-wrap: wrap;
        gap: 12px;
    }

    .stat-divider {
        display: none;
    }

    .project-sidebar,
    .action-buttons,
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .site-footer {
        margin-top: 18px !important;
    }

    .footer-inner {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-block {
        padding: 20px 10px 28px !important;
    }

    .glass-card {
        padding: 18px 12px !important;
    }

    h4 {
        font-size: 1rem !important;
    }

    .skills-section {
        gap: 6px !important;
    }

    .section-title,
    .active-project-section .section-title {
        font-size: 1.6rem !important;
    }

    .project-image {
        height: 170px !important;
    }

    .project-info {
        padding: 18px 14px !important;
    }

    .project-overlay {
        padding: 0 14px 14px;
    }

    .project-status {
        font-size: 0.68rem !important;
        gap: 6px;
    }

    .project-title {
        font-size: 1.3rem !important;
    }

    .project-description {
        font-size: 0.88rem !important;
        line-height: 1.6 !important;
    }

    .project-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .stat-item {
        align-items: center;
        text-align: center;
    }

    .project-meta {
        gap: 6px;
    }

    .meta-badge,
    .meta-version {
        font-size: 0.62rem;
    }

    .spotify-widget.visible {
        max-height: none !important;
    }

    .spotify-widget-content {
        gap: 8px !important;
    }

    .spotify-album-art {
        width: 36px !important;
        height: 36px !important;
    }
}

@media (max-width: 360px) {
    .skills-section {
        grid-template-columns: 1fr !important;
    }

    .project-stats {
        grid-template-columns: 1fr;
    }

    .time-info {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}
