﻿/* =========================================================
   0) GENEL: Sayfa arka planı, tipografi, link davranışları
   ========================================================= */

html, body {
    overflow-x: hidden !important; /* yatay taşmaları kes */
}

    html.no-snap {
        scroll-snap-type: none !important;
        scroll-behavior: auto !important;
    }

body {
    background-color: #0d0d0d;
    color: #f5f5f5;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    overflow-y: auto !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #fff;
    font-weight: 600;
}

p {
    color: #ccc;
    line-height: 1.7;
}

a {
    color: #00d1b2;
    text-decoration: none;
    transition: color .3s ease;
}

    a:hover {
        color: #00ffcc;
    }

/* =========================================================
   1) BÖLÜMLER (Section’lar) + Scroll Snap
   ========================================================= */

section {
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 15px;
    box-sizing: border-box;
}

/* =========================================================
   2) NAVBAR (şeffaf → scroll’da koyulaş)
   ========================================================= */

.navbar {
    min-height: 64px;
}

.navbar-transparent {
    background: transparent;
    transition: background-color .4s ease;
}

.navbar-scrolled {
    background: rgba(0,0,0,.85);
    transition: background-color .4s ease;
}

.navbar .nav-link {
    color: #f5f5f5 !important;
    transition: color .3s ease;
}

    .navbar .nav-link:hover {
        color: #00ffcc !important;
    }

    .navbar .nav-link i {
        transition: transform .3s ease, color .3s ease;
    }

        .navbar .nav-link i:hover {
            transform: scale(1.2);
            color: #00ffcc;
        }

/* =========================================================
   3) HERO (Video arka plan + overlay)
   ========================================================= */

.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    z-index: -2;
    transition: opacity .3s ease;
}

.video-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: -1;
}

.hero-content {
    z-index: 1;
    max-width: 800px;
}

    .hero-content h1 {
        font-size: 3.5rem;
        font-weight: 700;
    }

    .hero-content p {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

/* =========================================================
   4) ABOUT
   ========================================================= */

.about-section {
    padding: 100px 0;
}

    .about-section .section-subtitle {
        font-size: 1rem;
        color: #00d1b2;
        text-transform: uppercase;
        letter-spacing: 2px;
        font-weight: 600;
        margin-bottom: 20px;
    }

    .about-section .section-title {
        font-weight: 700;
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .about-section p {
        font-size: 1.1rem;
        color: #ccc;
    }

    .about-section .about-img {
        max-width: 80%;
        max-height: 350px;
        object-fit: cover;
        border-radius: 10px;
        transition: transform .3s ease;
    }

        .about-section .about-img:hover {
            transform: scale(1.05);
        }

.about-video {
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,.4);
}

#about {
    scroll-margin-top: 100px;
}

/* =========================================================
   5) SERVICES (kartlar)
   ========================================================= */

.services-section {
    padding: 100px 0;
}

    .services-section .card {
        border: none;
        border-radius: 10px;
        transition: transform .3s ease, box-shadow .3s ease;
        background: #1a1a1a;
        color: #f5f5f5;
    }

        .services-section .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0,0,0,.4);
        }

    .services-section i {
        color: #00d1b2;
    }

.service-card {
    background: #1c1c1c;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    color: #eee;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    transition: all .4s ease, box-shadow .4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 18px;
}

    .service-card::before {
        content: "";
        position: absolute;
        bottom: -100%;
        right: -100%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle at bottom right, rgba(0,123,255,.3), transparent 60%);
        transform: rotate(-25deg);
        transition: all .6s ease;
        opacity: 0;
    }

    .service-card:hover::before {
        bottom: 0;
        right: 0;
        opacity: 1;
    }

    .service-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 8px 25px rgba(0,123,255,.2);
    }

    .service-card h5 {
        font-weight: 600;
        margin-bottom: 8px;
    }

    .service-card p {
        color: #cfcfcf;
        line-height: 1.6;
        margin-bottom: 0;
    }

#services .service-card {
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
    transform-origin: center;
}

    #services .service-card.expanded {
        transform: scale(1.03);
        box-shadow: 0 16px 40px rgba(0,0,0,.45);
        z-index: 3;
        position: relative;
    }

        #services .service-card.expanded p {
            display: block !important;
            -webkit-line-clamp: unset !important;
            overflow: visible !important;
        }

/* =========================================================
   6) PRODUCTS / GALERİ (Swiper + kart medya)
   ========================================================= */

.swiper {
    max-width: 100% !important;
    overflow: hidden;
    padding-bottom: 50px;
}

.swiper-slide {
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,.2);
}

    .swiper-slide img,
    .swiper-slide .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px;
        display: block;
        transition: transform .3s ease, box-shadow .3s ease;
    }

        .swiper-slide img:hover {
            transform: scale(1.05);
        }

.swiper-pagination-bullet {
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    opacity: 1;
    transition: all .3s ease;
}

.swiper-pagination-bullet-active {
    background: #00ffcc;
    transform: scale(1.4);
    box-shadow: 0 0 6px rgba(0,255,204,.7);
}

.btn-group .btn {
    margin: 0 5px;
    border-radius: 20px;
    transition: all .3s ease;
}

    .btn-group .btn.active {
        background: #00d1b2;
        color: #fff;
    }

