/* ==========================================================================
   SPIS TREŚCI:
   01. Variables & Reset
   02. Global & Typography
   03. Utilities & Layout
   04. Buttons
   05. Components
       - Navigation
       - Hero Section
       - Achievements
       - Timeline (Premium)
       - E-commerce Grid (Premium)
       - Career Gallery
       - Testimonials
       - Location / Map
       - Footer
   06. Animations
   07. Mobile / Media Queries (Max-width: 768px)
   ========================================================================== */

/* --- 01. VARIABLES & RESET --- */
:root {
    --bg-main: #ffffff;
    --bg-light: #f7f7f7;
    --text-dark: #111111;
    --text-muted: #555555;
    --accent: #0056b3; 
    --whatsapp: #25D366;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-main);
    line-height: 1.6;
}

/* --- LANGUAGE TOGGLE LOGIC --- */
body.lang-en .pl { display: none !important; }
body.lang-pl .en { display: none !important; }

/* --- 02. GLOBAL & TYPOGRAPHY --- */
h1, h2, h3 {
    font-weight: 800;
    margin-bottom: 1rem;
}
h1 { font-size: 3.5rem; line-height: 1.1; }
h2 { font-size: 2.5rem; }

.subtitle { 
    font-size: 1.2rem; 
    color: var(--text-muted); 
    margin-bottom: 2rem; 
}

/* --- 03. UTILITIES & LAYOUT --- */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.mt-4 { margin-top: 4rem; }
.bg-light { background-color: var(--bg-light); }
.section-padding { padding: 6rem 0; }

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

.shadow-img {
    width: 100%;
    border-radius: 20px;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.desktop-only-img {
    width: 100%;
    height: 280px; 
    object-fit: cover;
    border-radius: 20px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.mobile-only-img { 
    display: none; 
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.row-reverse {
    direction: rtl; 
}

.row-reverse > * {
    direction: ltr; 
}

/* Minimal / Off-White Premium Base */
.minimal-page {
    background-color: var(--bg-main);
    color: #000;
}
.minimal-header { margin-bottom: 4rem; }
.minimal-header.border-bottom {
    border-bottom: 2px solid #000;
    padding-bottom: 2rem;
}
.minimal-header h1 {
    font-size: 4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.minimal-subtitle {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* --- 04. BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.btn:hover { 
    transform: translateY(-3px); 
}

.btn-primary {
    background: rgba(255, 255, 255, 0.10); 
    -webkit-backdrop-filter: blur(6px); 
    backdrop-filter: blur(6px); 
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.btn-primary:hover { 
    background: #ffffff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    color: var(--text-dark);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2); 
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
    gap: 10px;
    font-size: 1.1rem;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover { 
    background: #20b858; 
}


/* ==========================================================================
   05. COMPONENTS
   ========================================================================== */

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #eaeaea;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
}
.logo {
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--text-dark);
    letter-spacing: 1px;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    margin: 0 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--accent); }

/* Desktop overrides for mobile menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
}
.icon-close { display: none; }

.lang-switcher button {
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    margin-left: 0.5rem;
    transition: color 0.3s ease;
}
.lang-switcher button.active {
    color: var(--accent);
    text-decoration: underline;
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    background-color: #222;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url('hero-bg.webp');
}
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: #ffffff;
}
.hero-content .subtitle { color: #dddddd; }

/* --- ACHIEVEMENTS SECTION --- */
.achievements {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('background-carrer.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 8rem 0; 
}
.achievements h2 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 4rem; 
    font-size: 2.8rem;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem; 
}
.achievement-col {
    display: flex;
    flex-direction: column;
    gap: 2.5rem; 
}
.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 3rem; 
    border-radius: 20px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.2); 
    border: 1px solid rgba(255, 255, 255, 0.5);
    flex-grow: 1;
}
.card h3 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}
.card ul { list-style: none; margin-top: 1rem; }
.card ul li { 
    margin-bottom: 1rem; 
    position: relative; 
    padding-left: 1.5rem; 
    color: var(--text-dark);
    line-height: 1.4;
}
.card ul li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
}

