/* ============================================= */
/* EMSA KURUMSAL KİMLİK RENK PALETİ VE FONTLARI */
/* ============================================= */

:root {
    /* EMSA RESMİ RENKLERİ */
    --first-color: #154d69;      /* EMSA Dark Blue */
    --second-color: #3e8ec6;     /* EMSA Light Blue */
    --third-color: #50504f;      /* EMSA Dark Grey */
    --fourth-color: #eaeaea;     /* EMSA Light Grey */

    /* Sabit Renkler ve Gölgeler */
    --text-dark: #154d69;        
    --text-light: #50504f;       
    --bg-light: #f9f9f9;
    --border-color: #eaeaea;
    --card-shadow: 0 10px 30px -15px rgba(21, 77, 105, 0.15);
    --hover-shadow: 0 20px 40px -10px rgba(21, 77, 105, 0.25);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --primary-color: var(--first-color);
}

/* SAĞA SOLA KAYMAYI (SHIFTING) ENGELLEYEN SABİTLEYİCİ */
html {
    box-sizing: border-box;
    overflow-y: scroll; /* Kaydırma çubuğunu zorunlu kılıp sayfanın titremesini engeller */
}
*, *:before, *:after {
    box-sizing: inherit;
}

/* YAZI TİPİ ZORLAMASI (ESKİ STİLLERİ EZMEK İÇİN) */

/* 1. Genel Metinler: Sadece Open Sans (Okunabilirlik için temiz font) */
body, p, span, div, a, li {
    font-family: 'Open Sans', -apple-system, sans-serif !important;
}

/* 2. Menü, Buton ve Vurgular: Sadece Montserrat (Kurumsal şıklık) */
.nav-link, .buton, .admin-link, strong {
    font-family: 'Montserrat', sans-serif !important;
}

/* 3. SADECE BÜYÜK BAŞLIKLAR: Trebuchet MS Fontu */
h1, h2, h3, h4, h5, h6, .header-brand {
    font-family: 'Trebuchet MS', 'Montserrat', sans-serif !important;
    letter-spacing: 1px; 
}

/* MOBİL SAĞ BOŞLUK DÜZELTMESİ */
html, body {
    overflow-x: hidden; 
    width: 100%;
    max-width: 100vw;
}

body {
    margin: 0;
    line-height: 1.6;
    background-color: #fff;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header & Navigasyon */
.main-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.2rem 2rem;
    background-color: #181d4d; /* Koyu Mavi */
    box-shadow: 0 2px 15px rgba(0,0,0,0.15); 
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.header-brand {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-toggle {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    color: var(--second-color);
    transform: scale(1.05);
}

/* YENİ: Parşömen (Scroll) Tarzı Açılır Menü */
.main-nav {
    position: absolute;
    top: 100%; 
    right: 2rem; 
    width: 250px;
    
    /* Parşömen Rengi ve Derinliği */
    background-image: linear-gradient(to bottom, #ffffff, #fcfaf5); /* Krem/Kağıt dokusu */
    box-shadow: 0 20px 40px rgba(0,0,0,0.15), inset 0 -4px 10px rgba(0,0,0,0.03); 
    border-radius: 0 0 16px 16px; 
    border: 1px solid rgba(0,0,0,0.06);
    border-top: none;
    
    z-index: 2000;
    display: flex;
    flex-direction: column;
    
    /* Rulo gibi açılma animasyonu (Max-height hilesi) */
    opacity: 0;
    pointer-events: none;
    max-height: 0; /* Başlangıçta tamamen yukarı sarılı */
    overflow: hidden; /* Dışarı taşan yazıları gizler */
    transform: translateY(-10px); /* Hafif yukarıdan aşağı inme hissi */
    
    transition: max-height 0.6s cubic-bezier(0.25, 1, 0.3, 1), 
                opacity 0.4s ease, 
                transform 0.5s ease;
}

.main-nav.open {
    opacity: 1;
    pointer-events: auto;
    max-height: 600px; /* Rulonun açılacağı maksimum alan */
    transform: translateY(0);
}

.nav-link {
    text-decoration: none;
    color: #181d4d; /* Parşömen üzerinde çok şık duran EMSA Koyu Mavisi */
    font-weight: 600;
    font-size: 0.9rem; 
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(24, 29, 77, 0.08); /* Kağıt üzeri hafif çizgi */
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    text-align: left;
}

.nav-link:last-child {
    border-bottom: none; 
    border-radius: 0 0 16px 16px;
}

.nav-link:hover, .nav-link.active {
    color: var(--second-color); 
    background-color: rgba(24, 29, 77, 0.03); /* Üzerine gelince çok hafif gölge */
    padding-left: 2rem; /* Şık bir sağa kayma efekti */
    border-left: 4px solid var(--second-color);
}

/* Ortalamalar */
.content-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
    flex-grow: 1;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .content-container { padding: 0 1.2rem; }
    .main-header { padding: 1rem 1.2rem; }
    .header-brand { font-size: 1.2rem; }
    .main-nav { right: 1.2rem; width: 220px; } 
}

/* Animasyonlar */
.fade-in { animation: fadeIn 0.6s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }

/* Buton Stili */
.buton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background-color: var(--second-color);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(62, 142, 198, 0.2);
}
.buton:hover {
    background-color: #2e71a6; 
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(62, 142, 198, 0.3);
}
.buton.tam-genislik { width: 100%; }

/* YENİ: Gelişmiş 3 Sütunlu Footer Tasarımı */
.main-footer {
    background-color: #181d4d; /* EMSA Koyu Mavi */
    color: var(--fourth-color);
    padding: 4rem 2rem 1.5rem 2rem;
    margin-top: 5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* İnce şık bir çizgi */
    padding-bottom: 3rem;
    margin-bottom: 1.5rem;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-family: 'Trebuchet MS', 'Montserrat', sans-serif !important;
    letter-spacing: 1px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--second-color); /* Turkuaz/Açık Mavi vurgu çizgisi */
    border-radius: 2px;
}

