:root {
  --bg-color: #050607;
  --panel-bg: rgba(22, 22, 24, 0.85);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text-primary: #f5f5f5;
  --text-secondary: #9ca0a6;
  --accent: #d4aa39; /* Gold */
  --accent-glow: rgba(212, 170, 57, 0.4);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --container-width: 1100px;
  --transition-speed: 0.4s;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* INTRO SPLASH SCREEN */
#intro-splash {
  position: fixed;
  inset: 0;
  background-color: #000;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none; /* Allows click through after animation completes opacity 0 */
  animation: splashSequence 3.5s ease-in-out forwards;
}

.splash-content {
  text-align: center;
  padding: 1rem;
}

.splash-text {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--accent);
  margin: 0;
  font-style: italic;
  opacity: 0;
  transform: scale(0.9);
  animation: textReveal 3.5s ease-in-out forwards;
  text-shadow: 0 0 20px var(--accent-glow);
}

@keyframes splashSequence {
  0% { opacity: 1; background-color: #000; }
  75% { opacity: 1; background-color: #000; }
  100% { opacity: 0; background-color: transparent; pointer-events: none; }
}

@keyframes textReveal {
  0% { opacity: 0; transform: scale(0.9) translateY(10px); }
  25% { opacity: 1; transform: scale(1) translateY(0); }
  75% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
  100% { opacity: 0; transform: scale(1.1) translateY(-10px); filter: blur(4px); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-top: 0;
  color: #fff;
}

a {
  text-decoration: none;
  color: var(--accent);
  transition: color 0.3s;
}

a:hover {
  color: #ffe6a0;
}

/* Utility */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center { text-align: center; }
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* HERO SECTION */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding: 2rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/mka.jpg') center/cover no-repeat;
  filter: brightness(0.4) contrast(1.1);
  z-index: -2;
  transform: scale(1.05);
  transition: transform 10s ease-out;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5,6,7,0.3), var(--bg-color));
  z-index: -1;
}

.hero-content h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.hero-content .subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.scroll-down {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
  animation: fadePulse 3s infinite;
}

.mouse-icon {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 12px;
  position: relative;
}

.mouse-icon::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 6px;
  background: #fff;
  border-radius: 2px;
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 15px); opacity: 0; }
}

@keyframes fadePulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* SECTIONS COMMON */
section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
}

/* HITABE SECTION */
.hitabe-section {
  background: radial-gradient(circle at top, #111315, var(--bg-color));
}

.hitabe-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  position: relative;
}

.hitabe-card::before {
  content: '“';
  position: absolute;
  top: -20px;
  left: 20px;
  font-family: var(--font-heading);
  font-size: 8rem;
  color: var(--accent);
  opacity: 0.1;
  line-height: 1;
}

.hitabe-text {
  font-size: 1.15rem;
  text-align: justify;
}

.hitabe-text p {
  margin-bottom: 1.5rem;
}

.hitabe-signature {
  text-align: right;
  margin-top: 2rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--accent);
}

/* PRINCIPLES (İLKELER) */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.principle-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 8px;
  transition: transform var(--transition-speed), background var(--transition-speed);
}

.principle-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent);
}

.principle-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

.principle-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.principle-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
}

/* TIMELINE (BIOGRAPHY) */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0; /* Mobile default */
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.1);
}

@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-1px);
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  left: -5px; /* Adjust for mobile line */
  top: 0;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(212, 170, 57, 0.2);
}

@media (min-width: 768px) {
  .timeline-dot {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    margin-right: 50%;
    padding-right: 3rem;
    text-align: right;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
    margin-left: 50%;
    padding-left: 3rem;
    text-align: left;
  }
}

@media (max-width: 767px) {
  .timeline { padding-left: 1.5rem; }
  .timeline::before { left: 7px; }
  .timeline-dot { left: 1px; }
  .timeline-content { padding-left: 1.5rem; }
}

.timeline-year {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.3rem;
  letter-spacing: 1px;
}

/* FOOTER */
footer {
  background: #020202;
  padding: 3rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-top: 1px solid #111;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.contact-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.contact-links a:hover {
  text-decoration: underline;
  color: var(--accent) !important;
}

.signature-img {
  height: 40px;
  opacity: 0.8;
  margin-bottom: 1rem;
}
