/* --- Body ve HTML Temel Ayar --- */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25)), url('../img/zamansal.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- Header ve Navbar (Modern Glassmorphism Tasarım) --- */
.header-section {
    background-color: transparent;
    padding: 30px 0;
    z-index: 1000;
    transition: all 0.4s ease;
}
    /* --- Header Scroll Edilince (Aşağı kayınca bu devreye girecek) --- */
    .header-section.header-scrolled {
        /* Footer'dan aldığımız arkaplan: */
        background: linear-gradient(180deg, rgba(0,0,0,0.8), rgba(0,0,0,0.6));
        /* Arkadaki yazıların net karışmaması için hafif bulanıklık (Modern durur) */
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        /* Altına ince bir çizgi ve gölge ekleyerek ayrımı netleştirelim */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
        /* Aşağı inince header biraz küçülsün istersen: */
        padding: 15px 0;
    }

.navbar-nav.mainmenu {
    align-items: center;
    gap: 75px !important;
}

/* Menü Butonları (Cam Efekti) */
.mainmenu .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 25px;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.5px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    color: #000 !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    .mainmenu .nav-link:hover,
    .mainmenu .nav-link.active {
        background-color: #7c9eb3 !important; /* menu ustune gelince saydam alanin rengi */
        border-color: #acb1b8;
        color: #000 !important;
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 10px 20px rgba(0, 0, 128, 0.3);
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 5px rgba(255, 255, 255, 0.5);
    }

/* Ok İşareti Animasyonu */
.transition-icon {
    transition: transform 0.3s ease;
}

.dropdown-item-custom:hover .transition-icon {
    transform: rotate(180deg);
}

/* --- Dropdown Menü (Stabil Hover) --- */
/* --- Dropdown Menü (Estetik & Modern) --- */
.dropdown-item-custom {
    position: relative;
}

.custom-dropdown {
    /* #88a9bb renginin %85 opak hali (RGB: 136, 169, 187) */
    background: rgba(136, 169, 187, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(136, 169, 187, 0.6);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0,0,0,0.05);
    min-width: 260px;
    padding: 15px;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 20px);
    opacity: 0;
    visibility: hidden;
    margin-top: 25px;
    list-style: none;
    z-index: 1050;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

    /* Hover Köprüsü (Mouse kopmasını önler) */
    .custom-dropdown::before {
        content: "";
        position: absolute;
        top: -30px;
        left: 0;
        width: 100%;
        height: 35px;
        background: transparent;
    }

    /* Üst kısımdaki küçük ok işareti (Opsiyonel estetik detay) */
    .custom-dropdown::after {
        content: '';
        position: absolute;
        top: -8px;
        left: 50%;
        transform: translateX(-50%) rotate(45deg);
        width: 16px;
        height: 16px;
        /* Arkaplan ile aynı renk */
        background: rgba(136, 169, 187, 0.85);
        border-left: 1px solid rgba(136, 169, 187, 0.6);
        border-top: 1px solid rgba(136, 169, 187, 0.6);
        z-index: -1;
    }

/* Hover Durumu */
.dropdown-item-custom:hover > .custom-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0); /* Yukarı kayarak belirme */
}

/* Dropdown Linkleri */
.custom-dropdown li a {
    display: flex;
    align-items: center;
    color: #000 !important; /* Yazı rengi Siyah */
    font-weight: 500;
    padding: 12px 20px;
    font-size: 15px;
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background-color: #88a9bb;
}
.custom-dropdown li:last-child a {
    margin-bottom: 0;
}

/* Link Hover Efekti */
.custom-dropdown li a:hover {
    background-color: rgba(255, 255, 255, 0.6);
    color: #1a1717 !important; /* Altın rengi vurgu */
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(169, 131, 7, 0.15);
}

/* Link Hover ikon/çizgi efekti */
.custom-dropdown li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #1a1717;
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 4px 0 0 4px;
}

.custom-dropdown li a:hover::before {
    transform: scaleY(1);
}

/* Main İçerik Alanı */
main.flex-fill {
    flex: 1;
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
}

/* Hero Section */
.hero-content {
    text-align: center;
    animation: fadeScale 1s ease-out;
    width: 100%;
}

.hero-subtitle {
    color: #4b4bff;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    opacity: 0.85;
}

.hero-title {
    font-size: 6rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #151313, #1a1717);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 10px rgba(0,0,0,0.15);
    letter-spacing: -1px;
}

.hero-text {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #000;
}

/* Kayıt Ol Butonu */
.btn-custom {
    background: linear-gradient(90deg, #6c63ff, #ff63c3);
    border: none;
    color: #fff;
    padding: 14px 100px;
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

    .btn-custom:hover {
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 12px 25px rgba(0,0,0,0.25);
        background: linear-gradient(90deg, #ff63c3, #6c63ff);
        color: #fff;
    }

/* Footer */
footer.footer-section {
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.8), rgba(0,0,0,0.6));
    color: #ccc;
    font-size: 14px;
    letter-spacing: 0.5px;
}

    /* Footer linkleri */
    footer.footer-section a {
        color: #ccc;
        text-decoration: none;
        border-bottom: 1px solid transparent; /* Başlangıçta çizgi yok */
        transition: all 0.3s ease;
    }

        footer.footer-section a:hover {
            border-bottom: 1px solid #fff; /* Hoverda alt çizgi ve rengi */
        }


/* Social Links */
.social-link {
    position: relative;
    display: inline-block;
    padding: 4px 8px;
    color: #000 !important;
    font-weight: 600;
    font-size: 20px;
    border-radius: 8px;
    background-color: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

    .social-link img {
        width: 36px;
        height: 36px;
        margin-right: 0px;
    }

    .social-link:hover {
        background-color: rgba(255,255,255,0.2);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    }

/* Animasyonlar */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes fadeScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .header-section {
        background-color: rgba(0,0,0,0.9) !important;
        padding: 10px 0;
    }

    .navbar-nav.mainmenu {
        gap: 10px;
        margin-top: 20px;
        align-items: flex-start;
    }

    .custom-dropdown {
        position: static;
        transform: none;
        width: 100%;
        box-shadow: none;
        background-color: rgba(255,255,255,0.05);
        border-top: none;
        animation: none;
        margin-top: 10px;
    }

        .custom-dropdown::before {
            display: none;
        }

        .custom-dropdown li a {
            padding-left: 30px;
            color: #fff !important;
        }

    .dropdown-item-custom {
        width: 100%;
        padding-bottom: 0;
        margin-bottom: 0;
    }

        .dropdown-item-custom:hover .nav-link {
            transform: none;
        }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-text {
        font-size: 1rem;
        max-width: 90%;
    }

    .btn-custom {
        padding: 12px 35px;
        font-size: 1rem;
    }

    .navbar-toggler {
        border-color: rgba(255,255,255,0.5);
    }

        .navbar-toggler:focus {
            box-shadow: none;
        }
}
