/* ========================================================
   KUZANMEDİA — Main Stylesheet
   Apple iOS inspired, Glassmorphism, Premium Design
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ─── CSS Custom Properties ─────────────────────────── */
:root {
  /* Colors */
  --white:        #FFFFFF;
  --gray-50:      #F5F5F7;
  --gray-100:     #E8E8ED;
  --gray-200:     #D2D2D7;
  --gray-300:     #AEAEB2;
  --gray-400:     #8E8E93;
  --gray-500:     #636366;
  --gray-600:     #48484A;
  --gray-700:     #3A3A3C;
  --gray-800:     #2C2C2E;
  --gray-900:     #1D1D1F;
  --black:        #000000;

  /* Brand */
  --blue:         #0071E3;
  --blue-dark:    #0051A8;
  --purple:       #5E5CE6;
  --gradient:     linear-gradient(135deg, #0071E3 0%, #5E5CE6 100%);
  --gradient-soft: linear-gradient(135deg, rgba(0,113,227,0.08) 0%, rgba(94,92,230,0.08) 100%);

  /* Glass */
  --glass-bg:     rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --glass-blur:   blur(20px);

  /* Typography */
  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-py:   100px;
  --container:    1200px;

  /* Radius */
  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-xl:    32px;
  --radius-full:  9999px;

  /* Transitions */
  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition:   0.3s var(--ease);
  --transition-slow: 0.6s var(--ease);

  /* Shadows */
  --shadow-xs:    0 2px 8px rgba(0,0,0,0.06);
  --shadow-sm:    0 4px 16px rgba(0,0,0,0.08);
  --shadow-md:    0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg:    0 16px 48px rgba(0,0,0,0.12);
  --shadow-xl:    0 24px 64px rgba(0,0,0,0.16);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--gray-900);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  outline: none;
}

input, textarea, select {
  font-family: var(--font);
  outline: none;
}

/* ─── Selection ──────────────────────────────────────── */
::selection {
  background: rgba(0,113,227,0.15);
  color: var(--blue);
}

