/* ==============================================================================
   AR DEVELOPER - Premium Minimalist Stylesheet (LIGHT THEME ONLY)
   Brand: AR Developer (ARaza)
   Tagline: IDEAS / CODE / REALITY
   Design Principles: Clean, Minimal, Typographic, Bright, Generous Whitespace, Fast
   Palette:
     Background: #FFFFFF
     Secondary background: #F8F9FA
     Primary text: #111111
     Secondary text: #555555
     Borders: #E8E8EA
     Accent: #E53935 (Restrained AR Developer Red)
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Syne:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Canonical Design System Variables */
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-secondary: #f8f9fa;
  --color-text: #111111;
  --color-text-secondary: #555555;
  --color-border: #e8e8ea;
  --color-accent: #e53935;
  --color-accent-hover: #d32f2f;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;

  /* Aliases & Spatial Constants */
  --bg-primary: var(--color-bg);
  --bg-secondary: var(--color-surface-secondary);
  --bg-tertiary: #f0f0f2;
  --bg-surface: var(--color-surface);
  --border-subtle: var(--color-border);
  --border-medium: #d4d4d8;
  --border-strong: #a1a1aa;

  --text-primary: var(--color-text);
  --text-secondary: var(--color-text-secondary);
  --text-muted: #888888;
  --text-dim: #a1a1aa;

  --accent-red: var(--color-accent);
  --accent-red-hover: var(--color-accent-hover);
  --accent-red-subtle: rgba(229, 57, 53, 0.08);

  --font-display: 'Syne', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --max-w-content: 1200px;
  --header-height: 70px;

  --btn-height: 42px;
  --input-height: 42px;

  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow-elevated: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-modal: 0 16px 40px rgba(0, 0, 0, 0.1);
}

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

html {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100vw;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

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

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

/* ==============================================================================
   Layout & Container System
   ============================================================================== */
.container {
  width: 100%;
  max-width: var(--max-w-content);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==============================================================================
   Typography Hierarchy
   ============================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  text-wrap: balance;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.68;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-red);
  margin-bottom: 0.65rem;
  display: inline-block;
  font-weight: 600;
}

/* ==============================================================================
   Site Header & Navigation
   ============================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w-content);
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  white-space: nowrap;
}

.brand-logo-img {
  height: 28px;
  width: auto;
  aspect-ratio: 320 / 200;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.brand-link:hover .brand-logo-img {
  opacity: 0.9;
}

.brand-logo-img.inverted {
  filter: brightness(0) invert(1);
}

.brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-red);
  display: inline-block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-red);
  transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* User Account Menu in Header */
.user-menu {
  position: relative;
}

.user-avatar-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}

.user-avatar-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--border-medium);
}

.user-avatar-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.user-avatar-placeholder {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-red-subtle);
  color: var(--accent-red);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  padding: 0.5rem;
  display: none;
  z-index: 120;
}

.user-dropdown.show {
  display: block;
}

.dropdown-user-info {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.35rem;
}

.dropdown-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-email {
  font-size: 0.75rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.dropdown-item:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Mobile Nav Toggle Button */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.45rem;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  transition: background 0.15s, border-color 0.15s;
}

.mobile-nav-toggle:hover {
  background: var(--bg-secondary);
}

.mobile-nav-actions {
  display: none;
}

/* ==============================================================================
   Buttons & Links
   ============================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
  border: 1px solid transparent;
  height: var(--btn-height);
  box-sizing: border-box;
}

.btn-primary {
  background-color: #111111;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #000000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-secondary {
  background-color: #ffffff;
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--border-medium);
}

.btn-accent {
  background-color: var(--accent-red);
  color: #ffffff;
}

.btn-accent:hover {
  background-color: var(--accent-red-hover);
  box-shadow: 0 2px 8px rgba(229, 57, 53, 0.18);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--border-medium);
  background-color: var(--bg-secondary);
}

.btn-sm {
  height: 36px;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
}

/* ==============================================================================
   Hero Section
   ============================================================================== */
.hero-section {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  position: relative;
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 4vw, 3.75rem);
  align-items: center;
}

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

.hero-brand-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1.15rem;
}

