@font-face {
    font-family: "Casta";
    src: url("./assets/fonts/Casta-Regular.woff") format("woff"),
         url("assets/fonts/Casta-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Causten";
    src: url("./assets/fonts/Causten-Regular.woff") format("woff"),
         url("assets/fonts/Causten-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Bold ve diğer ağırlıklar için placeholder - dosyalar eklendiğinde aktif olacak */
@font-face {
    font-family: "Causten";
    src: url("./assets/fonts/Causten-Bold.woff") format("woff"),
         url("assets/fonts/Causten-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Causten";
    src: url("./assets/fonts/Causten-ExtraBold.woff") format("woff"),
         url("assets/fonts/Causten-ExtraBold.woff") format("woff");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Causten";
    src: url("./assets/fonts/Causten-Light.woff") format("woff"),
         url("assets/fonts/Causten-Light.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Causten";
    src: url("./assets/fonts/Causten-Black.woff") format("woff"),
         url("assets/fonts/Causten-Black.woff") format("woff");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

body {
    background-color: #ffffff !important;
    font-family: "Causten", "Inter", sans-serif;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-bg {
    position: absolute;
    top: -15rem; /* görseli biraz yukarı al */
    left: 0;
    width: 100%;
    height: auto;
    min-height: 140vh; /* aşağı doğru serbest sarkma */
    object-fit: contain;
    object-position: center top;
    pointer-events: none;
}

.hero-section {
    position: relative;
    padding-top: 20rem; /* içeriği aşağı çek */
    padding-bottom: 3rem;
    min-height: 100vh;
}

.hero-divider {
    position: absolute;
    left: 50%;
    bottom: -40rem; /* Group 25'yi daha aşağı kaydır */
    transform: translateX(-50%);
    width: 100vw; /* sağa sola tam genişlik */
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.hero-divider img {
    display: block;
    width: 100%;
    height: auto;
    transform: scaleX(1.2); /* sağa sola genişlet */
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .hero-bg {
        top: -8rem;
        min-height: 180vh; /* Mobilde daha fazla aşağıya uzat */
        height: 180vh;
        object-fit: cover;
        object-position: center top;
    }
    
    .hero-section {
        padding-top: 10rem;
        padding-bottom: 2rem;
        min-height: 100vh;
    }
    
    .hero-divider {
        bottom: -20rem;
        width: 100vw;
    }
    
    .hero-divider img {
        transform: scaleX(1.0);
        width: 100%;
        height: auto;
    }
    
    /* Hero section'dan sonraki tüm section'ları aşağı çek */
    section:not(.hero-section) {
        margin-top: 12rem;
    }
    
    /* Hakkımda section'ından sonraki section'ları yukarı çek */
    section#about ~ section {
        margin-top: 4rem;
    }
    
    /* İkonlar section'ını daha yukarı çek */
    section#about + section {
        margin-top: 2rem;
    }
    
    /* Services section'ından sonraki section'a (eğitim akademisi) boşluk ekle */
    section#services ~ section {
        margin-top: 6rem;
    }
    
    /* Akademi bölümü mobil responsive */
    section[style*="linear-gradient"] img {
        max-width: 100% !important;
        height: auto !important;
        position: relative !important;
        transform: none !important;
        margin: 2rem auto 0 !important;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    /* Akademi bölümü tablet responsive */
    section[style*="linear-gradient"] .flex img {
        max-width: 100% !important;
        transform: none !important;
    }
}

@media (min-width: 1024px) {
    /* Akademi bölümü desktop responsive */
    section[style*="linear-gradient"] {
        overflow: visible !important;
    }
    
    section[style*="linear-gradient"] .flex img {
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .hero-bg {
        top: -12rem;
        min-height: 160vh; /* Tablet'te de biraz daha uzat */
        height: 160vh;
        object-fit: cover;
        object-position: center top;
    }
    
    .hero-section {
        padding-top: 15rem;
        padding-bottom: 2.5rem;
    }
    
    .hero-divider {
        bottom: -35rem;
    }
    
    /* Hero section'dan sonraki tüm section'ları aşağı çek */
    section:not(.hero-section) {
        margin-top: 16rem;
    }
    
    /* Hakkımda section'ından sonraki section'ları yukarı çek */
    section#about ~ section {
        margin-top: 6rem;
    }
    
    /* İkonlar section'ını daha yukarı çek */
    section#about + section {
        margin-top: 3rem;
    }
    
    /* Services section'ından sonraki section'a (eğitim akademisi) boşluk ekle */
    section#services ~ section {
        margin-top: 8rem;
    }
}

@media (min-width: 1024px) {
    .hero-section {
        padding-top: 20rem;
    }
}

.hero-title {
    font-family: "Casta", "Playfair Display", serif !important;
    font-weight: 300;
    line-height: 1.1;
    word-spacing: normal;
    letter-spacing: -0.02em;
}

/* Hero section'dan sonraki tüm section'ları aşağı çek */
section:not(.hero-section) {
    margin-top: 20rem;
}

/* Hakkımda section'ından sonraki section'ları yukarı çek */
section#about ~ section {
    margin-top: 8rem;
}

/* İkonlar section'ını daha yukarı çek */
section#about + section {
    margin-top: 4rem;
}

/* Services section'ından sonraki section'a (eğitim akademisi) boşluk ekle */
section#services ~ section {
    margin-top: 12rem;
}

/* Anlaşmalı Kurumlar section'ından sonraki section'a (abone ol) boşluk azalt */
section.bg-white + section {
    margin-top: 2rem;
}

/* Navbar responsive adjustments */
nav {
    background: transparent;
}

@media (max-width: 640px) {
    nav {
        border-bottom-width: 5px !important;
    }
}

/* Menu Container Styles */
#dropdownMenu {
    transform-origin: top right;
    transform: scale(0.8) translateY(-20px);
    opacity: 0;
    filter: blur(10px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

#dropdownMenu.menu-open {
    transform: scale(1) translateY(0);
    opacity: 1;
    filter: blur(0);
}

.menu-container {
    position: relative;
    width: 1000px;
    height: 900px;
    min-width: 1000px;
    min-height: 900px;
    max-width: 1200px;
    max-height: 1000px;
    animation: menuContainerSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes menuContainerSlide {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#dropdownMenu.menu-open .menu-container {
    animation: menuContainerSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.menu-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    animation: backgroundFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
    opacity: 0;
}

@keyframes backgroundFadeIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#dropdownMenu.menu-open .menu-background {
    animation: backgroundFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.menu-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.menu-image {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    animation: fadeInUpScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
}

.menu-image img {
    width: auto;
    height: auto;
    object-fit: contain;
}

@keyframes fadeInUpScale {
    from {
        transform: translateY(30px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.menu-content {
    position: relative;
    z-index: 3;
    animation: fadeInSlide 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
    transform: translateX(20px);
}

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

/* Linkler için stagger animasyon */
#dropdownMenu.menu-open .menu-content a {
    animation: fadeInUpStagger 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(10px);
}

#dropdownMenu.menu-open .menu-content a:nth-child(1) { animation-delay: 0.3s; }
#dropdownMenu.menu-open .menu-content a:nth-child(2) { animation-delay: 0.35s; }
#dropdownMenu.menu-open .menu-content a:nth-child(3) { animation-delay: 0.4s; }
#dropdownMenu.menu-open .menu-content a:nth-child(4) { animation-delay: 0.45s; }
#dropdownMenu.menu-open .menu-content a:nth-child(5) { animation-delay: 0.5s; }
#dropdownMenu.menu-open .menu-content a:nth-child(6) { animation-delay: 0.55s; }

@keyframes fadeInUpStagger {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive menu adjustments */
@media (max-width: 768px) {
    #dropdownMenu {
        right: 1rem !important;
        left: 1rem !important;
        max-width: calc(100vw - 2rem);
    }
    
    .menu-container {
        width: 100%;
        height: auto;
        min-width: auto;
        min-height: auto;
        max-width: 100%;
        max-height: calc(100vh - 5rem);
        padding: 1rem;
    }
    
    .menu-background img {
        object-fit: cover;
        opacity: 1;
    }
    
    .menu-image {
        display: none;
    }
    
    .menu-content {
        width: 100%;
        align-items: center;
        text-align: center;
        padding-right: 0;
    }
    
    .menu-content > div {
        align-items: center;
        text-align: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .menu-container {
        width: 900px;
        height: 800px;
        min-width: 900px;
        min-height: 800px;
        max-width: 1000px;
        max-height: 900px;
    }
}

@media (min-width: 1025px) {
    .menu-container {
        width: 1000px;
        height: 900px;
        min-width: 1000px;
        min-height: 900px;
        max-width: 1200px;
        max-height: 1000px;
    }
}

@media (min-width: 1280px) {
    .menu-container {
        width: 1200px;
        height: 1000px;
        min-width: 1200px;
        min-height: 1000px;
        max-width: 1400px;
        max-height: 1100px;
    }
}


