/* ====== THEME ====== */
:root{
  /* Neutral Tech base */
  --bg: #F3F4F6;          /* page background */
  --surface: #FFFFFF;     /* cards/nav/footer */
  --text: #111827;        /* primary text */
  --muted: #6B7280;       /* secondary text / captions */
  --line: #E5E7EB;        /* subtle borders */

  /* Your accents: dark pastel blue + golden pastel yellow */
  --accent: #365880;      /* darkish pastel blue */
  --accent-2: #EFD08A;    /* golden pastel yellow */

  /* Effects */
  --radius: 14px;
  --shadow: 0 10px 30px rgba(17,24,39,0.08);
  --ease: 190ms cubic-bezier(.2,.8,.2,1);
}

/* ====== RESET / BASE ====== */
*{ box-sizing: border-box; }
html, body{ margin:0; padding:0; }
body{
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
img{ max-width:100%; display:block; }
a{ color: var(--accent); text-decoration: none; }
a:hover{ text-decoration: underline; }
.container{ width:min(1100px, 92%); margin:0 auto; }

/* ====== TYPOGRAPHY ====== */
h1,h2,h3,h4{
  font-family: "Sora", ui-sans-serif, system-ui;
  margin:0 0 .5rem;
}
h1{ font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.02em; }
h2{ font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
h3{ font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
p{ margin:.4rem 0 1rem; color: var(--text); }

/* ====== NAV ====== */
.nav{
  position: sticky; top:0; z-index: 40;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.nav .row{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
}
.brand{
  display:flex; align-items:center; gap:.6rem;
  font-weight: 700; letter-spacing:.2px;
}
.brand .dot{
  width:10px; height:10px; border-radius:50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 3px rgba(239,208,138,0.2);
}
.nav a{
  font-weight:600; color:var(--text); text-decoration:none;
  padding:8px 12px; border-radius:10px;
}
.nav a:hover{
  background: #F9FAFB;
}

/* ====== HERO ====== */
.hero{
  padding: 86px 0 48px;
  background:
    radial-gradient(1200px 400px at 50% -10%, rgba(54,88,128,.10), transparent 60%),
    linear-gradient(#FFFFFF, #F8FAFC);
  border-bottom:1px solid var(--line);
}
.hero .lead{ color: var(--muted); font-weight:600; letter-spacing:.2px; }
.hero .sub{ max-width: 700px; color:#374151; }

.badges{ display:flex; flex-wrap:wrap; gap:8px; margin: 18px 0 4px; }
.badge{
  background: #F9FAFB; border:1px solid var(--line); color:#111827;
  padding:6px 10px; border-radius: 999px; font-size:.9rem; font-weight:600;
}

.actions{ display:flex; flex-wrap:wrap; gap: 12px; margin-top: 26px; }
.btn{
  display:inline-block; padding: 12px 18px; border-radius: 12px;
  border:1px solid var(--line); background: var(--surface);
  color: var(--text); font-weight:700; transition: transform var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease);
}
.btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.primary{
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#0B1020; border: none;
}
.btn.ghost{ background: #F9FAFB; }

/* ====== SECTIONS ====== */
.section{ padding: 64px 0; }
.card{
  background: var(--surface); border:1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px;
}

/* ABOUT chips/quote */
.chips{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 10px; }
.chip{
  background:#F9FAFB; border:1px solid var(--line); color:#111827;
  border-radius: 999px; padding: 8px 12px; font-weight:600;
}
.quote{
  margin-top: 18px; color:#6B7280; font-style: italic; border-left:4px solid var(--accent-2);
  padding-left: 12px;
}

/* GRID */
.grid{ display:grid; gap:18px; }
.grid.cols-2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.cols-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width:900px){ .grid.cols-2, .grid.cols-3{ grid-template-columns: 1fr; } }

/* TIMELINE */
.timeline{ position: relative; margin-left: 14px; }
.timeline::before{
  content:""; position:absolute; left:10px; top:0; bottom:0; width:2px; background: #E5E7EB;
}
.t-item{ position:relative; padding-left:32px; margin: 0 0 22px; }
.t-item::before{
  content:""; position:absolute; left:2px; top:4px; width:18px; height:18px; border-radius:50%;
  background: var(--surface); border:2px solid var(--accent); box-shadow:0 0 0 3px rgba(54,88,128,.15);
}
.t-item h4{ margin-bottom:4px; }
.t-meta{ color: var(--muted); font-size:.95rem; }

/* TAGS */
.tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.tag{
  padding:6px 10px; border-radius:999px; background:#F3F4F6; border:1px solid var(--line);
  color:#111827; font-weight:600; font-size:.9rem;
}

/* FOOTER */
.footer{
  background: var(--surface); border-top:1px solid var(--line);
  padding: 26px 0; color: var(--muted); font-size:.95rem;
}
.footer a{ color: var(--accent); font-weight:700; }

/* ====== HERO GRID WITH IMAGE ====== */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  align-items: center;
  gap: 50px;
}

.hero-photo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--accent-2);
  box-shadow: 0 12px 40px rgba(17, 24, 39, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-photo img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 50px rgba(17, 24, 39, 0.25);
}

/* Responsive: stack on mobile */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-photo {
    margin-top: 30px;
  }

  .hero-photo img {
    width: 220px;
    height: 220px;
  }
}

.hero-photo::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(239,208,138,0.35),
    rgba(54,88,128,0.15) 60%,
    transparent 100%);
  filter: blur(30px);
  z-index: 0;
}
.hero-photo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-photo img {
  position: relative;
  z-index: 1;
}

