/* ==========================================================================
   MT Bilişim — Corporate Portfolio & Digital Studio Stylesheet
   ========================================================================== */

:root {
  --bg: #080a0e;
  --bg-elevated: #0f131a;
  --bg-card: #121720;
  --bg-card-hover: #171e2a;
  --surface-subtle: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f1ec;
  --text-muted: #9ca4b4;
  --text-soft: #6e7788;
  --accent: #d8ad5a;
  --accent-bright: #ebc87d;
  --accent-ink: #110d05;
  --accent-soft: rgba(216, 173, 90, 0.13);
  --accent-border: rgba(216, 173, 90, 0.34);
  --success: #34d399;
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.38);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --header-h: 76px;
}

[data-theme="light"] {
  --bg: #f6f4ef;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #fcfbf8;
  --surface-subtle: rgba(15, 23, 42, 0.04);
  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.18);
  --text: #11151d;
  --text-muted: #4b5566;
  --text-soft: #707a8c;
  --accent: #b38126;
  --accent-bright: #986b18;
  --accent-ink: #ffffff;
  --accent-soft: rgba(179, 129, 38, 0.11);
  --accent-border: rgba(179, 129, 38, 0.32);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
  --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.08);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  border-radius: 8px;
}

.container {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  color: var(--text);
  display: grid;
  place-items: center;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
}

.nav-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  color: var(--text);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

[data-theme="dark"] .icon-moon,
[data-theme="light"] .icon-sun {
  display: none;
}

.menu-toggle {
  display: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 11px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 0.95rem;
}

.btn-full {
  width: 100%;
  padding: 13px 20px;
  font-size: 0.92rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 26px rgba(216, 173, 90, 0.22);
}

.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface-subtle);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-border);
  transform: translateY(-1px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  position: relative;
  padding: 72px 0 84px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -160px auto auto 50%;
  transform: translateX(-50%);
  width: min(1100px, 100vw);
  height: 560px;
  background: radial-gradient(ellipse at 50% 35%, rgba(216, 173, 90, 0.14), rgba(59, 130, 246, 0.06) 45%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 54px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  margin-bottom: 24px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
}

.hero-title {
  margin: 0 0 22px;
  font-size: clamp(2.6rem, 4.9vw, 4.3rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero-title em,
.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0;
}

.hero-lead {
  margin: 0 0 32px;
  font-size: 1.06rem;
  color: var(--text-muted);
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 42px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Browser Frame Mockup */
.hero-showcase {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.browser-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
}

.browser-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}

.browser-dots span:nth-child(1) { background: #ef4444; opacity: 0.75; }
.browser-dots span:nth-child(2) { background: #f59e0b; opacity: 0.75; }
.browser-dots span:nth-child(3) { background: #10b981; opacity: 0.75; }

.browser-url {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--text-muted);
  background: var(--surface-subtle);
  padding: 5px 12px;
  border-radius: 7px;
  border: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-open {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  transition: background-color 0.2s ease;
}

.browser-open:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.browser-viewport {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0c0e12;
}

.browser-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: opacity 0.25s ease, transform 0.5s ease;
}

.hero-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.switcher-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.switcher-pill:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.switcher-pill.is-active {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--text);
}

.switcher-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
}

/* ==========================================================================
   Sector Strip
   ========================================================================== */

.sector-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 18px 0;
}

.sector-strip-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.strip-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  flex-shrink: 0;
}

.strip-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Shared Section Typography
   ========================================================================== */

.section {
  padding: 96px 0;
}

.section-head {
  margin-bottom: 44px;
}

.section-head-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  align-items: end;
  gap: 32px;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.section-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ==========================================================================
   Portfolio Filters & Cards
   ========================================================================== */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.filter-btn.is-active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.filter-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  opacity: 0.8;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
}

.project-thumb-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #0c0f14;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  text-align: left;
}

.project-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-thumb-btn img {
  transform: scale(1.045);
}

.thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 14, 0.08) 40%, rgba(8, 10, 14, 0.78) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 14px 16px;
  opacity: 0.92;
}

.thumb-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #f8f6f2;
  background: rgba(8, 10, 14, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 5px 10px;
  border-radius: 999px;
}