.swiper-slide .gallery-item {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

/* =========================================================
   7) MODAL LIGHTBOX (image / video / YouTube)
   ========================================================= */

#lightboxModal {
    --bs-backdrop-bg: #000;
    --bs-backdrop-opacity: .7;
}

/* Media wrapper / oran */
#youtubeWrapper {
    position: relative;
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16/9;
}

    #youtubeWrapper iframe {
        width: 100%;
        height: 100%;
        border-radius: 10px;
    }

/* Gesture & gövde davranışı */
#lightboxModal .gesture-catcher {
    position: absolute;
    inset: 0;
    z-index: 1055;
    background: transparent;
    touch-action: pan-x;
    pointer-events: auto;
}

#lightboxModal .modal-body {
    touch-action: none;
    overscroll-behavior: contain;
}

#lightboxModal #lightboxImage,
#lightboxModal #lightboxVideo,
#lightboxModal #youtubeWrapper {
    touch-action: pan-x;
}

/* Medya sınırları */
#lightboxModal img, #lightboxModal video, #youtubeWrapper iframe {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
}

/* Backdrop yoğunluğu */
.modal-backdrop.show {
    opacity: .5;
    background-color: #000;
}

/* X (kapat) – safe-area uyumlu */
#lightboxModal .btn-close {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    right: calc(env(safe-area-inset-right, 0px) + 24px);
    z-index: 1061;
}

/* Oklar (yalnızca desktop’ta görünür) */
#prevBtn, #nextBtn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1060;
    cursor: pointer;
    user-select: none;
    font-size: 6rem;
    color: #fff;
    transition: color .3s ease;
}

#prevBtn {
    left: clamp(8px, 3vw, 32px);
}

#nextBtn {
    right: clamp(8px, 3vw, 32px);
}

    #prevBtn:hover, #nextBtn:hover {
        color: #00d1b2;
    }

/* Görsel iyileştirme (isteğe bağlı aura) */
.nav-btn {
    padding: 10px;
    background: rgba(0,0,0,.3);
    border-radius: 50%;
    transition: background .3s ease, color .3s ease;
}

    .nav-btn:hover {
        background: rgba(0,0,0,.6);
        color: #00d1b2;
    }

/* Modal içi pagination */
#lightboxPagination {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1057;
}

    #lightboxPagination .modal-dot {
        width: 10px;
        height: 10px;
        margin: 0 5px;
        border-radius: 50%;
        background: rgba(255,255,255,.5);
        display: inline-block;
        cursor: pointer;
        transition: all .3s ease;
    }

        #lightboxPagination .modal-dot.active {
            background: #00ffcc;
            transform: scale(1.4);
            box-shadow: 0 0 6px rgba(0,255,204,.7);
        }

/* =========================================================
   8) CONTACT
   ========================================================= */

.contact-section {
    padding: 100px 0;
}

.contact-info {
    color: #f5f5f5;
    margin-bottom: 20px;
}

    .contact-info i {
        color: #00d1b2;
        margin-right: 10px;
    }

.contact-section h5 {
    color: #00d1b2;
    margin-top: 15px;
}

.contact-section a {
    color: #f5f5f5;
    text-decoration: none;
}

    .contact-section a:hover {
        color: #00ffcc;
    }

.map-container iframe {
    width: 100% !important;
    height: 300px !important;
    display: block;
    border-radius: 10px;
}

/* =========================================================
   9) FOOTER
   ========================================================= */

.footer-section {
    background: transparent;
    position: relative;
    z-index: 2;
    text-align: center;
}

    .footer-section p {
        margin-bottom: .5rem;
    }

/* =========================================================
   10) RESPONSIVE (Mobil düzenlemeler)
   ========================================================= */

@media (max-width: 768px) {
    section {
        height: auto !important;
        min-height: 100vh;
        padding: 60px 15px;
    }

    #products {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
        min-height: auto !important;
    }

    .swiper {
        padding-bottom: 70px !important;
    }

    .swiper-slide {
        aspect-ratio: 1/1;
        max-width: 90%;
        margin: 0 auto;
        border-radius: 10px;
        box-shadow: 0 6px 18px rgba(0,0,0,.3);
    }

        .swiper-slide img {
            border-radius: 20px;
        }

    .swiper-pagination {
        bottom: 15px !important;
    }

    /* Modal oklarını gizle (dokunma jesti yeterli) */
    #prevBtn, #nextBtn {
        display: none !important;
    }

    /* Navbar mobil arka planı */
    .navbar-transparent {
        background: rgba(0,0,0,.90);
    }

    body {
        padding-top: 64px; /* mobilde fixed navbar boşluğu */
        scroll-snap-type: none; /* mobilde snap’i kapat */
    }

    #lightboxModal {
        --bs-backdrop-opacity: .8;
    }

        #lightboxModal .lightbox-body {
            background: rgba(0,0,0,.75) !important;
        }
}

/* (Tek kopya) Snap kapatma yardımcı sınıfı */
html.no-snap {
    scroll-snap-type: none !important;
    scroll-behavior: auto !important;
}

/* Mobilde Services paragrafını 3 satıra kırp */
@media (max-width: 768px) {
    .services-section {
        padding: 60px 0;
    }

    .service-card {
        padding: 14px;
        border-radius: 12px;
    }

        .service-card h5 {
            font-size: 16px;
            margin-bottom: 6px;
        }

        .service-card p {
            font-size: 13px;
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

    #services .service-card p {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}
