/*
    Pursaklar Belediyesi Web Sitesi - CSS Stilleri
    Geliştirici: 3M Bilgi Teknolojileri
    Tarih: 2025
    Versiyon: 1.0
    Özellikler: Modern tasarım, responsive, animasyonlar, galeri
*/

/* Roboto Font Face Definitions */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/KFOmCnqEu92Fr1Mu4mxK.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/KFOlCnqEu92Fr1MmEU9fBBc4.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    font-style: italic;
    font-weight: 400;
    src: url('fonts/KFOkCnqEu92Fr1Mu51xIIzI.woff2') format('woff2');
    font-display: swap;
}

/* Custom Variables */
:root {
    --primary-color: #15a6db;    /* Ana mavi - Pursaklar Belediyesi */
    --secondary-color: #54a678;  /* Logo yeşili */
    --accent-color: #ff6b35;     /* Turuncu vurgu */
    --navy-color: #0f4c75;       /* Koyu mavi */
    --light-blue: #e3f2fd;       /* Açık mavi */
    --light-green: #e8f5e8;      /* Açık yeşil */
    --text-dark: #1a1a1a;
    --text-light: #6b7280;
    --border-light: #e5e7eb;
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: 'Roboto', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    scroll-behavior: smooth;
}

/* Smooth Scrolling for iOS */
html {
    -webkit-overflow-scrolling: touch;
}

/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out;
}

.animate-pulse-custom {
    animation: pulse 2s infinite;
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    z-index: 1;
}

.hero-slider .slide.active {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2;
}

/* 1. slayt (video) için genel karartmayı kaldır */
.hero-slider .slide:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1); /* Çok hafif karartma - neredeyse şeffaf */
    z-index: 1;
}

.hero-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Slider Styles */
.hero-slider .slide iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; /* Prevents interaction with video controls */
    border: none;
    outline: none;
}

/* Video overlay - tüm slaytlar için hafif siyah transparanlık */
.hero-slider .slide .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1); /* Çok hafif siyah transparanlık - neredeyse şeffaf */
    z-index: 1;
}

/* Hide YouTube elements completely */
.hero-slider .slide iframe {
    filter: brightness(1.2) contrast(1.2); /* Daha parlak ve net görüntü */
}

/* Additional YouTube hiding */
.hero-slider .slide iframe::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 10;
    pointer-events: none;
}

/* Header Enhancements */
header {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

/* Custom Dropdown Animations */
.group:hover .group-hover\:opacity-100 {
    animation: fadeIn 0.3s ease-out;
}

/* Enhanced Dropdown Shadow */
.group:hover .group-hover\:opacity-100 {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: translateY(2px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Slider Arrow Navigation */
.hero-slider + section button[onclick*="Slide"] {
    transition: all 0.3s ease;
}

.hero-slider + section button[onclick*="Slide"]:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Mobile responsive for arrow buttons */
@media (max-width: 768px) {
    .hero-slider + section button[onclick*="Slide"] {
        padding: 0.5rem;
    }
    
    .hero-slider + section button[onclick*="Slide"] i {
        font-size: 1rem;
    }
}

/* Responsive Navigation */
@media (max-width: 1280px) {
    .xl\:flex nav {
        font-size: 0.75rem; /* 12px */
    }
    
    .xl\:flex nav button {
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 1024px) {
    .xl\:flex nav {
        font-size: 0.7rem; /* 11px */
    }
    
    .xl\:flex nav button {
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 768px) {
    .xl\:flex nav {
        display: none !important;
    }
}

/* Enhanced Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
}

/* Gradient Backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.gradient-accent {
    background: linear-gradient(135deg, var(--accent-color), #ff8f65);
}

.gradient-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 400% 400%;
    animation: gradient 8s ease infinite;
}

.gradient-pursaklar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--navy-color));
    background-size: 200% 200%;
    animation: gradient 6s ease infinite;
}

.gradient-soft {
    background: linear-gradient(135deg, var(--light-blue), var(--light-green));
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    opacity: 0;
    transform: translateY(-10px);
}

#mobile-menu:not(.hidden) {
    max-height: 80vh;
    overflow-y: auto;
    opacity: 1;
    transform: translateY(0);
    -webkit-overflow-scrolling: touch;
}

/* Mobile Menu Button Enhancement */
#mobile-menu-btn {
    transition: all 0.3s ease;
}

#mobile-menu-btn:hover {
    background-color: rgba(21, 166, 219, 0.1);
    transform: scale(1.05);
}

#mobile-menu-btn:active {
    transform: scale(0.95);
}

/* Mobile Menu Content Enhancement */
#mobile-menu .px-4 {
    padding-bottom: 2rem;
}

#mobile-menu .space-y-2 > div {
    margin-bottom: 0.5rem;
}

/* Mobile Menu Scroll Enhancement */
@media (max-width: 768px) {
    #mobile-menu:not(.hidden) {
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-color) transparent;
    }
    
    #mobile-menu::-webkit-scrollbar {
        width: 4px;
    }
    
    #mobile-menu::-webkit-scrollbar-track {
        background: transparent;
    }
    
    #mobile-menu::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 2px;
    }
    
    #mobile-menu::-webkit-scrollbar-thumb:hover {
        background: var(--accent-color);
    }
}

