@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Colors */
    --bg-color: #121214;
    /* Głębszy grafit, prawie czerń ale z charakterem */
    --bg-secondary: #1a1a1d;
    --bg-transparent: rgba(18, 18, 20, 0.85);
    /* do navbaru */
    --text-main: #f0f0f0;
    --text-muted: #8b8b93;
    --accent-color: #d4af37;
    /* Eleganckie, zgaszone złoto do subtelnych akcentów */

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    /* Layout */
    --nav-height: 80px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

section {
    padding: 120px 0;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
    opacity: 0.5;
}

/* --- Typography --- */
h1,
h2,
h3,
.logo {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 100;
    transition: var(--transition);
    background: var(--bg-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.logo {
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo span {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    margin: 5px 0;
    transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--bg-secondary);
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
}

.mobile-menu li {
    margin: 2rem 0;
}

.mobile-menu a {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

/* --- Portfolio Section --- */
.portfolio {
    background-color: var(--bg-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 3rem;
}

.portfolio-item {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    background: #000;
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.item-info {
    padding: 1.5rem;
}

.item-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.item-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Portfolio Button --- */
.portfolio-more {
    text-align: center;
    margin-top: 4rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--bg-secondary);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
}

.btn:hover {
    background-color: var(--accent-color);
    color: #000;
}

/* --- Marquee Section (Współpracowałem z) --- */
.clients {
    background-color: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.marquee-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    padding: 2rem 0;
    display: flex;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.02) 50%, transparent);
}

.marquee-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.client-name {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.4);
    transition: var(--transition);
    cursor: default;
}

.client-name:hover {
    color: var(--text-main);
}

.client-separator {
    margin: 0 3rem;
    color: var(--accent-color);
    font-size: 1.5rem;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Działa bo zawartość jest zduplikowana, musi przeskoczyć w połowie by było płynnie */
}

/* --- Contact Section --- */
.contact {
    background-color: var(--bg-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
}

.contact-text .section-title {
    text-align: left;
}

.contact-text .section-title::after {
    left: 0;
    transform: none;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.contact-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
}

.contact-card .icon {
    font-size: 2rem;
}

.contact-card h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Footer --- */
footer {
    padding: 3rem 0;
    background-color: #0d0d0e;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-content .logo {
    font-size: 1.2rem;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* --- Animations & Utilities --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media screen and (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-text .section-title {
        text-align: center;
    }

    .contact-text .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-text p {
        margin: 0 auto;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .section-title {
        font-size: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}