html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: #000;
    color: #fff;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo {
    color: #00ff88;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}

nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.25s ease;
    white-space: nowrap;
}

nav a:hover {
    color: #00ff88;
}

/* HERO */
.hero {
    min-height: 100vh;
    padding: 100px 20px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    scroll-margin-top: 90px;
    background:
        linear-gradient(rgba(0,0,0,0.20), rgba(0,0,0,0.45)),
        url("hero-bg.jpg") center center / cover no-repeat;
}

.hero-content h1 {
    margin: 0;
    font-size: 58px;
    color: #fff;
    text-shadow: 0 0 25px rgba(0,0,0,0.85);
    max-width: 900px;
    padding: 0 20px;
}

/* BENDROS SEKCIJOS */
.section {
    min-height: 72vh;
    padding: 120px 20px 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    scroll-margin-top: 90px;
}

.section-content {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.products {
    background: #070707;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.about {
    background: #0d0d0d;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.contact {
    background: #070707;
}

.section h2 {
    margin: 0 0 20px;
    font-size: 40px;
    color: #fff;
}

.section p {
    margin: 0 auto;
    max-width: 720px;
    font-size: 18px;
    line-height: 1.7;
    color: #c9c9c9;
}

/* PRODUKTŲ KORTELĖS */
.product-list {
    margin-top: 38px;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.card {
    background: #111;
    border: 1px solid rgba(0,255,136,0.45);
    border-radius: 14px;
    padding: 34px 26px;
    min-width: 240px;
    max-width: 300px;
    flex: 1 1 240px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #00ff88;
    box-shadow: 0 0 24px rgba(0,255,136,0.10);
}

.card h3 {
    margin: 0;
    font-size: 22px;
    color: #fff;
}

.clickable-card {
    cursor: pointer;
}

/* GALERIJOS */
.product-gallery {
    display: none;
    margin-top: 50px;
    padding-top: 10px;
    animation: fadeIn 0.35s ease;
}

.product-gallery.active {
    display: block;
}

.gallery-title-wrap {
    margin-bottom: 26px;
}

.gallery-title-wrap h3 {
    margin: 0 0 10px;
    font-size: 30px;
    color: #00ff88;
}

.gallery-title-wrap p {
    font-size: 17px;
    color: #bfbfbf;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.gallery-grid img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #111;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 22px rgba(0,255,136,0.12);
}

/* IMAGE VIEWER */
.image-viewer {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    cursor: zoom-out;
    padding: 20px;
}

.image-viewer.active {
    display: flex;
}

.image-viewer img {
    max-width: 92%;
    max-height: 92%;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
    object-fit: contain;
}

/* KONTAKTAI */
.contact a {
    color: #00ff88;
    text-decoration: none;
}

.contact a:hover {
    text-decoration: underline;
}

/* FOOTER */
footer {
    padding: 22px 20px;
    text-align: center;
    background: #000;
    border-top: 1px solid rgba(255,255,255,0.08);
}

footer p {
    margin: 0;
    color: #9a9a9a;
    font-size: 14px;
}

/* ANIMACIJA */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media (max-width: 900px) {
    header {
        padding: 16px 20px;
        gap: 14px;
    }

    nav {
        gap: 16px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .section h2 {
        font-size: 32px;
    }

    .section {
        min-height: 65vh;
        padding: 110px 20px 70px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-grid img {
        height: 230px;
    }
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        width: 100%;
        justify-content: flex-start;
        gap: 14px;
    }

    .hero {
        padding-top: 130px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .section h2 {
        font-size: 28px;
    }

    .section p {
        font-size: 16px;
    }

    .card {
        min-width: 100%;
    }

    .gallery-title-wrap h3 {
        font-size: 24px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid img {
        height: 220px;
    }

    .image-viewer img {
        max-width: 96%;
        max-height: 88%;
    }
}