/* =========================================================
   e-GAS RACING TEAM — PAGES & SECTIONS
   Hero, Aktif Çalışmalar, Zaman Çizelgesi, Hakkımızda, İletişim, Footer
   ========================================================= */

/* ORTAK SAYFA & GEÇİŞLER */
main {
  min-height: 70vh;
}

.page {
  display: none;
}

.page.active {
  display: block;
  animation: pageFadeIn 0.35s var(--ease-spring) both;
}

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

.section {
  padding: clamp(64px, 7vw, 100px) 0;
}

/* BAŞLIK VE ETİKETLER */
.section-heading {
  margin: 0 0 12px;
  font-family: "OzelFont", "Arial Black", Arial, sans-serif;
  font-size: clamp(1.8rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  overflow-wrap: anywhere;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 5px;
  background: var(--pink);
  transform: skewX(-30deg);
  border-radius: 1px;
}

.pink-line {
  width: 88px;
  height: 5px;
  margin: 18px 0 28px;
  background: var(--pink);
  transform: skewX(-30deg);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(246, 151, 185, 0.4);
}

.section-intro {
  max-width: 680px;
  margin: 0 0 48px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.3vw, 1.14rem);
  line-height: 1.7;
}

/* =========================================================
   1. ANA SAYFA — HERO
   ========================================================= */
.hero {
  min-height: min(840px, calc(100svh - 80px));
  min-height: 580px;
  display: flex;
  align-items: flex-end;
  position: relative;
  color: #ffffff;
  isolation: isolate;
  background: #202124;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../../art/takim-fotografi.jpeg");
  background-position: center 38%;
  background-size: cover;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease-spring);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hero-overlay);
}

.hero-content {
  position: relative;
  width: min(var(--content-width), calc(100% - 48px));
  margin-inline: auto;
  padding: clamp(64px, 8vw, 100px) 0 clamp(48px, 6vw, 80px);
}

.hero-content::before {
  content: "";
  display: block;
  width: 100px;
  height: 6px;
  margin: 0 0 24px;
  background: var(--pink);
  transform: skewX(-30deg);
  box-shadow: var(--glow-accent);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 18px;
  background: var(--pink);
  color: #252027;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
  transform: skewX(-12deg);
  box-shadow: var(--shadow-accent);
}

.hero h1 {
  max-width: 960px;
  margin: 24px 0 20px;
  font-family: "OzelFont", "Arial Black", Arial, sans-serif;
  font-size: clamp(2.4rem, 5.2vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.hero p {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.65;
  margin-bottom: 28px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  background: var(--pink);
  color: #252027;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  box-shadow: var(--shadow-accent);
  transition: all var(--duration-normal) var(--ease-spring);
}

.hero-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--glow-accent);
  padding-right: 44px;
}

.hero-button span[aria-hidden="true"] {
  display: inline-block;
  transition: transform var(--duration-normal) var(--ease-spring);
}

.hero-button:hover span[aria-hidden="true"] {
  transform: translate(4px, -4px);
}

/* =========================================================
   ANA SAYFA — AKTİF ÇALIŞMALARIMIZ
   ========================================================= */
.work-rows {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.work-row {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-normal) var(--ease-spring),
              box-shadow var(--duration-normal) var(--ease-smooth),
              border-color var(--duration-normal);
}

.work-row:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(246, 151, 185, 0.45);
}

.work-row.reverse {
  grid-template-columns: 1.05fr 1fr;
}

.work-photo {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-spring);
}

.work-row:hover .work-photo {
  transform: scale(1.04);
}

.work-copy {
  padding: clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: transparent;
}

.work-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--pink);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.work-label::before {
  content: "";
  width: 16px;
  height: 4px;
  background: var(--pink);
  transform: skewX(-30deg);
}

