/* === DEĞİŞKENLER VE GENEL AYARLAR === */
:root {
    --primary-color: #8d99ae;
    /* Açık Gri Mavi - Vurgu */
    --secondary-color: #4a5568;
    /* Orta Antrasit Gri - İkincil Vurgu */
    --dark-color: #2b2d42;
    /* Koyu Antrasit - Ana Koyu Renk */
    --light-color: #edf2f4;
    /* Çok Açık Gri - Ana Açık Renk */
    --white-color: #ffffff;
    --text-dark: #2b2d42;
    --text-light: #edf2f4;
    --accent-color: #ef233c;
    /* Kırmızı - Dikkat Çekici Detaylar */
    --font-primary: 'Cardo', sans-serif;
    --font-headings: 'Cardo', serif;
    --font-logo: 'Tangerine', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white-color);
    /* Ana arka plan rengi */
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.logo {
    height: 50px;
}

/* === YÜKLEME EKRANI === */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-color);
    color: var(--dark-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.3s ease-out, visibility 0.3s;
    will-change: opacity, visibility;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loading-logo {
    font-family: var(--font-logo);
    font-size: 2.8rem;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

#loading-bar-container {
    width: 80%;
    max-width: 300px;
    background-color: rgba(43, 45, 66, 0.1);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

#loading-bar {
    background-color: transparent;
    height: 8px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

#loading-bar .progress {
    background-color: var(--primary-color);
    height: 100%;
    width: 0%;
    border-radius: 5px;
    transition: width 0.2s ease-in-out;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--dark-color);
    font-size: 0.9rem;
    font-weight: bold;
}

/* === Sayfa İçeriği & Akıcı Animasyonlar === */
.page-content {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    background: rgba(237, 242, 244, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease, padding 0.3s ease;
}

.logo {
    font-family: var(--font-logo);
    font-size: 2.2rem;
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
    gap: 0.6rem;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

#menu-btn {
    font-size: 1.8rem;
    color: var(--dark-color);
    cursor: pointer;
    display: block;
}

.navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--dark-color);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s cubic-bezier(0.7, 0, 0.3, 1);
}

.navbar.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.navbar a {
    display: block;
    margin: 0.8rem 0;
    color: var(--text-light);
    font-size: 1.1rem;
    text-align: center;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: var(--primary-color);
}

/* === HERO === */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
}

#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.hero-content {
    padding: 1rem;
    z-index: 1;
}

.hero-content h1 {
    font-family: var(--font-headings);
    font-size: 2.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    margin-bottom: 1rem;
    color: var(--white-color);
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    color: var(--white-color);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--secondary-color);
    color: var(--text-light);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* === İÇERİK BÖLÜMLERİ === */
.content-section {
    padding: 3rem 5%;
    text-align: center;
}

.content-section h2 {
    font-family: var(--font-headings);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.content-section p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.bg-light {
    background-color: var(--light-color);
}

/* === HİZMETLER (YENİ DÜZENLEME) === */
.services-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.service-card {
    background: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

/* YENİ: Kare resim ayarı */
.service-card-image {
    width: 100%;
    aspect-ratio: 2 / 2;
    /* En-boy oranını 1:1 (kare) yapar */
    object-fit: cover;
}

.service-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* YENİ: Resim olarak eklenecek ikon için stil */
.service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
    /* Başlıkla arasına boşluk */
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-dark);
    flex-grow: 1;
    margin-bottom: 0;
}

/* YENİ: Buton küçültme ve animasyon ayarları */
.service-card .btn {
    padding: 0.6rem 1.5rem;
    /* Butonu küçült */
    font-size: 0.9rem;
    /* Yazıyı küçült */
    margin-top: 1.5rem;
}

.service-card .btn:hover {
    transform: translateY(-4px);
    /* Animasyon: Hafif yukarı kalkma */
    box-shadow: 0 7px 14px rgba(43, 45, 66, 0.2);
    /* Animasyon: Gölge */
    background: var(--secondary-color);
    /* Hover rengi genel .btn:hover'dan miras alınabilir veya burada özelleştirilebilir */
    filter: brightness(1.05);
    /* Animasyon: Hafif parlama */
}


/* === GALERİ & MEKAN (SLIDESHOW) === */
.gallery-slideshow-container {
    position: relative;
    max-width: 900px;
    margin: 2rem auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    aspect-ratio: 16 / 9;
    background-color: #000;
    /* Resim yüklenirken siyah arka plan */
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 6s ease-out;
    /* Uzun süre ve yumuşak geçiş */
    transform: scale(1.1);
    /* Başlangıçta hafif zoom */
    z-index: 1;
}

