/* ========================================= */
/* 1. ZMIENNE I BAZA */
/* ========================================= */
:root {
    --bg-dark: #050505;
    --accent: #D30000; 
    --accent-dark: #8a0000; 
    --accent-glow: rgba(211, 0, 0, 0.5); 
    --text-main: #ffffff;
    --font-header: 'Oswald', sans-serif;
    --font-tech: 'Rajdhani', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

body { 
    margin: 0;
    padding: 0; 
    background-color: var(--bg-dark); 
    color: var(--text-main); 
    font-family: var(--font-tech); 
    overflow-x: hidden;
    width: 100%;
}

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

.text-accent {
    color: #FF3333;
}

.text-white {
    color: #fff;
}

.full-width {
    width: 100%;
}

.slash {
    color: var(--accent);
    margin: 0 3px;
}

.section-header,
.text-center { 
    text-align: center; 
    margin-bottom: 40px; 
}

.section-header h2 {
    font-family: var(--font-header);
    font-size: 2.5rem;
    margin: 10px 0;
    color: #fff;
}

.section-header p {
    color: #aaa;
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.6;
}

.subtitle {
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* ========================================= */
/* 2. PRZYCISKI */
/* ========================================= */
.btn-neon-fill { 
    padding: 15px 30px;
    background: var(--accent);
    color: #fff; 
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700; 
    border: none;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%); 
    transition: 0.3s;
    letter-spacing: 1px;
    cursor: pointer;
    display: inline-block; 
    box-shadow: 0 0 15px var(--accent-glow); 
}

.btn-neon-fill:hover {
    background: #fff;
    color: var(--accent);
    box-shadow: 0 0 30px #fff;
}

.btn-outline-static {
    border: 1px solid #444;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    transition: 0.3s;
    display: inline-block;
}

.btn-outline-static:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ========================================= */
/* 3. NAVBAR */
/* ========================================= */
.navbar { 
    position: fixed;
    top: 0;
    width: 100%; 
    display: flex;
    justify-content: space-between;
    align-items: center; 
    padding: 15px 40px;
    z-index: 5000;
    transition: all 0.4s ease; 
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(10px);
    padding: 10px 40px;
    border-bottom: 1px solid #222;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px;
    color: #fff !important;
    transition: 0.3s;
    min-height: 35px;
}

.logo-img {
    height: 35px;
    width: auto;
    aspect-ratio: 335 / 100;
    display: block;
    object-fit: contain;
    filter: none;
}

.logo-tech {
    font-family: var(--font-tech);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: 2px;
    padding-left: 5px;
    border: none;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}

.nav-elements-wrapper {
    display: flex;
    align-items: center;
    transition: 0.3s;
    gap: 20px;
}

.menu-wrapper {
    position: relative;
    margin-left: 10px;
}

.menu-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px;
    margin: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.menu-trigger:focus {
    outline: none;
}

.menu-trigger:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 4px;
}

.menu-label {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    transition: 0.3s;
}

.hamburger-icon {
    width: 30px;
    height: 20px;
    position: relative;
    display: block;
}

.hamburger-icon .bar {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    position: absolute;
    transition: 0.3s;
}

.top {
    top: 0;
}

.mid {
    top: 50%;
    transform: translateY(-50%);
}

.bot {
    bottom: 0;
}

.menu-trigger.active .top {
    top: 50%;
    transform: rotate(45deg);
    background: var(--accent);
}

.menu-trigger.active .mid {
    opacity: 0;
}

.menu-trigger.active .bot {
    top: 50%;
    transform: rotate(-45deg);
    background: var(--accent);
}

.menu-trigger.active .menu-label {
    color: var(--accent);
}

.dropdown-menu {
    position: absolute;
    top: 150%;
    right: 0;
    width: 250px;
    background: #080808;
    border: 1px solid #222;
    border-top: 3px solid var(--accent);
    padding: 20px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.3s;
    box-shadow: 0 10px 40px rgba(0,0,0,0.9);
    z-index: 6000;
}

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

.dropdown-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 25px;
    color: #ccc;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: 0.2s;
}

.dropdown-menu li a:hover {
    background: #111;
    color: #fff;
    border-left-color: var(--accent);
    padding-left: 35px;
}

/* ========================================= */
/* 4. HERO */
/* ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 110px 20px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(30,0,0,0.22) 0%, #050505 100%),
        url('https://placehold.co/1920x1080/050505/050505') no-repeat center/cover;
    z-index: -1;
}

.hero h1 {
    font-family: var(--font-header);
    font-size: clamp(4rem, 6vw, 7rem);
    line-height: 0.9;
    text-transform: uppercase;
    margin: 0 0 20px;
    color: #fff;
}

.outline-text {
    color: transparent;
    -webkit-text-stroke: 2px var(--accent);
    text-shadow: 0 0 20px rgba(138, 0, 0, 0.5);
}

.hero-sub {
    font-size: 1.2rem;
    color: #aaa;
    margin: 0 0 40px;
    line-height: 1.55;
}

.hero-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* ========================================= */
/* 5. MARQUEE */
/* ========================================= */
.marquee-strip {
    background: var(--accent);
    padding: 10px 0;
    color: #000;
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.5rem;
    overflow: hidden;
    position: relative;
    z-index: 10;
    transform: skewY(-2deg);
    margin-top: -30px;
    border-top: 2px solid #fff;
    border-bottom: 2px solid #fff;
}

