:root {
    /* RENK PALETİ */
    --primary-color: #00d2ff;
    /* Cyan */
    --secondary-color: #007cf0;
    /* Koyu Mavi */
    --accent-glow: rgba(0, 210, 255, 0.6);
    /* Parlama */
    --bg-dark: #05080f;
    /* Ana arka plan */
    --bg-card: #111621;
    /* Kart arka planı */
    --text-light: #ffffff;
    --text-gray: #b0b5c0;
    --transition: all 0.4s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    background-color: transparent;
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(5, 8, 15, 0.95);
    height: 70px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.logo-container {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 5px 0;
    z-index: 1001;
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    border-radius: 8px;
}

.navbar.scrolled .logo-img {
    height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    opacity: 0.8;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
    opacity: 1;
}

.btn-quote {
    padding: 0.6rem 1.5rem !important;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 4px;
    color: white !important;
    opacity: 1 !important;
    font-weight: 600 !important;
    white-space: nowrap;
}

.burger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.burger div {
    width: 25px;
    height: 2px;
    background-color: var(--text-light);
    margin: 6px;
    transition: var(--transition);
}

/* --- HERO BÖLÜMÜ --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    padding-top: 90px;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    filter: blur(50px);
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: var(--primary-color);
    background: linear-gradient(to right, var(--primary-color), transparent);
    background-size: 100% 2px;
    background-position: bottom;
    background-repeat: no-repeat;
}

.hero-content p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.btn-main {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 210, 255, 0.2);
}

.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.4);
}

#canvas-container {
    width: 500px;
    height: 500px;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    touch-action: none;
}

/* --- GENEL BÖLÜM STİLLERİ --- */
.services,
.process,
.contact,
.portfolio,
.about {
    padding-top: 6rem;
    padding-right: 10%;
    padding-left: 10%;
    padding-bottom: 6rem;
}

/* SCROLL HİZALAMA AYARI */
#services,
#portfolio,
#process {
    scroll-margin-top: 140px;
}

/* İletişim bölümünün masaüstünde dikeyde ortalanması */
#contact {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--primary-color);
    font-weight: 500;
}

/* --- HAKKIMIZDA & TAB YAPISI --- */
.about {
    background-color: var(--bg-dark);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: -10px 10px 0px rgba(0, 210, 255, 0.1);
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-img:hover img {
    transform: scale(1.05);
}

.section-title-left {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.about-intro {
    margin-bottom: 2rem;
    color: var(--text-gray);
    font-size: 1rem;
}

.tab-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-content {
    display: none;
    animation: fadeEffect 0.5s;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.tab-content p {
    color: var(--text-gray);
}

.tab-content ul {
    list-style: none;
}

.tab-content ul li {
    margin-bottom: 0.5rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-content ul li i {
    color: var(--primary-color);
}

@keyframes fadeEffect {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- HİZMETLER --- */
.service-cards {
    display: flex;
    /* Grid yerine Flex kullanıyoruz */
    flex-wrap: wrap;
    /* Sığmayan kartlar alt satıra geçsin */
    justify-content: center;
    /* Kartları her zaman ORTALA (Kilit nokta) */
    gap: 2rem;
    /* Kartlar arası boşluk */
}

.card {
    /* Flex Ayarları */
    flex: 1 1 300px;
    /* Büyüsün(1), Küçülsün(1), İdeal Genişlik 300px olsun */
    max-width: 400px;
    /* Kartın aşırı büyümesini engeller (tek kalınca devleşmesin) */

    /* Senin Mevcut Tasarımın (Dokunulmadı) */
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
}

/* --- Görsel Efektlerin (Aynen Korundu) --- */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 210, 255, 0.2);
}

.card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* --- GALERİ --- */
.portfolio {
    background-color: #070a12;
}

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

.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 210, 255, 0.9), rgba(5, 8, 15, 0.7));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.4s ease;
    text-align: center;
    color: white;
}

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

.overlay h3,
.overlay p {
    transform: translateY(20px);
    transition: 0.4s ease;
}

.portfolio-item:hover h3,
.portfolio-item:hover p {
    transform: translateY(0);
}

