/* Genel Stil Ayarları */
:root {
    /* Yeni Renk Paleti - Dedektör Firması için */
    --primary-color: #3f88c5;   /* Canlı Mavi - Vurgu rengi */
    --secondary-color: #8bb174; /* Soft Yeşil - İkinci vurgu veya destekleyici */
    --dark-main: #2b3a42;       /* Koyu Antrasit - Ana koyu renk */
    --dark-alt: #4a637a;        /* Koyu Gri Mavi - Alternatif koyu renk */
    --light-main: #f0f4f7;      /* Çok Açık Gri Mavi - Ana açık arka plan */
    --light-alt: #e3e8ed;       /* Açık Gri - Alternatif açık arka plan */
    --text-color-dark: #333;    /* Koyu metin rengi */
    --text-color-light: #555;   /* Açık metin rengi */
    --white: #fff;
    --white-alpha-70: rgba(255, 255, 255, 0.7); /* Beyazın şeffaf hali */
    --border-color: #d1d9e6;    /* Hafif kenarlık rengi */
    --shadow-light: rgba(0, 0, 0, 0.08); /* Hafif gölge */
    --shadow-medium: rgba(0, 0, 0, 0.15); /* Orta gölge */
    --shadow-dark: rgba(0, 0, 0, 0.3); /* Koyu gölge */

    /* Fontlar */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-color-light);
    background-color: var(--light-main);
    overflow-x: hidden;
    scroll-behavior: smooth; /* Yumuşak kaydırma */
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--text-color-dark);
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem; /* Hero bölümü için büyük başlık */
    font-weight: 700;
}

h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: 700;
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.05rem;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: #2e6b9c; /* Primary color'ın biraz koyusu */
    border-color: #2e6b9c;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--shadow-medium);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--shadow-medium);
}

/* Background Utility Classes */
.bg-dark-main { background-color: var(--dark-main); color: var(--white); }
.bg-dark-alt { background-color: var(--dark-alt); color: var(--white); }
.bg-light-main { background-color: var(--light-main); color: var(--text-color-light); }
.bg-light-alt { background-color: var(--light-alt); color: var(--text-color-dark); }
.bg-gray-light { background-color: #f7f7f7; color: var(--text-color-dark); }


/* Header */
.top-bar {
    background-color: var(--dark-main);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.85rem;
}

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

.top-bar .contact-info span {
    margin-right: 20px;
    opacity: 0.9;
}

.top-bar .contact-info i {
    margin-right: 8px;
    color: var(--secondary-color);
}
.top-bar .contact-info a {
    color: var(--white);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}
.top-bar .contact-info a:hover {
    opacity: 1;
    color: var(--primary-color);
}


.top-bar .social-media a {
    color: var(--white-alpha-70);
    margin-left: 18px;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}
.top-bar .social-media a:hover {
    color: var(--primary-color);
}

.navbar {
    background-color: var(--white);
    padding: 18px 0;
    box-shadow: 0 3px 15px var(--shadow-light);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

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

.navbar .logo img {
    height: 60px; /* Logo boyutunu sabit tut */
    width: auto;
}

.navbar .nav-links {
    display: flex;
    margin: 0;
}

.navbar .nav-links li {
    margin-left: 35px;
}

.navbar .nav-links a {
    color: var(--text-color-dark);
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    transition: color 0.3s ease;
}

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

.navbar .nav-links a:hover,
.navbar .nav-links a.active {
    color: var(--primary-color);
}

.navbar .nav-links a:hover::after,
.navbar .nav-links a.active::after {
    width: 100%;
}

.hamburger-menu {
    display: none; /* Masaüstünde gizli */
    font-size: 1.8rem;
    color: var(--text-color-dark);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--dark-main) 0%, var(--dark-alt) 100%);
    padding: 80px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-container-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content-left {
    flex: 1;
    max-width: 55%;
    z-index: 1; /* Görselin altında kalmaması için */
}

.hero-content-left h1 {
    color: var(--white);
    font-size: 3.8rem;
    margin-bottom: 25px;
    line-height: 1.1;
}

.hero-features {
    margin-top: 30px;
    margin-bottom: 40px;
}

.hero-features li {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--white-alpha-70);
}