/* ─── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-50); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ─── Utilities ──────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-py) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  border: 1px solid rgba(0,113,227,0.15);
}

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--gray-900);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--gray-400);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateY(100%);
  transition: transform var(--transition);
}

.btn:hover::before { transform: translateY(0); }

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0,113,227,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,113,227,0.45);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--gray-900);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}

.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* ─── Glass Card ─────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
}

/* ─── Scroll Animations ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }

/* ─── NAVBAR ─────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), var(--shadow-xs);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--gray-900);
  transition: opacity var(--transition);
}

.nav-logo:hover { opacity: 0.75; }

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo-icon svg { color: white; width: 20px; height: 20px; }

.nav-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  transition: all var(--transition);
}

.nav-link:hover {
  color: var(--gray-900);
  background: var(--gray-100);
}

.nav-link.active {
  color: var(--blue);
  background: rgba(0,113,227,0.08);
}

.nav-cta {
  background: var(--gradient);
  color: var(--white) !important;
  box-shadow: 0 4px 16px rgba(0,113,227,0.3);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0,113,227,0.4);
  background: var(--gradient) !important;
  color: var(--white) !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.nav-toggle:hover { background: var(--gray-100); }

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) { opacity: 0; }

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 16px;
  right: 16px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 16px;
  z-index: 999;
  transform: scale(0.95) translateY(-10px);
  opacity: 0;
  transition: all 0.25s var(--ease-bounce);
  pointer-events: none;
}

.nav-mobile.open {
  display: block;
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.nav-mobile-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  transition: all var(--transition);
}

.nav-mobile-link:hover {
  background: var(--gray-50);
  color: var(--gray-900);
}

.nav-mobile-cta {
  margin-top: 8px;
  background: var(--gradient);
  color: white;
  justify-content: center;
  border-radius: var(--radius-full);
}

.nav-mobile-cta:hover {
  background: var(--gradient);
  color: white;
  opacity: 0.9;
}

/* ─── HERO SECTION ───────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
  background: var(--gray-50);
}

/* Background orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,113,227,0.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(94,92,230,0.10) 0%, transparent 70%);
  bottom: -50px;
  left: -50px;
  animation-delay: -4s;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0,113,227,0.07) 0%, transparent 70%);
  top: 50%;
  left: 40%;
  animation-delay: -2s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-10px, 15px) scale(0.98); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content { max-width: 580px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  animation: fadeDown 0.6s var(--ease) 0.1s both;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #34C759;
  border-radius: 50%;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52,199,89,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(52,199,89,0); }
}

.hero-title {
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 20px;
  color: var(--gray-900);
  animation: fadeUp 0.7s var(--ease) 0.2s both;
}

.hero-title span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--gray-400);
  line-height: 1.75;
  margin-bottom: 40px;
  animation: fadeUp 0.7s var(--ease) 0.35s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.7s var(--ease) 0.5s both;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: fadeLeft 0.8s var(--ease) 0.3s both;
}

.hero-mockup {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.hero-card-float {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
  animation: floatY 6s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-16px); }
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-card-avatar {
  width: 44px;
  height: 44px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
}

.hero-card-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
}

.hero-card-info p {
  font-size: 12px;
  color: var(--gray-400);
}

.hero-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hero-metric {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.hero-metric-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.03em;
}

.hero-metric-value.blue { color: var(--blue); }
.hero-metric-value.purple { color: var(--purple); }
.hero-metric-value.green { color: #34C759; }
.hero-metric-value.orange { color: #FF9500; }

.hero-metric-label {
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 500;
  margin-top: 2px;
}

.hero-float-badge {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  animation: floatY 7s ease-in-out infinite;
}

.hero-float-badge-1 {
  top: -20px;
  right: -24px;
  animation-delay: -2s;
}

.hero-float-badge-2 {
  bottom: -10px;
  left: -24px;
  animation-delay: -4s;
}

.badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 500;
  animation: fadeUp 0.6s var(--ease) 0.8s both;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gray-300), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { height: 40px; opacity: 1; }
  50% { height: 60px; opacity: 0.5; }
}

/* ─── Hero Stats Bar ─────────────────────────────────── */
.hero-stats-bar {
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  padding: 28px 0;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.hero-stat-item {
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid var(--gray-100);
}

.hero-stat-item:last-child { border-right: none; }

.hero-stat-value {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--gray-900);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-value span { color: var(--blue); }

.hero-stat-label {
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 500;
}

/* ─── ABOUT SECTION ──────────────────────────────────── */
#about {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

#about::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(94,92,230,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content .section-tag { text-align: left; }
.about-content .section-title { text-align: left; }

.about-text {
  font-size: 16px;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 32px;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.about-mini-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}

.about-mini-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.about-mini-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--blue);
}

.about-mini-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.about-mini-card p {
  font-size: 12px;
  color: var(--gray-400);
  line-height: 1.5;
}

/* Stats Grid */
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.about-stat-card {
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  border: 1px solid var(--gray-100);
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.about-stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: inherit;
}

.about-stat-card:hover::before { opacity: 1; }

.about-stat-card:hover .stat-value,
.about-stat-card:hover .stat-label { color: var(--white); }

.stat-value {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--gray-900);
  line-height: 1;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  transition: color var(--transition);
}

.stat-value .stat-num { color: var(--blue); }
.about-stat-card:hover .stat-value .stat-num { color: rgba(255,255,255,0.9); }

.stat-suffix {
  font-size: 28px;
  font-weight: 700;
  color: var(--blue);
  transition: color var(--transition);
}

.about-stat-card:hover .stat-suffix { color: rgba(255,255,255,0.9); }

.stat-label {
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 500;
  position: relative;
  z-index: 1;
  transition: color var(--transition);
}

/* ─── SERVICES SECTION ───────────────────────────────── */
#services {
  background: var(--gray-50);
  position: relative;
  overflow: hidden;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  border: 1px solid var(--gray-100);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  cursor: default;
  transform-style: preserve-3d;
}

.service-card-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover .service-card-bg { opacity: 1; }

.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px) rotateX(2deg);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-5deg);
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  transition: color var(--transition);
}

.service-card p {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.7;
  position: relative;
  z-index: 1;
  transition: color var(--transition);
}

.service-card:hover h3 { color: var(--gray-900); }

