@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Montserrat:wght@300;400;500;600&family=Dancing+Script:wght@600&display=swap');

:root {
  /* Oak & Premium Palette */
  --bg-color: #0d0a08;      /* Deep Dark Oak */
  --bg-secondary: #1a1410;  /* Card Backgrounds */
  --text-main: #f5f0eb;     /* Ivory White */
  --text-muted: #a89a8e;    /* Muted Oak */
  --accent-oak: #7a4a27;    /* Rich Oak */
  --accent-gold: #d4af37;   /* Classic Gold */
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;
  --font-signature: 'Dancing Script', cursive;
  
  --border-radius: 12px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Genel Metinler --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent-gold);
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-gold);
}

/* --- Particles --- */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at center, #1a1410 0%, #0d0a08 100%);
}

/* --- Header / Premium Nav --- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1010;
  background: transparent;
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
}

header.scrolled {
  background: rgba(13, 10, 8, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.5rem 5%;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

body.menu-open header {
  background: transparent !important;
  backdrop-filter: none !important;
  border-bottom: none !important;
  pointer-events: none;
}

body.menu-open header .logo-text,
body.menu-open header .menu-toggle {
  pointer-events: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1010;
}

.logo-label {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--text-main);
  margin-left: 0.75rem;
  transition: var(--transition);
}

.logo-label:hover {
  color: var(--accent-gold);
}

.logo-img {
  height: 65px;
  width: auto;
  transition: var(--transition);
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.35));
}

.logo-img:hover {
  filter: drop-shadow(0 0 14px rgba(212, 175, 55, 0.65));
  transform: scale(1.05);
}

/* Removed logo shrink on scroll */

.footer-logo {
  height: 45px;
  width: auto;
  opacity: 0.75;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.2));
  margin-bottom: 0.8rem;
  transition: var(--transition);
}

.footer-logo:hover {
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.45));
}

/* Hamburger Menu Icon (Enhanced Hitbox) */
.menu-toggle {
  cursor: pointer;
  z-index: 9999; /* Absolute highest */
  display: block;
  padding: 25px; /* Huge clickable area */
  margin: -25px; /* Offset to keep visual position */
  position: relative;
}

.hamburger {
  width: 30px;
  height: 2px;
  background: var(--text-main);
  position: relative;
  transition: var(--transition);
}

.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 2px;
  background: var(--text-main);
  transition: var(--transition);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.menu-toggle.active .hamburger { background: transparent; box-shadow: none; }
.menu-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.menu-toggle.active .hamburger::after { top: 0; transform: rotate(-45deg); }


/* Horizontal Header Navigation (Top Bar Expansion) */
.nav-overlay {
  position: fixed;
  top: 0;
  right: -100%; /* Slide in from right */
  width: 100%;
  height: 120px; /* Made bigger to fit unshrinked header */
  background: rgba(13, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  z-index: 1005; /* Higher than header */
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 10% 0 250px; /* Leave room for logo on left */
  transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  pointer-events: none; /* Block clicks only when active */
}

.nav-overlay.active {
  right: 0;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  pointer-events: auto; /* Enable clicks when active */
}

.nav-overlay ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-overlay a {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-main);
  transition: var(--transition);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 0;
  position: relative;
}

.nav-overlay a:hover, .nav-overlay a.active {
  color: var(--accent-gold);
}

.nav-overlay a.active::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--accent-gold);
  animation: slideWide 0.4s ease forwards;
}

@keyframes slideWide {
  from { width: 0; }
  to { width: 100%; }
}

.nav-overlay a:hover {
  letter-spacing: 2.2px;
}

@media (max-width: 768px) {
  .nav-overlay {
    height: auto;
    padding: 85px 2rem 2rem;
    justify-content: center;
  }
  .nav-overlay ul {
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
  }
  
  .hero {
    padding-top: 250px !important; /* Extremely high padding to clear fixed header logo entirely */
    justify-content: flex-start;
    min-height: auto;
    padding-bottom: 6rem;
  }
  
  .hero-logo {
    height: 100px; /* Adjusted logo size */
    margin-bottom: 2rem;
  }
  
  .hero h1 {
    font-size: 2.2rem; 
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
  }
  
  .hero p.subtitle {
    font-size: 1.1rem;
    padding: 0 1.5rem;
    line-height: 1.6;
    margin-bottom: 2rem;
  }

  .container {
    padding-top: 160px !important; /* Ensures sub-pages like Committees and Apply start below fixed header */
  }
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-oak), var(--accent-gold));
  color: #120e0c !important;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(207, 168, 116, 0.4);
}

