/* ============================================
   Zeynep Öğretmen Anaokulu — Çocuk Temalı Site
   ============================================ */

:root {
  --yellow: #FFD93D;
  --yellow-dark: #F5C518;
  --yellow-light: #FFF3B0;
  --coral: #FF9ECD;
  --sky: #7EC8E3;
  --mint: #B5EAD7;
  --lavender: #C9B1FF;
  --peach: #FFB347;
  --charcoal: #3D3D3D;
  --charcoal-light: #5A5A5A;
  --cream: #FFFBF0;
  --white: #FFFFFF;
  --shadow: 0 8px 32px rgba(61, 61, 61, 0.1);
  --shadow-lg: 0 16px 48px rgba(61, 61, 61, 0.15);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 32px;
  --font-display: 'Baloo 2', cursive;
  --font-body: 'Nunito', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Dekoratif Arka Plan ---- */
.bg-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.cloud {
  position: absolute;
  font-size: 3rem;
  opacity: 0.35;
  animation: floatCloud 20s ease-in-out infinite;
}

.cloud-1 { top: 8%; left: 5%; animation-delay: 0s; }
.cloud-2 { top: 25%; right: 8%; animation-delay: -7s; font-size: 2.5rem; }
.cloud-3 { top: 60%; left: 10%; animation-delay: -14s; font-size: 2rem; }

.star {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.5;
  animation: twinkle 3s ease-in-out infinite;
}

.star-1 { top: 15%; right: 20%; }
.star-2 { top: 45%; right: 5%; animation-delay: -1s; }
.star-3 { top: 75%; left: 15%; animation-delay: -2s; }

.bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
}

.bubble-1 { width: 200px; height: 200px; background: var(--coral); top: 10%; right: -50px; }
.bubble-2 { width: 150px; height: 150px; background: var(--sky); bottom: 20%; left: -40px; }
.bubble-3 { width: 100px; height: 100px; background: var(--mint); top: 50%; right: 10%; }
.bubble-4 { width: 80px; height: 80px; background: var(--lavender); bottom: 10%; right: 30%; }

@keyframes floatCloud {
  0%, 100% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(30px) translateY(-15px); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.2); }
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 251, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(255, 217, 61, 0.3);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo img {
  height: 56px;
  width: auto;
  transition: transform var(--transition);
}

.nav-logo:hover img {
  transform: scale(1.05) rotate(-2deg);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 50px;
  transition: var(--transition);
}

.nav-link:hover {
  background: var(--yellow-light);
  color: var(--charcoal);
}

.nav-link--cta {
  background: var(--yellow);
  color: var(--charcoal);
  box-shadow: 0 4px 0 var(--yellow-dark);
}

.nav-link--cta:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #D4A800;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--charcoal);
  border-radius: 3px;
  transition: var(--transition);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--yellow);
  color: var(--charcoal);
  box-shadow: 0 4px 0 var(--yellow-dark), var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 0 var(--yellow-dark), var(--shadow-lg);
}

.btn-secondary {
  background: var(--white);
  color: var(--charcoal);
  border: 3px solid var(--yellow);
  box-shadow: var(--shadow);
}

.btn-secondary:hover {
  background: var(--yellow-light);
  transform: translateY(-2px);
}

.btn-large {
  font-size: 1.1rem;
  padding: 18px 36px;
  margin-top: 24px;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: linear-gradient(160deg, #FFF9E6 0%, #E8F6FF 50%, #FFF0F5 100%);
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--white);
  padding: 8px 20px;
  border-radius: 50px;
  border: 2px dashed var(--coral);
  margin-bottom: 20px;
  animation: bounceIn 0.8s ease;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--charcoal);
}

.hero-title-accent {
  color: var(--yellow-dark);
  position: relative;
  display: inline-block;
}

.hero-title-accent::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 12px;
  background: var(--yellow-light);
  z-index: -1;
  border-radius: 6px;
}

.hero-text {
  font-size: 1.15rem;
  color: var(--charcoal-light);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-location {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--charcoal-light);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-wrap {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-sun {
  position: absolute;
  top: -20px;
  right: -10px;
  font-size: 4rem;
  animation: spinSlow 20s linear infinite;
  filter: drop-shadow(0 0 20px rgba(255, 217, 61, 0.6));
}

.hero-logo {
  width: 280px;
  height: auto;
  filter: drop-shadow(0 12px 40px rgba(61, 61, 61, 0.15));
  animation: floatLogo 4s ease-in-out infinite;
}

.hero-float {
  position: absolute;
  font-size: 2.5rem;
  animation: floatEmoji 3s ease-in-out infinite;
}

.hero-float--1 { top: 10%; left: 0; animation-delay: 0s; }
.hero-float--2 { top: 20%; right: -10%; animation-delay: -0.8s; }
.hero-float--3 { bottom: 15%; left: 5%; animation-delay: -1.6s; }
.hero-float--4 { bottom: 10%; right: 5%; animation-delay: -2.4s; }

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: var(--cream);
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 80px;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes floatEmoji {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(8deg); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.8); }
  60% { transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

/* ---- Sections ---- */
.section {
  position: relative;
  padding: 100px 0;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--charcoal-light);
  background: var(--yellow-light);
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--charcoal-light);
}

/* ---- About ---- */
.about {
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.about-card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  border: 3px solid transparent;
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-8px);
  border-color: var(--yellow);
  box-shadow: var(--shadow-lg);
}