.track {
    white-space: nowrap;
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* ========================================= */
/* 6. USŁUGI */
/* ========================================= */
.services-section {
    padding: 70px 20px;
    text-align: center;
}

.services-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.service-box {
    flex: 1;
    min-width: 240px;
    padding: 30px;
    background: #111;
    border: 1px solid #333;
    transition: 0.3s;
}

.service-box:hover {
    border-color: var(--accent) !important;
    transform: translateY(-5px);
}

.service-box i {
    font-size: 2em;
    margin-bottom: 15px;
    color: var(--accent);
}

.service-box h3 {
    font-family: var(--font-header);
    margin: 0 0 10px;
}

.service-box p {
    color: #aaa;
    line-height: 1.5;
}

/* ========================================= */
/* 7. PORTFOLIO / REALIZACJE */
/* ========================================= */
.gallery-section,
.portfolio-section,
.realizations-section {
    padding: 90px 20px;
}

.portfolio-home {
    padding-top: 80px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 45px;
}

.portfolio-card {
    background: #111;
    border: 1px solid #2a2a2a;
    overflow: hidden;
    position: relative;
    transition: 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.portfolio-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(211,0,0,0.18);
}

.portfolio-image-link {
    display: block;
    height: 270px;
    overflow: hidden;
    background: #050505;
    position: relative;
}

.portfolio-image-link::after {
    content: "ZOBACZ";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-family: var(--font-header);
    font-size: 1.2rem;
    letter-spacing: 2px;
    opacity: 0;
    transition: 0.3s ease;
}

.portfolio-card:hover .portfolio-image-link::after {
    opacity: 1;
}

.portfolio-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.4s ease;
}

.portfolio-card:hover .portfolio-image-link img {
    transform: scale(1.07);
}

.portfolio-card-content {
    padding: 24px;
}

.portfolio-category {
    color: #FF3333;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 10px;
}

.portfolio-card-content h3 {
    font-family: var(--font-header);
    font-size: 1.55rem;
    line-height: 1.15;
    margin: 0 0 12px;
    color: #fff;
}

.portfolio-card-content p {
    color: #aaa;
    line-height: 1.55;
    margin: 0 0 18px;
    font-size: 1rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portfolio-tags span {
    border: 1px solid #333;
    color: #ccc;
    padding: 6px 10px;
    font-size: 0.85rem;
    background: #080808;
}

.portfolio-cta {
    text-align: center;
    margin-top: 42px;
}

.portfolio-cta p {
    color: #aaa;
    margin-bottom: 22px;
}

/* Podstrona realizacji */
.subpage-main {
    padding-top: 80px;
}

.subpage-hero {
    padding: 90px 20px 50px;
    text-align: center;
    background:
        radial-gradient(circle at center, rgba(70,0,0,0.18), transparent 55%),
        #050505;
    border-bottom: 1px solid #151515;
}

.subpage-hero h1 {
    font-family: var(--font-header);
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 0.9;
    margin: 10px 0 20px;
}

.subpage-hero p {
    color: #aaa;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

.realization-block {
    background: #0b0b0b;
    border: 1px solid #222;
    padding: 28px;
    margin-bottom: 32px;
}

.realization-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.realization-header h2 {
    font-family: var(--font-header);
    font-size: 2rem;
    margin: 0 0 8px;
}

.realization-header p {
    color: #aaa;
    margin: 0;
    line-height: 1.5;
}

.realization-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.mini-gallery-item {
    display: block;
    height: 180px;
    overflow: hidden;
    border: 1px solid #222;
    background: #111;
    position: relative;
}

.mini-gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(211,0,0,0);
    transition: 0.3s ease;
}

.mini-gallery-item:hover::after {
    background: rgba(211,0,0,0.18);
}

.mini-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.35s ease;
}

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

/* Stabilizacja obrazów ładowanych przez JS */
#subpage-realizations-container img,
.realizations-section img {
    display: block;
    max-width: 100%;
}

/* ========================================= */
/* 8. LIGHTBOX */
/* ========================================= */
.no-scroll {
    overflow: hidden;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: 0.25s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(6px);
}

.lightbox-content {
    position: absolute;
    inset: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    display: block;
    width: auto;
    height: auto;
    max-width: 92vw;
    max-height: 82vh;
    object-fit: contain;
    border: 1px solid #333;
    box-shadow: 0 20px 80px rgba(0,0,0,0.8);
    background: #050505;
}

.lightbox-caption {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    color: #ddd;
    background: rgba(5,5,5,0.85);
    border: 1px solid #222;
    padding: 10px 18px;
    margin: 0;
    max-width: 90vw;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 52px;
    height: 52px;
    border: 1px solid #333;
    background: #111;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: 0.3s;
}

