/* ===========================================================
   Şapkamda Ne Var — base
   Tek, sabit "kırık beyaz" arka plan: hiçbir section bunu
   override etmez. Derinlik sadece kart border/gölgesiyle verilir.
   =========================================================== */

html {
  background-color: #fdfcfa;
}

h1, h2, h3, h4, .brand-mark {
  font-family: "Switzer", sans-serif;
}

body {
  background-color: #fdfcfa;
  background-image:
    radial-gradient(#e3e2e0 0.5px, transparent 0.5px),
    radial-gradient(#e3e2e0 0.5px, transparent 0.5px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  background-attachment: fixed;
}

/* ===== Nav ===== */

#site-header {
  background-color: transparent;
}

#site-header.scrolled {
  background-color: rgba(253, 252, 250, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(26, 28, 27, 0.06);
}

.nav-link {
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: #1a1c1b;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.social-link {
  position: relative;
}

.social-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.social-link:hover {
  color: #1a1c1b;
}

.social-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ===== Cards / tonal surfaces ===== */

.card {
  background-color: #ffffff;
  border: 1px solid #e3e0dd;
  box-shadow: 0 30px 60px -30px rgba(26, 28, 27, 0.08);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 70px -30px rgba(26, 28, 27, 0.12);
}

.grommet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1a1c1b;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

/* ===== Eğitimler: pinboard kartları ===== */

.pinboard {
  position: relative;
}

.pinboard::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 34px;
  height: 1px;
  background-image: repeating-linear-gradient(to right, #c9c4c0 0, #c9c4c0 6px, transparent 6px, transparent 14px);
  z-index: 0;
  display: none;
}

@media (min-width: 768px) {
  .pinboard::before {
    display: block;
  }
}

.pin-card {
  position: relative;
  z-index: 1;
  padding-top: 34px;
  transform: rotate(-3deg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, margin-top 0.4s ease;
}

.pin-card--end {
  transform: rotate(-2deg);
}

.pin-card--mid {
  transform: rotate(2.5deg);
}

@media (min-width: 768px) {
  .pin-card--mid {
    margin-top: 46px;
  }

  .pin-card--end {
    margin-top: 14px;
  }
}

.pin-card:hover {
  transform: rotate(0deg) translateY(-6px);
}

.pin {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4c4546, #1a1c1b 60%);
  box-shadow: 0 3px 6px rgba(26, 28, 27, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.pin::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.portrait-block {
  background: linear-gradient(160deg, #efeeec, #e3e2e0);
  border: 1px solid #e3e0dd;
}

/* ===== Buttons ===== */

.btn-magnetic {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.btn-magnetic:hover {
  transform: translateY(-2px) scale(1.03);
  opacity: 0.88;
}

.btn-magnetic:active {
  transform: translateY(0) scale(0.97);
}

/* ===== Hero: mesh gradient + şapka görseli ===== */

.hero-gradient {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 820px;
  height: 560px;
  max-width: 150vw;
  max-height: 100vw;
  background:
    radial-gradient(circle at 28% 38%, rgba(49, 200, 223, 0.95) 0%, rgba(49, 200, 223, 0) 42%),
    radial-gradient(circle at 62% 28%, rgba(30, 88, 180, 0.9) 0%, rgba(30, 88, 180, 0) 40%),
    radial-gradient(circle at 40% 62%, rgba(49, 200, 223, 0.85) 0%, rgba(49, 200, 223, 0) 45%),
    radial-gradient(circle at 72% 58%, rgba(30, 88, 180, 0.9) 0%, rgba(30, 88, 180, 0) 42%),
    radial-gradient(circle at 55% 48%, rgba(30, 88, 180, 0.7) 0%, rgba(30, 88, 180, 0) 50%);
  filter: blur(60px);
  opacity: 0.75;
  z-index: 10;
  pointer-events: none;
}

.hero-hat {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: 190px;
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(20, 20, 30, 0.25));
  animation: hat-bob 6s ease-in-out infinite;
}

@media (min-width: 768px) {
  .hero-hat {
    max-width: 240px;
  }
}

@keyframes hat-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-1deg); }
}

/* ===== Marquee ===== */

.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid #e3e0dd;
  border-bottom: 1px solid #e3e0dd;
  padding: 20px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
  white-space: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Form ===== */

.field input,
.field select {
  width: 100%;
  margin-top: 10px;
  padding: 10px 2px;
  background: transparent;
  border: none;
  border-bottom: 1px solid #4c4546;
  font-family: "Switzer", sans-serif;
  font-size: 15px;
  color: #1a1c1b;
  outline: none;
  transition: border-color 0.2s ease, border-width 0.2s ease;
}

.field input::placeholder {
  color: #a7a19f;
}

.field input:focus,
.field select:focus {
  border-bottom: 2px solid #1a1c1b;
}

.field select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234c4546' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
}

/* ===== Eğitim takvimi ===== */

.cal-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #dedbd8;
  background: #ffffff;
  font-size: 15px;
  line-height: 1;
  color: #4c4546;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cal-nav:hover {
  background: #1a1c1b;
  border-color: #1a1c1b;
  color: #ffffff;
}

.cal-weekday {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Switzer", "Inter", sans-serif;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7e7576;
}

.cal-day {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 2px auto;
  border-radius: 50%;
  font-size: 12px;
  color: #1a1c1b;
}

.cal-day--event {
  background: #1a1c1b;
  color: #ffffff;
  font-weight: 600;
}

.cal-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a1c1b;
  flex-shrink: 0;
}

/* ===== Scroll reveal ===== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-hat,
  .marquee-track {
    animation: none;
  }
}