.hero-features li i {
    color: var(--secondary-color);
    margin-right: 15px;
    font-size: 1.5rem;
}

.hero-image-right {
    flex: 1;
    max-width: 45%;
    text-align: right;
    position: relative;
}

.hero-main-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 30px var(--shadow-dark);
    transform: rotate(3deg); /* Hafif bir açı efekti */
    transition: transform 0.5s ease;
}
.hero-main-image:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Section Title (Genel başlık stili) */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    padding: 20px 0;
}
.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}
.section-title h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}
.section-title p {
    max-width: 700px;
    margin: 15px auto 0;
    font-size: 1.15rem;
    color: var(--text-color-light);
}

/* What We Do / Products Section */
.what-we-do-section {
    padding: 80px 0;
    background-color: var(--light-main);
}

.what-we-do-container {
    display: flex;
    gap: 40px;
    align-items: stretch; /* Dikey olarak hizala */
}

.what-we-do-left {
    flex: 0 0 350px; /* Sabit genişlik */
    padding: 40px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 8px 25px var(--shadow-medium);
}
.what-we-do-left h2 {
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}
.what-we-do-left p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.what-we-do-right {
    flex: 1;
}

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

.service-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px var(--shadow-medium);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background-color: var(--light-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}
.service-item:hover .service-icon {
    background-color: var(--primary-color);
    
}

.service-icon img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    transition: filter 0.3s ease;
}



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

.service-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-item .read-more {
    font-weight: 600;
    color: var(--primary-color);
    transition: color 0.3s ease;
}
.service-item .read-more:hover {
    color: var(--dark-main);
}

/* Modals */
.modal-content {
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-medium);
    border: none;
}
.modal-header {
    background-color: var(--primary-color);
    color: var(--white);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    padding: 20px;
    border-bottom: none;
}
.modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
}
.modal-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
}
.modal-body {
    padding: 30px;
    color: var(--text-color-dark);
    font-size: 1.05rem;
}
.modal-body ul {
    margin-top: 15px;
    margin-bottom: 20px;
    list-style: disc; /* Bullet point ekle */
    padding-left: 20px;
}
.modal-body ul li {
    margin-bottom: 8px;
    color: var(--text-color-light);
}
.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
    background-color: var(--light-alt);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    text-align: center;
}

.cta-section .cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-medium);
    max-width: 900px;
    margin: 0 auto;
}
.cta-section .cta-content img {
    width: 150px;
    height: auto;
    object-fit: contain;
}
.cta-section .cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}
.cta-section .cta-content p {
    font-size: 1.15rem;
    margin-bottom: 25px;
    max-width: 600px;
}

/* Why Us Section (Team Section yerine) */
.team-section {
    padding: 80px 0;
    background-color: var(--light-alt);
}

.team-section h2 {
    color: var(--text-color-dark);
}

.team-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px var(--shadow-medium);
}

.team-card h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.team-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color-light);
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
}

.gallery-section h2 {
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: minmax(200px, auto); /* Minimum yükseklik ve otomatik büyüme */
    gap: 15px;
    margin-top: 50px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-dark);
    cursor: pointer;
    position: relative;
}

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

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.8);
}

/* Büyük öğe için özel stil */
.gallery-item.big {
    grid-column: span 2;
    grid-row: span 2;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

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

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

/* Footer CTA Section */
.footer-cta-section {
    padding: 60px 0;
    text-align: center;
}
.footer-cta-section .cta-content {
    background-color: var(--dark-main);
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-dark);
    display: flex;
    justify-content: center;
    align-items: center;
}
.footer-cta-section .cta-content img {
    max-width: 270px; /* Logo boyutunu koru */
    height: auto;
}


/* Footer */
.main-footer {
    background-color: var(--dark-main);
    color: var(--white-alpha-70);
    padding: 30px 0;
    font-size: 0.95rem;
    border-top: 5px solid var(--primary-color); /* Vurgu çizgisi */
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Küçük ekranlarda alta geçmesini sağla */
    text-align: center;
}

.footer-bottom p {
    margin: 10px 0;
}

