:root {
  --primary: #ff2647; 
  --primary-dark: #d61c39;
  --primary-light: rgba(255, 38, 71, 0.08);
  --bg-body: #ffffff; 
  --bg-section: #f8fafc; 
  --text-main: #0f172a; 
  --text-muted: #64748b; 
  --border: #e2e8f0;
  --radius: 20px;
  --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
  --font-main: 'Plus Jakarta Sans', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* --- BODY & LAYOUT --- */
body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding-bottom: 0;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
}

/* --- NAVBAR & HAMBURGER MENU --- */
.navbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 0; margin-bottom: 20px; border-bottom: 1px solid var(--border);
  position: relative;
  background-color: var(--bg-body);
  transition: all 0.3s ease;
  z-index: 1001; /* Menü ve Navbar her zaman üstte */
}

.nav-logo-wrapper {
  display: flex; align-items: center; gap: 15px; 
  transition: opacity 0.3s ease; /* Mobilde kaybolma efekti için */
}

.nav-logo { 
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.2;
}

.nav-logo-title {
  font-weight: 800; 
  font-size: 1.35rem; 
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.nav-logo-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-info-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.nav-info-btn:hover { 
  background-color: var(--primary); 
  border-color: var(--primary);
  color: white; 
  transform: translateY(-2px) rotate(10deg);
  box-shadow: 0 5px 15px rgba(255, 38, 71, 0.25);
}

.nav-menu { display: flex; list-style: none; gap: 30px; }
.nav-link { text-decoration: none; color: var(--text-muted); font-weight: 600; transition: 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--primary); }

.hamburger {
  display: none;
  /* Diğer stiller media query içinde tanımlı */
}

/* --- LOADING OVERLAY --- */
.loading-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(5px);
  z-index: 9999; justify-content: center; align-items: center; flex-direction: column;
}
.spinner {
  width: 50px; height: 50px; border: 5px solid #e2e8f0;
  border-top: 5px solid var(--primary); border-radius: 50%;
  animation: spin 1s linear infinite; margin-bottom: 20px;
}
.loading-text { font-size: 1.2rem; font-weight: 700; color: var(--text-main); }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- ORTAK ELEMENTLER --- */
.btn-submit {
  width: 100%; background-color: var(--primary); color: white; border: none;
  padding: 16px; font-size: 1.1rem; font-weight: 700; border-radius: 100px;
  cursor: pointer; transition: 0.2s; box-shadow: 0 10px 25px rgba(255, 38, 71, 0.3);
}
.btn-submit:hover {
  background-color: var(--primary-dark); transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255, 38, 71, 0.4);
}

.section-title {
  text-align: center;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 25px;
}

/* --- INDEX HERO SECTION (BAŞLIK ORTADA) --- */
.hero {
  padding: 40px 0 60px;
  overflow: hidden;
}

.hero-header-center {
  text-align: center;
  max-width: 900px;
  width: 100%;
  margin: 0 auto 50px auto; 
  padding: 0 15px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem); 
  font-weight: 800; 
  line-height: 1.1;
  letter-spacing: -0.03em; 
  color: var(--text-main); 
  margin-bottom: 0;
}
.hero h1 span { color: var(--primary); }

.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px;
  background: var(--primary-light); color: var(--primary);
  border-radius: 100px; font-size: 0.9rem; font-weight: 700;
  margin-bottom: 20px; 
  border: 1px solid rgba(255, 38, 71, 0.15);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px; 
}

.hero-text {
  flex: 1;
  max-width: 550px; 
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
  transform: rotate(0deg); 
  transition: transform 0.3s ease;
  border: 4px solid #fff;
}

.hero-img:hover {
  transform: scale(1.05); 
}

.subtitle {
  font-size: 1.2rem; color: var(--text-muted); 
  margin-bottom: 30px; font-weight: 500;
  line-height: 1.6;
}

/* Authority Box */
.authority-box {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px;
  background: var(--bg-section); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; 
  margin-bottom: 30px;
}
.auth-item { text-align: center; }
.auth-val { font-size: 1.4rem; font-weight: 800; color: var(--text-main); display: block; }
.auth-lbl {
  font-size: 0.75rem; color: var(--text-muted); font-weight: 600;
  margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em;
}

