/* ============================================
   KERNEK SU ARITMA - ANIMATIONS
   Scroll reveal, transitions, keyframes
   ============================================ */

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left.revealed { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right.revealed { opacity: 1; transform: translateX(0); }
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-scale.revealed { opacity: 1; transform: scale(1); }

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ---------- Floating Animation ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float { animation: float 3s ease-in-out infinite; }

/* ---------- Shimmer ---------- */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ---------- Gradient Move ---------- */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------- Water Wave ---------- */
@keyframes wave {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.water-decoration {
  position: absolute; width: 300px; height: 300px; border-radius: 43% 57% 70% 30% / 46% 40% 60% 54%;
  background: linear-gradient(135deg, rgba(0,168,255,0.08), rgba(79,195,247,0.05));
  animation: wave 15s linear infinite; pointer-events: none;
}

/* ---------- Counter Animation ---------- */
@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Ripple Effect ---------- */
@keyframes ripple {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ---------- Particle Background (Hero) ---------- */
.hero-particles {
  position: absolute; inset: 0; overflow: hidden; z-index: 1; pointer-events: none;
}
.hero-particles span {
  position: absolute; display: block; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.15); animation: float-particle linear infinite;
}
.hero-particles span:nth-child(1) { left: 10%; top: 20%; animation-duration: 8s; animation-delay: 0s; width: 4px; height: 4px; }
.hero-particles span:nth-child(2) { left: 30%; top: 60%; animation-duration: 10s; animation-delay: 2s; width: 8px; height: 8px; }
.hero-particles span:nth-child(3) { left: 50%; top: 30%; animation-duration: 7s; animation-delay: 1s; }
.hero-particles span:nth-child(4) { left: 70%; top: 70%; animation-duration: 9s; animation-delay: 3s; width: 5px; height: 5px; }
.hero-particles span:nth-child(5) { left: 85%; top: 40%; animation-duration: 11s; animation-delay: 0.5s; width: 7px; height: 7px; }
.hero-particles span:nth-child(6) { left: 20%; top: 80%; animation-duration: 8s; animation-delay: 4s; width: 3px; height: 3px; }

@keyframes float-particle {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(30px); opacity: 0; }
}

/* ---------- Gallery Lightbox ---------- */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: var(--z-modal);
  display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden;
  transition: all var(--transition-base); padding: var(--space-xl);
}
.lightbox-overlay.active { opacity: 1; visibility: visible; }
.lightbox-overlay img { max-width: 90%; max-height: 85vh; border-radius: var(--radius-md); object-fit: contain; }
.lightbox-close {
  position: absolute; top: 20px; right: 20px; width: 44px; height: 44px;
  background: rgba(255,255,255,0.1); color: #fff; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background var(--transition-fast); border: none;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-close svg { width: 24px; height: 24px; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px;
  background: rgba(255,255,255,0.1); color: #fff; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background var(--transition-fast); border: none;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ---------- Gallery Grid ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.gallery-item {
  position: relative; border-radius: var(--radius-md); overflow: hidden; cursor: pointer;
  aspect-ratio: 4/3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
  opacity: 0; transition: opacity var(--transition-base);
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item .gallery-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0.8);
  z-index: 2; color: #fff; opacity: 0; transition: all var(--transition-base);
}
.gallery-item:hover .gallery-icon { opacity: 1; transform: translate(-50%,-50%) scale(1); }

/* ---------- FAQ Accordion ---------- */
.faq-item { border: 1px solid var(--color-border-light); border-radius: var(--radius-md); margin-bottom: var(--space-md); overflow: hidden; background: var(--color-surface); }
.faq-item.active { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(0,86,179,0.08); }
.faq-question {
  width: 100%; padding: var(--space-lg) var(--space-xl); display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-heading); font-weight: var(--fw-semibold); font-size: var(--fs-body-lg);
  color: var(--color-text); cursor: pointer; background: none; border: none; text-align: left; gap: var(--space-md);
  transition: color var(--transition-fast);
}
.faq-item.active .faq-question { color: var(--color-primary); }
.faq-question .faq-icon { min-width: 28px; height: 28px; border-radius: var(--radius-full); background: linear-gradient(135deg, rgba(0,86,179,0.08), rgba(0,168,255,0.08)); display: flex; align-items: center; justify-content: center; transition: all var(--transition-base); }
.faq-item.active .faq-icon { background: var(--gradient-primary); }
.faq-icon svg { width: 16px; height: 16px; color: var(--color-primary); transition: all var(--transition-base); }
.faq-item.active .faq-icon svg { color: #fff; transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer-inner { padding: 0 var(--space-xl) var(--space-xl); color: var(--color-text-secondary); line-height: 1.8; }

/* ---------- Service Detail Layout ---------- */
.service-detail-layout { display: grid; grid-template-columns: 1fr 350px; gap: var(--space-2xl); }
.service-content h2 { margin-top: var(--space-2xl); margin-bottom: var(--space-md); }
.service-content p { line-height: 1.8; }
.service-content ul { margin: var(--space-md) 0; }
.service-content ul li { padding: var(--space-sm) 0; padding-left: var(--space-xl); position: relative; color: var(--color-text-secondary); }
.service-content ul li::before { content: '✓'; position: absolute; left: 0; color: var(--color-success); font-weight: var(--fw-bold); }
.service-sidebar { position: sticky; top: calc(var(--navbar-height) + var(--space-xl)); align-self: start; }
.service-sidebar .sidebar-card { background: var(--color-surface); border-radius: var(--radius-lg); padding: var(--space-xl); margin-bottom: var(--space-xl); border: 1px solid var(--color-border-light); }
.service-sidebar .sidebar-card h4 { margin-bottom: var(--space-lg); }
.sidebar-nav li { margin-bottom: var(--space-xs); }
.sidebar-nav a { display: block; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-sm); font-size: var(--fs-small); color: var(--color-text-secondary); transition: all var(--transition-fast); }
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(0,86,179,0.06); color: var(--color-primary); font-weight: var(--fw-medium); }

/* ---------- Blog Detail ---------- */
.blog-detail-layout { display: grid; grid-template-columns: 1fr 350px; gap: var(--space-2xl); }
.blog-content { font-size: var(--fs-body-lg); line-height: 1.9; }
.blog-content h2 { margin-top: var(--space-2xl); margin-bottom: var(--space-md); }
.blog-content p { margin-bottom: var(--space-lg); }
.blog-content img { border-radius: var(--radius-lg); margin: var(--space-xl) 0; }

/* ---------- Contact Grid ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
.contact-info-card { display: flex; align-items: flex-start; gap: var(--space-lg); padding: var(--space-xl); background: var(--color-surface); border-radius: var(--radius-lg); border: 1px solid var(--color-border-light); margin-bottom: var(--space-md); }
.contact-info-card .icon-wrap { min-width: 52px; height: 52px; background: var(--gradient-primary); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; }
.contact-info-card .icon-wrap svg { width: 24px; height: 24px; color: #fff; }
.contact-info-card h4 { margin-bottom: var(--space-xs); font-size: var(--fs-body); }
.contact-info-card p { margin-bottom: 0; font-size: var(--fs-small); }

.contact-form-wrap { background: var(--color-surface); border-radius: var(--radius-xl); padding: var(--space-2xl); box-shadow: var(--shadow-lg); border: 1px solid var(--color-border-light); }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; margin-top: var(--space-2xl); height: 400px; box-shadow: var(--shadow-md); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
