/* Erol Çatı Oluk — Custom styles (Tailwind complements) */

:root {
  --brand-950: #020617;
  --brand-900: #0f172a;
  --brand-800: #1e293b;
  --accent: #0077e6;
  --accent-dark: #005fc0;
  --accent-light: #4da3ff;
  --wa: #22c55e;
  --surface: #f8fafc;
  --header-offset: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-offset) + 16px);
}

body {
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Sticky header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled .nav-main {
  box-shadow: 0 8px 30px -12px rgba(15, 23, 42, 0.28);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  border-radius: 0.5rem;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-900);
  background: #f1f5f9;
}

.mobile-link {
  display: block;
  padding: 0.75rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand-900);
  border-radius: 0.5rem;
}

.mobile-link:hover {
  background: #f1f5f9;
}

.site-logo {
  max-width: min(260px, 58vw);
  object-fit: contain;
}

.btn-accent:hover {
  background: var(--accent-dark);
}

.btn-accent:active {
  transform: scale(0.98);
}

.footer-link {
  color: #94a3b8;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #fff;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  transition: background 0.2s, color 0.2s;
}

.social-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 680px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--brand-900);
}

.hero-page {
  min-height: min(52vh, 420px);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img,
.hero-media .hero-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-fallback {
  background:
    linear-gradient(135deg, rgba(0, 119, 230, 0.28) 0%, transparent 45%),
    linear-gradient(180deg, #0f172a 0%, #1e293b 45%, #0f172a 100%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 18px,
      rgba(255, 255, 255, 0.02) 18px,
      rgba(255, 255, 255, 0.02) 19px
    );
}

/* Hero slider slides */
.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
  z-index: 0;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 7s ease-out;
  will-change: transform;
}

.hero-slide.is-active img {
  transform: scale(1.14);
  animation: heroKenBurns 7s ease-out forwards;
}

@keyframes heroKenBurns {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(105deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.62) 52%, rgba(2, 6, 23, 0.35) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.25) 0%, transparent 35%, rgba(2, 6, 23, 0.45) 100%);
  pointer-events: none;
}

.hero-shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.06) 48%, transparent 62%);
  background-size: 220% 100%;
  animation: heroShine 8s ease-in-out infinite;
  opacity: 0.55;
}

@keyframes heroShine {
  0%, 100% { background-position: 120% 0; }
  50% { background-position: -20% 0; }
}

.hero-content {
  position: relative;
  z-index: 4;
  width: 100%;
  padding: 3.25rem 0 3.75rem;
}

@media (min-width: 768px) {
  .hero-content {
    padding: 3.5rem 0 4rem;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 119, 230, 0.45);
  background: rgba(0, 119, 230, 0.14);
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-brand {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
}

.hero-brand span {
  color: var(--accent);
}

.hero-slogan {
  font-size: clamp(1.35rem, 3.2vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.2;
  max-width: 40rem;
  text-wrap: balance;
}

.hero-headline {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.35;
  max-width: 36rem;
}

.hero-lead {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  color: #94a3b8;
  max-width: 34rem;
  line-height: 1.65;
}

.hero-copy.is-animating .hero-eyebrow,
.hero-copy.is-animating .hero-brand,
.hero-copy.is-animating .hero-slogan,
.hero-copy.is-animating .hero-headline,
.hero-copy.is-animating .hero-lead,
.hero-copy.is-animating #hero-ctas,
.hero-copy.is-animating #hero-badges {
  animation: heroTextIn 0.7s ease both;
}

.hero-copy.is-animating .hero-brand { animation-delay: 0.05s; }
.hero-copy.is-animating .hero-slogan { animation-delay: 0.08s; }
.hero-copy.is-animating .hero-eyebrow { animation-delay: 0.12s; }
.hero-copy.is-animating .hero-headline { animation-delay: 0.16s; }
.hero-copy.is-animating .hero-lead { animation-delay: 0.2s; }
.hero-copy.is-animating #hero-ctas { animation-delay: 0.26s; }
.hero-copy.is-animating #hero-badges { animation-delay: 0.32s; }

@keyframes heroTextIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.01em;
}

.trust-item::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
}

/* Hero controls */
.hero-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.hero-progress {
  display: flex;
  gap: 0.45rem;
  flex: 1;
  min-width: 180px;
  max-width: 320px;
}