.service-arrow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--transition);
  position: relative;
  z-index: 1;
}

.service-card:hover .service-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ─── REFERENCES SECTION ─────────────────────────────── */
#references {
  background: var(--white);
}

.ref-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.ref-filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  background: var(--gray-100);
  color: var(--gray-600);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.ref-filter-btn:hover,
.ref-filter-btn.active {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0,113,227,0.25);
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ref-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: all 0.4s var(--ease);
  cursor: pointer;
  transform-style: preserve-3d;
}

.ref-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px);
  border-color: transparent;
}

.ref-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background: var(--gradient-soft);
}

.ref-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.ref-card:hover .ref-card-img img {
  transform: scale(1.08);
}

.ref-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}

.ref-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.ref-card:hover .ref-card-overlay { opacity: 1; }

.ref-card-overlay-btn {
  background: var(--white);
  color: var(--gray-900);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}

.ref-card-overlay-btn:hover { background: var(--blue); color: white; }

.ref-card-body { padding: 24px; }

.ref-card-category {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--gradient-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  border: 1px solid rgba(0,113,227,0.12);
}

.ref-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  line-height: 1.3;
}

.ref-card-body p {
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.6;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(8px);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-inner {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow: auto;
  transform: scale(0.9);
  transition: transform 0.3s var(--ease-bounce);
}

.lightbox.open .lightbox-inner { transform: scale(1); }

.lightbox-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.lightbox-body { padding: 28px; }

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* ─── CONTACT SECTION ────────────────────────────────── */
#contact {
  background: var(--gray-50);
  position: relative;
  overflow: hidden;
}

#contact::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,113,227,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.contact-info h3 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.contact-info > p {
  font-size: 15px;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}

.contact-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
  border-color: rgba(0,113,227,0.15);
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}

.contact-item-content p:first-child {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 2px;
}

.contact-item-content p:last-child {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
}

.contact-social h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 12px;
}

.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-link {
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--gradient);
  color: var(--white);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,113,227,0.3);
}

/* Contact Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-md);
}

.contact-form-wrap h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--gray-900);
  transition: all var(--transition);
}

.form-control:focus {
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0,113,227,0.08);
}

.form-control::placeholder { color: var(--gray-300); }

textarea.form-control {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--gradient);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(0,113,227,0.3);
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,113,227,0.4);
}

.form-submit:active { transform: translateY(0); }

.form-msg {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  margin-top: 16px;
}

.form-msg.success {
  display: block;
  background: rgba(52,199,89,0.1);
  color: #1B8A3A;
  border: 1px solid rgba(52,199,89,0.2);
}

.form-msg.error {
  display: block;
  background: rgba(255,59,48,0.1);
  color: #CC1B16;
  border: 1px solid rgba(255,59,48,0.2);
}

/* ─── FOOTER ─────────────────────────────────────────── */
#footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-500);
  margin-bottom: 24px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social-link {
  width: 38px;
  height: 38px;
  background: var(--gray-800);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: all var(--transition);
}

.footer-social-link:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--gray-500);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 13px; color: var(--gray-600); }

.footer-bottom a { color: var(--gray-500); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--white); }

/* ─── Page Transition Overlay ────────────────────────── */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--gradient);
  z-index: 9998;
  transform: translateY(-100%);
  pointer-events: none;
}

/* ─── Back to Top ────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,113,227,0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 500;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,113,227,0.5);
}

/* ─── Keyframe Animations ────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-py: 80px; }

  .hero-grid { gap: 48px; }
  .about-grid { gap: 48px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .references-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --section-py: 64px; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }
  .hero-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .hero-stat-item { padding: 16px; }
  .hero-stat-item:nth-child(2) { border-right: none; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-cards { grid-template-columns: 1fr; }
  .about-stats-grid { grid-template-columns: repeat(2, 1fr); }

  .services-grid { grid-template-columns: 1fr; }
  .references-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .section-title { font-size: 28px; }
  .stat-value { font-size: 36px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn { padding: 12px 22px; font-size: 14px; }
  .hero-stats-grid { grid-template-columns: 1fr 1fr; }
  .about-stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 32px; }
}