.about-card-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.about-card p {
  font-size: 0.95rem;
  color: var(--charcoal-light);
}

/* ---- Workshops ---- */
.workshops {
  background: linear-gradient(180deg, var(--cream) 0%, #F0F8FF 100%);
}

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.workshop-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  border-left: 6px solid var(--card-color);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.workshop-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: var(--card-color);
  opacity: 0.15;
  border-radius: 0 0 0 100%;
}

.workshop-card:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: var(--shadow-lg);
}

.workshop-emoji {
  font-size: 3rem;
  margin-bottom: 16px;
}

.workshop-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.workshop-card p {
  font-size: 0.95rem;
  color: var(--charcoal-light);
}

/* ---- Ages ---- */
.ages {
  background: var(--white);
}

.ages-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.ages-timeline::before {
  content: '';
  position: absolute;
  left: 40px;
  top: 40px;
  bottom: 40px;
  width: 4px;
  background: linear-gradient(180deg, var(--coral), var(--sky), var(--mint), var(--lavender));
  border-radius: 4px;
}

.age-item {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 24px 0;
}

.age-bubble {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--charcoal);
  box-shadow: 0 4px 0 var(--yellow-dark), var(--shadow);
  position: relative;
  z-index: 1;
}

.age-content {
  background: var(--cream);
  padding: 24px 28px;
  border-radius: var(--radius);
  flex: 1;
  border: 2px solid var(--yellow-light);
  transition: var(--transition);
}

.age-item:hover .age-content {
  border-color: var(--yellow);
  transform: translateX(8px);
}

.age-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.age-content p {
  font-size: 0.95rem;
  color: var(--charcoal-light);
}

/* ---- Routine ---- */
.routine {
  background: linear-gradient(135deg, #FFF9E6 0%, #E8FFF0 100%);
}

.routine-cards {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
}

.routine-card {
  background: var(--white);
  padding: 18px 12px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  box-shadow: var(--shadow);
  border: 2px solid var(--yellow-light);
  transition: var(--transition);
}

.routine-card:hover {
  transform: scale(1.08) rotate(2deg);
  border-color: var(--yellow);
  background: var(--yellow-light);
}

.routine-time {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--yellow-dark);
}

.routine-icon {
  font-size: 2rem;
}

.routine-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  color: var(--charcoal-light);
}

/* ---- Contact ---- */
.contact {
  background: var(--cream);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-text {
  font-size: 1.1rem;
  color: var(--charcoal-light);
  margin-bottom: 32px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 8px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.contact-list strong {
  font-family: var(--font-display);
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.contact-list p {
  color: var(--charcoal-light);
}

.contact-list a {
  color: var(--charcoal);
  font-weight: 700;
  transition: var(--transition);
}

.contact-list a:hover {
  color: var(--yellow-dark);
}

.contact-visual {
  display: flex;
  justify-content: center;
}

.contact-card {
  background: var(--white);
  padding: 48px 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--yellow);
  position: relative;
}

.contact-card img {
  width: 200px;
  margin: 0 auto 20px;
}

.contact-card-tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--charcoal);
  margin-bottom: 20px;
}

.contact-card-decor {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 1.8rem;
}

.contact-card-decor span {
  animation: floatEmoji 2.5s ease-in-out infinite;
}

.contact-card-decor span:nth-child(2) { animation-delay: -0.5s; }
.contact-card-decor span:nth-child(3) { animation-delay: -1s; }
.contact-card-decor span:nth-child(4) { animation-delay: -1.5s; }

/* ---- Footer ---- */
.footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 48px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-logo {
  height: 80px;
  margin: 0 auto 16px;
  filter: brightness(1.1);
}

.footer-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 12px;
}

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-bottom: 16px;
}

.footer-phone {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  background: var(--yellow);
  color: var(--charcoal);
  padding: 10px 24px;
  border-radius: 50px;
  transition: var(--transition);
}

.footer-phone:hover {
  transform: scale(1.05);
  background: var(--yellow-dark);
}

/* ---- Scroll Top ---- */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 50px;
  height: 50px;
  background: var(--yellow);
  color: var(--charcoal);
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--yellow-dark);
  transform: translateY(-4px);
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .routine-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .routine-cards .routine-card:last-child:nth-child(3n + 1) {
    grid-column: 2;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-logo-wrap {
    width: 260px;
    height: 260px;
  }

  .hero-logo {
    width: 220px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-info {
    text-align: center;
  }

}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(255, 251, 240, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    border-bottom: 2px solid var(--yellow-light);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 14px;
    font-size: 1.1rem;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .section {
    padding: 70px 0;
  }

  .ages-timeline::before {
    left: 30px;
  }

  .age-bubble {
    width: 60px;
    height: 60px;
    font-size: 0.95rem;
  }

  .age-item {
    gap: 16px;
  }

  .routine-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .routine-cards .routine-card:last-child:nth-child(3n + 1) {
    grid-column: auto;
  }

  .routine-cards .routine-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 6px);
  }

  .contact-list li {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .contact-list li > div {
    text-align: center;
  }

  .contact-info .btn-large {
    display: flex;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 100px;
  }

  .hero-logo-wrap {
    width: 220px;
    height: 220px;
  }

  .hero-logo {
    width: 180px;
  }

  .hero-float {
    font-size: 1.8rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
  }

  .routine-cards {
    grid-template-columns: 1fr;
    max-width: 280px;
  }

  .routine-cards .routine-card:last-child:nth-child(odd) {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }
}
