/* ===========================
   SIRMA METAL — Animations
   =========================== */

/* ── Loading Screen ─────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0D3348;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
  animation: loaderFallbackHide 0s 5s forwards;
}
@keyframes loaderFallbackHide {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__logo {
  width: 200px;
  margin-bottom: 40px;
  animation: loaderLogoIn .8s cubic-bezier(.16,1,.3,1) both;
}
@keyframes loaderLogoIn {
  from { opacity: 0; transform: translateY(20px) scale(.92); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.loader__bar-wrap {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,.12);
  border-radius: 99px;
  overflow: hidden;
  animation: fadeIn .4s .3s both;
}
@keyframes fadeIn { from { opacity:0 } to { opacity:1 } }

.loader__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4D9CB9, #8FA3AF);
  border-radius: 99px;
  transition: width .05s linear;
}

.loader__text {
  margin-top: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  animation: fadeIn .4s .5s both;
}

/* ── Hero Video ─────────────────────────────── */
.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(13,51,72,.88) 0%,
    rgba(13,51,72,.70) 50%,
    rgba(13,51,72,.82) 100%
  );
  z-index: 1;
}
.hero__video-wrap iframe,
.hero__video-wrap video {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 177.78vh; /* 16:9 */
  height: 100%;
  min-width: 100%;
  min-height: 56.25vw; /* 16:9 */
  border: none;
  pointer-events: none;
}

/* ── Reveal Animations ──────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
  animation: revealFallback 0s 1.5s forwards;
}
@keyframes revealFallback {
  to { opacity: 1; transform: none; }
}
[data-reveal="left"]  { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal].revealed {
  opacity: 1;
  transform: none;
  animation: none;
}

/* stagger delay classes */
[data-delay="100"] { transition-delay: .1s; }
[data-delay="200"] { transition-delay: .2s; }
[data-delay="300"] { transition-delay: .3s; }
[data-delay="400"] { transition-delay: .4s; }
[data-delay="500"] { transition-delay: .5s; }
[data-delay="600"] { transition-delay: .6s; }

/* ── Floating badge animation ───────────────── */
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.about__badge { animation: float 4s ease-in-out infinite; }