.brand-accent-line {
  display: inline-block;
  width: 14px;
  height: 2px;
  background-color: var(--accent-red);
  border-radius: 2px;
}

.hero-title {
  font-size: clamp(2.15rem, 4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: #0a0a0c;
  text-wrap: balance;
}

.hero-desc {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.68;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Hero Micro Details & Slider Navigation Controls (hidden when hero showcase stage is an image placeholder) */
.hero-slider-meta {
  display: none !important;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.hero-counter {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  min-width: 54px;
}

.counter-curr {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.counter-sep {
  color: var(--text-dim);
  font-size: 0.82rem;
}

.counter-total {
  color: var(--text-muted);
}

.hero-meta-divider {
  width: 1px;
  height: 22px;
  background-color: var(--border-subtle);
}

.hero-project-kicker {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.kicker-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 600;
  font-family: var(--font-mono);
}

.kicker-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-ctrl-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.hero-ctrl-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.hero-ctrl-btn:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 2px;
}

/* Hero Auth Card */
.hero-auth-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
  position: relative;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.15s;
}

.auth-tab.active {
  color: var(--text-primary);
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-red);
}

.google-auth-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #ffffff;
  color: #111111;
  border: 1px solid var(--border-subtle);
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.google-auth-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--border-medium);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.25rem 0;
  color: var(--text-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-subtle);
}

.auth-divider span {
  padding: 0 0.75rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  min-height: var(--input-height);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  box-sizing: border-box;
}

.form-input:focus {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.05);
}

.auth-alert {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  display: none;
}

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

.auth-alert.success {
  display: block;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

/* ==============================================================================
   Hero Showcase / Image Placeholder
   ============================================================================== */
.hero-showcase-wrapper {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

/* Hero Media / GIF Animation Layout */
.hero-media-wrapper,
.hero-showcase-wrapper {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

.hero-gif-container,
.hero-placeholder-card {
  position: relative;
  width: 100%;
  background: #ffffff;
  border-radius: var(--radius-lg, 16px);
  border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
  box-shadow: 0 16px 36px -12px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-gif-img,
.hero-placeholder-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.hero-showcase-stage {
  position: relative;
  width: 100%;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0.5rem;
  user-select: none;
}

/* Central Main Project Card */
.hero-main-card {
  position: relative;
  width: 90%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 14px 30px -10px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  z-index: 3;
}

.hero-card-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f1f5f9;
  overflow: hidden;
}

.hero-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-card-img.incoming {
  display: none;
}

/* Static Neutral Placeholder */
.hero-skeleton {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #f1f5f9;
  pointer-events: none;
}

.hero-skeleton.hidden {
  display: none;
}

/* Main Card Caption Bar */
.hero-main-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  gap: 0.75rem;
}

.hero-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-sans);
}

.meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-red);
  display: inline-block;
}

.hero-main-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.hero-main-cta:hover {
  color: var(--text-primary);
}

/* Secondary Satellite Preview Cards */
.hero-satellite-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 0.45rem 0.65rem 0.45rem 0.45rem;
  box-shadow: 0 8px 20px -6px rgba(15, 23, 42, 0.07);
  cursor: pointer;
  user-select: none;
  max-width: 210px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hero-satellite-card:hover {
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 10px 24px -6px rgba(15, 23, 42, 0.1);
}

.hero-satellite-card:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 2px;
}

.satellite-top {
  top: 6px;
  right: -8px;
  z-index: 4;
}

.satellite-bottom {
  bottom: 12px;
  left: -12px;
  z-index: 4;
}

.satellite-thumb-wrap {
  width: 44px;
  height: 34px;
  border-radius: 6px;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
}

.satellite-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.satellite-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.satellite-cat {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  font-weight: 600;
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.satellite-title {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 125px;
}

/* Service Scene Illustrations (Static & Tailored per Service Domain) */
.service-scene-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: #f8fafc;
  margin-bottom: 1.25rem;
  transition: none !important;
  animation: none !important;
  transform: none !important;
  pointer-events: none;
}

