/* ======================================================
   Aykete Digital — Style v2
   Aesthetic: Precision-engineered editorial + glass
   ====================================================== */

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* --- Custom Properties --- */
:root {
  --navy: #121528;
  --navy-rgb: 18, 21, 40;
  --bg: #fafaf8;
  --white: #ffffff;
  --gray-50: #f5f5f1;
  --gray-100: #eeeee8;
  --gray-200: #ddddd5;
  --gray-300: #c8c8be;
  --gray-400: #9e9e94;
  --gray-500: #6e6e64;
  --gray-600: #4a4a42;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-accent: 'Instrument Serif', serif;
  --container: 1200px;
  --gutter: 24px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
}

/* --- Base --- */
html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --- Grain Overlay --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10000;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* --- Layout --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- Language Toggle --- */
html[data-lang="en"] .lang-tr,
html[data-lang="tr"] .lang-en,
html:not([data-lang]) .lang-en {
  display: none !important;
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.4s ease,
              border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  padding: 14px 0;
  background: rgba(250, 250, 248, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(var(--navy-rgb), 0.06);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; transition: opacity 0.3s ease; }
.logo:hover { opacity: 0.8; }
.logo img { height: 34px; width: auto; border-radius: 6px; }

/* --- Lang Switch --- */
.lang-switch {
  position: relative;
  display: inline-flex;
  padding: 3px;
  background: rgba(var(--navy-rgb), 0.045);
  border-radius: var(--radius-sm);
}

.lang-btn {
  position: relative;
  z-index: 2;
  padding: 5px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  transition: color 0.3s ease;
}
.lang-btn.active { color: var(--navy); }

.lang-indicator {
  position: absolute;
  top: 3px; left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  background: var(--white);
  border-radius: 6px;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.15, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

html[data-lang="en"] .lang-indicator {
  transform: translateX(calc(100% + 3px));
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
}

.hero-glow {
  position: absolute;
  top: 5%; right: -5%;
  width: 55%; height: 65%;
  background: radial-gradient(ellipse at 70% 30%, rgba(var(--navy-rgb), 0.025) 0%, transparent 65%);
  pointer-events: none;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.hero-title em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Line-by-line reveal masks */
.line-mask {
  overflow: hidden;
  display: block;
}
.line-inner {
  display: block;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  color: var(--gray-500);
  max-width: 500px;
  line-height: 1.72;
  margin-bottom: 48px;
  font-weight: 400;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.025em;
  color: var(--gray-500);
  padding: 8px 18px;
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.hero-badge:hover {
  border-color: var(--gray-300);
  transform: translateY(-1px);
}

.badge-dot {
  width: 5px; height: 5px;
  background: var(--navy);
  border-radius: 50%;
  opacity: 0.35;
}

/* --- Scroll Hint --- */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--navy), transparent);
  opacity: 0.18;
  animation: scrollPulse 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  transform-origin: top;
}

.scroll-text {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-400);
  opacity: 0.5;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.5); opacity: 0.1; }
  50% { transform: scaleY(1); opacity: 0.22; }
}

/* ============================================
   DIVIDER
   ============================================ */
.divider {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  overflow: hidden;
}

.divider-line {
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--gray-300) 0px, var(--gray-300) 6px,
    transparent 6px, transparent 14px
  );
  transform-origin: left center;
}

/* ============================================
   SECTIONS — COMMON
   ============================================ */
.section { padding: 96px 0; }

.section--about { position: relative; }

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
}

.section-number {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--gray-400);
  letter-spacing: 0.12em;
}

.section-line {
  width: 32px; height: 1px;
  background: var(--gray-300);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

/* ============================================
   SERVICE CARDS — CREATIVE REDESIGN
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  perspective: 1200px;
}

.service-card {
  --glow-x: 50%;
  --glow-y: 50%;
  position: relative;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(var(--navy-rgb), 0.06);
  border-radius: var(--radius-lg);
  padding: 40px 32px 36px;
  overflow: hidden;
  transition: box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.4s ease;
  transform-style: preserve-3d;
  will-change: transform;
  clip-path: inset(0% 0% 0% 0%);
}

/* Cursor-following glow */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--glow-x) var(--glow-y),
    rgba(var(--navy-rgb), 0.04),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  border-radius: inherit;
  z-index: 1;
}

/* Animated top gradient line */
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--navy) 50%,
    transparent 100%
  );
  transform: scaleX(0);
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 2;
}

.service-card:hover::before { opacity: 1; }
.service-card:hover::after { transform: scaleX(1); }

