:root {
    --bg-dark: #0a0a0c;
    --bg-card: #15151a;
    --text-main: #f0f0f0;
    --text-muted: #a0a0a5;
    --accent: #d4af37;
    --accent-hover: #f3d56b;
    --border: #2a2a30;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border-bottom-color: var(--accent);
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 1px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: var(--accent);
}

/* --- LANGUAGE SWITCHER WITH FLAGS --- */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.3rem;
    transition: 0.3s;
}

.lang-switcher:hover {
    border-color: var(--accent);
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.4rem;
    line-height: 1;
    transition: 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
    background: transparent;
    position: relative;
}

.lang-btn:hover {
    transform: scale(1.15);
    background: rgba(212, 175, 55, 0.1);
}

.lang-btn.active {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.flag-svg {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    display: block;
}

.lang-divider {
    color: var(--border);
    font-size: 0.9rem;
    user-select: none;
    margin: 0 0.2rem;
}

.burger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

nav,
.lang-switcher {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeSlideUp 0.6s ease-out forwards;
}

nav {
    animation-delay: 0.15s;
}

.lang-switcher {
    animation-delay: 0.3s;
}

@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- HERO --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    padding-top: 80px;
    background: radial-gradient(circle at center, #1a1a24 0%, var(--bg-dark) 70%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
    opacity: 0;
    filter: blur(10px);
    animation: blurFade 1s ease-out forwards;
}

@keyframes blurFade {
    to {
        opacity: 1;
        filter: blur(0);
    }
}

.hero-text h1 span {
    color: var(--accent);
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 3/4;
    max-height: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-image:hover img {
    transform: scale(1.03);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn:hover {
    background: var(--accent);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.btn:focus-visible,
.lang-btn:focus-visible,
.card-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- SECTIONS GENERAL --- */
section {
    padding: 6rem 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 1rem auto 0;
}

/* --- ABOUT --- */
.about {
    background: var(--bg-card);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-image {
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

/* --- PROJECTS --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
    transition: 0.4s;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-img {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

.project-card:hover .card-img img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-content .genre {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-link {
    text-align: center;
    padding: 0.8rem;
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    transition: 0.3s;
}

.card-link:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

/* --- SERVICES --- */
.services {
    background: var(--bg-card);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.service-item {
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: 0.3s;
}

.service-item:hover {
    border-color: var(--accent);
}

.service-item i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.service-item h3 {
    margin-bottom: 1rem;
}

.service-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- CONTACT --- */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.socials a {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: 0.3s;
}

.socials a:hover {
    color: var(--accent);
    transform: scale(1.2);
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- PLACEHOLDER STYLES --- */
.placeholder-img {
    background: linear-gradient(135deg, #1a1a24 0%, #2a2a30 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-align: center;
    padding: 1rem;
    width: 100%;
    height: 100%;
}

.placeholder-img i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent);
    opacity: 0.5;
}

.placeholder-img span {
    font-size: 0.9rem;
    font-weight: 500;
}

.placeholder-img small {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* --- MOBILE --- */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .btn-group {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .header-right {
        gap: 1rem;
    }

    nav ul {
        position: absolute;
        top: calc(100% + 38px);
        left: 50%;
        transform: translateX(-50%);
        width: 140px;
        background: #0a0a0c;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        display: none;
        border-top: 2px solid var(--accent);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    nav ul.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .burger {
        display: block;
    }

    nav ul li a {
        font-size: 1.1rem;
        padding: 0.6rem 1.5rem;
        border-radius: 8px;
        transition: all 0.3s;
        display: block;
    }

    nav ul li a:hover,
    nav ul li a:focus {
        background: rgba(212, 175, 55, 0.15);
        color: var(--accent);
    }

    .lang-switcher {
        padding: 0.25rem;
    }

    .lang-btn {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }

    nav ul {
        gap: 1rem;
        padding: 1.5rem 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
