﻿/* --- RESET & VARIABLES --- */
:root {
    --bg-color: #161616; /* Głęboka czerń/szarość jak w oryginale */
    --text-color: #ffffff;
    --text-muted: #999999;
    --accent: #ffffff;
    --border-color: rgba(255,255,255,0.1);
    --font-main: 'Poppins', sans-serif;
    --container-width: 1280px; /* Szerokość kontentu */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    cursor: none; /* Custom cursor */
}

a { text-decoration: none; color: inherit; transition: 0.3s; cursor: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.light { font-weight: 300; }

/* Kluczowe ustawienie kontenera - logo i menu nie są na skraju */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* --- CUSTOM CURSOR --- */
.cursor {
    width: 8px; height: 8px; background: white; border-radius: 50%;
    position: fixed; pointer-events: none; z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
}
.cursor-follower {
    width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.3); border-radius: 50%;
    position: fixed; pointer-events: none; z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 30px 0;
    z-index: 1000;
    transition: 0.3s;
    mix-blend-mode: difference;
}
.navbar.scrolled {
    background: rgba(12,12,12,0.65);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    mix-blend-mode: normal;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.menu-trigger {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.menu-text {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.burger-icon {
    width: 30px;
    height: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}
.burger-icon span {
    display: block;
    height: 2px;
    background: white;
    width: 100%;
    transition: 0.3s;
}
.burger-icon span:last-child { width: 70%; }
.menu-trigger:hover .burger-icon span:last-child { width: 100%; }

/* --- FULLSCREEN MENU --- */
.hamenu {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: #000;
    z-index: 2000;
    transform: translateY(-100%);
    display: flex;
    align-items: center;
}

.menu-close {
    position: absolute;
    top: 40px; right: 40px; /* Wewnątrz kontenera dynamicznie w JS lub relative */
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hamenu .container { position: relative; height: 100%; display: flex; align-items: center; }

.menu-content {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding-top: 60px;
}

.menu-links ul li { margin-bottom: 10px; overflow: hidden; }
.menu-links a {
    font-size: 80px;
    font-weight: 700;
    line-height: 1.1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.5);
    text-transform: uppercase;
    display: block;
    transform: translateY(100%);
    transition: 0.3s;
}
.menu-links a:hover {
    color: #fff;
    -webkit-text-stroke: 1px #fff;
    transform: translateX(20px) translateY(0) !important;
}
.menu-links .idx {
    font-size: 18px;
    font-weight: 400;
    color: #fff;
    -webkit-text-stroke: 0;
    margin-right: 20px;
    vertical-align: middle;
}

.menu-info {
    max-width: 300px;
    padding-top: 20px;
}
.info-block { margin-bottom: 40px; opacity: 0; transform: translateY(20px); }
.info-block h6 { color: var(--text-muted); font-size: 12px; margin-bottom: 10px; letter-spacing: 1px; }
.info-block p, .social-links a { font-size: 16px; line-height: 1.6; display: block; }
.social-links a { margin-bottom: 5px; }

/* --- HERO SECTION --- */
.hero-section {
    padding-top: 180px;
    padding-bottom: 100px;
    min-height: 100vh;
}
.hero-text h1 {
    font-size: clamp(40px, 4.5vw, 80px);
    line-height: 1.2;
    font-weight: 500;
    text-align: center;
    margin-bottom: 80px;
}
.hero-image-wrapper {
    width: 100%;
    height: 60vh;
    overflow: hidden;
}
.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.2); /* For parallax */
}

/* --- ABOUT SECTION --- */
.about-section { padding: 100px 0; }
.sub-label {
    font-size: 12px; text-transform: uppercase; letter-spacing: 2px;
    color: var(--text-muted); display: block; margin-bottom: 20px;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 80px;
}
.about-title h2 {
    font-size: clamp(34px, 3vw, 60px);
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: 1px;
}
.about-copy p {
    font-size: clamp(18px, 2vw, 26px);
    line-height: 1.6;
    color: #e6e6e6;
}

.services-list { border-top: 1px solid var(--border-color); }
.service-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
    transition: 0.3s;
}
.service-row:hover { padding-left: 20px; background: rgba(255,255,255,0.02); }
.srv-meta { width: 20%; color: var(--text-muted); font-size: 14px; }
.srv-title { width: 50%; font-size: 28px; font-weight: 500; }
.srv-link { width: 30%; text-align: right; opacity: 0; transition: 0.3s; }
.service-row:hover .srv-link { opacity: 1; transform: translateX(-10px); }

/* --- HORIZONTAL SCROLL PORTFOLIO (CRITICAL) --- */
.horizontal-section {
    overflow: hidden; /* Ukrywamy nadmiar poziomy */
    /* Wysokość jest nadawana przez pin GSAP */
}

.horizontal-wrapper {
    display: flex;
    flex-wrap: nowrap;
    width: fit-content; /* Szerokość zależna od zawartości */
    height: 100vh; /* Wysokość pełnego ekranu */
    padding-left: calc((100vw - var(--container-width)) / 2 + 20px); /* Odsunięcie pierwszego elementu, by zaczynał się w containerze */
}

.panel {
    width: 70vw; /* Szerokość pojedynczej karty */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 80px; /* Odstęp między kartami */
    flex-shrink: 0;
}