/* --- SÜREÇ --- */
.steps {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.step {
    flex: 1;
    position: relative;
    padding: 2.5rem;
    background-color: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.step .number {
    font-size: 5rem;
    font-weight: 700;
    color: rgba(0, 210, 255, 0.1);
    position: absolute;
    top: -10px;
    right: 10px;
    z-index: 0;
}

.step h3,
.step p {
    position: relative;
    z-index: 1;
}

/* =========================================
   İLETİŞİM BÖLÜMÜ (WHATSAPP ODAKLI)
   ========================================= */

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

/* KUTU GENEL TASARIMI */
.contact-wrapper {
    background-color: var(--bg-card);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* SOL KUTU DETAYLARI */
.info-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    color: var(--text-gray);
    transition: var(--transition);
}

.link-item {
    text-decoration: none;
    color: var(--text-light);
    /* Instagram linki beyaz olsun */
}

.link-item:hover {
    color: var(--primary-color);
}

.icon-box {
    width: 50px;
    height: 50px;
    min-width: 50px;
    /* Daralmayı önler */
    background-color: rgba(0, 210, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.3rem;
    transition: var(--transition);
}

.info-item:hover .icon-box {
    background-color: var(--primary-color);
    color: white;
    transform: rotate(360deg);
}

/* SAĞ KUTU (WHATSAPP AKSİYON) */
.contact-action {
    text-align: center;
    align-items: center;
    background: linear-gradient(145deg, var(--bg-card), rgba(37, 211, 102, 0.05));
    /* Hafif yeşil ton */
    border: 1px solid rgba(37, 211, 102, 0.2);
    /* Yeşil çerçeve */
}

.action-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.action-content p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* BÜYÜK WHATSAPP BUTONU */
.btn-whatsapp-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    padding: 1.2rem 2rem;
    border-radius: 50px;
    /* Yuvarlak hatlar */
    font-weight: 700;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    width: 100%;
}

.btn-whatsapp-large:hover {
    background-color: #1ebc51;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
}

.btn-whatsapp-large i {
    font-size: 2rem;
}

.sub-text {
    margin-top: 1.5rem;
    font-size: 0.85rem !important;
    opacity: 0.7;
}

/* =========================================
   GELİŞMİŞ FOOTER TASARIMI
   ========================================= */
.footer {
    background-color: #020305;
    /* Sayfa renginden bir tık daha koyu */
    padding: 70px 0 20px 0;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 Sütunlu yapı */
    gap: 40px;
    padding: 0 20px;
}

/* 1. Sütun Logo ve Açıklama */
.footer-logo {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-desc {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Başlıklar */
.footer-col h4 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

/* Link Listeleri */
.footer-col ul {
    list-style: none;
}

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

.footer-col ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

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

/* İletişim Listesi */
.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
    margin-bottom: 15px !important;
}

.contact-info i {
    color: var(--primary-color);
    width: 20px;
}

/* Sosyal Medya İkonları */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* En Alt Telif Kısmı */
.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #666;
    font-size: 0.85rem;
}


/* ========================================= 
   ANIMASYONLAR (SCROLL REVEAL FIX)
========================================= */

/* Varsayılan Reveal Animasyonu */
.reveal {
    position: relative;
    transform: translateY(50px);
    /* 70px'ten 50px'e düşürdüm, daha yumuşak olsun */
    opacity: 0;
    transition: all 0.8s ease;
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

/* !!! ÇOK ÖNEMLİ DÜZELTME !!! */
/* Hero (Giriş) kısmı animasyonu beklemesin, sayfa açılır açılmaz görünsün. 
   Böylece "blank screen" sorunu çözülür. */
.hero .reveal,
.hero-content.reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
}


/* ========================================= 
   RESPONSIVE (MOBİL UYUMLULUK) 
========================================= */

@media screen and (max-width: 1024px) {

    /* Genel Padding ve Hizalama */
    .services,
    .process,
    .contact,
    .portfolio,
    .about {
        padding: 60px 20px !important;
        margin-top: 0 !important;
        scroll-margin-top: 90px !important;
    }

    /* Mobilde Animasyonları Basitleştir (Kasma Yapmasın) */
    .reveal {
        transform: translateY(20px);
        transition: all 0.5s ease;
    }

    #contact {
        min-height: auto;
    }

    /* Navbar ve Menü (JS ile çalışır) */
    .nav-links {
        position: fixed;
        right: 0px;
        height: 100vh;
        top: 0;
        background-color: rgba(5, 8, 15, 0.98);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 998;
        padding-bottom: 50px;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    /* Tüm ızgara yapılarını tek sütuna düşür */
    .contact-container,
    .about-container,
    .service-cards,
    .portfolio-grid,
    .steps {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
    }

    /* İletişim Kutusu Mobil Ayarları */
    .contact-wrapper {
        padding: 2rem;
    }

    .action-content h3 {
        font-size: 1.5rem;
    }

    /* Hero Bölümü */
    .hero {
        padding-top: 120px !important;
        flex-direction: column-reverse !important;
        height: auto !important;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    /* Galeri Yükseklik */
    .portfolio-item {
        width: 100% !important;
        height: 280px !important;
    }
}

@media screen and (max-width: 960px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .burger {
        display: block;
    }

    .nav-links li {
        margin: 1.5rem 0;
        opacity: 0;
    }

    #canvas-container {
        height: 350px;
        width: 100%;
    }
}

@media screen and (max-width: 600px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer {
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

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

    .contact-info li {
        justify-content: center;
    }

    .footer-col ul li a:hover {
        transform: translateX(0);
        color: var(--primary-color);
    }
}

/* Burger Animasyonu */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

/* =========================================
   HAKKIMIZDA ve İLETİŞİM İÇİN ÖZEL ORTALAMA AYARI
   ========================================= */

/* 1. Masaüstü (Web) Ayarları */
#about,
#contact {
    scroll-margin-top: 90px !important;
    min-height: 90vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* 2. Mobil Ayarları */
@media screen and (max-width: 1024px) {

    #about,
    #contact {
        min-height: auto !important;
        scroll-margin-top: 120px !important;
        padding-top: 2rem !important;
        padding-bottom: 4rem !important;
        justify-content: flex-start !important;
    }
}

/* =========================================
   YENİ GALERİ SİSTEMİ (KATEGORİ GRID) - GÜNCELLENMİŞ
   ========================================= */

/* 1. Kategori Modal (Siyah Arka Plan) */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow-y: auto;
    padding: 50px 20px;
    animation: fadeIn 0.3s ease;
}

/* Modal İçerik Kutusu */
.modal-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 50px;
}