/* Counter Animation */
.counter {
    font-feature-settings: 'tnum';
    font-variant-numeric: tabular-nums;
}

/* Loading Animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Intersection Observer Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Form Enhancements */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* News Ticker */
.news-ticker {
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
}

.news-ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 30s linear infinite;
}

@keyframes ticker {
    0% {
        transform: translate3d(100%, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* Image Overlay Effects */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.8), rgba(0, 166, 81, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.image-overlay:hover::before {
    opacity: 1;
}

.image-overlay .overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.image-overlay:hover .overlay-content {
    opacity: 1;
}

/* Floating Elements */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Glass Morphism */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Progress Bars */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 1s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 640px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .grid-responsive {
        grid-template-columns: 1fr;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0052a3;
        --secondary-color: #006b3f;
        --accent-color: #cc4500;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode Support (for future implementation) */
@media (prefers-color-scheme: dark) {
    .auto-dark {
        --text-dark: #f9fafb;
        --text-light: #d1d5db;
        --border-light: #374151;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    a {
        text-decoration: underline;
        color: black;
    }
    
    .container {
        max-width: none;
        margin: 0;
        padding: 0;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.focus-visible:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip Links */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 100;
}

.skip-link:focus {
    top: 6px;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tooltip Styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: var(--text-dark);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 14px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Custom Selection */
::selection {
    background-color: var(--primary-color);
    color: white;
}

::-moz-selection {
    background-color: var(--primary-color);
    color: white;
}

/* Scroll Down Arrow Animation */
.scroll-down-arrow {
    animation: scrollDown 4s ease-in-out infinite;
    transition: opacity 0.5s ease-in-out;
}

.scroll-down-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes scrollDown {
    0%, 25%, 50%, 75%, 100% {
        transform: translateY(0);
    }
    12.5% {
        transform: translateY(-8px);
    }
    37.5% {
        transform: translateY(-4px);
    }
    62.5% {
        transform: translateY(-6px);
    }
    87.5% {
        transform: translateY(-2px);
    }
}

/* Shimmer Effect for Images */
.shimmer-container {
    position: relative;
    overflow: hidden;
}

.shimmer-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.5s ease;
    z-index: 2;
    pointer-events: none;
}

.shimmer-container:hover::before {
    left: 100%;
}

/* Shimmer Effect for Project and News Images */
.project-image-shimmer,
.news-image-shimmer {
    position: relative;
    overflow: hidden;
}

.project-image-shimmer::before,
.news-image-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.8s ease;
    z-index: 2;
    pointer-events: none;
}

.project-image-shimmer:hover::before,
.news-image-shimmer:hover::before {
    left: 100%;
}

/* Enhanced Shimmer with multiple passes */
.shimmer-multi {
    position: relative;
    overflow: hidden;
}

.shimmer-multi::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.7),
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 1.2s ease;
    z-index: 2;
    pointer-events: none;
}

.shimmer-multi:hover::before {
    left: 100%;
}

/* Shimmer with color variation */
.shimmer-colored {
    position: relative;
    overflow: hidden;
}

.shimmer-colored::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 107, 53, 0.2),
        rgba(255, 255, 255, 0.6),
        rgba(21, 166, 219, 0.2),
        transparent
    );
    transition: left 1s ease;
    z-index: 2;
    pointer-events: none;
}

.shimmer-colored:hover::before {
    left: 100%;
}

/* Hero Text and Button Shadows */
.hero-text-shadow {
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.5),
        1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-button-shadow {
    box-shadow: 
        3px 3px 6px rgba(0, 0, 0, 0.4),
        1px 1px 3px rgba(0, 0, 0, 0.2);
}

.hero-button-shadow:hover {
    box-shadow: 
        4px 4px 8px rgba(0, 0, 0, 0.5),
        2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Print Styles for Forms */
@media print {
    #live-chat-widget,
    .accessibility-bar,
    .no-print {
        display: none !important;
    }
    
    .print-friendly {
        background: white !important;
        color: black !important;
    }
}

/* ===========================
   FOTOĞRAF GALERİSİ STİLLERİ
   =========================== */

/* Galeri Filtreleri - Tailwind CSS ile yönetiliyor */

/* Galeri Grid */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    aspect-ratio: 2/1;
    width: 100%;
    height: auto;
}

/* Sadece ilk 10 öğeyi göster (5x2 grid) */
.gallery-item:nth-child(n+11) {
    display: none;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gallery-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2/1;
    width: 100%;
    height: 100%;
    border-radius: 0.75rem;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
    border-radius: 0.75rem;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

/* Galeri Overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(21, 166, 219, 0.9), rgba(84, 166, 120, 0.9));
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.gallery-overlay-content {
    text-align: center;
    padding: 1rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-overlay-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gallery-overlay-content p {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.gallery-item:hover .gallery-overlay-content {
    transform: translateY(0);
}

.gallery-view-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 0;
    border-radius: 50%;
    margin: 0.75rem auto 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 1rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-view-btn:hover {
    background: white;
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Fancybox Özelleştirmeleri */
.fancybox__content {
    border-radius: 0.5rem !important;
    overflow: hidden !important;
}

.fancybox__caption {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%) !important;
    color: white !important;
    font-family: 'Roboto', sans-serif !important;
    padding: 2rem 1.5rem 1.5rem !important;
}