.hero-progress-item {
  flex: 1;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  overflow: hidden;
}

.hero-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: inherit;
}

.hero-progress-item.is-active .hero-progress-bar {
  width: 100%;
  animation: none;
}

.hero-slider.is-playing .hero-progress-item.is-active .hero-progress-bar {
  animation: heroProgress var(--hero-interval, 6.5s) linear forwards;
}

@keyframes heroProgress {
  from { width: 0; }
  to { width: 100%; }
}

.hero-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.hero-nav-btn:hover {
  background: rgba(0, 119, 230, 0.9);
  border-color: transparent;
}

.hero-nav-btn:active {
  transform: scale(0.96);
}

.hero-counter {
  min-width: 4.25rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #cbd5e1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide img,
  .hero-shine,
  .hero-copy.is-animating * {
    animation: none !important;
    transition: none !important;
  }

  .hero-slide.is-active img {
    transform: none;
  }

  .hero-slider.is-playing .hero-progress-item.is-active .hero-progress-bar {
    animation: none;
    width: 100%;
  }
}

/* Reveal animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="left"] {
  transform: translateX(-24px);
}

[data-reveal="left"].is-visible {
  transform: translateX(0);
}

/* Service cards */
.service-card {
  position: relative;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.5rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.service-card:hover {
  border-color: rgba(0, 119, 230, 0.45);
  box-shadow: 0 16px 40px -18px rgba(15, 23, 42, 0.28);
  transform: translateY(-3px);
}

.service-card.is-hidden {
  display: none;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #64748b;
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.is-active {
  color: #fff;
  background: var(--brand-900);
  border-color: var(--brand-900);
}

/* Form */
.form-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 0.75rem 0.9rem;
  font-size: 0.9375rem;
  color: var(--brand-900);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 119, 230, 0.2);
}

.form-field .error-msg {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #dc2626;
  font-weight: 600;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: #dc2626;
}

.form-field.has-error .error-msg {
  display: block;
}

.form-alert {
  display: none;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.form-alert.is-success {
  display: block;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.form-alert.is-error {
  display: block;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* FAQ accordion */
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  background: #fff;
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1.1rem 1.25rem;
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--brand-900);
  background: transparent;
  cursor: pointer;
}

.faq-trigger i {
  flex-shrink: 0;
  transition: transform 0.25s;
  color: var(--accent);
}

.faq-item.is-open .faq-trigger i {
  transform: rotate(45deg);
}

.faq-panel {
  display: none;
  padding: 0 1.25rem 1.15rem;
  color: #64748b;
  font-size: 0.925rem;
  line-height: 1.65;
}

.faq-item.is-open .faq-panel {
  display: block;
}

/* Gallery */
.gallery-item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--brand-800);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item .gallery-visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  background: linear-gradient(180deg, transparent 35%, rgba(2, 6, 23, 0.88) 100%);
}

.service-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0.75rem;
  display: block;
}

.gallery-meta {
  position: relative;
  z-index: 1;
}