/* ── Stat counter shimmer ───────────────────── */
.stat-item__num {
  background: linear-gradient(90deg, #fff 30%, #4D9CB9 50%, #fff 70%);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
  from { background-position: 200% center; }
  to   { background-position: -200% center; }
}

/* ── Product card hover lift ────────────────── */
.product-card {
  will-change: transform;
}
.product-card__img {
  transition: transform .5s cubic-bezier(.16,1,.3,1);
  overflow: hidden;
}
.product-card:hover .product-card__img > img {
  transform: scale(1.06);
}

/* ── Gallery ────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  position: relative;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
  display: block;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,51,72,.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-item__overlay svg { color: white; width: 36px; height: 36px; }

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
#lightbox.open { opacity: 1; visibility: visible; }
#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
#lightbox-close {
  position: fixed;
  top: 24px; right: 28px;
  font-size: 2rem;
  color: rgba(255,255,255,.7);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
}
#lightbox-close:hover { color: white; }

/* ── Scroll progress bar ────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #1C5F85, #4D9CB9);
  z-index: 2000;
  transition: width .1s linear;
}

/* ── Cursor dot (desktop only) ──────────────── */
@media (pointer: fine) {
  .cursor-dot {
    position: fixed;
    width: 8px; height: 8px;
    background: #4D9CB9;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%,-50%);
    transition: transform .08s, width .2s, height .2s, opacity .2s;
    mix-blend-mode: exclusion;
  }
  .cursor-ring {
    position: fixed;
    width: 36px; height: 36px;
    border: 1.5px solid rgba(77,156,185,.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    transform: translate(-50%,-50%);
    transition: transform .18s cubic-bezier(.16,1,.3,1), width .2s, height .2s, opacity .2s;
  }
  .cursor-dot.hovering  { width: 14px; height: 14px; }
  .cursor-ring.hovering { width: 52px; height: 52px; border-color: rgba(77,156,185,.3); }
}

/* ── Animated gradient line under headings ──── */
.section__tag::after {
  content: '';
  display: block;
  width: 40px; height: 2px;
  background: linear-gradient(90deg, #1C5F85, #4D9CB9);
  border-radius: 2px;
  margin: 8px auto 0;
}

/* ── Feature item icon pulse ────────────────── */
.feature-item:hover .feature-item__icon {
  animation: iconPulse .4s ease;
}
@keyframes iconPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ── Cookie Consent Banner ──────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 9998;
  width: min(680px, calc(100vw - 32px));
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(13,51,72,.1);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(13,51,72,.18), 0 4px 12px rgba(13,51,72,.08);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform .55s cubic-bezier(.16,1,.3,1), opacity .4s ease;
  opacity: 0;
  pointer-events: none;
}
#cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: all;
}
.cookie__icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}
.cookie__text {
  flex: 1;
  font-size: .82rem;
  line-height: 1.55;
  color: #374151;
}
.cookie__text strong {
  display: block;
  color: #0D3348;
  font-family: 'Montserrat', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: 3px;
}
.cookie__text a {
  color: #1C5F85;
  text-decoration: underline;
  font-weight: 500;
}
.cookie__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.cookie__btn-accept {
  background: #0D3348;
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
.cookie__btn-accept:hover { background: #1C5F85; }
.cookie__btn-reject {
  background: transparent;
  color: #6B7280;
  border: 1px solid #E5E7EB;
  padding: 8px 22px;
  border-radius: 10px;
  font-size: .75rem;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.cookie__btn-reject:hover { border-color: #0D3348; color: #0D3348; }

@media (max-width: 600px) {
  #cookie-banner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cookie__actions { flex-direction: row; width: 100%; }
  .cookie__btn-accept, .cookie__btn-reject { flex: 1; text-align: center; }
  .cookie__icon { display: none; }
}

/* ── Catalog CTA section ────────────────────── */
.catalog-cta {
  background: linear-gradient(135deg, #0D3348 0%, #1C5F85 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.catalog-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.catalog-cta__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 60px;
}
.catalog-cta__visual {
  flex-shrink: 0;
  width: 160px;
  position: relative;
}
.catalog-cta__mock {
  width: 130px;
  height: 175px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 10px 14px 40px rgba(0,0,0,.35), 0 4px 12px rgba(0,0,0,.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: rotate(-4deg);
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.catalog-cta__mock:hover { transform: rotate(0deg) scale(1.04); }
.catalog-cta__mock-top {
  background: #0D3348;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.catalog-cta__mock-top img { height: 28px; object-fit: contain; filter: brightness(0) invert(1); }
.catalog-cta__mock-lines {
  flex: 1;
  padding: 10px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.catalog-cta__mock-line {
  height: 4px;
  border-radius: 2px;
  background: #E5E7EB;
}
.catalog-cta__mock-line:first-child { width: 80%; background: #CBD5E1; }
.catalog-cta__mock-line:nth-child(2) { width: 60%; }
.catalog-cta__mock-line:nth-child(3) { width: 90%; }
.catalog-cta__mock-line:nth-child(4) { width: 50%; }
.catalog-cta__mock-thumb {
  height: 48px;
  background: linear-gradient(135deg, #4D9CB9, #1C5F85);
  margin: 0 10px 10px;
  border-radius: 4px;
}
.catalog-cta__badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #4D9CB9;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: .6rem;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 99px;
  letter-spacing: .05em;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  animation: float 3s ease-in-out infinite;
}
.catalog-cta__content { flex: 1; }
.catalog-cta__content .section__tag { color: rgba(255,255,255,.6); border-color: rgba(255,255,255,.2); }
.catalog-cta__content h2 { color: #fff; margin-bottom: 12px; }
.catalog-cta__content p { color: rgba(255,255,255,.75); margin-bottom: 28px; font-size: .95rem; line-height: 1.7; }
.catalog-cta__features {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.catalog-cta__feat {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.85);
  font-size: .82rem;
  font-weight: 500;
}
.catalog-cta__feat svg { color: #4D9CB9; flex-shrink: 0; }
.catalog-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #0D3348;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  transition: transform .25s, box-shadow .25s, background .2s;
}
.catalog-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
  background: #F0F9FF;
}
.catalog-cta__btn svg { transition: transform .3s; }
.catalog-cta__btn:hover svg { transform: translateY(2px); }

@media (max-width: 768px) {
  .catalog-cta__inner { flex-direction: column; gap: 32px; }
  .catalog-cta__visual { display: none; }
}

/* ── Typewriter cursor ───────────────────── */
#typewriter {
  position: relative;
}
#typewriter::after {
  content: '|';
  display: inline-block;
  margin-left: 2px;
  color: #4D9CB9;
  animation: twBlink .7s step-end infinite;
}
@keyframes twBlink {
  0%,100% { opacity:1; } 50% { opacity:0; }
}

/* ── About Section Slide-in ─────────────── */
.about__visual {
  animation: slideInLeft .9s cubic-bezier(.16,1,.3,1) .2s both;
}
.about__content {
  animation: slideInRight .9s cubic-bezier(.16,1,.3,1) .35s both;
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Mobilde yatay kaymayı kaldır, sadece dikey fade */
@media (max-width: 768px) {
  .about__visual {
    animation: slideInUp .8s cubic-bezier(.16,1,.3,1) .1s both;
  }
  .about__content {
    animation: slideInUp .8s cubic-bezier(.16,1,.3,1) .25s both;
  }
}
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Clip-path Reveal ────────────────────── */
[data-clip] {
  clip-path: inset(0 100% 0 0);
  transition: clip-path .9s cubic-bezier(.16,1,.3,1);
}
[data-clip="right"] {
  clip-path: inset(0 0 0 100%);
}
[data-clip="bottom"] {
  clip-path: inset(100% 0 0 0);
}
[data-clip].clip-revealed {
  clip-path: inset(0 0 0 0);
}

/* ── WhatsApp Floating Button ───────────── */
.whatsapp-btn {
  position: fixed;
  bottom: 88px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s;
  animation: waPulse 2.5s ease-in-out 2s infinite;
}
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,.55);
}
.whatsapp-btn__tooltip {
  position: absolute;
  right: 68px;
  background: #1a1a1a;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity .2s, transform .2s;
}
.whatsapp-btn__tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: none;
  border-left-color: #1a1a1a;
}
.whatsapp-btn:hover .whatsapp-btn__tooltip {
  opacity: 1;
  transform: translateX(0);
}
@keyframes waPulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.45); }
  50%      { box-shadow: 0 4px 32px rgba(37,211,102,.75), 0 0 0 10px rgba(37,211,102,.1); }
}

/* ── Magnetic btn transition ─────────────── */
.btn--primary, .btn--outline {
  will-change: transform;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform .18s cubic-bezier(.16,1,.3,1);
}
