@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --bg-main: #121212;
    --bg-secondary: #1a1a1a;
    --bg-accent: #242424;
    --text-main: #f5f5f5;
    --text-muted: #a0a0a0;
    --accent-gold: #d4af37;
    --accent-gold-hover: #f1c40f;
    --accent-slate: #2c3e50;
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 2rem 0;
}

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

.section-title h2 {
    font-size: 3rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-gold);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition-base);
    padding: 1.5rem 0;
}

header.scrolled {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    display: flex;
    flex-direction: column;
}

.logo a {
    color: inherit;
    text-decoration: none;
}

.logo a:hover {
    color: inherit;
}

.logo span {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), url('../images/bg.jpg') center/cover no-repeat;
    /* We will replace this with a better background in the loop */
    overflow: hidden;
}

.hero-content {
    max-width: 700px;
}

.hero-subtitle {
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s 0.2s forwards;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s 0.4s forwards;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s 0.6s forwards;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 2px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: var(--transition-base);
    position: relative;
    z-index: 1;
    overflow: hidden;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

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

.service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-10px);
    background: var(--bg-accent);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Gallery Section */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--accent-gold);
    color: #000;
    border-color: var(--accent-gold);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 280px;
    gap: 1rem;
    grid-auto-flow: dense;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-btn {
    color: var(--accent-gold);
    font-size: 2rem;
}

/* Wide / Tall items in gallery */
.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item.tall {
    grid-row: span 2;
}

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

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    color: var(--accent-gold);
    font-size: 1.2rem;
    width: 20px;
}

.contact-form {
    background: var(--bg-secondary);
    padding: 3rem;
    border: 1px solid var(--glass-border);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-accent);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    color: var(--text-main);
    font-family: inherit;
    transition: var(--transition-base);
}

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

/* Footer */
footer {
    background: var(--bg-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Quick Menu for Category Pages */
.quick-menu {
    position: sticky;
    top: 80px;
    /* Below scrolled header */
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    z-index: 900;
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 2rem;
}

.quick-menu .container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.quick-link {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition-base);
}

.quick-link:hover {
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
}

.mobile-toggle {
    display: none;
}

@media (max-width: 992px) {
    .quick-menu {
        top: 70px;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
        display: flex;
        font-size: 1.5rem;
        color: var(--accent-gold);
        cursor: pointer;
        z-index: 1100;
        transition: var(--transition-base);
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(26, 26, 26, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        padding: 2rem;
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

    .nav-links a {
        font-size: 1.2rem;
        letter-spacing: 0.2em;
    }

	.hero {
        height: auto;
        min-height: 100vh;
        padding-top: 130px; /* Odsuwa treść na wysokość Twojego nagłówka */
        padding-bottom: 60px; /* Dodaje oddech na dole ekranu */
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Fix Gallery Overflow */
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 1rem;
    }

    .gallery-item {
        aspect-ratio: 1 / 1;
        /* Keep images square on mobile */
        height: auto;
    }

    .gallery-item.wide,
    .gallery-item.tall {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}