.service-card:hover {
  border-color: rgba(var(--navy-rgb), 0.1);
  box-shadow:
    0 24px 64px rgba(var(--navy-rgb), 0.08),
    0 8px 24px rgba(var(--navy-rgb), 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Large watermark number */
.card-number {
  position: absolute;
  top: -18px; right: -8px;
  font-family: var(--font-display);
  font-size: 150px;
  font-weight: 800;
  color: var(--navy);
  opacity: 0.025;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
  z-index: 0;
}

.service-card:hover .card-number {
  opacity: 0.05;
  transform: translateY(-6px) scale(1.03);
}

/* Gradient blob decoration */
.card-blob {
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  top: -80px; right: -80px;
  filter: blur(80px);
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
  z-index: 0;
}

.service-card:nth-child(1) .card-blob { background: rgba(99, 102, 241, 0.18); }
.service-card:nth-child(2) .card-blob { background: rgba(16, 185, 129, 0.18); }
.service-card:nth-child(3) .card-blob { background: rgba(245, 158, 11, 0.18); }

.service-card:hover .card-blob {
  opacity: 1;
  transform: translate(-10px, 10px) scale(1.1);
}

/* Card content */
.service-icon {
  position: relative;
  z-index: 3;
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border: 1px solid rgba(var(--navy-rgb), 0.05);
  border-radius: 14px;
  margin-bottom: 28px;
  color: var(--navy);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.service-card:hover .service-icon {
  background: rgba(var(--navy-rgb), 0.04);
  border-color: rgba(var(--navy-rgb), 0.08);
}

.service-card h3 {
  position: relative;
  z-index: 3;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-card p {
  position: relative;
  z-index: 3;
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.72;
  margin-bottom: 28px;
}

.service-tags {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.service-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--gray-400);
}

.service-tag::before {
  content: '→ ';
  color: var(--navy);
  opacity: 0.25;
}

/* Middle card offset */
@media (min-width: 769px) {
  .service-card:nth-child(2) {
    margin-top: -28px;
  }
}

/* ============================================
   ABOUT
   ============================================ */
/* About layout: text left, logo right */
.about-layout {
  display: flex;
  align-items: stretch;
  gap: 64px;
}

.about-content {
  max-width: 620px;
  flex: 1;
}

.about-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-logo svg {
  height: 100%;
  width: auto;
  max-height: 220px;
}

.about-text {
  font-size: 1.12rem;
  line-height: 1.78;
  color: var(--gray-600);
  margin-bottom: 40px;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--navy);
  padding: 9px 20px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about-badge:hover {
  border-color: var(--gray-300);
  transform: translateY(-3px);
}

/* ============================================
   CONTACT — PANEL
   ============================================ */
.contact-panel {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.contact-panel:hover {
  border-color: var(--gray-300);
  box-shadow: 0 8px 32px rgba(var(--navy-rgb), 0.04);
}

.contact-item {
  flex: 1;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.3s ease;
}

.contact-item:hover {
  background: rgba(var(--navy-rgb), 0.015);
}

.contact-sep {
  width: 1px;
  align-self: stretch;
  margin: 20px 0;
  background: repeating-linear-gradient(
    to bottom,
    var(--gray-200) 0px, var(--gray-200) 4px,
    transparent 4px, transparent 10px
  );
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.contact-value {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  word-break: break-word;
  letter-spacing: -0.01em;
}

.contact-value a {
  position: relative;
  transition: opacity 0.3s ease;
}

.contact-value a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 1px;
  background: var(--navy);
  opacity: 0.15;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-value a:hover::after {
  transform: scaleX(1);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--gray-200);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.partner-badge {
  display: inline-block;
  justify-self: start;
  transition: filter 0.4s ease, opacity 0.4s ease;
  filter: grayscale(100%);
  opacity: 0.45;
}

.partner-badge:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.partner-badge img {
  height: 100px;
  width: auto;
}

.footer-copy {
  justify-self: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--gray-400);
  letter-spacing: 0.04em;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; }

  .hero {
    min-height: auto;
    padding: 130px 0 80px;
  }

  .scroll-hint { display: none; }

  .section { padding: 72px 0; }

  .services-grid { grid-template-columns: 1fr; gap: 16px; }

  .service-card:nth-child(2) { margin-top: 0; }

  .hero-badges {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .section-header { margin-bottom: 36px; }
  .about-badges { gap: 8px; }
  .service-card { padding: 28px 24px; }

  .card-number { font-size: 100px; }

  .contact-panel { flex-direction: column; }
  .contact-sep {
    width: auto; height: 1px;
    margin: 0 24px;
    background: repeating-linear-gradient(
      90deg,
      var(--gray-200) 0px, var(--gray-200) 4px,
      transparent 4px, transparent 10px
    );
  }
  .contact-item { padding: 28px 24px; }

  .about-layout {
    flex-direction: column;
    gap: 32px;
  }

  .about-logo { order: -1; }
  .about-logo svg { width: 100px; height: auto; max-height: none; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    justify-items: center;
  }

  .partner-badge { justify-self: center; }
  .partner-badge img { height: 72px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .nav-inner { gap: 12px; }
  .logo img { height: 28px; }
}