.work-copy h3 {
  margin: 0 0 14px;
  font-family: "OzelFont", "Arial Black", Arial, sans-serif;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.work-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

/* =========================================================
   2. GEÇMİŞ — DİKEY ZAMAN ÇİZGİSİ & YATAY NAVİGASYON
   ========================================================= */

/* YATAY ZAMAN ÇİZELGESİ (HORIZONTAL TIMELINE NAV) */
.history-timeline-nav {
  position: sticky;
  top: 92px;
  z-index: 40;
  margin-bottom: 48px;
  padding: 16px 24px;
  background: var(--header);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: background-color var(--duration-normal), border-color var(--duration-normal);
}

.timeline-track-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.timeline-track-line {
  position: absolute;
  top: calc(50% + 14px);
  left: 24px;
  right: 24px;
  height: 3px;
  background: rgba(246, 151, 185, 0.32);
  border-radius: 2px;
  z-index: 1;
}

.timeline-nodes {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0;
}

.timeline-nodes::-webkit-scrollbar {
  display: none;
}

.timeline-btn {
  appearance: none;
  border: none;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-spring), color var(--duration-fast);
  user-select: none;
  flex: 0 0 auto;
}

.timeline-year-label {
  font-family: "OzelFont", "Arial Black", Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color var(--duration-fast), transform var(--duration-fast);
}

.timeline-dot {
  width: 16px;
  height: 16px;
  background: var(--surface);
  border: 3.5px solid rgba(246, 151, 185, 0.5);
  border-radius: 3px;
  transform: rotate(45deg);
  box-shadow: 0 0 0 2px var(--page);
  transition: transform var(--duration-fast) var(--ease-spring),
              background-color var(--duration-fast),
              border-color var(--duration-fast),
              box-shadow var(--duration-fast);
}

.timeline-btn:hover .timeline-year-label {
  color: var(--text);
  transform: translateY(-2px);
}

.timeline-btn:hover .timeline-dot {
  border-color: var(--pink);
  background: var(--pink);
  transform: rotate(45deg) scale(1.2);
  box-shadow: 0 0 12px rgba(246, 151, 185, 0.7);
}

.timeline-btn.active .timeline-year-label {
  color: var(--pink);
  font-size: 1.25rem;
  text-shadow: 0 0 14px rgba(246, 151, 185, 0.4);
  transform: translateY(-2px);
}

.timeline-btn.active .timeline-dot {
  background: var(--pink);
  border-color: var(--pink);
  transform: rotate(45deg) scale(1.35);
  box-shadow: 0 0 16px var(--pink), 0 0 0 3px var(--page);
}

/* Hedef karta tıklandığında anlık vurgu animasyonu */
@keyframes cardTargetGlow {
  0% {
    box-shadow: 0 0 0 4px var(--pink), var(--shadow-lg);
    transform: translateY(-6px);
  }
  60% {
    box-shadow: 0 0 0 2px var(--pink), var(--shadow-lg);
  }
  100% {
    box-shadow: var(--shadow-md);
    transform: translateY(0);
  }
}

.history-card.target-highlight {
  animation: cardTargetGlow 1.6s var(--ease-spring) both;
}

.history-list {
  --tl: clamp(24px, 4vw, 52px);
  position: relative;
  margin-left: 16px;
  padding-left: var(--tl);
  border-left: 3px solid rgba(246, 151, 185, 0.4);
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.history-card {
  position: relative;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: clamp(24px, 3.5vw, 44px);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-normal) var(--ease-spring),
              box-shadow var(--duration-normal) var(--ease-smooth),
              border-color var(--duration-normal);
}

.history-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(246, 151, 185, 0.45);
}

/* Zaman çizgisi düğümü (Node) */
.history-card::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--tl) - 10px);
  top: 36px;
  width: 16px;
  height: 16px;
  background: var(--pink);
  border: 3.5px solid var(--page);
  box-shadow: 0 0 0 3px rgba(246, 151, 185, 0.35);
  transform: rotate(45deg);
  transition: transform var(--duration-normal) var(--ease-spring),
              box-shadow var(--duration-normal);
}

