/* ==========================================================================
   CANVA TECH WEBSITE - %100 BİREBİR REPLİKA TASARIM STİLLERİ
   Alternating Dark / Light Layout with Exact Canva Sections
   ========================================================================== */

:root {
  --canva-dark: #071330;
  --canva-dark-accent: #0c1e48;
  --canva-light: #ffffff;
  --canva-light-bg: #f8fafc;
  
  --text-dark-title: #0a1a44;
  --text-dark-body: #475569;
  
  --text-light-title: #ffffff;
  --text-light-body: #94a3b8;
  
  --cyan-glow: #38bdf8;
  --cyan-soft: #0284c7;
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container-width: 1180px;
  --transition: all 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--canva-dark);
  color: var(--text-light-title);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* RTL Language Support */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .store-btn svg {
  margin-right: 0;
  margin-left: 10px;
}

/* TOP FLOATING LANGUAGE HEADER */
.top-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 28px 0;
}

.top-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-header-inner.header-right-only {
  justify-content: flex-end;
}

.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}

/* LANGUAGE SELECTOR DROPDOWN */
.lang-selector-wrapper {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(12, 30, 72, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.lang-btn:hover {
  background: rgba(20, 48, 110, 0.95);
  border-color: var(--cyan-glow);
}

.lang-globe-icon {
  color: var(--cyan-glow);
  flex-shrink: 0;
}

.lang-chevron {
  transition: transform 0.25s ease;
  opacity: 0.8;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 200px;
  max-height: 360px;
  background: #09173b;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 1002;
  overflow-y: auto;
}

[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

.lang-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-item:hover, .lang-item.selected {
  background: rgba(56, 189, 248, 0.2);
  color: var(--cyan-glow);
}

.lang-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-code {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
}

/* ==========================================================================
   1. HERO SECTION (Dark Blue with Space Map Background)
   ========================================================================== */
.sec-hero {
  background-color: var(--canva-dark);
  background-image: 
    radial-gradient(circle at 75% 50%, rgba(56, 189, 248, 0.15) 0%, transparent 60%),
    url('assets/map-bg.jpg');
  background-size: cover;
  background-position: center;
  padding: 120px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-brand-top {
  margin-bottom: 30px;
}

.hero-brand-top img {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.hero-title {
  font-size: 60px;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 40px;
  letter-spacing: -0.5px;
}

.hero-title .title-sub {
  display: block;
  font-weight: 800;
  color: #ffffff;
}

/* CANVA PILL STORE BUTTONS */
.store-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 40px;
  color: #ffffff;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.store-btn:hover {
  transform: translateY(-2px);
  border-color: var(--cyan-glow);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.3);
  background: #0a0a0a;
}

.store-btn-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

[dir="rtl"] .store-btn-text {
  text-align: right;
}

.store-btn-sub {
  font-size: 10px;
  color: #cbd5e1;
  font-weight: 500;
  line-height: 1.2;
}

.store-btn-main {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

/* HERO RIGHT PHONE WITH CYAN GLOW CIRCLE */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.cyan-glow-circle {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, #0284c7 0%, rgba(2, 132, 199, 0.4) 50%, transparent 75%);
  filter: blur(10px);
  z-index: 1;
}

.hero-phone-frame {
  position: relative;
  z-index: 2;
  width: 290px;
  border-radius: 40px;
  background: #000000;
  padding: 8px;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(2, 132, 199, 0.4);
  border: 3px solid rgba(255, 255, 255, 0.15);
}

.hero-phone-inner {
  border-radius: 32px;
  overflow: hidden;
  background: #071330;
}

.hero-phone-inner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   PHONE STATUS BAR — Dynamic Island (iPhone 14 Pro / 15 style)
   ========================================================================== */
.phone-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #000000;
  padding: 10px 16px 8px;
  position: relative;
  min-height: 46px;
  z-index: 3;
}

.sb-time {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-family);
  letter-spacing: -0.3px;
  line-height: 1;
}

/* Dynamic Island — siyah hap şekli ortada */
.sb-dynamic-island {
  position: absolute;
  left: 50%;
  top: 7px;
  transform: translateX(-50%);
  width: 118px;
  height: 34px;
  background: #000000;
  border-radius: 22px;
  border: 2px solid #222222;
  z-index: 4;
}

.sb-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
}


/* ==========================================================================
   SECTION PHONE GLOW WRAP (Matches hero glow circle for all sections)
   ========================================================================== */
.phone-glow-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-glow-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
  z-index: 1;
  width: 360px;
  height: 360px;
  pointer-events: none;
}

