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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #121212;
}

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

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    gap: 5px;
    background: rgba(26, 26, 26, 0.9);
    padding: 5px;
    border-radius: 5px;
    backdrop-filter: blur(10px);
}

.lang-btn {
    padding: 5px 10px;
    background: transparent;
    color: #b0b0b0;
    border: 1px solid #333;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Arial', sans-serif;
    font-size: 0.8rem;
}

.lang-btn.active {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.lang-btn:hover {
    background: #333;
    color: white;
}

/* Header */
header {
    background: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
}

.username {
    color: #b0b0b0;
    font-size: 0.9rem;
}

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

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #cccccc;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    color: white;
    padding: 150px 0 100px;
    text-align: center;
    margin-top: 5px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Works Section */
.works {
    padding: 80px 0;
    background: #1a1a1a;
}

.works h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #ffffff;
}

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

.work-item {
    background: #2d2d2d;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.work-item:hover {
    transform: translateY(-5px);
}

.work-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.work-item:hover .work-image img {
    transform: scale(1.05);
}

.image-placeholder {
    display: none;
    background: #404040;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: #b0b0b0;
    font-size: 1.1rem;
}

.work-item h3 {
    padding: 1rem 1rem 0.5rem 1rem;
    font-size: 1.3rem;
    margin: 0;
    color: #ffffff;
}

.project-type {
    padding: 0 1rem;
    color: #cccccc;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.work-item p {
    padding: 0 1rem;
    color: #b0b0b0;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Project Buttons */
.project-button {
    display: block;
    margin: 0 1rem 1rem;
    padding: 0.8rem 1.5rem;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.project-button:hover {
    background: #e6e6e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #1a1a1a;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #ffffff;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: 600;
}

.contact-link:hover {
    background: #e6e6e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Footer */
footer {
    background: #000000;
    color: #ffffff;
    text-align: center;
    padding: 2rem 0;
}

footer p {
    margin: 0;
    color: #b0b0b0;
}

/* Анимации появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Применение анимаций к элементам */
/*.hero-content h2 {
/*    animation: fadeInUp 0.8s ease-out 0.2s both;
/*}

/*.hero-content p {
/*    animation: fadeInUp 0.8s ease-out 0.4s both;
/*}

/*.works h2 {
/*    animation: fadeInUp 0.8s ease-out both;
/*}

/*.work-item {
/*    animation: scaleIn 0.6s ease-out both;
/*}

/* Поочерёдное появление карточек проектов */
/*.work-item:nth-child(1) { animation-delay: 0.1s; }
/*.work-item:nth-child(2) { animation-delay: 0.2s; }
/*.work-item:nth-child(3) { animation-delay: 0.3s; }
/*.work-item:nth-child(4) { animation-delay: 0.4s; }
/*.work-item:nth-child(5) { animation-delay: 0.5s; }
/*.work-item:nth-child(6) { animation-delay: 0.6s; }

.contact h2 {
    animation: fadeInUp 0.8s ease-out both;
}

.contact-link {
    animation: fadeInUp 0.6s ease-out both;
}

/* Поочерёдное появление кнопок контактов */
.contact-link:nth-child(1) { animation-delay: 0.1s; }
.contact-link:nth-child(2) { animation-delay: 0.2s; }
.contact-link:nth-child(3) { animation-delay: 0.3s; }

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Анимация при наведении на карточки проектов */
.work-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .language-switcher {
        top: 10px;
        right: 10px;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
}