/* ==================================
   VARIABLES & SETUP
================================== */
:root {
    /* Colors */
    --bg-main: #06090f;
    /* Very dark blue/black */
    --bg-secondary: #0b101a;
    /* Slightly lighter dark background */
    --bg-card: rgba(18, 25, 38, 0.6);

    --primary: #007aff;
    /* Electric blue based on logo */
    --primary-glow: rgba(0, 122, 255, 0.5);
    --secondary: #00d2ff;

    --text-main: #f8f9fa;
    --text-muted: #a0aabf;

    --nav-bg: rgba(6, 9, 15, 0.85);

    /* Fonts */
    --font-family: 'Outfit', sans-serif;

    /* Transitions */
    --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul {
    list-style: none;
}

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

.section-padding {
    padding: 100px 0;
}

.bg-darker {
    background-color: var(--bg-secondary);
}

.highlight {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
}

/* ==================================
   TYPOGRAPHY
================================== */
h1,
h2,
h3,
h4 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -1px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 24px;
}

.section-title span {
    color: var(--primary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

p {
    margin-bottom: 16px;
    color: var(--text-muted);
}

/* ==================================
   BUTTONS
================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    box-shadow: 0 8px 25px -8px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px -5px var(--primary-glow);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.btn-primary-sm {
    background: var(--primary);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 15px -5px var(--primary-glow);
}

.btn-primary-sm:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* ==================================
   NAVIGATION
================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0 15px 0;
    /* Pasek zsunięty delikatnie w dół od górnej krawędzi okna */
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: transparent;
}

.navbar.scrolled {
    background: var(--nav-bg);
    padding: 15px 0 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 40px;
    /* Sztywna, niska wysokość paska nawigacji */
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    position: absolute;
    /* Pozwala logo urosnąć nie rozpychając flexa */
    top: 50%;
    transform: translateY(-50%);
    /* Idealnie w połowie linii całego paska nav */
    height: clamp(120px, 16vw, 180px);
    /* OGROMNE logo */
    width: auto;
    max-width: 350px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 122, 255, 0.3));
    transition: var(--transition-fast);
}

.navbar.scrolled .logo img {
    height: clamp(80px, 12vw, 130px);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
}

.nav-list li:not(:last-child) .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-fast);
    box-shadow: 0 0 8px var(--primary);
}

.nav-list li:not(:last-child) .nav-link:hover::after,
.nav-list li:not(:last-child) .nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1000;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-main);
    border-radius: 3px;
}

/* ==================================
   HERO SECTION
================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1618843479313-40f8afb4b4d8?auto=format&fit=crop&q=80&w=1920') no-repeat center center/cover;
    padding-top: 200px;
    /* Dodatkowe miejsce z góry by naprawić najeżdżające logo */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(6, 9, 15, 0.95), rgba(6, 9, 15, 0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* ==================================
   ABOUT SECTION
================================== */
.border-glow-box {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 60px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.border-glow-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 122, 255, 0.2), transparent);
    animation: sweepWash 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    /* Zwolniona, spokojniejsza animacja (8 sekund cykl zamiast 5!) */
    z-index: 0;
    pointer-events: none;
    transform: skewX(-20deg);
}

@keyframes sweepWash {
    0% {
        left: -150%;
    }

    20% {
        /* Wolniejszy, bardziej dystyngowany ślizg poświaty */
        left: 200%;
    }

    100% {
        left: 200%;
        /* Długa przerwa przed następnym błyskiem (80% czasu ukryte) */
    }
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.about-image img {
    border-radius: 12px;
    transition: transform 0.5s ease;
}

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

.image-overlay-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.2) 0%, transparent 100%);
    border-radius: 12px;
    pointer-events: none;
}

.features-list {
    margin-top: 30px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 500;
}

.features-list i {
    color: var(--primary);
    font-size: 1.3rem;
}

/* ==================================
   OFFER SECTION
================================== */
.offer-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 16px;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 122, 255, 0.2);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(0, 122, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 24px;
    transition: var(--transition-fast);
}

.card:hover .card-icon {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px var(--primary-glow);
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* ==================================
   CONTACT SECTION
================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 0 !important;
    align-items: stretch;
}

.contact-info {
    padding: 60px;
    z-index: 1;
}

.info-items {
    margin-top: 40px;
    display: grid;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 122, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.info-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-item p,
.info-item a {
    color: var(--text-muted);
    font-size: 1rem;
}

.info-item a:hover {
    color: var(--primary);
}

.contact-map {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 0 20px 20px 0;
    z-index: 1;
}

.studio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==================================
   FOOTER
================================== */
footer {
    background: #030509;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo h3 {
    color: var(--primary);
    margin-bottom: 5px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.footer-socials a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ==================================
   COOKIE CONSENT
================================== */
.cookie-consent {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    z-index: 2000;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-consent.show {
    transform: translateX(-50%) translateY(0);
}

.cookie-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.cookie-icon {
    font-size: 24px;
    color: var(--primary);
    margin-top: 2px;
}

.cookie-content p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.cookie-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-policy {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: underline;
}

.cookie-policy:hover {
    color: var(--text-main);
}

/* ==================================
   ANIMATIONS (Intersection Observer)
================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.is-visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* ==================================
   RESPONSIVE DESIGN
================================== */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

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

    .contact-map {
        border-radius: 0 0 20px 20px;
        height: 300px;
    }

    .border-glow-box {
        padding: 40px;
    }

    .contact-info {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 0;
        background: var(--nav-bg);
    }

    .logo {
        height: auto;
    }

    .logo img {
        height: clamp(90px, 20vw, 140px);
        max-width: 250px;
    }

    .navbar.scrolled .logo img {
        height: 70px;
    }

    .hero-content {
        margin-top: 130px;
        /* Move text lower down to avoid massive logo overlap */
        text-align: center;
        /* Center text */
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        /* Center buttons horizontally */
    }

    .btn {
        width: 100%;
    }

    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-main);
        flex-direction: column;
        justify-content: flex-start;
        /* Changed to flex-start */
        padding-top: 100px;
        /* Space for the X icon */
        transition: right 0.4s ease;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

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

    .nav-list {
        flex-direction: column;
        gap: 30px;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .cookie-consent {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        width: 95%;
    }

    .cookie-content {
        flex-direction: column;
        align-items: center;
    }

    .cookie-icon {
        margin-top: 0;
    }
}