.footer-links a {
    color: var(--white-alpha-70);
    margin: 0 15px;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: var(--primary-color);
}

.social-links {
    margin: 10px 0;
}
.social-links a {
    color: var(--white-alpha-70);
    font-size: 1.3rem;
    margin-left: 18px;
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: var(--primary-color);
}

/* Floating Social Buttons (WhatsApp) */
.social-buttons {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25d366; /* WhatsApp yeşili */
    color: var(--white);
    font-size: 2.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    transform: scale(1.1);
    background-color: #128c7e; /* Koyu WhatsApp yeşili */
}

.social-btn img {
    width: 35px;
    height: 35px;
    filter: invert(100%); /* SVG ikonunu beyaz yapar */
}


/* Responsive Tasarım */
@media (max-width: 992px) {
    .navbar .nav-links {
        display: none; /* Mobil cihazlarda menüyü gizle */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 8px 15px var(--shadow-light);
        border-top: 1px solid var(--border-color);
        padding: 20px 0;
        z-index: 999;
    }
    .navbar .nav-links.active {
        display: flex;
    }
    .navbar .nav-links li {
        margin: 10px 0;
        text-align: center;
    }
    .navbar .nav-links a::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .hamburger-menu {
        display: block; /* Mobil cihazlarda hamburger menüyü göster */
    }

    .hero-container-flex {
        flex-direction: column;
        text-align: center;
    }
    .hero-content-left {
        max-width: 100%;
        margin-bottom: 40px;
    }
    .hero-content-left h1 {
        font-size: 3rem;
    }
    .hero-features {
        text-align: left;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-image-right {
        max-width: 80%;
        text-align: center;
    }
    .hero-main-image {
        transform: none; /* Mobil cihazlarda dönüşü kaldır */
    }

    .what-we-do-container {
        flex-direction: column;
    }
    .what-we-do-left {
        flex: 0 0 auto; /* Sabit genişliği kaldır */
        max-width: 100%;
        text-align: center;
        padding: 30px;
    }
    .what-we-do-left h2 {
        text-align: center;
        font-size: 2rem;
    }

    .cta-section .cta-content {
        flex-direction: column;
        text-align: center;
    }
    .cta-section .cta-content img {
        margin-bottom: 20px;
    }

    .team-cards-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        grid-auto-rows: minmax(150px, auto);
    }
    .gallery-item.big {
        grid-column: span 1; /* Mobil cihazlarda büyük öğe normal boyutuna döner */
        grid-row: span 1;
    }

    .footer-bottom {
        flex-direction: column;
    }
    .footer-links {
        margin: 15px 0;
    }
    .footer-links a {
        display: block;
        margin: 8px 0;
    }
    .social-links {
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }
    h2 {
        font-size: 2.2rem;
    }
    .top-bar .contact-info {
        display: none; /* Çok küçük ekranlarda iletişim bilgilerini gizle */
    }
    .top-bar .container {
        justify-content: center; /* Ortakla */
    }
    .top-bar .social-media a {
        margin: 0 10px;
    }

    .hero-content-left h1 {
        font-size: 2.5rem;
    }
    .hero-features li {
        font-size: 1.1rem;
    }

    .service-grid {
        grid-template-columns: 1fr; /* Tek sütun */
    }
    .what-we-do-left {
        padding: 25px;
    }

    .cta-section .cta-content h2 {
        font-size: 1.8rem;
    }
    .cta-section .cta-content p {
        font-size: 1rem;
    }

    .team-card h3 {
        font-size: 1.4rem;
    }
    .footer-cta-section .cta-content img {
        width: 200px;
        height: auto;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .hero-content-left h1 {
        font-size: 2rem;
    }
    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    .social-buttons {
        bottom: 15px;
        right: 15px;
    }
    .social-btn {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
    .social-btn img {
        width: 30px;
        height: 30px;
    }
        .hero-content-left {
        text-align: center; /* içerik ortalansın */
    }

    .hero-content-left .btn {
        display: block;              /* alt alta gelsin */
        width: 80%;                  /* buton genişliği */
        margin: 10px auto;           /* ortala ve aralık ver */
    }

    .hero-content-left .btn-secondary {
        margin-left: 0 !important;   /* önceki margin'i sıfırla */
    }
}

@media (max-width: 992px) {
  .navbar-nav {
    display: none;
    flex-direction: column;
    background-color: #fff;
    position: absolute;
    top: 70px; /* navbar yüksekliğine göre ayarla */
    right: 0;
    width: 220px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    z-index: 1000;
  }

  .navbar-nav.active {
    display: flex;
  }

  .navbar-toggler.active .navbar-toggler-icon {
    background-color: transparent;
    position: relative;
  }

  .navbar-toggler.active .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
  }

  .navbar-toggler.active .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    top: 0;
  }

  .navbar-toggler-icon {
    width: 25px;
    height: 2px;
    background-color: #333;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
  }

  .navbar-toggler-icon::before,
  .navbar-toggler-icon::after {
    content: '';
    width: 25px;
    height: 2px;
    background-color: #333;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
  }

  .navbar-toggler-icon::before {
    top: -7px;
  }

  .navbar-toggler-icon::after {
    top: 7px;
  }
}

