@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

/* =========================================
   1. DEĞİŞKENLER VE RENK PALETİ
   ========================================= */
:root {
  /* Zemin Renkleri */
  --bg-body: #f8fafc;        /* Sayfa geneli açık gri */
  --bg-hero: #0f172a;        /* Hero alanı koyu lacivert (Slate-900) */
  --bg-card: #ffffff;        /* Kart zeminleri */
  --bg-glass: rgba(255, 255, 255, 0.05); /* Cam efekti */

  /* Metin Renkleri */
  --text-main: #334155;      /* Genel metin (Slate-700) */
  --text-hero: #e2e8f0;      /* Koyu zemin üzeri metin (Slate-200) */
  --text-muted: #64748b;     /* Pasif metinler */
  --text-light: #ffffff;     

  /* Vurgu (Accent) Renkleri */
  --accent: #1e293b;         /* Parlak Mavi */
  --accent-hover: #2563eb;   /* Hover Mavisi */
  --accent-glow: rgba(59, 130, 246, 0.5); 

  /* Gölgeler ve Efektler */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-neon: 0 0 25px rgba(59, 130, 246, 0.3); /* Logo arkası parlama */

  /* Kenarlık ve Radius */
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* =========================================
   2. GENEL AYARLAR (GLOBAL)
   ========================================= */

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* Taşmaları engelle */
}

main {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

ul {
  padding: 0;
  margin: 0;
}

/* =========================================
   3. HERO BÖLÜMÜ (GİRİŞ ALANI)
   ========================================= */

#hero {
  position: relative;
  background-color: var(--bg-hero);
  color: var(--text-hero);
  /* Alt boşluğu artırdık ki dalga rahat görünsün */
  padding: 8rem 1rem 12rem 1rem; 
  text-align: center;
  overflow: hidden;

  /* Teknik/Mühendislik hissi veren grid deseni */
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Hero üzerindeki mavi parlama efekti (Glow) */
#hero::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* İçeriklerin arka planda kalmaması için z-index ayarı */
#hero .container {
  position: relative;
  z-index: 2;
  max-width: 860px; /* Okuma genişliği */
  margin: 0 auto;
}

/* --- Tipografi --- */

#hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  color: #fff;
}

#name {
  /* İsmi vurgulamak için gradient yazı */
  background: linear-gradient(180deg, #f1f5f9 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* Hero içindeki paragraflar */
#hero p {
  color: var(--text-hero);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-weight: 300;
  text-align: left; /* Okunabilirlik için sola dayalı */
}

/* Sadece ilk giriş paragrafını ortalayarak "Spot" haline getiriyoruz */
#hero p:first-of-type {
  text-align: center;
  font-size: 1.2rem;
  color: #94a3b8; /* Biraz daha soluk */
  margin-bottom: 3rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Profil Alanı --- */

.profile-area {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-neon);
  transition: transform 0.3s ease;
}

.company-logo {
  width: 180px; /* Biraz küçülttük daha zarif dursun */
  padding: 12px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
  transition: transform 0.3s ease;
}

.profile-photo:hover, .company-logo:hover {
  transform: scale(1.05);
}

/* --- Glassmorphism Liste (Yetkinlikler) --- */

#hero ul {
  list-style: none;
  padding: 2.5rem;
  margin: 3rem auto;
  text-align: left;
  
  /* Buzlu Cam Efekti */
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

#hero li {
  margin-bottom: 1.2rem;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
}

#hero li:last-child {
  margin-bottom: 0;
}

#hero li strong {
  color: #fff;
  margin-right: 12px;
  min-width: 150px; /* Hizalama için */
  font-weight: 600;
}

/* --- Sosyal Medya Butonları --- */

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 4rem;
}

.social-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.4);
}

/* --- Bölüm Ayracı (Wave SVG) --- */

.section-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
  z-index: 1;
}

.section-divider svg {
  position: relative;
  display: block;
  width: calc(130% + 1.3px);
  height: 80px;
}

.section-divider .shape-fill {
  fill: var(--bg-body); /* Bir sonraki bölümün rengiyle aynı olmalı */
}

/* =========================================
   4. PROJELER BÖLÜMÜ
   ========================================= */

#projects {
  padding: 4rem 1.5rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
}

#projects h2 {
  font-size: 2.2rem;
  color: var(--text-main);
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

#projects h2::after {
  content: '';
  display: block;
  width: 100%;
  height: 4px;
  background: var(--accent);
  margin-top: 0.5rem;
  border-radius: 2px;
  opacity: 0.8;
}

/* Proje Kartları */

.project-card {
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  height: 100%;
  position: relative;
  top: 0;
}

.project-card:hover {
  transform: translateY(-8px); /* Asansör gibi yukarı hareket */
  box-shadow: var(--shadow-lg);
}

.project-card img {
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover img {
  transform: scale(1.05); /* Resim hafifçe yaklaşır */
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  color: var(--text-main);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

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

/* =========================================
   5. ASANSÖR PANELİ (ELEVATOR NAV)
   ========================================= */
/* JavaScript tarafından oluşturulursa diye stilini modernize ettik */

.elevator-panel {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  padding: 16px 12px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.9); /* Yarı saydam koyu */
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 9999;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.floor-indicator {
  font-family: 'Courier New', monospace;
  background: #000;
  color: var(--accent); /* Dijital ekran hissi */
  border-radius: 6px;
  padding: 6px 10px;
  margin-bottom: 15px;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: inset 0 0 5px rgba(59, 130, 246, 0.5);
  text-shadow: 0 0 5px var(--accent);
}

.floor-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #334155;
  background: #1e293b;
  color: #94a3b8;
  margin: 6px auto;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floor-btn:hover {
  border-color: #fff;
  color: #fff;
  box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.floor-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 0 15px var(--accent-glow);
}

/* =========================================
   6. FOOTER
   ========================================= */

footer {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  padding: 1rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* =========================================
   7. MOBİL UYUMLULUK (RESPONSIVE)
   ========================================= */

@media (max-width: 768px) {
  #hero {
    padding-top: 6rem; /* Mobilde üst boşluğu biraz azalt */
  }
  
  #hero h1 {
    font-size: 2rem;
  }

  /* Listeyi dikey hale getiriyoruz */
  #hero li {
    flex-direction: column;
    align-items: flex-start;
  }
  
  #hero li strong {
    margin-right: 0;
    margin-bottom: 6px;
  }

  .profile-area {
    gap: 1.5rem;
  }

  .profile-photo {
    width: 130px;
    height: 130px;
  }

  .company-logo {
    width: 140px;
  }

  .section-divider svg {
    height: 40px; /* Dalga boyunu küçült */
    width: 150%;
  }
  
  .elevator-panel {
    display: none; /* Mobilde paneli gizlemek isteyebilirsin */
  }
}