.footer-logo {
    max-width: 180px;
    margin-bottom: 1rem;
    display: block;
}

.footer-about {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #eaeaea;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #eaeaea;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--second-color);
    transform: translateX(5px); /* Üzerine gelince sağa doğru tatlı bir kayma */
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
    font-size: 1.2rem;
}

.footer-socials a:hover {
    background-color: var(--second-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(62, 142, 198, 0.4);
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(234, 234, 234, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom .em-yours {
    font-style: italic;
    color: #fff;
    letter-spacing: 1px;
    font-size: 1rem;
}

/* Ortak Kart Stili */
.modern-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}
.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(0,0,0,0.0);
}

/* İkonlar */
.ikon-wrapper {
    width: 70px;
    height: 70px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--ikon-renk, var(--second-color)); 
    transition: all 0.4s ease-in-out; 
}

.erisim-karti .ikon-wrapper {
    animation: float 3s ease-in-out infinite;
}

.erisim-karti:hover .ikon-wrapper {
    transform: scale(1.1) rotate(10deg); 
    background-color: var(--ikon-renk, var(--second-color)); 
    color: white;
    animation: none; 
}

/* Çizgili Başlık */
.cizgili-baslik {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.cizgili-baslik h1, .cizgili-baslik h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--first-color); 
    position: relative;
    display: inline-block;
}
.cizgili-baslik h1::after, .cizgili-baslik h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--second-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}
.cizgili-baslik p {
    font-size: 1.2rem;
    color: var(--text-light) !important;
    max-width: 600px;
    margin: 0 auto;
}

/* Ana Sayfa Özel Stiller */
.welcome-section {
    padding: 4rem 2rem;
    background-color: #ffffff; 
    border-radius: 24px;
}
.welcome-logo {
    height: 100px;
    width: auto;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* YENİ: Animasyonlu Slider Stilleri */
.banner-slider {
    width: 100%;
    height: 450px;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 5rem;
    box-shadow: var(--card-shadow);
}
.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(21, 77, 105, 0.65); /* EMSA Laciverti Yarı Saydam Filtre */
}
.slide.active {
    opacity: 1;
    z-index: 1;
}
.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 2rem;
    max-width: 800px;
    transform: translateY(20px);
    transition: transform 1s ease, opacity 1s ease;
    opacity: 0;
}
.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}
.slide-content h2 {
    font-family: 'Trebuchet MS', 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.slide-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 5px rgba(0,0,0,0.4);
}
.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}
.slider-nav .dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}
.slider-nav .dot.active {
    background: var(--warning); /* EMSA Turuncusu */
    width: 25px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .banner-slider { height: 350px; }
}

