/* ============================================================================
   M.I Graphic Designer — Premium Dark Navy & Electric Blue Design System
   Responsive Mobile-First Stylesheet (Android, iOS, Tablet, Desktop)
   ============================================================================ */

:root {
  --bg-obsidian: #040711;
  --bg-navy-deep: #070d1f;
  --bg-navy-card: #0c1631;
  --bg-navy-elevated: #111f42;
  --bg-glass: rgba(12, 22, 49, 0.78);

  --border-subtle: rgba(56, 189, 248, 0.14);
  --border-accent: rgba(0, 163, 255, 0.45);
  --border-strong: #00a3ff;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --accent-electric: #00a3ff;
  --accent-blue-deep: #0066ff;
  --accent-cyan: #38bdf8;
  --accent-glow: rgba(0, 163, 255, 0.28);

  --danger: #ef4444;
  --success: #10b981;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  --shadow-card: 0 18px 40px -15px rgba(0, 0, 0, 0.7), 0 0 24px -6px rgba(0, 163, 255, 0.08);
  --shadow-hover: 0 22px 48px -12px rgba(0, 0, 0, 0.85), 0 0 32px -4px rgba(0, 163, 255, 0.25);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --transition-fast: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 15% 10%, #0b1938 0%, var(--bg-navy-deep) 45%, var(--bg-obsidian) 100%);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Ambient Background Glows */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-1 {
  width: 480px;
  height: 480px;
  background: rgba(0, 112, 243, 0.13);
  top: -120px;
  right: -100px;
}

.ambient-glow-2 {
  width: 420px;
  height: 420px;
  background: rgba(0, 163, 255, 0.09);
  bottom: 10%;
  left: -140px;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}

/* ============================================================================
   Header & Navigation
   ============================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4, 7, 17, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0d1b3a 0%, #060c1c 100%);
  border: 1.5px solid var(--border-accent);
  box-shadow: 0 0 18px var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-monogram {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  background: linear-gradient(135deg, #ffffff 20%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent-cyan);
}

.nav-cta {
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 163, 255, 0.12);
  border: 1px solid var(--border-accent);
  color: var(--text-primary);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.nav-cta:hover {
  background: var(--accent-electric);
  color: #020617;
  box-shadow: 0 0 20px var(--accent-glow);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.55rem;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.hamburger-bar {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ============================================================================
   A. Hero Section
   ============================================================================ */
.hero-section {
  padding: 5rem 0 4.25rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 163, 255, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.35rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-electric);
  box-shadow: 0 0 10px var(--accent-electric);
}

.hero-title {
  font-size: clamp(2.35rem, 5vw, 3.85rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 0.65rem;
  background: linear-gradient(135deg, #ffffff 35%, #93c5fd 75%, var(--accent-electric) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.hero-intro {
  font-size: 1.06rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2.15rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.88rem 1.65rem;
  border-radius: var(--radius-md);
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-electric) 0%, var(--accent-blue-deep) 100%);
  color: #ffffff;
  box-shadow: 0 10px 28px -6px rgba(0, 163, 255, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -4px rgba(0, 163, 255, 0.75);
}

.btn-secondary {
  background: rgba(17, 31, 66, 0.7);
  border-color: var(--border-accent);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(0, 163, 255, 0.16);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

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

/* Hero Profile / Brand Crest Card */
.hero-visual {
  display: flex;
  justify-content: center;
}

.profile-showcase-card {
  position: relative;
  width: 100%;
  max-width: 370px;
  aspect-ratio: 1 / 1.05;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--bg-navy-elevated) 0%, var(--bg-navy-card) 60%, #050a18 100%);
  border: 1.5px solid var(--border-accent);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-glow-ring {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, rgba(0, 163, 255, 0.22) 0%, transparent 65%);
  pointer-events: none;
}

.hero-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
}

