* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    padding: 2rem 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 3rem;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.5);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typed-subtitle {
    font-size: 1.2rem;
    color: #4ecdc4;
    margin-bottom: 1rem;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-item {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item:hover {
    background: rgba(255, 107, 107, 0.2);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.contact-item.github:hover {
    background: rgba(138, 43, 226, 0.2);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

.contact-item.telegram:hover {
    background: rgba(0, 136, 204, 0.2);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.3);
}

/* Main Content */
main {
    padding: 4rem 0;
}

.section {
    margin-bottom: 4rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(50px);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: #d0d0d0;
}

/* Projects Section */
.projects-container {
    position: relative;
    margin-top: 2rem;
}

.projects-scroll {
    display: flex;
    gap: 2rem;
    padding: 1rem 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #4ecdc4 transparent;
}

.projects-scroll::-webkit-scrollbar {
    height: 8px;
}

.projects-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.projects-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 4px;
}

.project-card {
    min-width: 350px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.project-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 10px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-image img.loaded {
    opacity: 1;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #4ecdc4;
}

.project-description {
    color: #d0d0d0;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    padding: 0.5rem 1rem;
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

.project-link:hover {
    background: rgba(78, 205, 196, 0.3);
    transform: translateY(-2px);
}

/* Video Slider */
.video-slider {
    position: relative;
    margin-top: 2rem;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.video-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.video-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.video-slide.active {
    display: block;
}

.video-slide iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.video-nav {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.video-nav:hover {
    background: rgba(255, 107, 107, 0.3);
    transform: scale(1.1);
}

.video-indicators {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.video-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-indicator.active {
    background: #4ecdc4;
    transform: scale(1.2);
}

.video-info {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    max-width: 300px;
}

.video-title {
    font-size: 1.1rem;
    color: #4ecdc4;
    margin-bottom: 0.5rem;
}

.video-description {
    font-size: 0.9rem;
    color: #d0d0d0;
}

/* Skills Charts */
.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.chart-wrapper {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.chart-wrapper:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.chart-title {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: #4ecdc4;
}

canvas {
    max-height: 300px !important;
}

/* Technologies Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tech-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid #ff6b6b;
    transition: all 0.3s ease;
}

.tech-category:nth-child(2) { border-left-color: #4ecdc4; }
.tech-category:nth-child(3) { border-left-color: #45b7d1; }
.tech-category:nth-child(4) { border-left-color: #96ceb4; }

.tech-category h3 {
    color: #ff6b6b;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.tech-category:nth-child(2) h3 { color: #4ecdc4; }
.tech-category:nth-child(3) h3 { color: #45b7d1; }
.tech-category:nth-child(4) h3 { color: #96ceb4; }

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-item:hover {
    background: rgba(255, 107, 107, 0.3);
    transform: scale(1.05);
}

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, #ff6b6b, #4ecdc4, #45b7d1);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 1rem 2rem;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    width: calc(50% - 2rem);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-50px);
}

.timeline-item:nth-child(even) {
    left: 50%;
    transform: translateX(50px);
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background: #ff6b6b;
    border-radius: 50%;
    top: 1.5rem;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

.timeline-item:nth-child(even)::after {
    left: -10px;
    background: #4ecdc4;
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.5);
}

.timeline-date {
    color: #4ecdc4;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.timeline-description {
    color: #d0d0d0;
    font-size: 0.95rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .charts-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
    }
    
    .timeline::after {
        left: 2rem;
    }
    
    .timeline-item {
        width: calc(100% - 4rem);
        left: 4rem !important;
        transform: translateY(50px) !important;
    }
    
    .timeline-item::after {
        left: -10px !important;
    }
    
    h1 {
        font-size: 2rem;
    }

    .project-card {
        min-width: 280px;
    }

    .video-container {
        height: 250px;
    }

    .video-info {
        position: relative;
        top: auto;
        left: auto;
        margin: 1rem;
        max-width: none;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #4ecdc4;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Floating particles */
.particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: #4ecdc4;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1);
    z-index: 1000;
    transition: width 0.3s ease;
}