
:root {
    --dark-coffee: #1a0f0a;
    --medium-coffee: #3d2b1f;
    --gold: #c5a059;
    --cream: #f5f5f5;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-coffee);
    color: var(--cream);
    line-height: 1.6;
}

h1, h2 {
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.container {
    padding: 80px 10%;
    text-align: center;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?auto=format&fit=crop&q=80&w=2070') center/cover no-repeat;
    position: relative;
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 15, 10, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    margin: 0;
    color: var(--gold);
}

.tagline {
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 12px 30px;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    background: var(--gold);
    color: var(--dark-coffee);
}

/* Projects Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: var(--medium-coffee);
    padding: 20px;
    border-radius: 5px;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
}

.card-img {
    height: 200px;
    margin-bottom: 15px;
    border-radius: 3px;
}

/* Footer */
footer {
    padding: 50px 0;
    background: #120a07;
    text-align: center;
}

footer a {
    color: var(--gold);
    text-decoration: none;
}

.socials {
    margin: 20px 0;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Contact Form Styling */
.contact-section {
    background-color: #120a07;
    border-top: 1px solid var(--medium-coffee);
}

.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid var(--medium-coffee);
    color: var(--cream);
    font-family: 'Montserrat', sans-serif;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.contact-form button {
    cursor: pointer;
    background: none;
    font-weight: bold;
    margin-top: 10px;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

.audio-control {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    background: rgba(197, 160, 89, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gold);
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.audio-control:hover {
    background: var(--gold);
    color: var(--dark-coffee);
}

.audio-control.playing {
    background: var(--gold);
    color: var(--dark-coffee);
    box-shadow: 0 0 15px var(--gold);
}

.audio-control .icon {
    font-size: 1.2rem;
}

/* Навігація */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    position: fixed;
    width: 80%;
    z-index: 1001;
    background: rgba(26, 15, 10, 0.8);
    backdrop-filter: blur(10px);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    color: var(--cream);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-links a:hover { color: var(--gold); }

/* Мобільне меню (Burger) */
.menu-toggle { display: none; cursor: pointer; }
.bar {
    display: block; width: 25px; height: 3px;
    margin: 5px auto; background-color: var(--gold);
    transition: 0.3s;
}

/* Планшети та Смартфони */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    .nav-links {
        position: fixed; top: 70px; left: -100%;
        flex-direction: column; background: var(--dark-coffee);
        width: 100%; text-align: center; transition: 0.3s;
        padding: 40px 0; border-bottom: 1px solid var(--gold);
    }

    .nav-links.active { left: 0; }

    .hero h1 { font-size: 3.5rem; }
    
    .container { padding: 60px 5%; }
    
    .grid { grid-template-columns: 1fr; } /* Все в одну колонку */

    .audio-control {
        bottom: 20px; left: 20px;
        padding: 8px 15px; font-size: 0.8rem;
    }
}

/* Контейнер для фото, щоб обрізати зайве */
.card-img-container {
    width: 100%;
    height: 350px; /* Висота фото */
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* Саме зображення */
.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Фото заповнює блок без деформації */
    transition: transform 0.5s ease; /* Плавне збільшення */
    filter: sepia(30%) contrast(1.1); /* Магічний фільтр (трохи теплий) */
}

/* Ефект при наведенні на картку */
.project-card:hover .card-img-container img {
    transform: scale(1.1); /* Збільшення фото */
    filter: sepia(0%) contrast(1.2); /* Повернення реальних кольорів */
}

.project-card h3 {
    color: var(--gold);
    margin: 10px 0 5px;
}