/* ====== CARD LOGO BADGE (overlapping top-left) ====== */
.t-item {                 /* you already have .t-item; add these tweaks */
  position: relative;
  padding-left: 64px;     /* extra room for the badge */
  padding-top: 20px;      /* so the badge doesn't cover the title */
}

.t-logo {
  position: absolute;
  left: -6px;             /* nudge into the gutter near the timeline */
  top: -16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line);
  box-shadow: 0 6px 18px rgba(17,24,39,0.12);
  display: grid;
  place-items: center;
  overflow: hidden;
  z-index: 2;
}

/* soft accent ring */
.t-logo::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  box-shadow:
    0 0 0 3px rgba(54,88,128,0.18),
    0 0 0 6px rgba(239,208,138,0.15);
  pointer-events: none;
}

.t-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* square logos fill nicely */
  display: block;
}

/* fallback initials if an image fails */
.t-logo span {
  font-family: "Sora", ui-sans-serif, system-ui;
  font-weight: 700;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* modifier for wide/rectangular logos (keeps full mark visible) */
.t-logo.contain img {
  object-fit: contain;
  background: #fff;
  padding: 6px;
}

/* keep timeline line & dots visible with the badge */
.timeline { margin-left: 20px; }
.t-item::before { left: -12px; }
.t-item::before { top: 20px; }


/* mobile */
@media (max-width: 900px) {
  .t-item { padding-left: 56px; }
  .t-logo { width: 48px; height: 48px; top: -14px; left: -4px; }
}

/* ===== LOGO VERTICAL ALIGNMENT FIXES ===== */

/* Adjust only logos that sit too high */
.t-logo img[alt*="Etiket"] {
  object-position: center 65%; /* pushes visible part downward slightly */
}

.t-logo img[alt*="C&J Nyheim"] {
  object-position: center 70%;
}

.t-logo img[alt*="Internet Dünyası"] {
  object-position: center 70%;
}

/* =========================
   LOGO ALIGNMENT TWEAKS
   ========================= */
/* Some logos have extra white space at the top inside the image.
   Use a small translateY to nudge the visible mark downward.
   Adjust the % values if you want a bit more/less shift. */
.t-logo img[alt*="Etiket"] {
  transform: translateY(8%) scale(0.94);
}

.t-logo img[alt*="C&J Nyheim"] {
  transform: translateY(10%) scale(0.94);
}

.t-logo img[alt*="Internet Dünyası"] {
  transform: translateY(12%) scale(0.93);
}

/* Keep Gis Park as-is (no nudge). If you ever need:
.t-logo img[alt*="Gis Park"] { transform: translateY(6%) scale(0.94); }
*/

/* For wide/rectangular logos using the .contain modifier, the translateY still applies.
   If a logo looks a touch tight, you can also add a little inner padding: */
.t-logo.contain img { padding: 6px; }

/* =========================
   MICRO-ANIMATION (hover)
   ========================= */
@media (prefers-reduced-motion: no-preference) {

  /* Card hover: gentle lift + stronger shadow */
  .t-item.card {
    transition: transform 200ms cubic-bezier(.2,.8,.2,1), box-shadow 200ms cubic-bezier(.2,.8,.2,1);
  }
  .t-item.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(17,24,39,0.10);
  }

  /* Badge hover: lift + glow ring */
  .t-logo {
    transition: transform 180ms cubic-bezier(.2,.8,.2,1), box-shadow 180ms cubic-bezier(.2,.8,.2,1);
    will-change: transform;
  }
  .t-logo::after {
    transition: box-shadow 200ms cubic-bezier(.2,.8,.2,1);
  }
  .t-logo:hover {
    transform: translateY(-3px) scale(1.03);
  }
  .t-logo:hover::after {
    /* Subtle blue/gold glow using your accents */
    box-shadow:
      0 0 0 4px rgba(54,88,128,0.28),
      0 0 18px 8px rgba(239,208,138,0.18);
  }
}

