/** Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    background: radial-gradient(circle at top right, rgba(0, 255, 136, 0.1), transparent 50%),
                radial-gradient(circle at bottom left, rgba(0, 212, 255, 0.1), transparent 50%);
}

.hero-content {
    flex: 1;
}

.glitch {
    font-size: 5rem;
    font-weight: bold;
    position: relative;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
    animation: glitch 3s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 2s infinite;
    color: var(--accent-color);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 2s infinite;
    color: var(--secondary-color);
    z-index: -2;
}

@keyframes glitch {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-5px, 5px); }
    94% { transform: translate(5px, -5px); }
    96% { transform: translate(-5px, -5px); }
    98% { transform: translate(5px, 5px); }
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(20% 0 30% 0); transform: translate(-5px, 5px); }
    40% { clip-path: inset(50% 0 20% 0); transform: translate(5px, -5px); }
    60% { clip-path: inset(10% 0 60% 0); transform: translate(-5px, -5px); }
    80% { clip-path: inset(80% 0 5% 0); transform: translate(5px, 5px); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(60% 0 10% 0); transform: translate(5px, -5px); }
    40% { clip-path: inset(30% 0 40% 0); transform: translate(-5px, 5px); }
    60% { clip-path: inset(10% 0 70% 0); transform: translate(5px, 5px); }
    80% { clip-path: inset(40% 0 30% 0); transform: translate(-5px, -5px); }
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin: 1rem 0;
    animation: fadeInUp 1s ease 0.5s both;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    animation: fadeInUp 1s ease 0.8s both;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-visual {
    flex: 1;
    animation: fadeIn 1s ease 1s both;
}

.code-block {
    background: var(--bg-darker);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.code-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

.code-block pre {
    margin-top: 1rem;
}

.code-block code {
    color: var(--primary-color);
    font-size: 1rem;
    line-height: 1.8;
}

/** About Section */
.about {
    background: var(--bg-darker);
}

.about-content {
    max-width: 800px;
}

.about-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.about-text:nth-child(1) { animation-delay: 0.1s; }
.about-text:nth-child(2) { animation-delay: 0.3s; }
.about-text:nth-child(3) { animation-delay: 0.5s; }

/** Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--bg-darker);
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.skill-card:nth-child(1) { animation: fadeInUp 0.6s ease 0.1s forwards; }
.skill-card:nth-child(2) { animation: fadeInUp 0.6s ease 0.2s forwards; }
.skill-card:nth-child(3) { animation: fadeInUp 0.6s ease 0.3s forwards; }
.skill-card:nth-child(4) { animation: fadeInUp 0.6s ease 0.4s forwards; }

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.skill-card:hover::before {
    opacity: 0.1;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.2);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.skill-card p {
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

/** Contact Section */
.contact {
    background: var(--bg-darker);
    text-align: center;
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

/** Animations */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/** ссылка Ханзо*/
#a {
    text-decoration: none;
}

/** footer */
.footer-dev {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

.footer-dev a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-dev a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--secondary-color);
}

/** Dev Badge */
.dev-badge {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 9998;
    cursor: pointer;
    transition: var(--transition);
}

.dev-badge-mini {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 212, 255, 0.15));
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.5),
                inset 0 0 15px rgba(0, 255, 136, 0.2);
    transition: var(--transition);
    animation: badgePulse 2.5s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

@keyframes badgePulse {
    0%, 100% { 
        box-shadow: 0 0 25px rgba(0, 255, 136, 0.5),
                    inset 0 0 15px rgba(0, 255, 136, 0.2);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 40px rgba(0, 255, 136, 0.8),
                    inset 0 0 20px rgba(0, 255, 136, 0.3);
        transform: scale(1.08);
    }
}

.dev-badge:hover .dev-badge-mini {
    opacity: 0;
    transform: scale(0) rotate(180deg);
}

.dev-badge-expanded {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.8rem;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95), rgba(20, 20, 20, 0.95));
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.6),
                inset 0 0 20px rgba(0, 255, 136, 0.1);
    opacity: 0;
    transform: translateX(-20px);
    transition: var(--transition);
    pointer-events: none;
    white-space: nowrap;
    backdrop-filter: blur(15px);
}

.dev-badge:hover .dev-badge-expanded {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.dev-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    object-fit: cover;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4),
                0 0 20px rgba(0, 255, 136, 0.2);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 212, 255, 0.15));
    position: relative;
}

.dev-avatar::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.2;
    z-index: -1;
    animation: avatarGlow 3s ease-in-out infinite;
}

@keyframes avatarGlow {
    0%, 100% { 
        opacity: 0.2;
        transform: scale(1);
    }
    50% { 
        opacity: 0.35;
        transform: scale(1.05);
    }
}

.dev-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.dev-label {
    font-size: 0.75rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.dev-username {
    font-size: 1.1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
}

.dev-username:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 20px var(--secondary-color);
    transform: scale(1.05);
}

/** Mobile adjustment */
@media (max-width: 768px) {
    .dev-badge {
        bottom: 1rem;
        left: 1rem;
    }
    
    .dev-badge-mini {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .dev-badge-expanded {
        padding: 0.8rem 1.2rem;
    }
    
    .dev-avatar {
        width: 38px;
        height: 38px;
    }
    
    .dev-username {
        font-size: 0.95rem;
    }
}



/** Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .glitch {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .code-block {
        display: none;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
}