/* Mobil görünümde menü kapalıyken gizle */
.nav-links {
    display: flex;
    gap: 20px;
}

@media (max-width: 992px) {
  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    right: 0;
    background: var(--dark-main);
    width: 100%;
    text-align: center;
    padding: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease-out, padding 0.3s ease-out;
  }

  .nav-links.active {
    max-height: 400px; /* menü yüksekliğine göre ayarla */
    padding: 20px 0;
    transition: max-height 0.4s ease-in, padding 0.3s ease-in;
  }

  .nav-links a {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

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

.footer-logo {
    width: 270px;
    height: 270px;
    border-radius: 50%;
    object-fit: cover;
}
.brand-title {
    font-family: 'Montserrat', sans-serif; /* veya 'Montserrat' */
    font-weight: 600;
    font-size: 1.1rem; /* büyüklüğü ayarlayabilirsin */
    margin-top: 10px;
    letter-spacing: 2px; /* harf aralığı ile modern görünüm */
    color: black; /* yazı rengini navbar rengine göre ayarla */
    text-transform: uppercase; /* büyük harf */
    margin-left: 0px; /* logo ile araya boşluk */
}

.brand-title:hover {
    color: #423e37;
    transition: color 0.3s;
}

.hero-content-left .btn {
    display: inline-block;
    margin-bottom: 0;
}

.card p {
    color: #444;
    font-size: 1rem;
    line-height: 1.7;
}

/* === LIGHTBOX GENEL GÖRÜNÜM === */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center; /* Yatay ortalama */
  align-items: center;     /* Dikey ortalama */
  padding: 20px;           /* Mobilde kenarlardan biraz boşluk */
  box-sizing: border-box;
}

/* === GÖRSEL === */
.lightbox-content {
  max-width: 90%;
  max-height: 85%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(255,255,255,0.15);
  transition: transform 0.3s ease;
}

/* Hafif zoom efekti */
.lightbox-content:hover {
  transform: scale(1.02);
}

/* === KAPATMA BUTONU === */
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: white;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10000;
}

.lightbox .close:hover {
  color: #bbb;
}

/* === MOBİL UYUMLULUK === */
@media (max-width: 768px) {
  .lightbox-content {
    max-width: 95%;
    max-height: 75%;
    border-radius: 6px;
  }

  .lightbox .close {
    top: 15px;
    right: 15px;
    font-size: 30px;
  }
}

/* Çok küçük ekranlar için (örneğin eski telefonlar) */
@media (max-width: 480px) {
  .lightbox {
    padding: 10px;
  }

  .lightbox-content {
    max-width: 100%;
    max-height: 70%;
  }

  .lightbox .close {
    font-size: 26px;
  }
}




@media (max-width: 768px) {
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Son öğe tek kalırsa ortala */
  .gallery-grid .gallery-item:last-child {
    grid-column: 1 / -1; /* Satırın tamamını kapla */
    justify-self: center; /* Ortala */
    width: 50%; /* İstersen boyutu ayarla */
    max-width: 90%; /* Opsiyonel: biraz daraltsın */
  }
}
