/* Arka plan geçişi için stiller */
body {
    position: relative; /* Pseudo-element konumlandırması için gerekli */
    z-index: 0; /* İçeriğin pseudo-element'in üzerinde kalmasını sağlar */
    background-image: var(--bg-image-light); /* JS'den gelen değişkeni kullan */
    background-size: auto;
    background-repeat: repeat;
    background-attachment: fixed;
    font-family: 'Ubuntu Condensed', sans-serif;
}

/* Arka plan geçişi için pseudo-element */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-image-dark); /* JS'den gelen değişkeni kullan */
    background-attachment: fixed;
    z-index: -1; /* İçeriğin arkasında kalması için */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

html.dark body {
    background-image: var(--bg-image-dark); /* Koyu tema için arkaplan */
}

html.dark body::before {
    opacity: 1;
}

@media (max-width: 768px) {
    body, body::before {
        background-attachment: scroll;
    }
}

/* Animasyon için yardımcı sınıflar */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-from-bottom { transform: translateY(30px); }
.fade-in-from-left { transform: translateX(-50px); }
.fade-in-from-right { transform: translateX(50px); }

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* Erişilebilirlik için Focus Stilleri */
a:focus-visible, button:focus-visible {
    outline: 2px solid #4F46E5; /* Indigo-600 */
    outline-offset: 2px;
}

/* Hizmet Kartları için Ortak Stil (CDN uyumlu) */
.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem; /* p-6 */
    text-align: center;
    transition-property: all;
    transition-delay: 100ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); /* shadow-lg */
    /* background-color: rgba(36, 35, 35, 0.91); /* bg-white/10 */
}

.service-card:hover {
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); /* hover:shadow-2xl */
    transform: translateY(-0.25rem); /* hover:-translate-y-1 */
}

/* Koyu tema için hizmet kartı stili */
html.dark .service-card {
    background-color: rgba(255, 255, 255, 0.1); /* dark:bg-white/40 */
}

/* Sticky Header Inner Styles */
.sticky-header-inner {
    position: relative; /* İçindeki elemanların konumlandırılması için */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem; /* py-4 px-6 */
    border-radius: 9999px; /* rounded-full */
    backdrop-filter: blur(6px); /* backdrop-blur-sm */
    transition: background-color 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

/* Light theme sticky header (koyu arka plan) */
.sticky-header-inner {
    background-color: rgba(17, 24, 39, 0.8); /* bg-gray-900/80 */
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1), /* Mevcut gölge */
        0 8px 10px -6px rgba(0, 0, 0, 0.1), /* Mevcut gölge */
        0 0 40px 15px rgba(255, 255, 255, 0.3); /* Beyaz halo */
}

/* Dark theme sticky header (açık arka plan) */
html.dark .sticky-header-inner {
    background-color: rgba(229, 231, 235, 0.8); /* dark:bg-gray-200/80 */
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1), 
        0 8px 10px -6px rgba(0, 0, 0, 0.1),
        0 0 40px 15px rgba(0, 0, 0, 0.3); /* Siyah halo */
}