.btn-group { 
  display: flex; 
  gap: 16px; 
  margin-bottom: 16px; 
}
.btn {
  padding: 16px 32px; border-radius: 100px; font-weight: 700; text-decoration: none;
  transition: all 0.25s ease; font-size: 1rem; cursor: pointer; border: none; white-space: nowrap;
}
.btn-primary { background-color: var(--primary); color: white; box-shadow: 0 10px 25px rgba(255, 38, 71, 0.3); }
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-3px); }
.btn-outline { background: white; border: 2px solid var(--border); color: var(--text-main); }
.btn-outline:hover { border-color: var(--text-main); }

/* --- SYLLABUS (MÜFREDAT) --- */
.syllabus-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-bottom: 60px; margin-top: 40px;
}
.syllabus-card {
  border: 1px solid var(--border); padding: 30px; border-radius: 16px;
  transition: 0.3s; background: white; position: relative; overflow: hidden;
}
.syllabus-card:hover { border-color: var(--primary); box-shadow: var(--shadow-soft); }
.syllabus-title { font-weight: 800; margin-bottom: 12px; font-size: 1.25rem; color: var(--text-main); }
.syllabus-desc { font-size: 1rem; color: var(--text-muted); line-height: 1.6; }
.card-icon { font-size: 2rem; margin-bottom: 15px; display: block; }

.eligibility-box {
    background: var(--bg-section); border: 1px solid var(--border);
    border-radius: 24px; padding: 40px; margin: 60px 0;
}
.eligibility-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.eligibility-title { font-size: 1.5rem; font-weight: 800; }

/* --- FORM & INPUTS --- */
.form-section, .form-box, .form-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-soft);
}
.form-section { max-width: 600px; margin: 60px auto 20px; padding: 40px; }
.form-box, .form-card { padding: 40px; margin-bottom: 30px; }

.form-group, .question-row { margin-bottom: 20px; }
.form-label, .q-label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--text-main); font-size: 0.95rem; }

