/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1e40af;
    --secondary-blue: #3b82f6;
    --dark-blue: #1e3a8a;
    --accent-color: #f59e0b;
    --text-dark: #111827; /* Ana metin rengi (koyu) */
    --text-light: #6b7280;
    --white: #ffffff;
    --background-light: #f9fafb;
    --border-color: #e5e7eb;
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.2);
    --border-radius: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: #22382c;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    height: 80px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    /* Dar ekranlarda logonun ve metnin küçülmesini engellemek için */
    flex-shrink: 0;
}

.logo-inline {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #c5ae8e;
}

.brand-text h1 {
    font-size: 1.5rem;
    color: #c5ae8e;
    font-weight: 700;
    line-height: 1.2;
}

.brand-text .brand-subtitle {
    font-size: 0.8rem;
    color: #c5ae8e;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin-left: auto;
}

.nav-link {
    text-decoration: none;
    color: #c5ae8e;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #c5ae8e;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
    position: relative;
    height: calc(100vh - 80px);
    overflow: hidden;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-slider {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.slide.active {
    opacity: 1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    background-size: cover; background-position: center;
    animation: kenBurns 20s infinite alternate;
}
.slide-bg::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(10, 20, 40, 0.8), rgba(30, 58, 138, 0.6));
    z-index: 1;
}

@keyframes kenBurns {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-2%, 2%); }
}

.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-content h1 {
    font-size: 4.5rem; font-weight: 800; margin-bottom: 1.5rem; line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.3rem; margin-bottom: 3rem; opacity: 0.9;
}

.cta-button {
    background: var(--white); color: var(--primary-blue); border: none;
    padding: 18px 40px; font-size: 1.1rem; font-weight: 600;
    border-radius: 50px; cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-medium);
}
.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* General Section Styling */
.section {
    padding: 7rem 0;
    overflow: hidden;
}

.section-title {
    color: #c5ae8e;
    text-align: center; font-size: 3rem; font-weight: 700;
    margin-bottom: 1.5rem;
    background: #22382c;
    -webkit-background-clip: text;
    background-clip: text;
}

.section-title1 {
    color: #22382c;
    text-align: center; font-size: 3rem; font-weight: 700;
    margin-bottom: 1.5rem;
    background: #22382c;
    -webkit-background-clip: text;
    background-clip: text;
}

.section-subtitle {
    text-align: center; 
    font-size: 1.25rem; 
    color: #c5ae8e;
    margin-bottom: 5rem; 
    max-width: 700px; 
    margin-left: auto; 
    margin-right: auto;
}

.section-subtitle1 {
    text-align: center; 
    font-size: 1.25rem; 
    color: #22382c;
    margin-bottom: 5rem; 
    max-width: 700px; 
    margin-left: auto; 
    margin-right: auto;
}

/* Country Selection Section */
#countries { background: #22382c; }

.country-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}

.country-item {
    background: var(--background-light); padding: 2rem 1rem;
    border-radius: var(--border-radius); text-align: center; cursor: pointer;
    transition: all 0.3s ease; border: 1px solid var(--border-color);
}
.country-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
    border-color: var(--secondary-blue);
}
.country-flag { font-size: 3rem; margin-bottom: 1rem; line-height: 1; }
.country-item span { font-weight: 500; }

/* How We Work - Bento Grid */
#about { background-color: #c5ae8e; }

#about .section-subtitle {
    color: #22382c;
}


.work-process {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 1.5rem;
}

.process-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.process-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}
.process-item--large {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.process-item__icon {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}
.process-item h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.process-item p { color: var(--text-light); }

/* Universities Section */
#universities { background: #22382c; }

.university-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}

.university-card {
    background: var(--white); border-radius: var(--border-radius); overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}
.university-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-medium), var(--shadow-glow);
}
.university-image { height: 220px; overflow: hidden; }
.university-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.university-card:hover .university-image img { transform: scale(1.08); }

.university-content { padding: 2rem; }
.university-content h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.university-location { color: var(--text-light); margin-bottom: 1.5rem; }
.university-location i { margin-right: 0.5rem; }

.apply-btn {
    width: 100%;
    background: var(--gradient-primary);
    color: var(--white); border: none; padding: 1rem;
    border-radius: 12px; font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: all 0.3s ease;
}
.apply-btn:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-glow);
}