.service-card:hover .service-scene-img {
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

/* About Section Scene Illustration */
.about-hero-illustration {
  width: 100%;
  max-width: 580px;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  background: #f8fafc;
  display: block;
}

/* Hero Showcase Responsive & Reduced Motion Rules */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }
  
  .hero-content {
    max-width: 100%;
  }

  .hero-showcase-wrapper {
    max-width: 520px;
  }

  .hero-showcase-stage {
    min-height: 400px;
    padding: 1rem 0;
  }

  .satellite-top {
    right: 4px;
    top: 4px;
  }

  .satellite-bottom {
    left: 4px;
    bottom: 4px;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 2.5rem 0 2rem;
  }

  .hero-title {
    font-size: 2.1rem;
    line-height: 1.15;
  }

  .hero-showcase-stage {
    min-height: auto;
    padding: 0;
    gap: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-main-card {
    width: 100%;
    max-width: 100%;
  }

  .hero-satellite-card {
    position: static;
    max-width: 100%;
    width: 100%;
    transform: none !important;
    box-sizing: border-box;
  }

  .hero-slider-meta {
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-card-img {
    transition: opacity 0.3s ease !important;
    transform: none !important;
  }
  .hero-card-img.incoming {
    transform: none !important;
  }
  .hero-card-img.incoming.fade-in {
    transform: none !important;
  }
  .hero-card-img.current.fade-out {
    transform: none !important;
  }
  .hero-main-card,
  .hero-satellite-card {
    transform: none !important;
    transition: none !important;
  }
  .hero-skeleton {
    animation: none !important;
  }
}

/* ==============================================================================
   Hero Project Slider
   ============================================================================== */
.slider-section {
  padding: 2rem 0 5rem;
}

.slider-container {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.slider-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  opacity: 0.35;
  transition: opacity 0.4s ease;
  background: #ffffff;
}

.slide.active {
  opacity: 1;
}

.slide-media-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-secondary);
}

.slide-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  padding: clamp(2rem, 4vw, 3.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: 0.45rem;
  font-weight: 600;
}

.slide-title {
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.slide-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
}

.slide-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.62;
  margin-bottom: 1.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Slider Controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.slider-btn:hover {
  background: #ffffff;
  border-color: var(--border-medium);
  transform: translateY(-50%) scale(1.04);
}

.slider-prev {
  left: 1rem;
}

.slider-next {
  right: 1rem;
}

.slider-dots {
  position: absolute;
  bottom: 1.25rem;
  right: 2.5rem;
  display: flex;
  gap: 0.45rem;
  z-index: 10;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.slider-dot.active {
  background: var(--accent-red);
  width: 22px;
  border-radius: 4px;
}

/* ==============================================================================
   Services Section
   ============================================================================== */
.services-section {
  padding: clamp(3.5rem, 6vw, 6rem) 0;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-primary);
}

.section-head {
  margin-bottom: 3rem;
}

.section-title {
  margin-bottom: 0.65rem;
  color: var(--text-primary);
}

.section-subtitle {
  max-width: 620px;
  color: var(--text-secondary);
  font-size: 1.02rem;
}

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

.service-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.service-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent-red);
}

.service-title {
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
  color: var(--text-primary);
}

.service-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.62;
  margin-bottom: 1.5rem;
  flex: 1;
}

.service-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.service-link:hover {
  color: var(--accent-red);
}

/* ==============================================================================
   Portfolio Section & Filter
   ============================================================================== */
.portfolio-section {
  padding: clamp(3.5rem, 6vw, 6rem) 0;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-secondary);
}

.portfolio-filter-bar {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
  padding: 0.35rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  width: fit-content;
  box-shadow: var(--shadow-subtle);
}

.filter-btn {
  background: transparent;
  border: none;
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

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

.filter-btn.active {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.project-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.project-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-secondary);
}

.project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-card:hover .project-card-img {
  transform: scale(1.02);
}