/* --- PREMIUM TIMELINE --- */
.premium-timeline {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #000;
}
.timeline-row {
    display: grid;
    grid-template-columns: 100px 1fr 1fr;
    gap: 2rem;
    border-bottom: 1px solid #000;
    padding: 3rem 0;
    align-items: start;
}
.timeline-date {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
}
.timeline-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    filter: grayscale(100%); 
    transition: filter 0.3s ease;
}
.timeline-image img:hover { filter: grayscale(0%); }
.timeline-info h2 {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.timeline-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- E-COMMERCE GRID --- */
.ow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px; 
    background-color: #000; 
    border: 1px solid #000;
}
.ow-card {
    background-color: #fff;
    position: relative;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}
.ow-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: 1px solid #000;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.ow-image {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: #f0f0f0; 
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.ow-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ow-details h3 {
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}
.ow-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- CAREER GALLERY --- */
.career-gallery {
    position: relative; 
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}
.gallery-wrapper {
    position: relative; 
    width: 100%;
    height: 100%;
}
.gallery-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-slide.active { opacity: 1; z-index: 1; }
.gallery-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.7); 
}
.gallery-overlay {
    position: absolute;
    bottom: 10%; left: 5%;
    z-index: 2;
}
.info-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    max-width: 450px;
    border-left: 5px solid #000;
    backdrop-filter: blur(10px);
}
.info-box .date {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.info-box h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}
.nav-arrow {
    position: absolute; 
    top: 50%; transform: translateY(-50%);
    z-index: 100;
    background: transparent; border: none;
    cursor: pointer;
    padding: 15px; 
    transition: all 0.3s ease;
    opacity: 0.6;
    display: flex;
    align-items: center; justify-content: center;
}
.nav-arrow svg { color: #ffffff; display: block; }
.nav-arrow:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}
.prev { left: 30px; }
.next { right: 30px; }

.progress-bar {
    position: absolute; bottom: 0; left: 0;
    height: 4px; background: white;
    z-index: 1000; width: 0%;
}
.active-progress { animation: progressAnim 15s linear infinite; }

/* --- TESTIMONIALS SECTION --- */
.testimonial-wrapper {
    display: flex !important;
    flex-direction: column !important; /* Wymusza układ jeden pod drugim */
    align-items: center;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-slider {
    width: 100%;
    max-width: 650px; 
    margin: 0 auto;
    position: relative;
}

.testimonial-card {
    position: absolute; top: 0; left: 0;
    width: 100%;
    background: #ffffff;
    border-radius: 20px; 
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    opacity: 0; visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: flex; flex-direction: column;
}

.testimonial-card.active {
    opacity: 1; visibility: visible;
    position: relative; 
}

/* Kropki - wycentrowane z marginesem u dołu */
.testi-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 2rem; 
    width: 100%;
}

.testi-dot {
    width: 12px; height: 12px;
    background-color: #a0a0a0;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.testi-dot.active::after {
    content: '';
    position: absolute;
    top: -6px; left: -6px; right: -6px; bottom: -6px;
    border: 1px solid #a0a0a0; 
    border-radius: 50%;
}

.testi-header {
    display: flex; align-items: center;
    gap: 1.2rem; margin-bottom: 1.5rem;
}
.profile-pic {
    width: 70px; height: 70px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #e0e0e0; 
}
.client-info {
    display: flex; flex-direction: column;
    justify-content: center; gap: 0.3rem;
}
.verified-svg {
    width: 20px; height: 20px;
    color: #007bff; 
    flex-shrink: 0; display: block;
    overflow: visible; 
    transform: translateY(0px); 
}
.client-name {
    display: flex; align-items: center;
    gap: 6px; line-height: 1; font-weight: 800;
}
.testi-rating { display: flex; gap: 3px; }
.star-icon {
    width: 18px; height: 18px;
    background-color: #FFD700; 
    -webkit-mask: url('star.svg') no-repeat center / contain;
    mask: url('star.svg') no-repeat center / contain;
    display: inline-block;
}
.testi-text {
    font-size: 1.1rem; font-style: italic;
    color: var(--text-muted);
    margin-bottom: 0; line-height: 1.8;
}