/* Başlık */
#modal-title {
    color: var(--primary-color);
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Kapatma Butonu (X) */
.close-modal {
    position: absolute;
    top: -30px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
}

/* --- RESİM IZGARASI (GRID) --- */
.modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    /* Genişliği biraz artırdım */
    gap: 20px;
}

/* --- YENİ EKLENEN: GALERİ KUTUSU (ITEM) --- */
.gallery-item {
    position: relative;
    height: 250px;
    /* Kutunun yüksekliği sabit olsun */
    border-radius: 12px;
    overflow: hidden;
    /* Dışarı taşan yazı gizlensin */
    cursor: pointer;
    border: 2px solid transparent;
    background-color: #111;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Kutunun İçindeki Resim */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Resmi kutuya sığdırır */
    display: block;
    transition: transform 0.5s ease;
}

/* Hover: Resim Yakınlaşsın */
.gallery-item:hover img {
    transform: scale(1.1);
}

/* Hover: Çerçeve Rengi */
.gallery-item:hover {
    border-color: var(--primary-color);
}

/* --- YENİ EKLENEN: KAYAN YAZI KATMANI (OVERLAY) --- */
/* --- YENİ EKLENEN: KAYAN YAZI KATMANI (OVERLAY) - DÜZELTİLMİŞ --- */
.gallery-item .overlay {
    position: absolute;
    bottom: -100%;
    /* Başlangıçta aşağıda */
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: bottom 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 20px;
    text-align: center;

    /* !!! KRİTİK DÜZELTME BURADA !!! */
    opacity: 1 !important;
    /* Diğer overlay ayarlarının görünmez yapmasını engeller */
    visibility: visible !important;
}

/* Hover Olunca Yazı Yukarı Çıksın */
.gallery-item:hover .overlay {
    bottom: 0;
}

/* Yazı Stilleri */
.gallery-item .overlay h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 5px;

    /* Yazı animasyonu */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.1s;
}

/* Kutuya gelince yazı belirsin */
.gallery-item:hover .overlay h3 {
    opacity: 1;
    transform: translateY(0);
}


/* 2. TEK RESİM BÜYÜTME (VIEWER) */
.image-viewer {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.98);
    justify-content: center;
    align-items: center;
}

.full-image {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.2);
    animation: zoomIn 0.3s ease;
}

.close-viewer {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
    }

    to {
        transform: scale(1);
    }
}

/* Mobilde düzenleme */
@media screen and (max-width: 768px) {
    .modal-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item {
        height: 180px;
        /* Mobilde yükseklik biraz daha az olsun */
    }

    .gallery-item .overlay h3 {
        font-size: 0.9rem;
        /* Mobilde yazı küçülsün */
    }
}

/* =========================================
   MOBİL İÇİN GALERİ DÜZELTMESİ (Sürekli Görünürlük)
   ========================================= */

@media screen and (max-width: 1024px) {

    /* 1. Overlay (Siyah Katman) Sürekli Görünür Olsun */
    .gallery-item .overlay {
        bottom: 0 !important;
        /* Gizli kalmasın, hep altta dursun */
        height: auto !important;
        /* Tüm resmi kapatmasın, sadece yazı kadar yer kaplasın */
        padding: 10px !important;
        /* Biraz boşluk */
        background: rgba(0, 0, 0, 0.8) !important;
        /* Arkası biraz daha koyu olsun okunsun */
        opacity: 1 !important;
        /* Görünürlük açık */
    }

    /* 2. Yazı Efektini İptal Et (Direkt Görünsün) */
    .gallery-item .overlay h3 {
        opacity: 1 !important;
        transform: translateY(0) !important;
        /* Kayma efekti olmasın */
        font-size: 0.9rem !important;
        /* Mobilde yazı çok büyük olmasın */
        margin: 0 !important;
    }
}