.project-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.project-meta-row .category {
  color: var(--accent-red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-card-title {
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
  line-height: 1.3;
}

.project-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.tech-tag:not(:last-child)::after {
  content: '·';
  margin-left: 0.45rem;
  color: var(--text-dim);
}

/* ==============================================================================
   Features & Process Sections
   ============================================================================== */
.why-section, .process-section {
  padding: clamp(3.5rem, 6vw, 6rem) 0;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-item {
  border-left: 2px solid var(--accent-red);
  padding-left: 1.5rem;
}

.feature-title {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.62;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.process-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  position: relative;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-red);
  margin-bottom: 0.85rem;
}

.step-title {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==============================================================================
   Client Reviews Section ("What Clients Say")
   ============================================================================== */
.reviews-section {
  padding: clamp(3.5rem, 6vw, 6rem) 0;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-secondary);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}

.review-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: var(--shadow-subtle);
  height: 100%;
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.review-stars {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--color-warning);
  margin-bottom: 1rem;
}

.review-stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  font-style: normal;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.review-author-info {
  overflow: hidden;
}

.review-author-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.review-author-role {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.3;
  margin-top: 2px;
}

.reviews-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  background: #ffffff;
  max-width: 600px;
  margin: 2rem auto 0;
}

/* ==============================================================================
   Call to Action (CTA)
   ============================================================================== */
.cta-section {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
}

.cta-box {
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
}

.cta-title {
  margin-bottom: 0.85rem;
}

.cta-desc {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ==============================================================================
   Unified Premium Global Footer
   Clean, modern, responsive across desktop, tablet, and mobile
   ============================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: 3.5rem 0 1.5rem;
  margin-top: auto;
  width: 100%;
  box-sizing: border-box;
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 3rem 2rem;
  margin-bottom: 2.5rem;
  width: 100%;
  box-sizing: border-box;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.footer-brand-col .brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  text-decoration: none;
}

.footer-brand-col .brand-link:hover {
  color: var(--text-primary);
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.footer-about-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 340px;
  margin: 0.25rem 0 0.5rem 0;
}

.footer-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  margin-top: 0.25rem;
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: statusPulse 2s infinite ease-in-out;
  display: inline-block;
}

@keyframes statusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
}

.footer-nav-list,
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.footer-nav-list a {
  font-size: 0.86rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
}

.footer-nav-list a:hover {
  color: var(--accent-red);
  transform: translateX(3px);
}

.footer-contact-list li {
  display: flex;
  align-items: center;
}

.footer-direct-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
  word-break: break-word;
}

.footer-direct-contact svg {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.footer-direct-contact:hover {
  color: var(--text-primary);
}

.footer-direct-contact:hover svg {
  color: var(--accent-red);
}

.footer-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  background: #f3f4f6;
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 0.4rem;
  transition: all 0.15s ease;
}

.footer-admin-link:hover {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-copyright {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.footer-legal-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-legal-links a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.footer-sep {
  color: #d1d5db;
  font-size: 0.75rem;
}

.footer-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: auto;
}

.footer-back-to-top:hover {
  color: var(--text-primary);
  border-color: #9ca3af;
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Tablet Screens (<= 992px) */
@media (max-width: 992px) {
  .site-footer {
    padding: 3rem 0 1.25rem;
  }
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem 2rem;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
  }
  .footer-about-text {
    max-width: 100%;
  }
}

/* Mobile Screens (<= 640px) */
@media (max-width: 640px) {
  .site-footer {
    padding: 2.5rem 0 1.25rem;
  }
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.85rem 1.25rem;
    margin-bottom: 1.75rem;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
  }
  .footer-col:last-child {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-top: 1rem;
  }
  .footer-back-to-top {
    margin-left: 0;
  }
}

/* Extra Small Mobile (<= 420px) */
@media (max-width: 420px) {
  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 1.65rem;
  }
  .footer-col:last-child {
    grid-column: auto;
  }
  .footer-copyright,
  .footer-legal-links {
    font-size: 0.75rem;
  }
}

/* ==============================================================================
   Project Details Page
   ============================================================================== */
.project-hero {
  padding: clamp(2.5rem, 5vw, 4rem) 0 2.5rem;
  background-color: var(--bg-primary);
}

.project-hero-head {
  max-width: 800px;
  margin-bottom: 2rem;
}

.project-hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.project-lead-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  margin-bottom: 3.5rem;
  aspect-ratio: 16 / 9;
  background: var(--bg-secondary);
  box-shadow: var(--shadow-card);
}

.project-lead-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3.5rem;
}