/* Custom padding fix for About sections */
section#about.section-padding { padding-bottom: 3.1rem !important; }
section#about + section.section-padding { padding-top: 3.1rem !important; }

/* --- LOCATION & MAP --- */
.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
    text-align: left; 
}
.map-container {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    z-index: 1; 
}
.loc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.loc-item h4 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

/* --- FOOTER --- */
footer {
    padding: 2rem 0;
    background: var(--bg-light); 
    color: var(--text-muted);     
    font-size: 0.9rem;
}

/* --- 06. ANIMATIONS --- */
.fade-in { animation: fadeIn 1s ease-in-out forwards; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes progressAnim {
    from { width: 0%; }
    to { width: 100%; }
}

/* ==========================================================================
   07. MOBILE / MEDIA QUERIES (Max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* --- Navigation --- */
    .nav-container {
        display: flex !important;
        justify-content: space-between !important; 
        align-items: center !important;
        padding: 0 1.5rem !important;
        height: 70px;
        position: relative;
    }
    .hamburger {
        display: block !important;
        position: relative !important;
        transform: none !important;
        z-index: 1001;
        order: 1; 
    }
    .logo {
        margin: 0 !important;
        font-size: 1.4rem;
        z-index: 1000;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
    }
    .lang-switcher {
        display: block !important; 
        z-index: 1001;
        order: 2; 
    }
    .nav-links {
        display: none; 
        position: absolute;
        top: 70px; 
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 1rem 0 !important;
        text-align: center;
        border-bottom: 1px solid #eaeaea;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        z-index: 999;
    }
    .nav-container.active .nav-links { display: flex; }
    .nav-links a {
        margin: 0;
        padding: 1.2rem 2rem !important; 
        font-size: 1.2rem !important;
        width: 100%;
        border-bottom: 1px solid #f9f9f9;
        display: block;
    }
    .nav-links a:last-child { border-bottom: none; }

    /* Icons Toggle */
    .hamburger .icon-burger { display: block; }
    .hamburger .icon-close { display: none; }
    .nav-container.active .hamburger .icon-burger { display: none; }
    .nav-container.active .hamburger .icon-close { 
        display: block;
        color: var(--accent); 
    }

    /* --- General Layout --- */
    .split-layout {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    .split-text { order: 1; }
    .split-image { order: 2; }
    .minimal-header h1 { font-size: 2.5rem; }

    /* --- Testimonials --- */
   .testimonial-wrapper {
        display: flex !important;
        flex-direction: column !important; 
        align-items: center;
        position: relative;
    }
    .testimonial-slider {
        width: 100%;
    }
    .testimonial-card { padding: 2rem 1.5rem; }
    
    .testi-dots {
        margin-bottom: 1.5rem; 
        width: 100%;
        height: auto;
    }
    .testi-dot {
        width: 10px; height: 10px;
    }

    /* --- Location / Contact --- */
    .location-content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    .map-container {
        order: 1;
        width: 100%;
        height: 350px !important;
        min-height: 350px;
        position: relative;
        z-index: 10; 
        pointer-events: auto !important;
    }
    .map-container iframe {
        width: 100% !important;
        height: 100% !important;
        pointer-events: auto !important;
    }
    .location-details p { 
        margin-bottom: 0.2rem !important; 
        line-height: 1.4;
    }
    .loc-grid {
        display: flex;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.8rem !important; 
        width: 100%;
        margin-top: 1rem;
    }
    .loc-item h4 { margin-bottom: 0.2rem !important; }

    .whatsapp-btn {
        display: flex !important;
        margin: 1rem auto 0 auto !important; 
        width: fit-content !important;
        white-space: nowrap !important;
        justify-content: center;
        align-items: center;
        padding: 12px 25px;
    }

    /* --- Others (Timeline & E-commerce) --- */
    .timeline-row { grid-template-columns: 1fr; gap: 1rem; padding: 2rem 0; }
    .ow-grid { grid-template-columns: 1fr; border: none; }
    .ow-card { flex-direction: row; align-items: center; padding: 1rem 0; border-bottom: 1px solid #000; gap: 1rem; }
}
