/* ZEROWANIE I PODSTAWY */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&family=Inter+Tight:wght@400;500;700&display=swap');

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

body, html {
    font-family: 'Sora', sans-serif;
    background: #000;
    color: #fff;
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
}

/* KONTENER SLAJDERA - teraz zwykły flex/block */
#slider {
    position: relative;
    width: 100%;
}

/* PODSTAWY SLAJDU */
.slide {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0a0a0a;
    overflow: hidden;
}

#slide-0 { 
    background: #000; 
    position: sticky; 
    top: 0; 
    z-index: 1; 
    height: 100vh;
}
#slide-1 { 
    background: #0a0a0a; 
    position: relative; 
    z-index: 2; 
    box-shadow: 0 -30px 60px rgba(0,0,0,0.8);
}
#slide-2 { background: #0a0a0a; }

/* ELEMENTY SLAJDU 1 (HERO) */
#slide-0 {
    background: #000; /* Tło pod video */
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15); /* Delikatne powiększenie wideo w tle */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Ciemna nakładka */
}

.content {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    width: 100%;
}

/* TYPOGRAFIA I LOGO */
.logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 2rem;
    filter: invert(1);
    mix-blend-mode: screen;
}

.top-left-logo {
    position: absolute;
    top: 2.5rem;
    left: 2.5rem;
    max-width: 120px;
    z-index: 20;
    filter: invert(1);
    mix-blend-mode: screen;
    pointer-events: none;
}

.social-top-left {
    position: absolute;
    top: 2.5rem;
    left: 2.5rem;
    display: flex;
    gap: 1.2rem;
    z-index: 100;
}

.social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon svg {
    width: 100%;
    height: 100%;
    stroke: #fff;
    stroke-width: 2.5; /* Gruby outline */
}

.social-icon:hover {
    transform: scale(1.2) rotate(5deg);
    opacity: 0.8;
}

h1, h2, h3, .btn {
    font-family: 'Sora', sans-serif;
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
}

h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* PRZYCISKI */
.hero-buttons {
    display: flex;
    gap: 2rem; /* Zwiększony odstęp na desktopie */
    justify-content: center;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 9999px; /* pill shape */
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-filled {
    background: #fff;
    color: #000;
    border: 2px solid #fff;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

/* USŁUGI & KALKULATOR (SLAJD 2) */
#slide-1 {
    background: #0a0a0a;
}

.services-content {
    justify-content: center;
    width: 100%;
}

.services-header {
    position: relative;
    height: 100px;
    width: 100%;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.services-title {
    position: absolute;
    top: 10px;
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: opacity 0.4s ease;
}

.services-desc {
    position: absolute;
    top: 70px;
    font-family: 'Space Grotesk', sans-serif;
    opacity: 0.6;
    color: #fff;
    font-size: 1.1rem;
    transition: opacity 0.4s ease;
    text-align: center;
}

#live-counter {
    position: absolute;
    top: 15px;
    font-family: 'Sora', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.75rem);
    font-weight: 700;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    text-align: center;
    width: 100%;
    padding: 0 1rem;
}

.services-header.phase2 .services-title {
    opacity: 0;
    pointer-events: none;
}

.services-header.phase2 .services-desc {
    opacity: 0;
    pointer-events: none;
}

.services-header.phase2 #live-counter {
    opacity: 1;
}

@media (max-width: 768px) {
    .services-title { font-size: 2rem; top: 25px; }
    .services-desc { font-size: 0.9rem; top: 75px; }
    #live-counter { top: 30px; }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 1000px;
    margin: 2rem auto;
}

/* KAFELKI GRID */
.service-tile {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

/* ANIMACJE WEJŚCIA (REVEAL) */
.reveal {
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.8s ease;
    will-change: transform, opacity;
}

.reveal-left { transform: translateX(-150px) scale(0.9); }
.reveal-right { transform: translateX(150px) scale(0.9); }
.reveal-top { transform: translateY(-150px) scale(0.9); }

.reveal.visible {
    opacity: 1;
    transform: translate(0, 0);
}


.service-tile:hover {
    transform: translateY(-4px);
}

.service-tile.selected {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.service-tile h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-tile p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
}

.service-tile .small-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

/* Kalkulator (Aktualizacja) */
.calculator-panel {
    margin-top: 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* SLAJD 3 - KONTAKT */
#slide-2 {
    background: #0a0a0a;
    position: relative;
}

.watermark-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70vw;
    max-height: 70vh;
    object-fit: contain;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.contact-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.pre-heading {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0.5;
    margin-bottom: 1rem;
    color: #fff;
}

.contact-content h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 5rem;
    font-weight: 400;
    color: #fff;
    text-transform: none;
    margin-bottom: 1rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.contact-link {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-link:hover {
    opacity: 0.6;
}

.location-text {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: #fff;
    opacity: 0.6;
    margin-top: 0.5rem;
}

/* RESPONSYWNOŚĆ (MOBILE) */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }

    .subtitle {
        margin-bottom: 2rem;
        font-size: 0.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: auto;
        align-items: center;
        gap: 1.2rem; /* Większy odstęp między przyciskami na mobile */
    }
    
    .btn {
        width: auto; /* Nie dotykają krawędzi, nie są pełnej szerokości */
        min-width: 220px; /* Stała, elegancka szerokość */
        padding: 0.8rem 2rem;
        font-size: 0.85rem;
    }
    
    .services-content {
        padding-top: 1rem;
    }

    .services-header {
        margin-bottom: 0.5rem;
    }

    #live-counter {
        font-size: 2.2rem; /* DUŻY na mobile */
        margin-bottom: 0px;
    }

    .services-hint {
        font-size: 0.7rem; /* Zmniejszone znacznie */
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin: 1rem auto;
    }
    
    .service-tile {
        padding: 0.9rem 0.5rem !important; /* Mniejsze paddingi wew. o 40% */
        min-height: auto !important;
        border-radius: 8px;
    }
    
    .service-tile h3 {
        font-size: 0.75rem !important; /* Zmniejszone o 40% (z ~1.25) */
        margin-bottom: 0.3rem;
    }
    
    .service-tile p {
        font-size: 0.6rem !important; /* Zmniejszone o 40% (z 1rem) */
    }

    .calculator-panel {
        margin-top: 0.5rem;
    }

    .contact-links {
        margin-top: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .contact-link {
        font-size: 1.2rem;
    }

    .watermark-img {
        width: 90vw;
    }
}