.fancybox__toolbar {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(10px) !important;
}

.fancybox__button {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    color: white !important;
}

.fancybox__button:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: scale(1.05) !important;
}

.fancybox__backdrop {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(10px) !important;
}

/* Galeri Animasyonları */
@keyframes galleryFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item {
    animation: galleryFadeIn 0.6s ease;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }
.gallery-item:nth-child(9) { animation-delay: 0.9s; }
.gallery-item:nth-child(10) { animation-delay: 1.0s; }
.gallery-item:nth-child(11) { animation-delay: 1.1s; }
.gallery-item:nth-child(12) { animation-delay: 1.2s; }

/* Galeri Filtre Animasyonları - Tailwind CSS ile yönetiliyor */

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Galeri */
@media (max-width: 768px) {
    #gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .gallery-filter {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Mobilde 6 öğe göster (3x2) */
    .gallery-item:nth-child(n+7) {
        display: none;
    }
}

@media (max-width: 480px) {
    #gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    /* Küçük ekranlarda 4 öğe göster (2x2) */
    .gallery-item:nth-child(n+5) {
        display: none;
    }
}
    
    /* Gallery filters handled by Tailwind CSS responsive classes */
}

/* Galeri Loading States */
.gallery-loading {
    position: relative;
    overflow: hidden;
}

.gallery-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

/* Galeri Grid Hizalama */
#gallery-grid {
    align-items: start;
}

/* Galeri öğeleri düz hizalı */
.gallery-item {
    align-self: start;
    vertical-align: top;
}

/* Galeri Zoom Effect */
.gallery-zoom {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Galeri Shimmer Effect */
.gallery-shimmer {
    position: relative;
    overflow: hidden;
}

.gallery-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* ===========================
   HİZMETLER VE BİNALAR STİLLERİ
   =========================== */

/* Container boyutları eşitlenmesi */
.services-slider,
.buildings-slider {
    min-height: 320px;
    position: relative;
}

#services-grid,
#buildings-grid {
    min-height: 280px;
}

/* Hizmet kartları - Bina kartlarıyla aynı boyut */
.service-item {
    height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    /* Bina kartlarıyla aynı boyut */
    aspect-ratio: 1;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.8s ease;
}

.service-item:hover::before {
    left: 100%;
}

.service-item i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.service-item h3 {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
}

.service-item:hover {
    transform: translateY(-4px) scale(1.03) rotate(1deg);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Bina kartları */
.building-item {
    height: 130px;
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    /* Hizmet kartlarıyla aynı boyut */
    aspect-ratio: 1;
    width: 100%;
}

.building-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.8s ease;
    z-index: 1;
}

.building-item:hover::before {
    left: 100%;
}

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

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

.building-item:hover {
    transform: translateY(-4px) scale(1.03) rotate(1deg);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.building-item .absolute {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    align-items: flex-end;
}

.building-item h3 {
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.75rem;
    line-height: 1.2;
}

/* Navigation butonları - Başlıkların altında ortalı */
.services-prev,
.services-next,
.buildings-prev,
.buildings-next {
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.services-prev::before,
.services-next::before,
.buildings-prev::before,
.buildings-next::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.services-prev:hover::before,
.services-next:hover::before,
.buildings-prev:hover::before,
.buildings-next:hover::before {
    left: 100%;
}

.services-prev:hover,
.services-next:hover,
.buildings-prev:hover,
.buildings-next:hover {
    background: var(--primary-color);
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 8px 25px rgba(21, 166, 219, 0.5);
    border-color: var(--primary-color);
}

.services-prev i,
.services-next i,
.buildings-prev i,
.buildings-next i {
    color: var(--navy-color);
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-prev:hover i,
.services-next:hover i,
.buildings-prev:hover i,
.buildings-next:hover i {
    color: white;
    transform: scale(1.2) rotate(5deg);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive ayarlar */
@media (max-width: 768px) {
    .service-item,
    .building-item {
        height: 120px;
        padding: 1rem;
    }
    
    .service-item i {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .service-item h3,
    .building-item h3 {
        font-size: 0.75rem;
    }
    
    .services-prev,
    .services-next,
    .buildings-prev,
    .buildings-next {
        width: 40px;
        height: 40px;
    }
    
    .services-prev i,
    .services-next i,
    .buildings-prev i,
    .buildings-next i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .service-item,
    .building-item {
        height: 100px;
        padding: 0.75rem;
    }
    
    .service-item i {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .service-item h3,
    .building-item h3 {
        font-size: 0.7rem;
    }
    
    .services-prev,
    .services-next,
    .buildings-prev,
    .buildings-next {
        width: 36px;
        height: 36px;
    }
}