/* ===========================================================
   SERVICES HOME — v3.0.0 (FROM SCRATCH)
   New card design language:
   - Title overlays image (magazine/editorial)
   - Number index "01, 02, 03" top-left
   - Glass arrow chip top-right
   - Body below: tag chip + description + CTA row
   - Click to open side drawer
   =========================================================== */

.services-section--v2 {
  --srv-primary: #0066CC;
  --srv-primary-2: #0052A3;
  --srv-cyan: #0891b2;
  --srv-ink: #0a0f1e;
  --srv-ink-2: #1f2937;
  --srv-ink-3: #475569;
  --srv-muted: #64748b;
  --srv-muted-2: #94a3b8;
  --srv-line: rgba(15, 23, 42, 0.08);
  --srv-line-2: #e5e7eb;
  --srv-line-3: #eef2f7;
  --srv-paper: #f8fafc;
  --srv-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  position: relative;
  padding: 110px 0 100px !important;
  background:
    radial-gradient(900px 540px at 0% 0%, rgba(0, 102, 204, 0.05), transparent 60%),
    radial-gradient(800px 500px at 100% 100%, rgba(56, 189, 248, 0.04), transparent 60%),
    #ffffff !important;
  color: var(--srv-ink);
  overflow: hidden;
}
.services-section--v2 .container { max-width: 1360px; position: relative; }

/* =======================================================
   SECTION HEADER
   ======================================================= */
.services-section--v2 .srv-section-head { margin-bottom: 56px; }

.services-section--v2 .srv-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px;
  background: #ffffff;
  border: 1px solid var(--srv-line);
  border-radius: 999px;
  font-size: 12px; font-weight: 500;
  color: var(--srv-ink-3); letter-spacing: 0.02em;
  margin-bottom: 24px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.services-section--v2 .srv-eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--srv-primary);
  box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.5);
  animation: srvEyebrowPulse 2.2s ease-out infinite;
}
@keyframes srvEyebrowPulse {
  0%   { box-shadow: 0 0 0 0   rgba(0, 102, 204, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(0, 102, 204, 0); }
  100% { box-shadow: 0 0 0 0   rgba(0, 102, 204, 0); }
}

.services-section--v2 .srv-head-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px; align-items: end;
}
.services-section--v2 .srv-section-title {
  font-size: clamp(2rem, 3.6vw, 3.05rem) !important;
  font-weight: 800 !important; line-height: 1.1 !important;
  letter-spacing: -0.028em !important;
  color: var(--srv-ink) !important;
  margin: 0 !important; text-align: left !important;
}
.services-section--v2 .srv-section-title em {
  display: inline-block; font-style: normal;
  background: linear-gradient(135deg, var(--srv-primary) 0%, #0ea5e9 45%, var(--srv-cyan) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  background-size: 200% 100%;
  animation: srvTitleGrad 6s ease-in-out infinite;
}
@keyframes srvTitleGrad {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.services-section--v2 .srv-section-lede {
  font-size: 1.02rem; line-height: 1.7;
  color: var(--srv-muted);
  max-width: 460px;
  margin: 0 0 6px;
  letter-spacing: -0.005em; text-align: left;
}
@media (max-width: 900px) {
  .services-section--v2 { padding: 70px 0 60px !important; }
  .services-section--v2 .srv-section-head { margin-bottom: 36px; }
  .services-section--v2 .srv-head-row { grid-template-columns: 1fr; gap: 18px; }
}

/* =======================================================
   CARD — NEW DESIGN
   Layout:
     ┌─────────────────────────────┐
     │ ┌─────────────────────────┐ │
     │ │ 01           [↗ glass] │ │
     │ │                         │ │
     │ │      IMAGE              │ │
     │ │                         │ │
     │ │ TITLE BIG (on image)    │ │
     │ └─────────────────────────┘ │
     │  [● Tag]                    │
     │                             │
     │  Description lorem ipsum    │
     │  dolor sit amet...          │
     │                             │
     │  ─────────────────          │
     │  Hızlı Bilgi Al  →          │
     └─────────────────────────────┘
   ======================================================= */
.services-section--v2 .srv-grid { row-gap: 28px; }

.services-section--v2 .srv-card {
  /* reset button defaults */
  appearance: none; -webkit-appearance: none;
  font: inherit; text-align: left; cursor: pointer; width: 100%;
  color: inherit;
  border: none;
  background: transparent;
  padding: 0;

  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  isolation: isolate;
  transition: transform 0.5s var(--srv-ease);
}
.services-section--v2 .srv-card:hover {
  transform: translateY(-6px);
}
.services-section--v2 .srv-card:focus-visible {
  outline: 2px solid var(--srv-primary);
  outline-offset: 4px;
  border-radius: 20px;
}

/* ----- Visual frame ----- */
.services-section--v2 .srv-card__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  background: #0a0f1e;
  box-shadow:
    0 1px 2px rgba(10, 15, 30, 0.05),
    0 16px 40px -18px rgba(10, 15, 30, 0.4);
  transition: box-shadow 0.5s var(--srv-ease);
}
.services-section--v2 .srv-card:hover .srv-card__visual {
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.05),
    0 30px 60px -20px rgba(0, 102, 204, 0.38);
}