/* =============================
   TIMELINE BADGE ALIGNMENT FIX
   ============================= */

/* 1) Hide the timeline dot (the blueish circle) completely */
.t-item::before { display: none; }

/* 2) Reposition and size the logo badge so it sits lower and overlaps
      the card neatly (no peeking circle, no crowding the header). */
.t-item {
  padding-left: 86px;      /* more room on the left to clear the bigger badge */
  padding-top: 26px;       /* space so the badge doesn't overlap the title */
}

.t-logo {
  left: -24px;             /* moves badge horizontally over where the dot was */
  top: 10px;               /* lowers badge so it doesn’t hug the top edge */
  width: 60px;             /* slightly larger for a premium feel */
  height: 60px;
  z-index: 2;              /* keep it above the card surface */
}

/* Wide/rectangular marks (Internet Dünyası) keep containment + breathing room */
.t-logo.contain img {
  object-fit: contain;
  padding: 7px;
  background: #fff;
}

/* Optional: small down-nudge for marks that have extra top whitespace */
.t-logo img[alt*="Etiket"]         { transform: translateY(6%) scale(0.95); }
.t-logo img[alt*="C&J Nyheim"]     { transform: translateY(8%) scale(0.95); }
.t-logo img[alt*="Internet Dünyası"] { transform: translateY(10%) scale(0.94); }

/* Mobile tweaks: keep everything balanced on narrow screens */
@media (max-width: 900px) {
  .t-item { padding-left: 72px; padding-top: 22px; }
  .t-logo { left: -20px; top: 8px; width: 52px; height: 52px; }
}

/* =============================
   MICRO-ANIMATION (hover)
   ============================= */
@media (prefers-reduced-motion: no-preference) {
  .t-item.card {
    transition: transform 200ms cubic-bezier(.2,.8,.2,1), box-shadow 200ms cubic-bezier(.2,.8,.2,1);
  }
  .t-item.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(17,24,39,0.10);
  }

  .t-logo {
    transition: transform 180ms cubic-bezier(.2,.8,.2,1), box-shadow 180ms cubic-bezier(.2,.8,.2,1);
    will-change: transform;
  }
  .t-logo::after {
    transition: box-shadow 200ms cubic-bezier(.2,.8,.2,1);
  }
  .t-logo:hover {
    transform: translateY(-3px) scale(1.03);
  }
  .t-logo:hover::after {
    /* subtle blue + gold halo to match your palette */
    box-shadow:
      0 0 0 4px rgba(54,88,128,0.28),
      0 0 18px 8px rgba(239,208,138,0.18);
  }
}