.project-main-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.project-main-content p {
  margin-bottom: 1.25rem;
}

.project-sidebar-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: sticky;
  top: 90px;
}

.sidebar-meta-item {
  margin-bottom: 1.25rem;
}

.sidebar-meta-item:last-child {
  margin-bottom: 0;
}

.sidebar-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.sidebar-value {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.92rem;
}

/* ==============================================================================
   Contact Form Page
   ============================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  padding: 2.5rem 0 5rem;
}

.contact-info-card {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-method {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.contact-method-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
  flex-shrink: 0;
}

.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

textarea.form-input {
  min-height: 135px;
  resize: vertical;
}

/* ==============================================================================
   Authentication Modal
   ============================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(17, 17, 17, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-modal);
  transform: translateY(12px);
  transition: transform 0.2s ease;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  padding: 4px;
}

.modal-close:hover {
  color: var(--text-primary);
}

/* ==============================================================================
   Toast Notifications
   ============================================================================== */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  z-index: 2000;
  max-width: calc(100vw - 3rem);
}

.toast {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.8rem 1.15rem;
  color: var(--text-primary);
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: var(--shadow-elevated);
}

.toast.toast-success {
  border-left: 3px solid var(--color-success);
}

.toast.toast-error {
  border-left: 3px solid var(--accent-red);
}

/* ==============================================================================
   Mobile Navigation Backdrop & Lock
   ============================================================================== */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

body.mobile-nav-active {
  overflow: hidden !important;
  height: 100vh;
}

/* ==============================================================================
   Comprehensive Responsive System (320px to 1920px+)
   ============================================================================== */

/* Ultra-wide Displays (>= 1440px) */
@media (min-width: 1440px) {
  .container {
    max-width: 1240px;
  }
}

/* Laptops & Standard Desktops (<= 1200px) */
@media (max-width: 1200px) {
  .hero-grid {
    gap: 2.5rem;
  }
  .slide-content {
    padding: 2.25rem;
  }
  .services-grid,
  .projects-grid,
  .reviews-grid {
    gap: 1.5rem;
  }
}

/* Tablets Portrait & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .slide {
    grid-template-columns: 1fr;
  }

  .slide-media-wrap {
    aspect-ratio: 16 / 9;
  }

  .slide-content {
    padding: 2rem 1.75rem 2.25rem;
  }

  .slider-dots {
    right: 2rem;
    bottom: 1.25rem;
  }

  .services-grid,
  .projects-grid,
  .features-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem;
  }
}

/* Tablets & Mobile Landscape (<= 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
    --input-height: 44px;
    --btn-height: 44px;
  }

  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  /* Desktop nav hidden on mobile */
  .nav-links {
    display: none;
  }

  /* Topbar displays ONLY Logo and Menu Toggle Button on Mobile */
  .nav-actions #navAuthContainer,
  .nav-actions > .btn,
  .nav-actions > a.btn {
    display: none !important;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  /* Mobile Navigation Slide-Down Panel */
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.25rem 1.25rem 1.75rem;
    gap: 0.25rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
    z-index: 100;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.mobile-open a {
    padding: 0.85rem 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    min-height: 48px;
  }

  .nav-links.mobile-open a::after {
    display: none;
  }

  .nav-links.mobile-open a:hover,
  .nav-links.mobile-open a.active {
    color: var(--accent-red);
  }

  .nav-links.mobile-open .mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
  }

  /* Single Column Layouts on Mobile */
  .services-grid,
  .projects-grid,
  .features-grid,
  .process-steps,
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-content-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .portfolio-filter-bar {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding: 0.25rem;
    scrollbar-width: none;
  }

  .portfolio-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    white-space: nowrap;
  }

  /* Slider Responsive Controls */
  .slider-btn {
    width: 36px;
    height: 36px;
  }

  .slider-prev {
    left: 0.5rem;
  }

  .slider-next {
    right: 0.5rem;
  }

  .slider-dots {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    bottom: 0.75rem;
  }
}