.hero-monogram-crest {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.crest-inner {
  width: 170px;
  height: 170px;
  border-radius: 36px;
  background: radial-gradient(circle at 30% 25%, rgba(0, 163, 255, 0.22), rgba(6, 12, 28, 0.92));
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 40px rgba(0, 163, 255, 0.22), inset 0 0 24px rgba(0, 163, 255, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.crest-letters {
  font-size: 3.6rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 25%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.crest-caption {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent-cyan);
}

/* ============================================================================
   Sections Common
   ============================================================================ */
.section {
  padding: 4.75rem 0;
  position: relative;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-electric);
  margin-bottom: 0.45rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1.18;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-top: 0.45rem;
}

/* ============================================================================
   B. Portfolio Gallery & Category Filters
   ============================================================================ */
.sort-select {
  background: var(--bg-navy-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.95rem;
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
}

.sort-select:focus {
  outline: none;
  border-color: var(--accent-electric);
}

.category-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
}

.filter-pill {
  background: rgba(12, 22, 49, 0.72);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.52rem 1.15rem;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
}

.filter-pill.active {
  background: linear-gradient(135deg, var(--accent-electric) 0%, var(--accent-blue-deep) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 20px -4px rgba(0, 163, 255, 0.5);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.project-skeleton {
  height: 340px;
  border-radius: var(--radius-lg);
  background: linear-gradient(110deg, #0b142c 25%, #132247 50%, #0b142c 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite linear;
  border: 1px solid var(--border-subtle);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.project-card {
  background: var(--bg-navy-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-hover);
}

.project-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  background: #060b18;
  overflow: hidden;
}

.project-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 480ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

.project-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #11224d 0%, #070e22 100%);
  color: var(--accent-cyan);
  gap: 0.4rem;
}

.project-card-badges {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  right: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}

.badge-category {
  background: rgba(4, 7, 17, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-accent);
  color: var(--accent-cyan);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.72rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
}

.badge-featured {
  background: linear-gradient(135deg, var(--accent-electric), var(--accent-blue-deep));
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.26rem 0.68rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(0, 163, 255, 0.45);
}

.badge-img-count {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(4, 7, 17, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-sm);
}

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

.project-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
  line-height: 1.3;
}

.project-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1.1rem;
  flex: 1;
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

/* Empty State Card */
.empty-state-card {
  background: rgba(12, 22, 49, 0.6);
  border: 1px dashed var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 3.5rem 1.5rem;
  text-align: center;
  max-width: 560px;
  margin: 1rem auto;
}

.empty-state-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(0, 163, 255, 0.12);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.empty-state-icon svg {
  width: 28px;
  height: 28px;
}

.empty-state-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.empty-state-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ============================================================================
   C. Services Section
   ============================================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: linear-gradient(160deg, rgba(17, 31, 66, 0.72) 0%, rgba(10, 18, 40, 0.9) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

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

.service-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 163, 255, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.service-icon-box svg {
  width: 24px;
  height: 24px;
}

.service-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.55rem;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================================
   Identity / About Section
   ============================================================================ */
.identity-banner {
  background: linear-gradient(145deg, var(--bg-navy-elevated) 0%, var(--bg-navy-card) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.identity-bio {
  margin-top: 1rem;
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.75;
  white-space: pre-line;
}

.identity-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.pillar-item {
  background: rgba(4, 7, 17, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pillar-num {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-electric);
  letter-spacing: 0.1em;
}

.pillar-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pillar-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================================================
   D. Contact & Social Links Section
   ============================================================================ */
.contact-card {
  background: linear-gradient(160deg, #0d1938 0%, #070e22 100%);
  border: 1.5px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 3rem 2.25rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.contact-header {
  max-width: 640px;
  margin: 0 auto 2rem;
}

.contact-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.contact-primary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-links-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  max-width: 880px;
  margin: 0 auto;
}

.social-link-card {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(17, 31, 66, 0.75);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.social-link-card:hover {
  border-color: var(--accent-electric);
  background: rgba(0, 163, 255, 0.16);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -8px rgba(0, 163, 255, 0.45);
}

.social-link-card svg {
  width: 20px;
  height: 20px;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.social-empty-notice {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ============================================================================
   E. Footer
   ============================================================================ */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #03060f;
  padding: 2.75rem 0;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

.brand-monogram-sm {
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border-accent);
  border-radius: 8px;
}

.footer-brand-name {
  font-weight: 700;
  font-size: 1rem;
}

.footer-note {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
}

.footer-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-navy-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.footer-social-icon:hover {
  border-color: var(--accent-electric);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.footer-social-icon svg {
  width: 17px;
  height: 17px;
}

.footer-actions-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-admin-link {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-admin-link:hover {
  color: var(--accent-cyan);
}

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-navy-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.back-to-top-btn:hover {
  border-color: var(--accent-electric);
  color: var(--text-primary);
}

/* ============================================================================
   Project Lightbox Modal
   ============================================================================ */
.project-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 6, 15, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow-y: auto;
}

.project-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 1060px;
  max-height: 92vh;
  background: var(--bg-navy-card);
  border: 1.5px solid var(--border-accent);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9);
  overflow-y: auto;
  padding: 1.75rem;
}

.modal-close-btn {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(4, 7, 17, 0.85);
  border: 1px solid var(--border-accent);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 2rem;
  align-items: start;
}

.modal-main-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  background: #040711;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-active-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(4, 7, 17, 0.82);
  border: 1px solid var(--border-accent);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gallery-prev-btn { left: 0.75rem; }
.gallery-next-btn { right: 0.75rem; }

.modal-img-counter {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(4, 7, 17, 0.82);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}

.modal-img-caption {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 0.55rem;
  text-align: center;
}

.modal-thumbs-strip {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.modal-thumb-btn {
  width: 68px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #040711;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.65;
  transition: all var(--transition-fast);
}

.modal-thumb-btn.active {
  border-color: var(--accent-electric);
  opacity: 1;
}

.modal-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-badges {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.modal-project-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.modal-project-description {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.75;
  white-space: pre-line;
  margin-bottom: 1.75rem;
}

/* Error Banner */
.error-box {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

/* ============================================================================
   Responsive Breakpoints (Tablet & Android/iOS Mobile)
   ============================================================================ */
@media (max-width: 920px) {
  .hero-grid,
  .identity-banner,
  .modal-layout {
    grid-template-columns: 1fr;
  }

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

  .profile-showcase-card {
    max-width: 290px;
  }
}

@media (max-width: 720px) {
  .mobile-menu-btn {
    display: flex;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: rgba(7, 13, 31, 0.98);
    border-bottom: 1px solid var(--border-accent);
    flex-direction: column;
    padding: 1.25rem;
    gap: 1rem;
  }

  .primary-nav.open {
    display: flex;
  }

  .portfolio-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 2rem 1.25rem;
  }

  .footer-inner,
  .footer-links-col {
    flex-direction: column;
    align-items: flex-start;
  }
}
