:root {
    --primary-blue: #0066cc;
    --primary-blue-hover: #005bb5;
    --dark-gray: #333333;
    --text-light: #666666;
    --bg-light: #fefefe;
    --bg-gray: #f4f4f5;
    --white: #ffffff;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    scroll-padding-top: 150px;
}

body {
    background-color: var(--bg-light);
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10%;
    /* Zminimalizowany pionowy padding, boczne wyrównane do ramy 10% */
    background: var(--white);
    /* Czysta, biznesowa biel zamiast mdłego szkła */
    z-index: 1000;
    box-shadow: none;
    /* Shadow zdejmujemy z cssa - wraca przy scrollu w JS */
    transition: var(--transition);
}

.logo-container .logo {
    height: 110px;
    /* Adjust based on actual logo proportion */
    width: auto;
    transition: var(--transition);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 45px;
    /* Wiecej oddechu */
}

.nav-links li a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 700;
    /* Solidniejsze linki menu */
    font-size: 1.05rem;
    /* Zwiększenie objętości */
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
}

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

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

.nav-links li a:hover {
    color: var(--primary-blue);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    transition: var(--transition);
}

/* Typography & Utilities */
h1,
h2,
h3 {
    line-height: 1.2;
}

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

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: 800;
    position: relative;
    display: block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 18px 40px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.primary-btn {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.primary-btn:hover {
    background: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 160px 10% 60px;
    /* Lekko podbity padding z uwagi na duże logo */
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.3)), url('assets/main.webp') center/cover no-repeat;
    color: var(--white);
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Services */
.services {
    background-color: var(--bg-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    top: 0;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.service-img-wrapper {
    height: 250px;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img {
    transform: scale(1.05);
    /* Subtle zoom on hover */
}

.service-info {
    padding: 30px;
}

.service-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.service-info p {
    color: var(--text-light);
    font-size: 1rem;
}

/* ========================================== */
/* WERSJA 1: Dlaczego My? (Siatka / Kafelki)  */
/* ========================================== */
.why-us {
    background: linear-gradient(180deg, #ffffff 0%, #f3f6fa 100%);
    color: var(--dark-gray);
}

.why-us {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5fb 100%);
}

.why-us .section-title::after {
    background: var(--primary-blue);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.why-us-card {
    background: var(--white);
    border-radius: 20px;
    padding: 45px 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.why-us-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(0, 102, 204, 0.08), transparent);
    opacity: 0;
    transition: 0.4s;
}

.why-us-card:hover::before {
    opacity: 1;
}

.why-us-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 102, 204, 0.1);
}

.why-us-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-blue);
    opacity: 0;
    transition: 0.3s;
}

.why-us-card:hover::after {
    opacity: 1;
}

.why-us-card .icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background: var(--bg-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    transition: transform 0.4s ease, background 0.4s ease, color 0.4s ease;
}

.why-us-card .icon-wrapper {
    width: 75px;
    height: 75px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #eaf1ff, #dbe9ff);
    border-radius: 20px;
    /* zamiast kółka → bardziej nowocześnie */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    transition: all 0.4s ease;
}

.why-us-card .icon-wrapper svg {
    width: 35px;
    height: 35px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.why-us-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--dark-gray);
}

.why-us-card p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Trusted Materials */
.trusted-materials {
    background-color: var(--white);
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.materials-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    font-weight: 600;
}

.brands-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    /* Increased gap */
    flex-wrap: wrap;
}

.brand-logo {
    height: 90px;
    /* Increased height */
    max-width: 250px;
    /* Increased max width */
    object-fit: contain;
    transition: var(--transition);
}

.brand-logo:hover {
    transform: scale(1.05);
}

/* Certified Partner */
.certified-partner {
    background-color: var(--bg-gray);
    position: relative;
}

.partner-content {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--shadow-sm);
    gap: 50px;
    border-left: 5px solid var(--primary-blue);
    transition: var(--transition);
}

.partner-content:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.partner-logo-wrapper {
    flex: 0 0 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 40px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.partner-logo {
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: contain;
}

.partner-text {
    flex: 1;
}

.partner-text h2 {
    font-size: 2rem;
    color: var(--dark-gray);
    margin-bottom: 15px;
    font-weight: 800;
}

.partner-text p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .partner-content {
        flex-direction: column;
        text-align: center;
        padding: 30px;
        gap: 30px;
        border-left: none;
        border-top: 5px solid var(--primary-blue);
    }

    .partner-logo-wrapper {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding-bottom: 30px;
        flex: auto;
        width: 100%;
    }
}

/* Portfolio Section */
.portfolio {
    background-color: var(--bg-light);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--primary-blue);
    background: transparent;
    color: var(--primary-blue);
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-blue);
    color: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.portfolio-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.portfolio-item.hide {
    display: none !important;
}

.portfolio-item.show {
    animation: fadeIn 0.4s ease-out forwards;
}

.portfolio-item.hiding {
    animation: fadeOut 0.3s ease-in forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.95);
    }
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.portfolio-img-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 102, 204, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay span {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    padding: 0 20px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay span {
    transform: translateY(0);
}

/* Contact Footer */
.contact {
    background-color: var(--white);
}

.contact-box {
    background: linear-gradient(135deg, #2d2d2d 0%, #353535 100%);
    color: var(--white);
    border-radius: 20px;
    padding: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.contact-box::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--white);
    border-radius: 50%;
    opacity: 0.1;
}

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.contact-info>p {
    opacity: 0.8;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.contact-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 20px 30px;
    border-radius: 15px;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59,130,246,0.18);
}

.contact-item:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.15);
}

.contact-item .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3B82F6;
    background: rgba(255, 255, 255, 0.15);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    transition: var(--transition);
    flex-shrink: 0;
}

.contact-item:hover .icon {
    background: #3B82F6;
    color: var(--white);
}

.contact-item .icon svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.contact-item .details {
    text-align: left;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.contact-item .label {
    font-size: 0.85rem;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item .value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #3B82F6;
    word-break: break-word;
    overflow-wrap: break-word;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    color: var(--text-light);
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Animations - Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-container .logo {
        height: 70px;
    }

    .menu-toggle {
        display: flex;
    }

    .navbar {
        padding: 15px 20px;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 20px;
        transform: translateY(-200%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hero {
        padding: 120px 5% 60px;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-padding {
        padding: 60px 15px;
    }

    .contact-box {
        padding: 40px 20px;
    }

    .contact-info h2 {
        font-size: 1.8rem;
    }

    .contact-details {
        flex-direction: column;
        gap: 15px;
    }

    .contact-item {
        width: 100%;
        justify-content: flex-start;
        padding: 20px;
    }

    .contact-item .value {
        font-size: 1.05rem;
    }
}

/* Lightbox Styles */
.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;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.show {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2010;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.prev-lightbox, .next-lightbox {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    background-color: rgba(0,0,0,0.3);
    border: none;
    z-index: 2010;
}

.prev-lightbox {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.next-lightbox {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev-lightbox:hover, .next-lightbox:hover {
    background-color: rgba(0,0,0,0.8);
}

.portfolio-img-wrapper {
    cursor: pointer;
}

/* Floating Action Button */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s ease;
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: var(--primary-blue-hover);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: var(--white);
}

/* Subtle Pulse Animation for Floating Button */
@keyframes pulse-ring {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(0, 102, 204, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 102, 204, 0); }
}

.floating-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
    z-index: -1;
}

@media (max-width: 768px) {
    .floating-btn {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .floating-btn svg {
        width: 24px;
        height: 24px;
    }
}