/* ============================================= */
/* YENİ: 3D İNTERAKTİF DNA ALANI STİLLERİ        */
/* ============================================= */
.banner-3d {
    width: 100%;
    height: 480px;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 5rem;
    box-shadow: var(--card-shadow);
    background: radial-gradient(circle at center, #154d69 0%, #0a192f 100%); /* Çok koyu lacivert uzay hissi */
    cursor: crosshair; /* Fare ikonunu hedefleyici yapar */
}

.canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Yazının arkasında kalır */
}

.banner-3d-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2; /* 3D objenin önünde durur */
    text-align: center;
    color: #ffffff;
    pointer-events: none; /* Farenin 3D alana geçmesine izin verir */
    width: 90%;
    max-width: 800px;
}

.banner-3d-text h2 {
    font-family: 'Trebuchet MS', 'Montserrat', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 5px 20px rgba(0,0,0,0.6);
    letter-spacing: 2px;
}

.banner-3d-text p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 3px 10px rgba(0,0,0,0.6);
    font-weight: 600;
}

.hizli-erisim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 5rem;
}
.erisim-karti {
    text-align: center;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
}
.erisim-karti h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}
.erisim-karti p {
    color: var(--text-light) !important;
}

/* ========================================= */
/* MODAL VE ÇEREZ ŞERİDİ (TÜM SAYFALAR İÇİN) */
/* ========================================= */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(4px);
    display: flex; justify-content: center; align-items: center;
    z-index: 5000; opacity: 0; pointer-events: none; transition: 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-box {
    background: white; border-radius: 16px; padding: 2rem;
    width: 90%; max-width: 500px; max-height: 90vh; overflow-y: auto;
    transform: translateY(20px); transition: 0.3s;
}
.modal-overlay.active .modal-box { transform: translateY(0); }
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid #e2e8f0; padding-bottom: 1rem; margin-bottom: 1rem;
}
.modal-close {
    background: none; border: none; font-size: 1.5rem; color: #64748b; cursor: pointer; transition: 0.3s;
}
.modal-close:hover { color: var(--danger); }

.cookie-banner {
    position: fixed; bottom: -150%; left: 0; width: 100%;
    background: #ffffff; box-shadow: 0 -10px 40px rgba(21, 77, 105, 0.15);
    padding: 1.5rem 2rem; display: flex; justify-content: space-between; align-items: center;
    z-index: 10000; transition: bottom 0.6s cubic-bezier(0.25, 1, 0.3, 1);
    border-top: 4px solid var(--second-color); flex-wrap: wrap; gap: 1.5rem; box-sizing: border-box;
}
.cookie-banner.show { bottom: 0; }
.cookie-content { flex: 1; max-width: 900px; }
.cookie-content h4 {
    margin: 0 0 0.5rem 0; color: var(--first-color); font-size: 1.1rem;
    display: flex; align-items: center; gap: 10px; font-family: 'Montserrat', sans-serif; font-weight: 700;
}
.cookie-content p {
    margin: 0; font-size: 0.9rem; color: var(--text-light); line-height: 1.6; font-family: 'Open Sans', sans-serif;
}
.cookie-buttons { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.btn-accept-cookie {
    background: var(--second-color); color: white; border: none; padding: 0.9rem 1.8rem;
    border-radius: 8px; font-weight: 600; cursor: pointer; transition: var(--transition); font-family: 'Montserrat', sans-serif;
}
.btn-accept-cookie:hover { background: var(--first-color); transform: translateY(-2px); }
.btn-cookie-info {
    background: transparent; color: var(--first-color); border: 1px solid var(--first-color);
    padding: 0.8rem 1.5rem; border-radius: 8px; font-weight: 600; cursor: pointer; transition: var(--transition); font-size: 0.9rem; font-family: 'Montserrat', sans-serif;
}
.btn-cookie-info:hover { background: rgba(21, 77, 105, 0.05); }

@media (max-width: 900px) {
    .cookie-banner { flex-direction: column; padding: 1.5rem; text-align: center; }
    .cookie-buttons { width: 100%; flex-direction: column; justify-content: center; }
    .btn-accept-cookie, .btn-cookie-info { width: 100%; text-align: center; }
    .cookie-content h4 { justify-content: center; }
}