.thumb-zoom-hint {
  font-size: 0.76rem;
  font-weight: 600;
  color: #f8f6f2;
  background: rgba(216, 173, 90, 0.92);
  color: #110d05;
  padding: 5px 11px;
  border-radius: 999px;
  transform: translateY(4px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.project-card:hover .thumb-zoom-hint,
.project-thumb-btn:focus-visible .thumb-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

.project-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.project-sector {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.project-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-soft);
}

.project-title {
  margin: 0;
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.project-summary {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.project-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.chip {
  font-size: 0.73rem;
  color: var(--text-muted);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  padding: 4px 9px;
  border-radius: 7px;
}

.project-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Mobile Showcase Section
   ========================================================================== */

.mobile-showcase-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.phones-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.phone-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  text-align: center;
}

.phone-frame {
  width: 100%;
  max-width: 250px;
  padding: 10px;
  border-radius: 30px;
  background: linear-gradient(145deg, #252b37, #10131a);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.phone-card:hover .phone-frame {
  transform: translateY(-6px);
  border-color: var(--accent-border);
}

.phone-screen {
  border-radius: 21px;
  overflow: hidden;
  aspect-ratio: 9 / 17.5;
  background: #0a0c10;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.phone-label strong {
  font-size: 0.94rem;
  color: var(--text);
}

.phone-label span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr);
  gap: 52px;
  align-items: start;
}

.about-lead {
  font-size: 1.15rem;
  color: var(--text);
  margin: 20px 0 16px;
}

.about-body {
  color: var(--text-muted);
  margin: 0 0 16px;
  font-size: 0.98rem;
}

.about-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.about-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
}

.badge-mono {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent);
}

.studio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.studio-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.mono-tag.accent {
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}

.studio-card-title {
  margin: 0 0 24px;
  font-size: 1.45rem;
  line-height: 1.25;
}

.standards-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.standards-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
}

.std-icon {
  color: var(--accent);
  font-size: 0.75rem;
  margin-top: 4px;
}

.standards-list strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.96rem;
}

.standards-list p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Mission, Vision & Values
   ========================================================================== */

.mv-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.mv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-bottom: 28px;
}

.mv-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.mv-card-accent {
  border-color: var(--accent-border);
  background: linear-gradient(155deg, color-mix(in srgb, var(--accent) 8%, var(--bg-card)), var(--bg-card) 60%);
}

.mv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.mv-index {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.mv-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.mv-icon svg {
  width: 20px;
  height: 20px;
}

.mv-card h3 {
  margin: 0 0 14px;
  font-size: 1.5rem;
  letter-spacing: -0.015em;
}

.mv-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.values-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.value-item {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.value-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--accent);
}

.value-item h4 {
  margin: 8px 0 6px;
  font-size: 1rem;
}

.value-item p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Services & Process
   ========================================================================== */

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
}

.service-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
}

.service-card h3 {
  margin: 0;
  font-size: 1.18rem;
}

.service-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
}

.service-tags {
  list-style: none;
  margin: 8px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tags li {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--surface-subtle);
}

.process-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.process-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  position: relative;
}

.step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  margin-bottom: 16px;
}

.process-step h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.process-step p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: stretch;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.contact-lead {
  color: var(--text-muted);
  margin: 18px 0 0;
  font-size: 1rem;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.contact-card-wa {
  border-color: rgba(37, 211, 102, 0.34);
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.08), var(--bg-card) 65%);
}

a.contact-card:hover {
  border-color: var(--accent-border);
  transform: translateX(4px);
}

a.contact-card-wa:hover {
  border-color: rgba(37, 211, 102, 0.65);
}

.contact-card-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.contact-card-wa .contact-card-label {
  color: #25d366;
}

.contact-card strong {
  font-size: 1.05rem;
}

.contact-card-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.contact-form {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.field-grow {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.field-grow textarea {
  flex: 1;
  min-height: 118px;
}

.btn-whatsapp {
  background: #25d366;
  color: #062111;
  border-color: transparent;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.24);
}

.btn-whatsapp:hover {
  background: #2fe072;
  transform: translateY(-1px);
}

/* Floating WhatsApp Button */
.whatsapp-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 999px;
  background: #25d366;
  color: #062111;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.36);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.whatsapp-fab svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.whatsapp-fab:hover {
  background: #2fe072;
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(37, 211, 102, 0.48);
}

.form-head {
  margin-bottom: 24px;
}

.form-head h3 {
  margin: 0 0 6px;
  font-size: 1.38rem;
}

.form-head p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.field label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.form-feedback {
  min-height: 22px;
  font-size: 0.86rem;
  margin-bottom: 14px;
  color: var(--accent);
}

.form-feedback.is-error {
  color: #f87171;
}

.form-feedback.is-success {
  color: var(--success);
}

.form-actions {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--border);
}

