/* Import custom font for logo */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&display=swap');

/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FFD700;
    --secondary-color: #1a1a2e;
    --accent-color: #0f3460;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

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

/* Nagłówek i nawigacja */
.navbar {
    background: var(--secondary-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--white);
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    letter-spacing: 1px;
}

.logo-icon {
    color: var(--primary-color);
    font-size: 2.5rem;
}

.logo-text .highlight {
    color: var(--primary-color);
}

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

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-link:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Sekcja Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 30, 0.65) 0%,
        rgba(10, 10, 30, 0.50) 60%,
        rgba(10, 10, 30, 0.70) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 2;
    padding-top: 80px;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-emergency {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.25s both;
}

.hero-phone {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-phone a {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    padding: 1.5rem 3rem;
    border: 4px solid var(--primary-color);
    border-radius: 50px;
    display: inline-block;
    transition: var(--transition);
    background: rgba(255, 215, 0, 0.1);
}

.hero-phone a:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.5s both;
}

/* Przyciski */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background: #FFC700;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Sekcje */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-color);
}

/* O mnie */
.about {
    background: var(--light-bg);
    position: relative;
    z-index: 10;
}

.about-content {
    display: grid;
    gap: 3rem;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-box h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Usługi */
.services {
    position: relative;
    z-index: 10;
    background: var(--light-bg);
}

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

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-15px) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border-left-width: 8px;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
}

/* Galeria */
.gallery {
    background: var(--white);
    position: relative;
    z-index: 10;
}

.gallery-masonry {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gallery-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-row--extra {
    display: none;
}

.gallery-masonry-wrap.expanded .gallery-row--extra {
    display: grid;
}

.gallery-row--peek {
    display: grid;
    pointer-events: none;
}

.gallery-masonry-wrap.expanded .gallery-row--peek {
    pointer-events: auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

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

.gallery-row {
    align-items: stretch;
}

.gallery-row .gallery-item {
    aspect-ratio: 4 / 3;
}

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

.gallery-item--loading {
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    min-height: 180px;
}

.gallery-item--loading img {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item--loading.loaded img {
    opacity: 1;
}

.gallery-item.loaded {
    background: none;
    animation: none;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-overlay::after {
    content: '⤢';
    font-size: 2.5rem;
    color: var(--primary-color);
    transform: scale(0.6);
    transition: transform 0.3s ease;
}

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

.gallery-item:hover .gallery-overlay::after {
    transform: scale(1);
}

.gallery-masonry-wrap {
    position: relative;
}

.gallery-masonry-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 400px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 1) 50%);
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.4s ease;
}

.gallery-masonry-wrap.expanded::after {
    opacity: 0;
}


.gallery-toggle {
    position: relative;
    z-index: 3;
    text-align: center;
    margin-top: 2rem;
    padding-bottom: 1rem;
}

.btn-gallery-toggle {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-gallery-toggle:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(26, 26, 46, 0.2);
}

.gallery-toggle-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.93);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.8);
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.lightbox-close:hover {
    color: var(--white);
    transform: scale(1.15);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 215, 0, 0.12);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 2rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

/* Opinie */
.reviews {
    background: var(--secondary-color);
    position: relative;
    z-index: 10;
    overflow-x: hidden;
}

.reviews-title {
    color: var(--white);
}

.reviews-title::after {
    background: var(--primary-color);
}

.reviews-summary {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.reviews-score {
    text-align: center;
}

.score-number {
    display: block;
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
}

.score-stars {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0.5rem 0;
    letter-spacing: 3px;
}

.score-count {
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    min-width: 0;
}

.reviews-loading,
.reviews-error {
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
    grid-column: 1 / -1;
    padding: 2rem;
}

.review-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition);
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.review-card:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,215,0,0.5);
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.review-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    flex-shrink: 0;
}

.review-author {
    flex: 1;
    min-width: 0;
}

.review-author strong {
    display: block;
    color: var(--white);
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-time {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

.review-rating {
    color: var(--primary-color);
    font-size: 1rem;
    letter-spacing: 2px;
    flex-shrink: 0;
}

.review-text {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    line-height: 1.7;
}

.reviews-cta {
    text-align: center;
}

.btn-reviews {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.btn-reviews:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255,215,0,0.3);
}

/* Kontakt */
.contact {
    background: var(--light-bg);
    position: relative;
    z-index: 10;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
    transform: translateY(0);
}

.contact-card:hover {
    transform: translateY(-15px) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border-top-width: 6px;
}

.contact-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.contact-card a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--primary-color);
}

.contact-card p {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Stopka */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 3.5rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: bold;
}

.footer-logo .logo-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    letter-spacing: 1px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    line-height: 1.65;
    max-width: 30ch;
}

.footer-col-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 1.1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.45);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.2rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.82rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-desc {
        max-width: none;
    }
}

/* Przycisk scroll to top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: var(--secondary-color);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: #FFC700;
    transform: translateY(-5px);
}

/* Animacje */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary-color);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

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

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-phone a {
        font-size: 2rem;
        padding: 1rem 2rem;
    }

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

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

    .reviews-grid {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }

    .about-features {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (min-width: 769px) {
    .hero-content {
        padding-top: 700px;
    }
}

@media (max-width: 480px) {
    .gallery-row {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2rem;
    }

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

    .hero-phone a {
        font-size: 1.5rem;
        padding: 0.8rem 1.5rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}