.services-section--v2 .srv-card__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 1.1s var(--srv-ease),
              filter 0.6s ease;
  will-change: transform;
}
.services-section--v2 .srv-card:hover .srv-card__img {
  transform: scale(1.06);
}

/* Layered shade for title legibility */
.services-section--v2 .srv-card__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 15, 30, 0.55) 0%, rgba(10, 15, 30, 0.0) 28%, rgba(10, 15, 30, 0.0) 45%, rgba(10, 15, 30, 0.85) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Number index "01" */
.services-section--v2 .srv-card__num {
  position: absolute;
  top: 18px; left: 20px;
  z-index: 3;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.85);
  font-feature-settings: "tnum";
}
.services-section--v2 .srv-card__num::before {
  content: "";
  display: inline-block;
  width: 18px; height: 1px;
  background: rgba(255, 255, 255, 0.6);
  vertical-align: middle;
  margin-right: 8px;
  transform: translateY(-1px);
}

/* Open icon — glass square */
.services-section--v2 .srv-card__open {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 3;
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  transition: transform 0.5s var(--srv-ease),
              background 0.4s ease,
              border-radius 0.5s var(--srv-ease),
              border-color 0.4s ease;
}
.services-section--v2 .srv-card__open i.ti {
  font-size: 17px;
  transition: transform 0.5s var(--srv-ease);
}
.services-section--v2 .srv-card:hover .srv-card__open {
  background: #ffffff;
  border-color: #ffffff;
  border-radius: 50%;
  transform: scale(1.08) rotate(0deg);
  color: var(--srv-primary);
}
.services-section--v2 .srv-card:hover .srv-card__open i.ti {
  transform: translate(2px, -2px);
}

/* Title overlaid on bottom of image */
.services-section--v2 .srv-card__title {
  position: absolute;
  left: 22px; right: 22px;
  bottom: 22px;
  z-index: 3;
  margin: 0;
  font-size: clamp(1.25rem, 1.6vw, 1.45rem) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.025em !important;
  color: #ffffff !important;
  text-shadow: 0 2px 16px rgba(10, 15, 30, 0.4);
}

