/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(220, 38, 38, 0.3);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc2626;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.code-icon {
    color: #dc2626;
    font-size: 1.2rem;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: 0;
}

.nav-desktop {
    display: flex;
    gap: 2rem;
    margin-right: 1rem;
}

.lang-toggle {
    background: transparent;
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #dc2626;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.lang-toggle:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #ef4444;
}

/* Music Control Button in Header - Same style as lang-toggle */
.music-btn-header {
    background: transparent;
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #dc2626;
    padding: 0.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.music-btn-header:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.5);
}

.music-btn-header.playing {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.6);
}

.music-btn-header.playing .music-icon-header {
    animation: pulse-icon 2s infinite;
}

.music-btn-header.paused {
    opacity: 0.7;
}

.music-icon-header {
    width: 18px;
    height: 18px;
    transition: all 0.3s ease;
    filter: brightness(1);
}

.music-btn-header.paused .music-icon-header {
    filter: brightness(0.6) grayscale(0.5);
}

@keyframes pulse-icon {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.1);
        filter: brightness(1.3);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

.nav-desktop {
    display: flex;
    gap: 2rem;
    margin-right: 1rem;
}

.nav-desktop a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
    position: relative;
}

.nav-desktop a:hover,
.nav-desktop a.active {
    color: #dc2626;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: #dc2626;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: #dc2626;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(220, 38, 38, 0.3);
}

.nav-mobile a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-mobile a:hover {
    color: #dc2626;
}

.nav-mobile.active {
    display: flex;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(220, 38, 38, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(220, 38, 38, 0.08) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-text {
    text-align: left;
}

.hero-title {
    font-family: 'Roboto Mono', monospace;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title .line1 {
    color: #dc2626;
}

.hero-title .line1-name {
    color: #ffffff;
}

.hero-title .line2 {
    color: #dc2626;
}

.hero-description {
    font-size: 1.125rem;
    color: #d1d5db;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: #dc2626;
    color: #000000;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
    background: #ef4444;
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.4);
}

.btn-outline {
    background: transparent;
    color: #dc2626;
    border: 2px solid #dc2626;
}

.btn-outline:hover {
    background: rgba(220, 38, 38, 0.1);
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
}

.profile-container {
    position: relative;
}

.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 4px solid #dc2626;
    box-shadow: 0 20px 60px rgba(220, 38, 38, 0.2);
    transition: transform 0.5s ease;
}

.profile-img:hover {
    transform: rotate(3deg) scale(1.05);
}

.profile-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: #dc2626;
    color: #000000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
    animation: pulse 2s infinite;
}

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

/* Section Styles */
section {
    padding: 5rem 0;
    position: relative;
}

.about {
    background: rgba(17, 24, 39, 0.5);
}

.skills {
    background: #000000;
}

.projects {
    background: rgba(17, 24, 39, 0.5);
}

.testimonials {
    background: #000000;
}

.contact {
    background: rgba(17, 24, 39, 0.5);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Roboto Mono', monospace;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 1rem;
}

.section-line {
    width: 80px;
    height: 4px;
    background: #dc2626;
    margin: 0 auto 1.5rem;
}

.section-header p {
    font-size: 1.125rem;
    color: #d1d5db;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
    margin-top: 2rem;
}

.about-text {
    padding-left: 1rem;
    z-index: 10;
    position: relative;
}

.image-container {
    position: relative;
}

.image-container::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 10px;
    transform: rotate(3deg);
    z-index: -1;
}

.image-container img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.terminal-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.875rem;
}

.terminal-prompt {
    color: #dc2626;
}

.about-text h3 {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-align: left;
}