.history-card:hover::before {
  transform: rotate(45deg) scale(1.2);
  box-shadow: 0 0 16px rgba(246, 151, 185, 0.75);
}

.history-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-slow) var(--ease-spring);
}

.history-card:hover .history-image {
  transform: scale(1.03);
}

.history-year {
  display: inline-block;
  margin: 0 0 6px;
  font-family: "OzelFont", "Arial Black", Arial, sans-serif;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1;
  color: var(--pink);
  text-shadow: 0 2px 14px rgba(246, 151, 185, 0.35);
}

.history-card h3 {
  margin: 0 0 10px;
  font-family: "OzelFont", "Arial Black", Arial, sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
}

.history-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.contestants {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.contestants strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--text);
}

.person-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.person-chip {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text);
}

/* =========================================================
   3. HAKKIMIZDA
   ========================================================= */
.about-hero {
  padding: clamp(60px, 7vw, 96px) 0;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.about-copy {
  display: flex;
  flex-direction: column;
}

.about-copy p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transition: transform var(--duration-slow) var(--ease-spring);
}

.about-image:hover {
  transform: scale(1.02);
}

/* Değerler / Yaklaşım Kartları */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 36px;
}

.value-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 3.5vw, 44px) clamp(28px, 3vw, 36px);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-spring),
              box-shadow var(--duration-normal) var(--ease-smooth),
              border-color var(--duration-normal);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.value-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--pink);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(246, 151, 185, 0.45);
}

.value-card h3 {
  margin: 0;
  font-family: "OzelFont", "Arial Black", Arial, sans-serif;
  font-size: 1.45rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
}

.value-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

/* =========================================================
   4. İLETİŞİM
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 32px;
  margin-top: 36px;
}

.contact-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-normal) var(--ease-spring),
              box-shadow var(--duration-normal) var(--ease-smooth),
              border-color var(--duration-normal);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(246, 151, 185, 0.45);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  background: var(--pink);
  color: #252027;
  font-family: "OzelFont", "Arial Black", Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  border-radius: var(--radius-xs);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  box-shadow: var(--shadow-accent);
}

.contact-card h3 {
  margin: 0;
  font-family: "OzelFont", "Arial Black", Arial, sans-serif;
  font-size: 1.38rem;
  line-height: 1.25;
  color: var(--text);
}

/* İletişim Aksiyon Linkleri */
.contact-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.contact-item {
  display: inline-flex;
  margin: 0;
}

.contact-item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-fast) var(--ease-spring);
}

.contact-item a:hover {
  /* Renk değiştirme yok — sadece mikro hareket ve gölge */
  transform: translateY(-4px) scale(1.06);
  box-shadow: var(--shadow-md);
}

.contact-item img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  transition: transform var(--duration-fast);
}

.contact-item a:hover img {
  transform: scale(1.12);
}

/* =========================================================
   5. ALT BİLGİ (FOOTER)
   ========================================================= */
.site-footer {
  padding: 68px 0 28px;
  background: var(--footer);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.03);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr 1.2fr;
  gap: clamp(32px, 5vw, 64px);
}

.footer-brand {
  width: fit-content;
  margin-bottom: 16px;
}

.footer-note {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.footer-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: "OzelFont", "Arial Black", Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.footer-title::before {
  content: "";
  width: 18px;
  height: 4px;
  background: var(--pink);
  transform: skewX(-30deg);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.footer-links.footer-social {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 600;
  transition: all var(--duration-fast);
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--text);
  transform: translateX(4px);
}

.footer-links a img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-fast) var(--ease-spring);
}

.footer-links a:hover img {
  /* Renk değiştirme yok — sadece mikro hareket ve gölge */
  transform: translateY(-3px) scale(1.08);
  box-shadow: var(--shadow-md);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}