.panel-img {
    width: 100%;
    height: 60vh;
    overflow: hidden;
    margin-bottom: 30px;
}
.panel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.panel:hover .panel-img img { transform: scale(1.05); }

.panel-info { position: relative; }
.panel-info h3 { font-size: 32px; font-weight: 500; margin-bottom: 5px; }
.panel-info span { font-size: 14px; text-transform: uppercase; color: var(--text-muted); letter-spacing: 1px; }
.panel-info .year { float: right; }

/* --- MARQUEE --- */
.marquee-section { padding: 100px 0; border-bottom: 1px solid var(--border-color); overflow: hidden; }
.marquee-track { white-space: nowrap; overflow: hidden; }
.marquee-content {
    display: inline-block;
    font-size: 60px;
    font-weight: 700;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.3);
    animation: marquee 20s linear infinite;
}
.marquee-content i { font-size: 30px; margin: 0 40px; vertical-align: middle; color: #fff; -webkit-text-stroke: 0; }

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- WHAT WE DO --- */
.what-we-do { padding: 120px 0; }
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.circle-stat {
    width: 300px; height: 300px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    margin: 0 auto;
}
.big-num { font-size: 80px; font-weight: 700; }
.label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-top: 10px; }

.services-col h3 { font-size: 50px; margin-bottom: 50px; text-transform: uppercase; }
.acc-item {
    padding: 30px 0; border-bottom: 1px solid var(--border-color);
    display: flex; justify-content: space-between; align-items: center; cursor: pointer;
}
.acc-item h4 { font-size: 20px; font-weight: 400; }
.acc-item .plus { font-size: 24px; transition: 0.3s; }
.acc-item:hover .plus { transform: rotate(90deg); color: var(--text-color); }

/* --- GET IN TOUCH SECTION --- */
.get-in-touch-section { padding: 120px 0; background: #e6e6e6; color: #161616; }
.get-in-touch-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}
.get-in-touch-title h3 {
    font-size: clamp(32px, 4vw, 56px);
    text-transform: uppercase;
    margin-top: 10px;
}
.get-in-touch-title .muted { color: #555; margin-top: 15px; font-size: 18px; }
.get-in-touch-info p { margin-bottom: 16px; font-size: 18px; }
.get-in-touch-info a { color: #161616; border-bottom: 1px solid rgba(0,0,0,0.4); }
.get-in-touch-cta {
    display: inline-block;
    margin-top: 10px;
    padding: 14px 26px;
    border: 1px solid #161616;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}
.get-in-touch-cta:hover { background: #161616; color: #fff; }

/* --- CONTACT SECTION --- */
.contact-section { padding: 150px 0; }
.contact-header { text-align: center; margin-bottom: 60px; }
.contact-header h3 { font-size: 60px; text-transform: uppercase; }

.contact-form { max-width: 800px; margin: 0 auto; }
.form-row { display: flex; gap: 30px; margin-bottom: 40px; }
.input-group { width: 100%; margin-bottom: 40px; }
.input-group input, .input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    color: #fff;
    font-size: 18px;
    font-family: var(--font-main);
}
.input-group input:focus, .input-group textarea:focus { outline: none; border-bottom-color: #fff; }

.form-submit { text-align: center; margin-top: 60px; }
.circle-btn {
    width: 150px; height: 150px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}
.circle-btn:hover { background: #fff; color: #000; transform: scale(1.1); }

/* --- FOOTER --- */
footer { padding-top: 100px; padding-bottom: 30px; }
.footer-cta { margin-bottom: 100px; }
.small-text { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 20px; }
.big-mail { font-size: clamp(30px, 5vw, 70px); font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 5px; }
.big-mail:hover { border-bottom-color: #fff; }

.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; margin-bottom: 80px; }
.col-logo h3 { font-size: 30px; }
.col-social h6, .col-office h6 { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; letter-spacing: 1px; }
.col-social ul li { margin-bottom: 10px; }
.col-social a:hover { padding-left: 5px; color: #fff; }
.col-office p { margin-bottom: 20px; font-size: 18px; color: #ccc; }
.col-office .phone { font-size: 20px; font-weight: 600; text-decoration: underline; }

.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 30px; display: flex; justify-content: space-between; font-size: 14px; color: var(--text-muted); }
.footer-bottom .links a { margin-right: 20px; }
.footer-bottom .crafted { color: #cfcfcf; }

/* --- SCROLL TO TOP --- */
.scroll-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 64px;
    height: 64px;
    border: none;
    background: rgba(12,12,12,0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1200;
    display: grid;
    place-items: center;
    color: #fff;
}
.scroll-progress { width: 64px; height: 64px; transform: rotate(-90deg); }
.progress-track {
    fill: none;
    stroke: rgba(255,255,255,0.2);
    stroke-width: 6;
}
.progress-indicator {
    fill: none;
    stroke: #ffffff;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 289;
    stroke-dashoffset: 289;
    transition: stroke-dashoffset 0.2s linear;
}
.scroll-arrow {
    position: absolute;
    font-size: 18px;
    transform: translateY(-1px);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .menu-content { flex-direction: column; }
    .menu-links a { font-size: 40px; }
    .menu-info { margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }
    
    .two-col-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 20px; }
    .get-in-touch-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; gap: 0; }
    .hero-text h1 { font-size: 36px; }
    
    .panel { width: 90vw; } /* Mobile horizontal cards */
}