/* ===== Section header with controls ===== */
.section-head{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  margin-bottom: 12px;
}
.carousel-ctrl{ display:flex; gap:8px; }
.cbtn{
  width:38px; height:38px; border-radius:10px; border:1px solid var(--line);
  background: var(--surface); color: var(--text);
  font-size: 20px; line-height: 1; display:grid; place-items:center;
  box-shadow: var(--shadow); cursor:pointer;
  transition: transform var(--ease), background var(--ease);
}
.cbtn:hover{ transform: translateY(-1px); background:#F9FAFB; }

/* ===== Carousel ===== */
.carousel{
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.carousel-track{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding: 8px 2px 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.carousel-track::-webkit-scrollbar{ height: 8px; }
.carousel-track::-webkit-scrollbar-thumb{
  background: #D1D5DB; border-radius: 999px;
}

/* Slides */
.slide{
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  min-height: 170px;
  display:flex; flex-direction:column; justify-content:flex-start;
}
.slide h3{ margin-bottom: 6px; }
.slide p { color: #374151; }

@media (max-width: 900px){
  .carousel-track{ grid-auto-columns: 86%; } /* one big card per view on mobile */
}

/* ===== Coverflow base ===== */
.coverflow {
  perspective: 1200px;
  position: relative;
  margin-top: 8px;
}
.cf-track {
  position: relative;
  height: 280px;                 /* tune height */
  display: grid;
  place-items: center;
}
.cf-card {
  position: absolute;
  width: min(560px, 88%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  transition: transform 420ms cubic-bezier(.2,.8,.2,1), box-shadow 200ms, filter 200ms;
  transform-origin: center center;
  filter: saturate(0.9) brightness(0.98);
}
.cf-card.active {
  box-shadow: 0 24px 60px rgba(17,24,39,0.12);
  filter: none;
}
.cf-card h3{ margin-bottom:6px; }
.cf-card p { color:#374151; }

/* Dots */
.cf-dots { display:flex; gap:8px; justify-content:center; margin-top: 14px; }
.cf-dots .dot {
  width:10px; height:10px; border-radius:50%; border:1px solid var(--line);
  background:#E5E7EB; cursor:pointer; transition: transform var(--ease), background var(--ease);
}
.cf-dots .dot.on { background: linear-gradient(135deg, var(--accent), var(--accent-2)); transform: scale(1.15); }

/* Controls reuse .cbtn from earlier styles */
.section-head { display:flex; align-items:center; justify-content:space-between; gap:16px; }

/* Responsive height tweak */
@media (max-width: 900px){
  .cf-track{ height: 340px; }
}

/* ===== Portrait (vertical) cards for coverflow ===== */
.cf-card.cf-portrait{
  width: min(420px, 86%);      /* narrower, taller card */
  min-height: 480px;           /* vertical feel */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.cf-card .lede{
  color:#374151;
  margin: 6px 0 10px;
}

.cf-card .bullets{
  margin: 0 0 12px 18px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.cf-card .bullets li{ color:#1F2937; }

.cf-card .meta{
  display:flex; flex-wrap:wrap; gap:10px;
  margin-top: auto;           /* push meta/tags to bottom for consistency */
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: .95rem;
}

@media (max-width: 900px){
  .cf-card.cf-portrait{
    width: 92%;
    min-height: 520px;
  }
}

/* Make the stage a bit taller to fit portrait cards */
.coverflow .cf-track{ height: 520px; }
@media (max-width: 900px){
  .coverflow .cf-track{ height: 560px; }
}