/* Small Mobile Screens (<= 480px, including 320px, 360px, 375px, 390px, 414px) */
@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-section {
    padding: 2.75rem 0 2rem;
  }

  .hero-title {
    font-size: clamp(1.8rem, 7.5vw, 2.35rem);
    margin-bottom: 0.85rem;
  }

  .hero-desc {
    font-size: 0.96rem;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-auth-card {
    padding: 1.5rem 1.15rem;
  }

  .slide-content {
    padding: 1.25rem 1rem 1.85rem;
  }

  .slide-desc {
    -webkit-line-clamp: 2;
    margin-bottom: 1.25rem;
  }

  .service-card {
    padding: 1.35rem;
  }

  .project-card-body {
    padding: 1.25rem;
  }

  .review-card {
    padding: 1.35rem;
  }

  .contact-form-card {
    padding: 1.5rem 1.15rem;
  }

  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .toast {
    width: 100%;
  }

  .brand-link {
    font-size: 1.12rem;
  }

  .section-head {
    margin-bottom: 2rem;
  }
}

/* ==============================================================================
   Minimal Public Landing Page / Entry Page
   Brand -> Hero -> Sign In (Clean, Modern, Software Studio)
   ============================================================================== */
.landing-body {
  background-color: #fafafa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #0f172a;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  overflow-x: hidden;
}

.landing-header {
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.landing-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.15rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #09090b;
  font-weight: 700;
  font-size: 1.15rem;
  font-family: var(--font-display);
}

.landing-logo-img {
  width: 38px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.landing-brand-text {
  letter-spacing: -0.01em;
}

.btn-landing-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #09090b;
  background: #ffffff;
  border: 1px solid #d4d4d8;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-landing-signin:hover {
  background: #09090b;
  color: #ffffff;
  border-color: #09090b;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.landing-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(2rem, 5vw, 4.5rem) 0;
  width: 100%;
  box-sizing: border-box;
}

.landing-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.landing-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.landing-brand-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #64748b;
  margin-bottom: 1.25rem;
}

.kicker-dot {
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
  display: inline-block;
}

.landing-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #09090b;
  margin: 0 0 1.25rem 0;
}

.landing-subhead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  color: #475569;
  max-width: 520px;
  margin: 0 0 2.25rem 0;
  font-weight: 400;
}

.landing-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-landing-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  background: #09090b;
  border: 1px solid #09090b;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-landing-primary:hover {
  background: #27272a;
  border-color: #27272a;
  transform: translateY(-1px);
}

.btn-landing-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.15s ease;
  cursor: pointer;
  background: none;
  border: none;
}

.btn-landing-secondary:hover {
  color: #09090b;
}

.btn-landing-secondary svg {
  transition: transform 0.15s ease;
}

.btn-landing-secondary:hover svg {
  transform: translateX(3px);
}

.landing-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.landing-gif-frame {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
}

.landing-gif-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  aspect-ratio: 16 / 9;
}

.landing-footer {
  width: 100%;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  background: #ffffff;
  padding: 1.35rem 0;
  margin-top: auto;
}

.landing-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: #64748b;
}

.landing-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.landing-footer-links {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.landing-footer-links a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.landing-footer-links a:hover {
  color: #09090b;
}

.landing-sep {
  color: #cbd5e1;
  font-size: 0.7rem;
}

/* Tablet & Mobile Breakpoints for Landing Page */
@media (max-width: 900px) {
  .landing-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .landing-gif-frame {
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .landing-nav-container {
    padding: 0.95rem 1.25rem;
  }

  .landing-container {
    padding: 0 1.25rem;
  }

  .landing-main {
    padding: 2.25rem 0;
  }

  .landing-headline {
    font-size: clamp(2rem, 7vw, 2.6rem);
  }

  .landing-subhead {
    font-size: 1.02rem;
    margin-bottom: 1.75rem;
  }

  .landing-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }
}

@media (max-width: 480px) {
  .landing-cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.85rem;
  }

  .btn-landing-primary {
    width: 100%;
  }

  .btn-landing-secondary {
    justify-content: center;
    padding: 0.6rem 0;
  }
}

/* Ultra Small Viewports (<= 360px) */
@media (max-width: 360px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .brand-link {
    font-size: 1.02rem;
  }

  .btn {
    padding: 0.6rem 0.95rem;
    font-size: 0.82rem;
  }
}