.form-input, .form-textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: 12px; font-family: var(--font-main); font-size: 1rem;
  transition: 0.2s; background: #fafafa;
}
.form-input:focus, .form-textarea:focus {
  outline: none; border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 4px var(--primary-light);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* --- ANKET SPECIFIC --- */
.card-title {
  font-size: 1.4rem; font-weight: 700; color: var(--primary);
  margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.options-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.radio-label {
  display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 10px;
  border: 1px solid var(--border); border-radius: 10px; transition: 0.2s; user-select: none;
}
.radio-label:hover { background-color: var(--bg-section); border-color: #cbd5e1; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--primary); width: 18px; height: 18px; cursor: pointer; }

.sub-section {
  background-color: var(--bg-section); border-left: 4px solid var(--primary);
  padding: 20px; border-radius: 0 12px 12px 0; margin-top: 15px; margin-left: 5px;
}
.sub-title { font-size: 0.9rem; font-weight: 700; color: var(--text-muted); margin-bottom: 10px; text-transform: uppercase; }

.hidden-input { display: none; }
.visible-input { display: block; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

/* --- REZERVASYON SPECIFIC --- */
.warning-box {
  background-color: #fff4e5; border: 1px solid #ffe0b2; color: #663c00;
  padding: 20px; border-radius: 12px; font-size: 1.05rem; font-weight: 600;
  display: flex; align-items: center; gap: 15px; margin-bottom: 40px;
}
.slots-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.slot-input { display: none; }
.slot-card {
  display: block; background: white; border: 2px solid var(--border);
  border-radius: 16px; padding: 25px; cursor: pointer; transition: all 0.2s ease; position: relative;
}
.slot-card:hover { border-color: #cbd5e1; }
.slot-input:checked + .slot-card {
  border-color: var(--primary); background-color: #fff0f2;
  box-shadow: 0 10px 20px rgba(255, 38, 71, 0.1);
}
.slot-input:checked + .slot-card::after {
  content: '✔ Seçildi'; position: absolute; top: -12px; right: 20px;
  background: var(--primary); color: white; font-size: 0.8rem;
  font-weight: 700; padding: 4px 12px; border-radius: 20px;
}
.slot-time { font-size: 1.4rem; font-weight: 800; display: block; color: var(--text-main); }
.slot-day { color: var(--text-muted); font-weight: 600; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.05em; }
.location-box { margin-top: 50px; border-top: 1px solid var(--border); padding-top: 40px; }
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.loc-detail { margin-bottom: 12px; color: var(--text-muted); display: flex; gap: 10px; align-items: flex-start; }

/* --- ILETISIM SPECIFIC --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.info-card { background: var(--bg-section); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.info-item { display: flex; gap: 15px; margin-bottom: 25px; }
.info-icon {
  width: 40px; height: 40px; background: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); border: 1px solid var(--border); font-size: 1.2rem; flex-shrink: 0;
}
.info-content h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 5px; }
.info-content p, .info-content a { color: var(--text-muted); font-size: 0.95rem; text-decoration: none; }

/* --- TESEKKURLER & INFO BOX --- */
.success-card {
  background: white; max-width: 500px; width: 100%;
  border: 1px solid var(--border); border-radius: 24px; padding: 50px 30px;
  text-align: center; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1); margin: 20px auto;
}
.icon-wrapper {
  width: 80px; height: 80px; background-color: rgba(39, 174, 96, 0.1); color: #27ae60;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px; font-size: 40px;
}
.btn-home {
  display: inline-block; background-color: var(--primary); color: white;
  text-decoration: none; padding: 14px 32px; border-radius: 100px; font-weight: 700; transition: 0.2s;
}
.btn-home:hover { background-color: #d61c39; transform: translateY(-2px); }

.info-box {
    background: var(--bg-section);
    padding: 20px;
    border-radius: 12px;
    border: 1px dashed var(--border);
    margin-bottom: 30px;
    text-align: left;
}

/* --- FOOTER --- */
.site-footer {
    margin-top: auto;
    width: 100%;
    padding: 50px 20px 60px 20px; border-top: 1px solid #e2e8f0;
    background-color: #f8fafc; text-align: center; color: #475569;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.footer-content { max-width: 900px; margin: 0 auto; }
.thesis-info { font-size: 1.1rem; line-height: 1.6; margin-bottom: 30px; color: #1e293b; }
.academic-staff {
    display: flex; justify-content: center; align-items: center;
    gap: 20px; flex-wrap: wrap; font-size: 1rem; margin-bottom: 25px; color: #475569;
}
.staff-item strong { color: #0f172a; font-weight: 600; }
.footer-email {
    display: inline-block; color: #64748b; text-decoration: none; font-weight: 500;
    font-size: 0.95rem; border: 1px solid #e2e8f0; padding: 10px 25px; border-radius: 50px;
    transition: all 0.3s ease; background-color: #fff;
}
.footer-email:hover {
    border-color: #cbd5e1; color: #0f172a; transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.contributors-section { margin-top: 40px; border-top: 1px solid #e2e8f0; padding-top: 20px; }
.contributors-title {
    font-size: 0.9rem; color: #64748b; margin-bottom: 15px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.contributors-logos {
    max-width: 300px; height: auto; filter: grayscale(100%); opacity: 0.6;
    transition: all 0.4s ease; mix-blend-mode: multiply;
    display: block; margin: 0 auto; 
}
.contributors-logos:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.05); }

/* --- MEDIA QUERIES (900px) --- */
@media (max-width: 900px) {
  .hero-header-center { margin-bottom: 30px; }
  
  .hero-inner {
    flex-direction: column; 
    text-align: center;
    gap: 30px;
  }
  
  .hero-text { max-width: 100%; }
  .btn-group { justify-content: center; }
  
  .hero-img {
    max-width: 100%;
    margin-top: 10px;
  }
  
  .authority-box { margin: 0 auto 30px auto; }
}

/* --- MOBİL MENÜ TASARIMI (FINAL: KUSURSUZ POPUP) --- */
@media (max-width: 768px) {
  
  /* TRICK BURADA: 
   Navbar yüksek Z-Index'te kalıyor (Menü görünsün diye).
   Ama menü açılınca Navbar'ın arka planını şeffaf, 
   Logo ve Info butonunu görünmez yapıyoruz. 
   Böylece sadece Menü Kutusu ve Hamburger Butonu kalıyor!
  */
  
  /* Navbar Ayarları */
  body.menu-open .navbar {
    background-color: transparent; /* Beyaz şerit gider */
    border-bottom-color: transparent; /* Çizgi gider */
  }

  /* Logo ve Info Butonunu Gizle (Fade Out) */
  body.menu-open .nav-logo-wrapper,
  body.menu-open .nav-info-btn {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s ease;
  }

  /* Hamburger Butonu - En Üstte ve Parlak */
  .hamburger { 
    display: flex; 
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 0; 
    
    position: relative;
    z-index: 1002; /* Perdenin ve Navbar'ın üstünde */
  }

  .hamburger:active {
    transform: scale(0.95);
    background-color: var(--bg-section);
  }

  /* 1. ARKA PLAN PERDESİ (OVERLAY) */
  body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.65); /* Karanlık Perde */
    backdrop-filter: blur(8px); /* Bulanıklık */
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000; /* Navbar(1001)'ın altında ama biz Navbar'ı şeffaf yaptık */
    opacity: 0;
    animation: fadeInOverlay 0.3s forwards;
  }

  @keyframes fadeInOverlay { to { opacity: 1; } }
  
  /* 2. MENÜ KUTUSU (BEYAZ POPUP) */
  .nav-menu {
    display: none; 
    position: fixed; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%) scale(0.9);
    
    width: 85%; 
    max-width: 340px; 
    
    background-color: #ffffff; /* Tam Beyaz */
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.3); /* Derin Gölge */
    border-radius: 24px; 
    
    flex-direction: column; 
    padding: 25px;
    gap: 10px; 
    z-index: 1002; /* Hamburger ile aynı seviye, en üst */
    
    opacity: 0; 
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  /* Menü Aktif Olduğunda */
  .nav-menu.active { 
    display: flex; 
    opacity: 1; 
    transform: translate(-50%, -50%) scale(1); 
  }

  /* 3. LİNKLER (BUTON GÖRÜNÜMÜ) */
  .nav-link {
    display: flex;
    align-items: center;
    justify-content: center; 
    width: 100%; 
    padding: 15px 20px; 
    
    background-color: #f8fafc; /* Hafif Gri Buton */
    color: var(--text-main); 
    border-radius: 16px; 
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700; 
    border: 1px solid transparent;
    transition: all 0.2s ease;
  }

  .nav-link:hover {
    background-color: #f1f5f9;
    transform: translateY(-2px);
  }
  
  /* Aktif Sayfa */
  .nav-link.active {
    background-color: #fff0f2; /* Pembe Zemin */
    color: var(--primary);     /* Kırmızı Yazı */
    border: 1px solid rgba(255, 38, 71, 0.1);
  }
  
  /* Diğer responsive ayarlar */
  .authority-box, .contact-grid, .loc-grid, .btn-group { grid-template-columns: 1fr; flex-direction: column; }
  .navbar { gap: 10px; padding: 15px 0; }
  .form-section, .form-box, .form-card { padding: 25px; }
  .header-box h1, .hero h1 { font-size: 2rem; }
  .btn { width: 100%; text-align: center; }
  .options-grid { grid-template-columns: 1fr; }
  .hero { padding: 30px 0; }
  .academic-staff { flex-direction: column; gap: 10px; }
  .divider-pipe { display: none; }
  .contributors-logos { max-width: 250px; }
}

/* --- VALIDATION MODAL & ERROR STYLES --- */
.input-error {
  border: 2px solid #ff2647 !important; background-color: #fff0f2 !important;
  box-shadow: 0 0 0 4px rgba(255, 38, 71, 0.1) !important;
}
.label-error {
  border: 2px solid #ff2647 !important; background-color: #fff0f2 !important; color: #d61c39;
}

.custom-modal {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(15, 23, 42, 0.6); backdrop-filter: blur(8px);
  z-index: 10000; justify-content: center; align-items: center; padding: 20px;
  opacity: 0; transition: opacity 0.3s ease;
}
.custom-modal.show { display: flex; opacity: 1; }

.modal-content {
  background: white; padding: 40px; border-radius: 24px; max-width: 450px;
  width: 100%; text-align: center; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.custom-modal.show .modal-content { transform: scale(1); }

.modal-icon { font-size: 3rem; margin-bottom: 20px; display: inline-block; animation: bounce 1s infinite; }
.modal-title { font-size: 1.5rem; font-weight: 800; color: #0f172a; margin-bottom: 10px; }
.modal-message { font-size: 1.05rem; color: #64748b; line-height: 1.6; margin-bottom: 30px; }
.modal-btn {
  background-color: #ff2647; color: white; border: none; padding: 14px 32px;
  border-radius: 100px; font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: all 0.2s; box-shadow: 0 10px 20px rgba(255, 38, 71, 0.2);
}
.modal-btn:hover {
  background-color: #d61c39; transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(255, 38, 71, 0.3);
}

@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ozelstyle2.css dosyasına ekleyin */

.uni-logo {
  height: 48px; /* Logonun yüksekliği */
  width: auto;  /* Genişlik orantılı kalsın */
  object-fit: contain;
}

/* Mobilde logo çok yer kaplarsa biraz küçültmek için */
@media (max-width: 768px) {
  .uni-logo {
    height: 40px;
  }
  
  /* Logo eklendiği için sol taraftaki boşluğu biraz dengeleyelim */
  .nav-logo-wrapper {
    gap: 10px; /* Mobilde aradaki boşluğu biraz kıstık */
  }
}