/* ----- Body below image ----- */
.services-section--v2 .srv-card__body {
  position: relative;
  padding: 18px 6px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

/* Tag chip — new clean design */
.services-section--v2 .srv-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 5px 11px 5px 9px;
  background: #ffffff;
  border: 1px solid var(--srv-line);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--srv-ink-2);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.services-section--v2 .srv-card:hover .srv-card__tag {
  border-color: rgba(0, 102, 204, 0.25);
}
.services-section--v2 .srv-card__tag-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--tag-color, var(--srv-primary));
  box-shadow: 0 0 0 3px var(--tag-ring, rgba(0, 102, 204, 0.12));
  flex-shrink: 0;
}
.services-section--v2 .srv-card__tag.tag-blue    { --tag-color: #0066CC; --tag-ring: rgba(0, 102, 204, 0.14); }
.services-section--v2 .srv-card__tag.tag-green   { --tag-color: #059669; --tag-ring: rgba(5, 150, 105, 0.14); }
.services-section--v2 .srv-card__tag.tag-orange  { --tag-color: #ea580c; --tag-ring: rgba(234, 88, 12, 0.14); }
.services-section--v2 .srv-card__tag.tag-red     { --tag-color: #dc2626; --tag-ring: rgba(220, 38, 38, 0.14); }
.services-section--v2 .srv-card__tag.tag-purple  { --tag-color: #7c3aed; --tag-ring: rgba(124, 58, 237, 0.14); }
.services-section--v2 .srv-card__tag.tag-cyan    { --tag-color: #0891b2; --tag-ring: rgba(8, 145, 178, 0.14); }

/* Description */
.services-section--v2 .srv-card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--srv-muted);
  margin: 0;
  letter-spacing: -0.005em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CTA row */
.services-section--v2 .srv-card__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--srv-line-3);
  transition: border-color 0.3s ease;
}
.services-section--v2 .srv-card:hover .srv-card__cta {
  border-top-color: rgba(0, 102, 204, 0.22);
}

.services-section--v2 .srv-card__cta-label {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--srv-ink);
  transition: color 0.3s ease;
}
.services-section--v2 .srv-card:hover .srv-card__cta-label {
  color: var(--srv-primary);
}

.services-section--v2 .srv-card__cta-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--srv-paper);
  color: var(--srv-ink);
  transition: background 0.35s ease,
              color 0.35s ease,
              transform 0.4s var(--srv-ease),
              box-shadow 0.35s ease;
}
.services-section--v2 .srv-card__cta-icon i.ti {
  font-size: 16px;
  transition: transform 0.4s var(--srv-ease);
}
.services-section--v2 .srv-card:hover .srv-card__cta-icon {
  background: var(--srv-primary);
  color: #ffffff;
  transform: scale(1.06);
  box-shadow: 0 8px 18px -4px rgba(0, 102, 204, 0.5);
}
.services-section--v2 .srv-card:hover .srv-card__cta-icon i.ti {
  transform: translateX(2px);
}

/* Responsive */
@media (max-width: 991px) {
  .services-section--v2 .srv-card__visual { aspect-ratio: 4 / 4.5; }
}
@media (max-width: 575px) {
  .services-section--v2 .srv-card__visual { aspect-ratio: 4 / 4; }
  .services-section--v2 .srv-card__title { font-size: 1.2rem !important; }
}

/* =======================================================
   DRAWER (right-side)
   ======================================================= */