.gallery-slide.active {
    opacity: 1;
    transform: scale(1);
    /* Sona doğru normal boyuta dönme (Ken Burns efekti benzeri) */
}

/* İlk yüklenen resim için özel kural */
.gallery-slide:first-child {
    opacity: 1;
    transform: scale(1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: 2rem 1rem 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    z-index: 10;
    /* Overlay resimlerin üzerinde */
}

.gallery-slideshow-container:hover .gallery-overlay {
    opacity: 1;
}

.click-hint {
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Lightbox Navigasyon */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 5px;
    user-select: none;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.4);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* === VIDEO GALERİ === */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.video-item {
    text-align: center;
}

.video-player {
    width: 100%;
    height: auto;
    min-height: 250px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #000;
}

.video-item h3 {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

/* === İLETİŞİM & FOOTER & DİĞERLERİ === */
.contact-container {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.contact-info {
    text-align: left;
    max-width: 100%;
    padding: 0 10px;
}

.contact-info p {
    margin-bottom: 0.6rem;
    font-size: 1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

.contact-info p i {
    color: var(--primary-color);
    margin-right: 0.6rem;
    width: 18px;
    text-align: center;
}

.contact-info p a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info p a:hover {
    color: var(--primary-color);
}

.google-maps {
    width: 100%;
    margin-top: 2rem;
}

.google-maps iframe {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.footer {
    background: var(--dark-color);
    color: var(--text-light);
    text-align: center;
    padding: 2rem 5%;
    margin-top: 3rem;
    font-size: 0.9rem;
}

.social-media a {
    color: var(--text-light);
    font-size: 1.3rem;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: var(--primary-color);
}

.fixed-social-buttons {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 999;
    display: none;
    flex-direction: column;
    gap: 8px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white-color);
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: var(--secondary-color);
    transition: transform 0.2s ease-in-out;
}

.whatsapp-btn {
    background-color: #25D366;
}

.phone-btn {
    background-color: var(--secondary-color);
}

.instagram-btn {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fce38a 5%, #ffb38e 20%, #ef6e7e 45%, #c5427d 60%, #833ab4 90%);
}

.pulse-animation {
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease-in-out;
}

.close-lightbox:hover {
    opacity: 1;
}

#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(43, 45, 66, 0.95);
    backdrop-filter: blur(5px);
    color: var(--text-light);
    padding: 15px 20px;
    box-sizing: border-box;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 9999;
    gap: 15px;
    border-top: 1px solid rgba(141, 153, 174, 0.5);
}

#cookie-consent-banner p {
    margin: 0;
    font-size: 14px;
    max-width: 800px;
}

#cookie-consent-banner a {
    color: #a7bce0;
    text-decoration: underline;
}

#cookie-consent-banner button {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 10px 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#cookie-consent-banner button:hover {
    background-color: var(--secondary-color);
}

/* === MASAÜSTÜ & TABLET (769px ve üzeri) === */
@media (min-width: 769px) {
    .header {
        padding: 1rem 10%;
        justify-content: space-between;
    }

    #menu-btn {
        display: none;
    }

    .navbar {
        position: static;
        display: flex;
        flex-direction: row;
        padding: 0;
        clip-path: none;
        background: transparent;
        flex-grow: 1;
        justify-content: center;
    }

    .navbar a {
        color: var(--dark-color);
        margin: 0 1.2rem;
        padding: 0.5rem 0;
        position: relative;
    }

    .navbar a::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 0%;
        height: 2px;
        background-color: var(--primary-color);
        transition: width 0.3s ease-in-out;
    }

    .navbar a:hover::after {
        width: 100%;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .content-section {
        padding: 4rem 10%;
    }

    .content-section h2 {
        font-size: 2.5rem;
    }

    .content-section p {
        font-size: 1.05rem;
    }

    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .gallery-item {
        height: 250px;
    }

    .google-maps iframe {
        height: 450px;
    }

    .footer {
        padding: 2rem 10%;
        font-size: 1rem;
    }

    .fixed-social-buttons {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }

    .social-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    #cookie-consent-banner {
        flex-direction: row;
        justify-content: center;
        padding: 20px;
    }

    #cookie-consent-banner p {
        text-align: right;
    }
}

/* === BÜYÜK MASAÜSTÜ (1200px ve üzeri) - 4'LÜ HİZMET DÜZENİ === */
@media (min-width: 1200px) {
    .services-container {
        grid-template-columns: repeat(4, 1fr);
    }
}