.lightbox-close:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: 1px solid #333;
    background: rgba(17,17,17,0.9);
    color: #fff;
    cursor: pointer;
    z-index: 2;
    transition: 0.3s;
}

.lightbox-nav:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.lightbox-prev {
    left: 0;
}

.lightbox-next {
    right: 0;
}

/* ========================================= */
/* 9. KONTAKT */
/* ========================================= */
.contact-section {
    padding: 70px 20px;
}

.contact-grid {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.contact-info,
.contact-form-box {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-family: var(--font-header);
    font-size: 1.7rem;
    margin-top: 0;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    line-height: 2;
}

.contact-info li {
    color: #ddd;
}

.contact-info i {
    width: 25px;
    color: var(--accent);
}

.map-box {
    width: 100%;
    height: 250px;
    border: 1px solid #333;
    overflow: hidden;
}

.contact-form-box {
    background: #111;
    padding: 30px;
    border: 1px solid #333;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contact-form input,
#contact-form textarea {
    padding: 12px;
    background: #222;
    border: 1px solid #444;
    color: white;
    font-family: var(--font-tech);
    font-size: 1rem;
}

#contact-form textarea {
    resize: vertical;
}

#form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

#form-success i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 15px;
}

#form-success h3 {
    font-family: var(--font-header);
    font-size: 1.5rem;
    margin: 0 0 10px;
}

#form-success p {
    color: #aaa;
    margin: 0;
}

/* ========================================= */
/* 10. STOPKA & SCROLL */
/* ========================================= */
.footer {
    background: #020202;
    padding: 80px 0 20px;
    border-top: 1px solid #222;
    font-size: 0.9rem;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 20px;
    min-height: 35px;
}

.footer-col h3,
.footer-col h4 {
    color: #fff;
    font-family: var(--font-header);
    font-size: 1.3rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    color: #888;
    line-height: 1.6;
    max-width: 300px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
    color: #888;
}

.footer-col ul li a {
    color: #888;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #111;
    padding-top: 20px;
    color: #888;
    font-size: 0.8rem;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
    font-size: 1.2rem;
}

.social-icons a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--accent-glow);
}

.social-icons svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: currentColor;
}

.social-icons-large a {
    width: 52px;
    height: 52px;
}

.social-icons-large svg {
    width: 26px;
    height: 26px;
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 900;
    clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
    border: 0;
    font-family: var(--font-header);
    font-size: 1.5rem;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: all;
}

/* ========================================= */
/* 11. RESPONSYWNOŚĆ */
/* ========================================= */
@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        max-width: 620px;
        margin-left: auto;
        margin-right: auto;
    }

    .realization-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 20px;
    }

    .navbar.scrolled {
        padding: 10px 20px;
    }

    .logo-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        min-height: 45px;
    }

    .logo-img {
        height: 30px;
        width: auto;
    }

    .logo-tech {
        padding-left: 0;
        font-size: 1rem;
        margin-top: -5px;
    }

    .logo-tech .slash {
        display: none;
    }

    .menu-label {
        display: none;
    }

    .dropdown-menu {
        right: 0;
        width: 230px;
    }

    .hero {
        min-height: 100vh;
        padding: 120px 20px 80px;
    }

    .hero h1 {
        font-size: 12vw;
    }

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

    .hero-btns {
        flex-direction: column;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .services-section,
    .gallery-section,
    .portfolio-section,
    .realizations-section,
    .contact-section {
        padding: 70px 15px;
    }

    .portfolio-image-link {
        height: 230px;
    }

    .portfolio-card-content {
        padding: 20px;
    }

    .portfolio-card-content h3 {
        font-size: 1.4rem;
    }

    .subpage-main {
        padding-top: 68px;
    }

    .subpage-hero {
        padding: 65px 15px 40px;
    }

    .realization-block {
        padding: 20px;
    }

    .realization-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .mini-gallery-item {
        height: 135px;
    }

    .lightbox-content {
        inset: 20px;
    }

    .lightbox-content img {
        max-width: 100%;
        max-height: 75vh;
    }

    .lightbox-close {
        top: -5px;
        right: -5px;
    }

    .lightbox-prev {
        left: -5px;
    }

    .lightbox-next {
        right: -5px;
    }

    .lightbox-caption {
        bottom: -5px;
        font-size: 0.9rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-col p {
        margin: 0 auto;
    }
}

/* ========================================= */
/* 12. NAKŁADKA +X W GALERII */
/* ========================================= */
.mini-gallery-item.has-overlay {
    position: relative;
    display: block;
}

.gallery-more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    pointer-events: none;
}

.mini-gallery-item.has-overlay:hover .gallery-more-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.gallery-more-overlay span {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: var(--font-header);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}
#subpage-realizations-container {
    min-height: 2600px;
}

@media (min-width: 768px) {
    #subpage-realizations-container {
        min-height: 1400px;
    }
}

@media (min-width: 1200px) {
    #subpage-realizations-container {
        min-height: 1000px;
    }
}