.footer-desc {
  margin: 16px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 34ch;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--text-soft);
}

.footer-bottom p {
  margin: 0;
}

/* ==========================================================================
   Native Modal Dialogs (Scroll-contained & Light-dismiss compliant)
   ========================================================================== */

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  background: rgba(5, 7, 11, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.project-dialog {
  width: min(1160px, calc(100vw - 32px));
  max-height: calc(100dvh - 36px);
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  overflow: auto;
}

.dialog-shell {
  display: flex;
  flex-direction: column;
}

.dialog-header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.dialog-sector {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.dialog-title-group h2 {
  margin: 2px 0 0;
  font-size: 1.32rem;
}

.dialog-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dialog-body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
  gap: 28px;
  padding: 24px;
}

.gallery-stage {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gallery-stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gallery-caption {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.gallery-counter {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
}

.gallery-frame {
  position: relative;
}

.gallery-viewport {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #090b10;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 520px;
  min-height: 320px;
}

.gallery-viewport img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-viewport.is-mobile-shot img {
  max-width: 320px;
  margin: 18px auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(8, 10, 14, 0.82);
  backdrop-filter: blur(8px);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.gallery-prev {
  left: 14px;
}

.gallery-next {
  right: 14px;
}

.gallery-nav:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.gallery-nav svg {
  width: 18px;
  height: 18px;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
}

.thumb-item {
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #0c0e12;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.thumb-item:hover {
  border-color: var(--border-strong);
}

.thumb-item.is-active {
  border-color: var(--accent);
}

.thumb-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.thumb-item span {
  padding: 5px 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--bg-elevated);
}

.dialog-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-block h3 {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.detail-block p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-list li {
  font-size: 0.88rem;
  color: var(--text);
  padding-left: 16px;
  position: relative;
}

.feature-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.dialog-cta-box {
  margin-top: auto;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dialog-cta-box p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text);
}

/* Mobile Nav Dialog */
.mobile-nav-dialog {
  width: min(360px, calc(100vw - 24px));
  margin: 16px 12px auto auto;
  padding: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}

.mobile-nav-inner {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-links a {
  padding: 12px 10px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--text);
}

.mobile-nav-links a:hover {
  background: var(--surface-subtle);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1080px) {
  .hero-grid,
  .section-head-split,
  .about-grid,
  .contact-grid,
  .dialog-body {
    grid-template-columns: 1fr;
  }

  .portfolio-grid,
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phones-row,
  .values-row,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1240px, calc(100% - 28px));
  }

  .section {
    padding: 68px 0;
  }

  .portfolio-grid,
  .services-grid,
  .mv-grid,
  .values-row,
  .process-grid,
  .phones-row,
  .about-badges,
  .form-row,
  .form-actions,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap,
  .mv-card,
  .studio-card {
    padding: 24px;
  }

  .dialog-header {
    padding: 14px 16px;
  }

  .dialog-body {
    padding: 16px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==========================================================================
   Videos & Reels Showcase + Custom Pages Reader
   ========================================================================== */

.nav-custom-pages {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}

.nav-custom-pages:empty {
  display: none;
}

.footer-custom-pages {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-footer-link {
  color: var(--accent);
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.admin-footer-link:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 26px;
}

.video-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.video-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.video-media {
  position: relative;
  background: #06080c;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-media.is-vertical {
  aspect-ratio: 9 / 14;
  max-height: 480px;
}

.video-media.is-horizontal {
  aspect-ratio: 16 / 9;
}

.video-media video,
.video-media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  display: block;
}

.video-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.video-cat {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.video-dur {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-soft);
}

.video-body h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.3;
}

.video-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Custom Page Reader Dialog */
.page-dialog {
  width: min(860px, calc(100vw - 32px));
  max-height: calc(100dvh - 36px);
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  overflow: auto;
}

.custom-page-body {
  padding: 28px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.custom-page-subtitle {
  margin: 0;
  font-size: 1.08rem;
  color: var(--text-muted);
}

.custom-page-cover {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.custom-page-cover img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: top center;
}

.custom-page-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.custom-page-content h2,
.custom-page-content h3 {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 1.28rem;
  letter-spacing: -0.015em;
}

.custom-page-content p {
  margin: 0;
}

.custom-page-content ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text);
}

.custom-page-cta {
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  .custom-page-body {
    padding: 20px;
  }
}


/* ==========================================================================
   SEO FAQ Accordion (<details> / <summary>)
   ========================================================================== */

.faq-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--accent-border);
}

.faq-item summary {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.7;
}