.glow-circle-dark {
  background: radial-gradient(circle, #0284c7 0%, rgba(2, 132, 199, 0.35) 50%, transparent 75%);
}

.glow-circle-light {
  background: radial-gradient(circle, rgba(14, 80, 170, 0.45) 0%, rgba(2, 100, 199, 0.2) 50%, transparent 75%);
}

.phone-glow-wrap .phone-frame {
  position: relative;
  z-index: 2;
}


/* ==========================================================================
   2. SECTION 2: LIGHT BACKGROUND (White / Soft Light Gray)
   Coğrafya Harita: KPSS YKS'yi Keşfedin! + Batı Sınır Kapıları Screen
   ========================================================================== */
.sec-light {
  background-color: var(--canva-light);
  color: var(--text-dark-title);
  padding: 100px 0;
}

.sec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
}

.sec-title-dark {
  font-size: 46px;
  font-weight: 800;
  color: var(--text-dark-title);
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.sec-title-dark span {
  display: block;
}

.sec-desc-dark {
  font-size: 16px;
  color: var(--text-dark-body);
  line-height: 1.7;
}

/* UNIVERSAL PHONE SHOWCASE STYLES (MATCHES HERO PHONE) */
.phone-showcase-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-frame {
  position: relative;
  width: 295px;
  border-radius: 42px;
  background: #000000;
  padding: 8px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.phone-frame:hover {
  transform: translateY(-6px);
}

.phone-inner {
  border-radius: 34px;
  overflow: hidden;
  background: #071330;
}

.phone-inner img {
  width: 100%;
  height: auto;
  display: block;
}

.phone-dark-shadow {
  border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.75),
    0 0 35px rgba(2, 132, 199, 0.25);
}

.phone-light-shadow {
  border: 3px solid rgba(10, 26, 68, 0.15);
  box-shadow: 
    0 25px 55px rgba(10, 26, 68, 0.16),
    0 8px 20px rgba(10, 26, 68, 0.08);
}

/* ==========================================================================
   3. SECTION 3: DARK NAVY BACKGROUND
   Karakterler Ekranı (Solda) + Seviye Atlayın, Karakterleri Keşfedin (Sağda)
   ========================================================================== */
.sec-dark {
  background-color: var(--canva-dark);
  color: var(--text-light-title);
  padding: 100px 0;
  position: relative;
}

.sec-title-light {
  font-size: 46px;
  font-weight: 800;
  color: var(--text-light-title);
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.sec-title-light span {
  display: block;
}

.sec-desc-light {
  font-size: 16px;
  color: var(--text-light-body);
  line-height: 1.7;
}

/* ==========================================================================
   4. SECTION 4: LIGHT BACKGROUND
   Liderlik Tablosunda Zirveye Çıkın + Liderlik Tablosu Kartı
   ========================================================================== */
/* Reuses .sec-light styling */

/* ==========================================================================
   5. SECTION 5: DARK NAVY BACKGROUND
   3D Küre Ekranı (Solda) + 30 Ülke, 21 Dil ve Kapsamlı Sınav Müfredatı (Sağda)
   ========================================================================== */
/* Reuses .sec-dark styling */

/* ==========================================================================
   6. FOOTER (PITCH BLACK WITH CENTERED LOGO)
   ========================================================================== */
.sec-footer {
  background-color: #030712;
  padding: 50px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-center-logo {
  margin-bottom: 20px;
}

.footer-center-logo img {
  height: 34px;
  width: auto;
  display: inline-block;
}

.footer-copyright {
  font-size: 13px;
  color: #64748b;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }
  
  .hero-brand-top {
    display: flex;
    justify-content: center;
  }
  
  .store-buttons {
    justify-content: center;
  }
  
  .sec-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  /* On mobile, keep text above or below naturally */
  .sec-grid.reverse-on-mobile .sec-left {
    order: 2;
  }
  .sec-grid.reverse-on-mobile .sec-right {
    order: 1;
  }
  
  .hero-title {
    font-size: 42px;
  }
  
  .sec-title-dark, .sec-title-light {
    font-size: 34px;
  }
  
  .cyan-glow-circle {
    width: 320px;
    height: 320px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 32px;
  }
  
  .sec-title-dark, .sec-title-light {
    font-size: 28px;
  }
  
  .hero-phone-frame {
    width: 250px;
  }
}
