/* Custom font for Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f2f5; /* Light gray background */
}
/* Custom scrollbar for better aesthetics */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Dropdown specific styles for Desktop */
.dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute;
    background-color: #333; /* Dark background for dropdown */
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 100;
    border-radius: 0.5rem; /* Rounded corners */
    overflow: hidden; /* Ensures rounded corners apply to children */
    top: 100%; /* Position below the parent link */
    left: 0;

    max-height: 50vh; /* Ekran yüksekliğinin %50'si kadar */
    overflow-y: auto; /* Dikeyde kaydırma çubuğu çıksın */
}

.dropdown-menu a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background-color 0.3s ease;
    /* --- YAZI KAYMASI İÇİN EKLENEN KODLAR --- */
    white-space: normal; /* Yazıların alt satıra geçmesine izin ver */
    word-wrap: break-word; /* Uzun kelimeleri kır */
    line-height: 1.4; /* Satır yüksekliğini ayarla */
}

.dropdown-menu a:hover {
    background-color: #555; /* Lighter background on hover */
}

.dropdown:hover .dropdown-menu {
    display: block; /* Show dropdown on hover for desktop */
}

/* Dropdown specific styles for Mobile */
.dropdown-menu-mobile {
    display: none; /* Hidden by default for mobile dropdowns */
    background-color: #444; /* Slightly different background for mobile dropdown */
    width: 100%;
    padding-left: 1rem; /* Indent mobile dropdown items */
    
    max-height: 40vh; /* Mobil ekran yüksekliğinin %40'ı kadar (isteğe göre ayarla) */
    overflow-y: auto; /* Dikeyde kaydırma çubuğu çıksın */
}

.dropdown-menu-mobile.is-open {
    display: block; /* Show when 'is-open' class is present */
}

.dropdown-menu-mobile a {
    color: white;
    padding: 10px 16px; /* Adjust padding for mobile */
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background-color 0.3s ease;
    /* --- YAZI KAYMASI İÇİN EKLENEN KODLAR --- */
    white-space: normal; /* Yazıların alt satıra geçmesine izin ver */
    word-wrap: break-word; /* Uzun kelimeleri kır */
    line-height: 1.4; /* Satır yüksekliğini ayarla */
}

.dropdown-menu-mobile a:hover {
    background-color: #666; /* Lighter background on hover for mobile */
}

/* Responsive adjustments for overall layout */
@media (max-width: 767px) {
    .dropdown-menu {
        position: relative;
        box-shadow: none;
        border-radius: 0;
        min-width: unset;
        width: 100%;
        background-color: #444;
    }
    .dropdown-menu a {
        padding-left: 2rem;
    }
}

/* --- Scroll Reveal Animations --- */

.reveal {
    opacity: 0;
    transform: translateY(20px); /* Default slide-up */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Specific directions for reveal */
.reveal.fade-bottom {
    transform: translateY(20px);
}
.reveal.fade-left {
    transform: translateX(-20px);
}
.reveal.fade-right {
    transform: translateX(20px);
}

/* Add delays for staggered effects */
.reveal.delay-100 { transition-delay: 0.1s; }
.reveal.delay-200 { transition-delay: 0.2s; }
.reveal.delay-300 { transition-delay: 0.3s; }
.reveal.delay-400 { transition-delay: 0.4s; }
.reveal.delay-500 { transition-delay: 0.5s; }
.reveal.delay-600 { transition-delay: 0.6s; }
.reveal.delay-700 { transition-delay: 0.7s; }
/* Add more delays if needed */


/* --- Fixed Animated Texts --- */
.fixed-text {
    position: fixed;
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Adjust for vertical centering */
    background-color: rgba(255, 0, 0, 0.9); /* Red background, semi-transparent */
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    font-size: 1rem;
    white-space: nowrap; /* Prevent text wrapping */
    z-index: 99; /* Below header, above content */
    opacity: 0; /* Start hidden */
    transition: opacity 0.8s ease-out; /* Smooth fade-in */
}

.fixed-text-left {
    left: -200px; /* Start off-screen to the left */
    border-radius: 0 8px 8px 0; /* Rounded on right side */
    animation: slideInLeft 0.8s ease-out forwards;
}

.fixed-text-right {
    right: -200px; /* Start off-screen to the right */
    border-radius: 8px 0 0 8px; /* Rounded on left side */
    animation: slideInRight 0.8s ease-out forwards;
}

/* Keyframes for sliding animation */
@keyframes slideInLeft {
    from { left: -200px; opacity: 0; }
    to { left: 0; opacity: 1; }
}

@keyframes slideInRight {
    from { right: -200px; opacity: 0; }
    to { right: 0; opacity: 1; }
}

/* Adjust for smaller screens */
@media (max-width: 768px) {
    .fixed-text {
        font-size: 0.8rem; /* Smaller font on mobile */
        padding: 8px 12px;
    }
    .fixed-text-left {
        left: -150px;
        animation: slideInLeftMobile 0.8s ease-out forwards;
    }
    .fixed-text-right {
        right: -150px;
        animation: slideInRightMobile 0.8s ease-out forwards;
    }

    @keyframes slideInLeftMobile {
        from { left: -150px; opacity: 0; }
        to { left: 0; opacity: 1; }
    }

    @keyframes slideInRightMobile {
        from { right: -150px; opacity: 0; }
        to { right: 0; opacity: 1; }
    }
}

/* Slider specific styles */
.slider-dot.active {
    opacity: 1;
    background-color: #ef4444; /* Tailwind red-500 */
}

.hero-text-overlay {
    background-color: rgba(0, 0, 0, 0); /* Completely transparent background */
    padding: 1rem; /* Add some padding for text readability */
    border-radius: 0.5rem;
}