.gallery-cat {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

/* Floating buttons — sol alt */
.fab-stack {
  position: fixed;
  left: 1rem;
  right: auto;
  bottom: 1rem;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.fab {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border-radius: 999px;
  width: 3.35rem;
  height: 3.35rem;
  padding: 0;
  justify-content: center;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  box-shadow: 0 10px 28px -8px rgba(15, 23, 42, 0.45);
  transition: width 0.28s ease, padding 0.28s ease, gap 0.28s ease, transform 0.2s, filter 0.2s;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
}

.fab > i,
.fab > svg {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}

.fab:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.fab-call {
  background: var(--accent);
}

.fab-wa {
  background: var(--wa);
}

.fab-label {
  display: inline-flex;
  flex-direction: column;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.28s ease, opacity 0.2s ease, margin 0.28s ease;
  margin-left: 0;
  line-height: 1.15;
}

.fab-label strong {
  font-size: 0.8125rem;
  font-weight: 800;
}

.fab-label small {
  font-size: 0.6875rem;
  font-weight: 600;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .fab:hover,
  .fab:focus-visible {
    width: auto;
    min-width: 3.35rem;
    height: auto;
    min-height: 3.35rem;
    padding: 0.7rem 1.15rem 0.7rem 0.95rem;
    gap: 0.65rem;
    justify-content: flex-start;
  }

  .fab:hover .fab-label,
  .fab:focus-visible .fab-label {
    max-width: 14rem;
    opacity: 1;
    margin-left: 0.15rem;
  }
}

@media (max-width: 767px) {
  .fab-stack {
    left: 0.75rem;
    bottom: 0.85rem;
  }

  .fab {
    width: 3.25rem;
    height: 3.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fab,
  .fab-label {
    transition: none;
  }
}

/* Section helpers */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--brand-900);
  line-height: 1.15;
}

.section-lead {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: #64748b;
  max-width: 38rem;
  line-height: 1.65;
}

.pattern-grid {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Map frame */
.map-frame {
  border: 0;
  width: 100%;
  min-height: 320px;
  height: 100%;
  border-radius: 1rem;
  filter: grayscale(0.15) contrast(1.05);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .fab:hover,
  .service-card:hover {
    transform: none;
  }

  .axo-word,
  .axo-letter,
  .axo-sign-dot,
  .axo-sparks i {
    animation: none !important;
  }
}

/* —— Axo Digital imza (embeform ile aynı) —— */
.axo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.axo-label {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(252, 251, 249, 0.4);
  transition: color 0.25s;
}

.axo-link:hover .axo-label {
  color: rgba(252, 251, 249, 0.7);
}

.axo-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
}

@property --axo-shift {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}

.axo-word {
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  --axo-shift: 0px;
  animation: axoShine 3s linear infinite;
}

.axo-letter {
  display: inline-block;
  background-image: linear-gradient(
    90deg,
    #3ec8ff 0%,
    #5b6cff 16%,
    #8b3dff 32%,
    #d42d88 50%,
    #ff8c28 68%,
    #ffd24a 84%,
    #3ec8ff 100%
  );
  background-size: 12.5em 100%;
  background-repeat: repeat-x;
  background-position: calc(var(--i) * -0.62em + var(--axo-shift)) 0;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  transform-origin: bottom center;
}

.axo-link:hover .axo-word {
  animation: axoShine 1.15s linear infinite;
}

.axo-link:hover .axo-letter {
  animation: axoBounce 0.62s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i) * 42ms);
}

.axo-sign-dot {
  height: 6px;
  width: 6px;
  border-radius: 999px;
  background: #d42d88;
  box-shadow: 0 0 0 0 rgba(212, 45, 136, 0.55);
  animation: axoPulse 2.2s ease-out infinite;
}

.axo-link:hover .axo-sign-dot {
  animation: axoPulse 0.7s ease-out infinite;
  background: #ffd24a;
}

.axo-sparks {
  pointer-events: none;
  position: absolute;
  inset: -8px -10px;
}

.axo-sparks i {
  position: absolute;
  height: 5px;
  width: 5px;
  border-radius: 999px;
  background: #3ec8ff;
  opacity: 0;
}

.axo-sparks i:nth-child(1) {
  left: 8%;
  top: 0;
}

.axo-sparks i:nth-child(2) {
  right: 12%;
  top: -2px;
  background: #d42d88;
}

.axo-sparks i:nth-child(3) {
  right: 38%;
  bottom: -4px;
  background: #ffd24a;
}

.axo-link:hover .axo-sparks i {
  animation: axoSpark 0.85s ease-out infinite;
}

.axo-link:hover .axo-sparks i:nth-child(2) {
  animation-delay: 0.12s;
}

.axo-link:hover .axo-sparks i:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes axoShine {
  from { --axo-shift: 0em; }
  to { --axo-shift: 12.5em; }
}

@keyframes axoPulse {
  0% {
    transform: scale(0.85);
    box-shadow: 0 0 0 0 rgba(212, 45, 136, 0.55);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(212, 45, 136, 0);
  }
  100% {
    transform: scale(0.85);
    box-shadow: 0 0 0 0 rgba(212, 45, 136, 0);
  }
}

@keyframes axoBounce {
  0% { transform: translateY(0) rotate(0); }
  35% { transform: translateY(-4px) rotate(-4deg); }
  100% { transform: translateY(0) rotate(0); }
}

@keyframes axoSpark {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.6);
  }
  30% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translateY(-10px) scale(1.1);
  }
}