.srv-drawer {
  position: fixed; inset: 0;
  z-index: 9999;
  pointer-events: none;
  visibility: hidden;
}
.srv-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}
.srv-drawer__overlay {
  position: absolute; inset: 0;
  background: rgba(10, 15, 30, 0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.45s var(--srv-ease);
}
.srv-drawer.is-open .srv-drawer__overlay { opacity: 1; }

.srv-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(520px, 100vw);
  background: #ffffff;
  display: flex; flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.55s var(--srv-ease);
  box-shadow: -32px 0 60px -20px rgba(10, 15, 30, 0.35);
  --srv-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
.srv-drawer.is-open .srv-drawer__panel { transform: translateX(0); }

.srv-drawer__close {
  position: absolute; top: 18px; right: 18px;
  width: 40px; height: 40px; border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  display: grid; place-items: center;
  cursor: pointer; color: var(--srv-ink);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
  z-index: 4;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.srv-drawer__close i.ti { font-size: 20px; }
.srv-drawer__close:hover {
  background: var(--srv-ink); color: #ffffff;
  transform: rotate(90deg);
}

.srv-drawer__hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #eef4fb;
}
.srv-drawer__img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.srv-drawer__hero-fade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 15, 30, 0.75) 100%);
  pointer-events: none;
}
.srv-drawer__hero-meta {
  position: absolute; left: 24px; right: 24px; bottom: 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; z-index: 2;
}
.srv-drawer__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 10px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 10px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.005em;
  color: var(--srv-ink);
  box-shadow: 0 8px 22px -6px rgba(10, 15, 30, 0.32);
  line-height: 1;
}
.srv-drawer__badge::before {
  content: "";
  width: 4px; height: 14px; border-radius: 2px;
  background: var(--badge-color, var(--srv-primary));
  box-shadow: 0 0 12px var(--badge-glow, rgba(0, 102, 204, 0.5));
}
.srv-drawer__badge.badge-blue    { --badge-color: #0066CC; --badge-glow: rgba(0, 102, 204, 0.5); }
.srv-drawer__badge.badge-green   { --badge-color: #059669; --badge-glow: rgba(5, 150, 105, 0.5); }
.srv-drawer__badge.badge-orange  { --badge-color: #ea580c; --badge-glow: rgba(234, 88, 12, 0.5); }
.srv-drawer__badge.badge-red     { --badge-color: #dc2626; --badge-glow: rgba(220, 38, 38, 0.5); }
.srv-drawer__badge.badge-purple  { --badge-color: #7c3aed; --badge-glow: rgba(124, 58, 237, 0.5); }
.srv-drawer__badge.badge-cyan    { --badge-color: #0891b2; --badge-glow: rgba(8, 145, 178, 0.5); }

.srv-drawer__eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: #ffffff;
  margin-left: auto;
}
.srv-drawer__eyebrow i.ti { font-size: 13px; }

.srv-drawer__body {
  padding: 28px 28px 32px;
  display: flex; flex-direction: column;
  gap: 18px; flex: 1;
}
.srv-drawer__title {
  font-size: 26px; font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.2;
  color: var(--srv-ink); margin: 0;
}
.srv-drawer__desc {
  font-size: 14.5px; line-height: 1.7;
  color: var(--srv-ink-3); margin: 0;
  letter-spacing: -0.005em;
}

.srv-drawer__benefits {
  list-style: none; padding: 16px; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  background: var(--srv-paper);
  border-radius: 14px;
}
.srv-drawer__benefits li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500;
  color: var(--srv-ink-2);
  letter-spacing: -0.005em;
}
.srv-drawer__benefits li i.ti {
  font-size: 18px; color: var(--srv-primary);
  flex-shrink: 0;
}

.srv-drawer__cta-row {
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: 10px; margin-top: 4px;
}
.srv-drawer__cta {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 16px;
  font-size: 13.5px; font-weight: 700;
  letter-spacing: -0.005em;
  border-radius: 12px;
  text-decoration: none !important;
  transition: transform 0.3s var(--srv-ease),
              box-shadow 0.3s var(--srv-ease),
              background 0.3s ease, color 0.3s ease;
  white-space: nowrap; line-height: 1.2;
  border: 1px solid transparent;
}
.srv-drawer__cta i.ti {
  font-size: 16px;
  transition: transform 0.3s var(--srv-ease);
}
.srv-drawer__cta--primary {
  background: var(--srv-ink); color: #ffffff;
  box-shadow:
    0 4px 12px -2px rgba(10, 15, 30, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.srv-drawer__cta--primary:hover {
  background: var(--srv-primary); color: #ffffff;
  transform: translateY(-2px);
  box-shadow:
    0 10px 22px -4px rgba(0, 102, 204, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.srv-drawer__cta--primary:hover i.ti { transform: translate(2px, -2px); }

.srv-drawer__cta--ghost {
  background: #ffffff; color: var(--srv-ink);
  border-color: var(--srv-line-2);
}
.srv-drawer__cta--ghost:hover {
  background: var(--srv-primary); border-color: var(--srv-primary); color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -4px rgba(0, 102, 204, 0.32);
}
.srv-drawer__cta--ghost:hover i.ti { transform: scale(1.08); }

.srv-drawer__foot {
  display: flex; align-items: center; gap: 8px;
  padding-top: 14px; margin-top: 4px;
  border-top: 1px solid var(--srv-line-3);
  font-size: 13px; color: var(--srv-muted);
}
.srv-drawer__foot i.ti { font-size: 16px; color: var(--srv-primary); }
.srv-drawer__foot a { color: var(--srv-ink); text-decoration: none; }
.srv-drawer__foot a:hover { color: var(--srv-primary); }

@media (max-width: 540px) {
  .srv-drawer__panel { width: 100vw; }
  .srv-drawer__body { padding: 22px 20px 26px; }
  .srv-drawer__title { font-size: 22px; }
  .srv-drawer__benefits { grid-template-columns: 1fr; }
  .srv-drawer__cta-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .services-section--v2 *,
  .services-section--v2 *::before,
  .services-section--v2 *::after,
  .srv-drawer, .srv-drawer * {
    transition: none !important;
    animation: none !important;
  }
}

body.srv-drawer-open { overflow: hidden; }
