/* =======================
   CSS Variables & Resets
   ======================= */
   :root {
    --primary-color: #f27b21; /* Firmowy pomarańcz MTM (przybliżony, wyrazisty) */
    --primary-hover: #d96816;
    --bg-main: #121215;
    --bg-darker: #0b0b0d;
    --bg-card: rgba(255, 255, 255, 0.03);
    
    --text-light: #f5f5f7;
    --text-dim: #9ca3af;
    --text-dark: #1f2937;
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body.dark-theme {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-dim);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-light);
    line-height: 1.2;
}

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

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

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

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

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

/* =======================
   Typography & Utils
   ======================= */
.section-title {
    margin-bottom: 3rem;
    text-align: center;
}

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

.line {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 14px rgba(242, 123, 33, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 123, 33, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--bg-main);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}
.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 14px rgba(242, 123, 33, 0.3);
}

.hidden {
    display: none !important;
}

/* Scroll Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =======================
   Nawigacja
   ======================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.header.scrolled {
    background: rgba(18, 18, 21, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px; /* dostosuj dla właściwego logo */
    object-fit: contain;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.social-links-header {
    margin-left: 2rem;
    display: flex;
    gap: 1rem;
}

.social-links-header a {
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links-header a svg {
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.8));
}

.social-links-header a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-light);
    transition: 0.3s;
}

/* =======================
   Hero Slider
   ======================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 5s ease-out;
    transform: scale(1.05);
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
    transform: scale(1);
}

.slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(11, 11, 13, 0.9) 0%, rgba(11, 11, 13, 0.4) 60%, transparent 100%);
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 80px;
}

.slide-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 1.2rem;
    max-width: 500px;
    margin-bottom: 40px;
    color: #e5e7eb;
}

.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 20px;
}

.slider-controls button {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.slider-controls button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px; height: 10px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    transform: scale(1.2);
}

/* =======================
   O Nas
   ======================= */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content .lead {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

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

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(242, 123, 33, 0.3);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.card-icon {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.8;
    margin-bottom: 20px;
}

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

.card p {
    font-size: 0.95rem;
}

/* =======================
   Usługi Dodatkowe
   ======================= */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.service-item {
    display: flex;
    align-items: center;
    background: var(--bg-main);
    padding: 20px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

.service-bullet {
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 20px;
    box-shadow: 0 0 10px rgba(242, 123, 33, 0.5);
}

.service-item h4 {
    font-size: 1.2rem;
    font-weight: 500;
}

/* =======================
   Standardy Jakości
   ======================= */
.quality-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.quality-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* =======================
   Galeria
   ======================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    /* Płynne wejście przy dodawaniu */
    transition: var(--transition);
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    /* Domyślnie nowo dodane mogą mieć też animację in w JS, ułatwiamy CSSem */
    animation: fadeInGallery 0.5s ease forwards;
}

@keyframes fadeInGallery {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(242, 123, 33, 0.2);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

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

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

.gallery-actions {
    text-align: center;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
}

.close-lightbox:hover {
    color: var(--primary-color);
}


/* =======================
   Marquee / Partnerzy
   ======================= */
.partners {
    padding: 60px 0;
    background: #000;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
    position: relative;
    display: flex;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-flex;
    animation: scroll 20s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Przesuwamy o połowę szerokości kontenera */
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    margin: 0 20px;
    opacity: 0.6;
    transition: opacity 0.3s;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: #555;
}

.partner-logo:hover {
    opacity: 1;
    color: var(--text-light);
}


/* =======================
   Kontakt
   ======================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.info-block {
    margin-bottom: 2rem;
}

.info-block h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.info-block p strong {
    color: var(--text-light);
    font-weight: 500;
}

.social-block .btn-social {
    display: inline-block;
    margin-right: 15px;
    margin-top: 10px;
    font-weight: 500;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 3px;
}

.social-block .btn-social:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(242, 123, 33, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.checkbox-group input {
    margin-top: 5px;
    cursor: pointer;
    accent-color: var(--primary-color); /* Wymaga nowoczesnej przeglądarki */
}

.checkbox-group label {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-dim);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

.form-message {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background-color: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-message.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}


/* =======================
   Footer
   ======================= */
.footer {
    padding: 30px 0;
    background-color: #050505;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    margin-left: 20px;
    color: var(--text-dim);
}

.footer-links a:hover {
    color: var(--primary-color);
}


/* =======================
   Media Queries (Responsiveness)
   ======================= */
@media (max-width: 1024px) {
    .slide-content h1 {
        font-size: 3rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
    }
    
    .nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
        display: none;
        background: var(--bg-main);
        padding: 20px;
        border-radius: 8px;
        border: 1px solid var(--border-subtle);
    }
    
    .nav.active {
        display: block;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .social-links-header {
        margin-left: 0;
        margin-top: 15px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .slide-content h1 {
        font-size: 2.2rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
}