/* --- Hero Section --- */
.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background: radial-gradient(circle at center, rgba(140, 87, 49, 0.15) 0%, transparent 60%);
}

.hero-logo {
  height: 130px;
  width: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4));
  animation: fadeUp 1.2s ease forwards;
}

.hero h1 {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  letter-spacing: 10px;
  text-transform: uppercase;
  background: linear-gradient(to bottom, #f5f0eb, #d4af37);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeUp 1.5s ease forwards;
}

.hero p.subtitle {
  font-size: 1.4rem;
  color: var(--text-muted);
  max-width: 800px;
  margin-bottom: 3.5rem;
  letter-spacing: 2px;
  animation: fadeUp 1.5s ease 0.3s forwards;
  opacity: 0;
}

.hero .cta-group {
  animation: fadeUp 1s ease 0.4s forwards;
  opacity: 0;
}

/* --- Container ve Kartlar --- */
main {
  flex: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-gold);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* Glassmorphism Cards */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.card {
  flex: 1 1 300px;
  max-width: 380px;
  background: rgba(26, 20, 16, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(26, 20, 16, 0.6);
  box-shadow: 0 20px 40px rgba(0,0,0, 0.6);
}

.signature {
  font-family: var(--font-signature);
  font-size: 1.8rem;
  color: var(--accent-gold);
  margin-top: 1.5rem;
  display: block;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* SG Letter Section Styles */
.letter-paper {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(26, 20, 16, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--border-radius);
  padding: 4rem;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  backdrop-filter: blur(15px);
}

.letter-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  padding-bottom: 2rem;
}

.letter-profile {
  display: none; /* Hidden for text-only letters */
}

.letter-info h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: var(--accent-gold);
  letter-spacing: 2px;
}

.letter-role {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.letter-body {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-main);
}

.letter-body p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.letter-signature-container {
  margin-top: 3rem;
}

@media (max-width: 600px) {
  .letter-paper {
    padding: 2rem 1.5rem;
  }
  .letter-header {
    flex-direction: column;
    text-align: center;
  }
  .letter-profile {
    margin-right: 0;
    margin-bottom: 1.5rem;
    width: 100px;
    height: 100px;
  }
  .letter-info h2 {
    font-size: 1.4rem;
  }
  .letter-body {
    font-size: 1rem;
    line-height: 1.7;
  }
}

/* --- Animasyonlar --- */
.reveal {
  opacity: 0;
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.reveal-active {
  opacity: 1;
  transform: translateY(0) !important;
}

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

/* --- Footer --- */
footer {
  background: #0f0b09;
  text-align: center;
  padding: 2.5rem 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.08);
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- Form Stilleri --- */
.form-container {
  background: var(--bg-secondary);
  padding: 3rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(207, 168, 116, 0.2);
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(207, 168, 116, 0.3);
  border-radius: 6px;
  color: var(--text-main);
  font-family: var(--font-body);
  transition: var(--transition);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px rgba(207, 168, 116, 0.2);
}

/* Delegation Member Cards */
.member-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: var(--transition);
  animation: slideIn 0.3s ease;
  margin-bottom: 1rem;
}

.member-card:hover {
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.05);
}

.member-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.member-card-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.remove-member-btn {
  background: none;
  border: none;
  color: #f44336;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px;
  opacity: 0.6;
  transition: 0.2s;
}

.remove-member-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.member-inputs {
  display: flex;
  gap: 15px;
}

.btn-add-member {
  background: transparent;
  border: 1px dashed var(--accent-gold);
  color: var(--accent-gold);
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: var(--transition);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-add-member:hover {
  background: rgba(212, 175, 55, 0.1);
  border-style: solid;
}

@media (max-width: 600px) {
  .member-inputs { flex-direction: column; }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --- Modal Stilleri --- */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-secondary);
  width: 90%;
  max-width: 800px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(212, 175, 55, 0.3);
  overflow: hidden;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-body {
  padding: 3rem;
  padding-bottom: 6rem; /* Extra room for button */
}

.modal-body h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.modal-body .committee-type {
  color: var(--accent-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 2rem;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2.5rem; /* Larger */
  cursor: pointer;
  color: var(--text-muted);
  z-index: 100;
}

.modal-header-img {
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
}

@media (max-width: 768px) {
  .modal-body { padding: 1.5rem; padding-bottom: 5rem; }
  .modal-body h2 { font-size: 1.8rem; }
}