/* Contact Section */
#contact {
    padding-top: 0;
    padding-bottom: 0;
}
.contact-wrapper {
    background: #c5ae8e;;
    color: var(--white);
    text-align: center;
    padding: 6rem 2rem;
}
.contact-wrapper .section-title {
    background: linear-gradient(135deg, var(--white), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.contact-wrapper .section-subtitle { 
    color: #c5ae8e; 
}

/* Footer */
.footer {
    background: var(--white);
    color: var(--text-dark); 
    padding: 5rem 0 2rem;
    margin-top: -1px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4,
.footer-section p,
.footer-section li,
.footer-section a {
    color: var(--text-dark);
}

.footer-section h4 {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-section p, .footer-section li { 
    margin-bottom: 0.75rem; 
    font-size: 0.95rem; 
}
.footer-section ul { list-style: none; }
.footer-section a { 
    text-decoration: none; 
    transition: color 0.3s ease; 
}
.footer-section a:hover { 
    color: var(--primary-blue);
}
.footer-section i { margin-right: 8px; }

.social-links a { 
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.social-links a i {
    font-size: 1.5rem;
}

/* GÜNCELLENDİ: Footer alt kısmı */
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    /* Çizgi ve metin rengi koyu tema rengi olarak değiştirildi */
    border-top: 1px solid var(--text-dark);
    color: var(--text-dark); 
    font-size: 0.9rem;
}

/* Scroll Animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .work-process {
        grid-template-columns: 1fr 1fr;
    }
    .process-item--large {
        grid-column: span 2;
        grid-row: span 1;
    }
}
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        height: calc(100vh - 80px);
        text-align: center;
        transition: left 0.3s ease-in-out;
        box-shadow: var(--shadow-medium);
        padding-top: 3rem;
        gap: 2rem;
        margin-left: auto;
    }
    .nav-menu.active { left: 0; }
    .nav-link { color: var(--text-dark); } /* Mobil menüde link renkleri */
    .nav-link:hover { color: var(--primary-blue); }

    .slide-content h1 { font-size: 3rem; }
    .section-title { font-size: 2.5rem; }
    .section-subtitle { font-size: 1.1rem; }

    .work-process { grid-template-columns: 1fr; }
    .process-item--large { grid-column: span 1; }

    .contact-wrapper { padding: 4rem 1.5rem; }
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 1.5rem; 
}

.lang-btn {
    background-color: transparent;
    border: 1px solid #c5ae8e;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background-color: #c5ae8e;
    color: #22382c;
    border-color: #c5ae8e;
}

.lang-btn.active {
    background-color: #c5ae8e;
    color: #22382c;
    border-color: #c5ae8e;
    font-weight: 700;
}

/* Mobil görünüm için ek ayar */
@media (max-width: 768px) {
    .language-switcher {
        margin-left: auto; 
        margin-right: 1.5rem;
    }
    .hamburger {
        margin-left: 0;
    }
}

/* YENİ: 450px ALTI İÇİN EK RESPONSIVE AYARLARI */
@media (max-width: 450px) {
    .container {
        padding: 0 16px; /* Kenar boşluklarını azalt */
    }

    .nav-container {
        height: 70px; /* Header yüksekliğini azalt */
    }

    .logo-inline {
        width: 50px;  /* Logoyu küçült */
        height: 50px;
    }

    .brand-text h1 {
        font-size: 1.1rem; /* Ana başlık yazısını küçült */
    }

    .brand-text .brand-subtitle {
        font-size: 0.65rem; /* Alt başlık yazısını küçült */
        white-space: nowrap; /* Yazının alt satıra kaymasını engelle */
    }

    .language-switcher {
        margin-right: 1rem; /* Dil değiştirici ve hamburger menü arasını ayarla */
        gap: 0.3rem;
    }
    
    .lang-btn {
        padding: 0.4rem 0.6rem; /* Dil butonlarını biraz küçült */
    }

    .nav-menu.active {
        top: 70px; /* Açılır menünün başlangıç pozisyonunu yeni header yüksekliğine göre ayarla */
        height: calc(100vh - 70px);
    }
}

/* Modal Arka Planı */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.8); /* --text-dark benzeri bir renk, opak */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Modal İçerik Kutusu */
.modal-content {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow-medium);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.visible .modal-content {
    transform: scale(1);
}

/* Modal Kapatma Butonu */
.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: var(--text-dark);
}

/* Modal Başlığı */
.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

/* Form Elemanları */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    min-height: 120px; /* Yükseklik ayarı */
    resize: vertical; /* Sadece dikeyde boyutlandırmaya izin ver */
}

/* Form Gönder Butonu */
.form-submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.form-submit-btn:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
}

/* Mobil için Responsive Ayarlar */
@media (max-width: 576px) {
    .modal-content {
        padding: 2rem 1.5rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
}

/* === YENİ EKLENEN STİLLER === */

/* 1. Ülke Kartı Üzerine Gelme Efekti */
.country-item {
    position: relative; /* İçerideki overlay'i konumlandırmak için */
    overflow: hidden;
}

.country-item::after {
    /* DEĞİŞTİ: İçerik artık HTML'deki data-hover-text attribute'undan okunacak */
    content: attr(data-hover-text); 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(197, 174, 142, 0.95); /* #c5ae8e renginin transparan hali */
    color: #22382c; 
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    opacity: 0;
    transform: scale(1.2);
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.country-item:hover::after {
    opacity: 1;
    transform: scale(1);
}

.country-item:hover .country-flag,
.country-item:hover span {
    /* İsteğe bağlı: Yazı arkada kalmasın diye gizleyebiliriz */
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* 2. Form Modal Stilleri */
.form-modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none; /* JS ile görünür yapılacak */
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.form-modal.visible {
    display: flex;
}

/* === GÜNCELLENDİ: Formun küçük ekranlarda kaydırılabilir olması için === */
.modal-content {
    background: var(--white);
    padding: 2.5rem 3rem;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow-medium);
    animation: fadeInModal 0.4s ease-out;
    /* YENİ EKLENEN SATIRLAR */
    max-height: 90vh; /* Maksimum yüksekliği ekranın %90'ı yap */
    overflow-y: auto;   /* İçerik sığmazsa dikey scroll bar ekle */
}


@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}
.close-btn:hover {
    color: var(--text-dark);
}

.modal-content h3 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.modal-content p {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Telefon Kütüphanesi için Stil Ayarlaması */
.iti {
    width: 100%;
}

.modal-content .cta-button {
    width: 100%;
    margin-top: 1rem;
}

/* 3. Bildirim Mesajı Stilleri */
.notification {
    position: fixed;
    top: 90px; /* Header'ın altında */
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    border-radius: 8px;
    color: var(--white);
    z-index: 3000;
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
    transform: translate(-50%, -20px);
}

.notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%);
}

.notification.success {
    background-color: #28a745; /* Yeşil */
}

.notification.error {
    background-color: #dc3545; /* Kırmızı */
}