.about-text-paragraph {
    color: #9ca3af;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: left;
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.star {
    color: #dc2626;
    font-size: 1.25rem;
}

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

.skill-card {
    background: rgba(17, 24, 39, 0.5);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(220, 38, 38, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card:hover {
    border-color: rgba(220, 38, 38, 0.5);
    transform: translateY(-5px);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(220, 38, 38, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-icon {
    background: rgba(220, 38, 38, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #dc2626;
    margin-bottom: 1rem;
    transition: background 0.3s ease;
}

.skill-card:hover .skill-icon {
    background: rgba(220, 38, 38, 0.2);
}

.skill-card h3 {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: #374151;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #dc2626, #ef4444);
    border-radius: 4px;
    transition: width 1s ease-out;
    animation: fillBar 2s ease-out;
}

@keyframes fillBar {
    from { width: 0%; }
}

.skill-percent {
    font-family: 'Roboto Mono', monospace;
    color: #dc2626;
    font-size: 0.875rem;
    font-weight: 600;
}

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

.project-card {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(220, 38, 38, 0.2);
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: rgba(220, 38, 38, 0.5);
    transform: translateY(-10px);
}

.project-image {
    position: relative;
    overflow: hidden;
}

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(220, 38, 38, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.project-content p {
    color: #9ca3af;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

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

.tag {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

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

.testimonial-card {
    background: rgba(17, 24, 39, 0.5);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(220, 38, 38, 0.2);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: rgba(220, 38, 38, 0.5);
    transform: translateY(-5px);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.testimonial-info h4 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.role {
    color: #dc2626;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.company {
    color: #9ca3af;
    font-size: 0.875rem;
}

.testimonial-content {
    color: #d1d5db;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.stars {
    color: #dc2626;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.contact-form h3 {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    color: #d1d5db;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #1f2937;
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #dc2626;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(220, 38, 38, 0.2);
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: rgba(220, 38, 38, 0.5);
}

.contact-card .contact-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-details h4 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #9ca3af;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: #000000;
    padding: 2rem 0;
    border-top: 1px solid rgba(220, 38, 38, 0.3);
    text-align: center;
}

.footer p {
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    .nav-controls {
        gap: 0.5rem;
        margin-right: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .stats {
        align-items: center;
    }
    
    .profile-img {
        width: 250px;
        height: 250px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .profile-img {
        width: 200px;
        height: 200px;
    }
    
    .skill-card,
    .contact-form,
    .contact-card {
        padding: 1.5rem;
    }
}


/* SVG Icon Styles */
.icon-svg {
    width: 24px;
    height: 24px;
    fill: #dc2626 !important;
    color: #dc2626 !important;
    transition: all 0.3s ease;
    display: inline-block;
}

.logo-icon {
    width: 28px;
    height: 28px;
    background: transparent !important;
    filter: brightness(0) saturate(100%) invert(18%) sepia(100%) saturate(7500%) hue-rotate(355deg) brightness(95%) contrast(95%);
}

.small-star {
    width: 16px;
    height: 16px;
    fill: #dc2626 !important;
    color: #dc2626 !important;
}

.contact-icon .icon-svg {
    width: 32px;
    height: 32px;
    fill: #dc2626 !important;
    color: #dc2626 !important;
}

.skill-icon .icon-svg {
    width: 24px;
    height: 24px;
    fill: #dc2626 !important;
    color: #dc2626 !important;
}

.profile-badge .icon-svg {
    width: 24px;
    height: 24px;
    fill: #000000 !important;
    color: #000000 !important;
}

.star .icon-svg {
    width: 20px;
    height: 20px;
    fill: #dc2626 !important;
    color: #dc2626 !important;
}

/* New Testimonials System Styles */
.rating .rating-star {
    cursor: pointer;
    font-size: 2rem;
    color: #4a4a4a; /* Default grey color for stars */
    transition: color 0.2s ease;
}

.rating .rating-star.selected {
    color: #dc2626; /* Red color for selected stars */
}

.admin-panel {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

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

.admin-title {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.5rem;
    color: #ffffff;
}

.admin-status {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.admin-btn {
    background: #dc2626;
    color: #000000;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.admin-btn:hover {
    background: #ef4444;
}

.testimonial-moderation-card {
    background: #2a2a2a;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid rgba(220, 38, 38, 0.1);
}

.testimonial-moderation-card h5 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.testimonial-moderation-card p {
    color: #d1d5db;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.moderation-actions button {
    margin-right: 0.5rem;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
    backdrop-filter: blur(5px);
    padding-top: 60px;
}

.modal-content {
    background-color: #1a1a1a;
    margin: 5% auto; /* 15% from the top and centered */
    padding: 30px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 400px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    color: #dc2626;
    text-decoration: none;
    cursor: pointer;
}

.error-message {
    color: #ef4444;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.form-label {
    color: #d1d5db;
}

.form-input {
    background: #374151;
    border: 1px solid #4b5563;
    color: #ffffff;
}

.form-input:focus {
    border-color: #dc2626;
}

.telegram-card {
    border-color: #dc2626;
}

.telegram-card .contact-icon {
    background: rgba(220, 38, 38, 0.1);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.telegram-card .contact-icon .icon-svg {
    fill: #dc2626 !important;
    color: #dc2626 !important;
}

.telegram-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.telegram-btn .btn-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.telegram-btn:hover .btn-arrow {
    transform: translateX(5px);
}

.location-card {
    border-color: #dc2626;
}

.location-card .contact-icon {
    background: rgba(220, 38, 38, 0.1);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-card .contact-icon .icon-svg {
    fill: #dc2626 !important;
    color: #dc2626 !important;
}

.workspace-overlay {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.workspace-overlay img {
    width: 100%;
    height: auto;
    display: block;
}

.code-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    color: #dc2626;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    padding: 20px;
    overflow: hidden;
    z-index: 2;
    border-radius: 8px;
    text-align: left;
}

.code-overlay:hover {
    background: rgba(0, 0, 0, 0.95);
}

.code-content {
    height: 100%;
    overflow: hidden;
    white-space: pre;
    line-height: 1.4;
    text-shadow: 0 0 5px #dc2626;
}

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

.hero-title .line1, .hero-title .line1-name, .hero-title .line2 {
    opacity: 0;
    transform: translateY(20px);
    animation-fill-mode: forwards;
}

.hero-title .line1 {
    animation: slideIn 0.8s ease-out forwards;
}

.hero-title .line1-name {
    animation: slideIn 0.8s ease-out forwards 0.2s;
}

.hero-title .line2 {
    animation: slideIn 0.8s ease-out forwards 0.4s;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




.nickname-btn {
    background: linear-gradient(135deg, #dc2626, #ef4444, #f87171);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 
        0 8px 16px rgba(220, 38, 38, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    margin: 0 8px;
}

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

.nickname-btn:hover::before {
    left: 100%;
}

.nickname-btn:hover {
    background: linear-gradient(135deg, #ef4444, #f87171, #fca5a5);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 12px 24px rgba(220, 38, 38, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Mobile responsiveness for header music button */
@media (max-width: 768px) {
    .nav-controls {
        gap: 0.5rem;
    }
    
    .music-btn-header {
        width: 36px;
        height: 36px;
        padding: 0.4rem;
    }
    
    .music-icon-header {
        width: 16px;
        height: 16px;
    }
    
    .lang-toggle {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

