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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:root {
  --accent-primary: #14b8a6;
  --accent-secondary: #f59e0b;
  --accent-tertiary: #14b8a6;
  --accent-primary-rgb: 20 184 166;
  --accent-secondary-rgb: 245 158 11;
  --bg-dark: #0b0b0f;
  --bg-darker: #000000;
  --text-light: #f5f5f7;
  --text-muted: #a1a1a6;
  --surface-1: rgba(28, 28, 30, 0.78);
  --surface-2: rgba(44, 44, 46, 0.7);
  --border-soft: rgba(255, 255, 255, 0.12);
  --shadow-strong: 0 16px 40px rgba(2, 6, 23, 0.35);
  --shadow-soft: 0 8px 20px rgba(2, 6, 23, 0.28);
  --section-bg: transparent;
  --section-pad-y: 8rem;
  --section-pad-y-sm: 6rem;
  --section-pad-y-md: 5rem;
  --section-pad-y-xs: 3.5rem;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --border-radius: 12px;
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Image Size Variables */
  --bento-1-cols: 2;
  --bento-1-rows: 4;
  --bento-1-width: 100%;
  --bento-1-height: 98%;

  --bento-2-cols: 2;
  --bento-2-rows: 2;
  --bento-2-width: 100%;
  --bento-2-height: 100%;

  --bento-3-cols: 1;
  --bento-3-rows: 1;
  --bento-3-width: 100%;
  --bento-3-height: 100%;

  --bento-4-cols: 1;
  --bento-4-rows: 1;
  --bento-4-width: 100%;
  --bento-4-height: 100%;
}

body.theme-light {
  --accent-primary: #14b8a6;
  --accent-secondary: #f59e0b;
  --accent-tertiary: #14b8a6;
  --bg-dark: #f5f5f7;
  --bg-darker: #ffffff;
  --text-light: #1d1d1f;
  --text-muted: #6e6e73;
  --surface-1: rgba(255, 255, 255, 0.9);
  --surface-2: rgba(245, 245, 247, 0.95);
  --border-soft: rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 18px 40px rgba(0, 0, 0, 0.12);
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.1);
  --section-bg: transparent;
  background-color: #f7fafc;
  background-image: none;
}

/* Mobile First Typography */
@media (max-width: 640px) {
  :root {
    font-size: 14px;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Manrope",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Helvetica Neue",
    Arial,
    sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  overflow-x: hidden;
  line-height: 1.6;
}

body.theme-light .navbar {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

body.theme-light .nav-link {
  color: var(--text-light) !important;
}

body.theme-light .navbar.scrolling {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: var(--shadow-soft) !important;
}
/* Apple-like surfaces and buttons */
.navbar.scrolling {
  background: var(--surface-1);
  border-color: var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.navbar {
  background: rgba(10, 12, 18, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.projects-filter {
  background: var(--surface-2);
  border-color: var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.filter-btn {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-light);
  border-color: var(--border-soft);
}

.filter-btn.is-active {
  background: linear-gradient(
    135deg,
    rgba(10, 132, 255, 0.2),
    rgba(94, 92, 230, 0.2)
  );
  border-color: rgba(10, 132, 255, 0.35);
}

.projects-filter-toggle {
  background: var(--surface-2);
  border-color: var(--border-soft);
  color: var(--text-light);
}

.project-card,
.contact-panel,
.graphics-gallery,
.about-text,
.contact-highlight {
  background: var(--surface-1);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

/* Remove card shadows in dark mode from Projects to Contact */
body:not(.theme-light) .project-card,
body:not(.theme-light) .graphics-gallery,
body:not(.theme-light) .about-text,
body:not(.theme-light) .contact-panel,
body:not(.theme-light) .contact-highlight {
  box-shadow: none;
}

.project-media {
  border-color: var(--border-soft);
}

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

.btn-secondary {
  background: var(--surface-2);
  color: var(--text-light);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

body.theme-light .btn-primary {
  box-shadow: 0 10px 22px rgba(10, 132, 255, 0.18);
}

body.theme-light .btn-secondary {
  border-color: rgba(0, 0, 0, 0.14);
  color: #1d1d1f;
}

.btn-email {
  background: var(--surface-2);
  border-color: var(--border-soft);
  color: var(--text-light);
}

.hero-social,
.social-link {
  background: var(--surface-2);
  border-color: var(--border-soft);
  color: var(--text-light);
}

/* Uniform section backgrounds */
.hero,
.about,
.skills,
.projects,
.contact {
  background: var(--section-bg) !important;
  position: relative;
  z-index: 1;
}

.section-container {
  position: relative;
  z-index: 1;
}
/* Light theme overrides */
body.theme-light .navbar.scrolling {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

body.theme-light .projects-filter {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.92),
    rgba(241, 245, 249, 0.92)
  );
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

body.theme-light .projects-filter-toggle {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

body.theme-light .filter-btn {
  background: rgba(15, 23, 42, 0.04);
  color: var(--text-light);
  border-color: rgba(0, 0, 0, 0.06);
}

body.theme-light .filter-btn.is-active {
  background: linear-gradient(
    135deg,
    rgba(20, 184, 166, 0.2),
    rgba(245, 158, 11, 0.2)
  );
  border-color: rgba(15, 23, 42, 0.12);
}

body.theme-light .project-card,
body.theme-light .contact-panel {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-soft);
}

body.theme-light .about {
  background: linear-gradient(
    180deg,
    rgba(241, 245, 249, 0.9),
    rgba(248, 250, 252, 0.9)
  );
}

body.theme-light .about-text {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-soft);
}

body.theme-light .projects {
  background: rgba(241, 245, 249, 0.7);
}

body.theme-light .project-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95),
    rgba(241, 245, 249, 0.95)
  );
  border-color: rgba(0, 0, 0, 0.06);
}

body.theme-light .project-card:hover {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(241, 245, 249, 0.98)
  );
  box-shadow: var(--shadow-strong);
}

body.theme-light .project-media {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.04),
    rgba(15, 23, 42, 0.1)
  );
}

body.theme-light .project-media::before,
body.theme-light .project-media::after {
  opacity: 0.35;
}

body.theme-light .graphics-gallery {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95),
    rgba(241, 245, 249, 0.95)
  );
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-soft);
}

body.theme-light .graphics-gallery-eyebrow {
  color: rgba(15, 23, 42, 0.55);
}

body.theme-light .graphics-gallery-title {
  color: #0f172a;
}

body.theme-light .graphics-gallery-subtitle {
  color: rgba(15, 23, 42, 0.6);
}

body.theme-light .projects-cta {
  color: #0f172a;
}

body.theme-light .social-link {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

/* Clean premium section titles + subtitles */
.section-title {
  font-family:
    "Space Grotesk",
    "Manrope",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.section-title::after {
  height: 2px;
  width: 48px;
  opacity: 0.7;
}

.graphics-gallery-subtitle,
.contact-subtitle,
.projects-subtitle {
  font-family:
    "Manrope",
    "SF Pro Text",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.graphics-gallery-eyebrow {
  font-family:
    "Manrope",
    "SF Pro Text",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Helvetica Neue",
    Arial,
    sans-serif;
  letter-spacing: 0.28em;
}

/* Light mode hover visibility */
body.theme-light .nav-link:hover {
  color: var(--accent-primary);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

body.theme-light .nav-link {
  background-image: linear-gradient(
    transparent 60%,
    rgba(15, 23, 42, 0.08) 60%
  );
}

body.theme-light .btn-primary:hover {
  box-shadow: 0 16px 30px rgba(10, 132, 255, 0.22);
}

body.theme-light .btn-secondary:hover {
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

body.theme-light .project-card:hover {
  border-color: rgba(10, 132, 255, 0.35);
  box-shadow: var(--shadow-soft);
}

body.theme-light .hero-social:hover,
body.theme-light .social-link:hover {
  border-color: rgba(10, 132, 255, 0.45);
  color: var(--accent-primary);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

body.theme-light .filter-btn:hover {
  border-color: rgba(10, 132, 255, 0.35);
  background: rgba(10, 132, 255, 0.08);
}

body.theme-light .btn-email {
  background: transparent;
  border-color: rgba(15, 23, 42, 0.18);
  color: #0f172a;
}

body.theme-light .hero-social {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(0, 0, 0, 0.06);
}

body.theme-light .trust-chip {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

body.theme-light .trust-label {
  color: rgba(15, 23, 42, 0.6);
}

body.theme-light .projects-cta {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.12);
}

body.theme-light .contact-highlight {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  padding: 0.85rem 1rem;
  border-radius: var(--border-radius);
}

body.theme-light .contact {
  background: linear-gradient(
    135deg,
    rgba(20, 184, 166, 0.08),
    rgba(245, 158, 11, 0.08)
  );
  border-top-color: rgba(15, 23, 42, 0.08);
}

body.theme-light .footer {
  background: rgba(241, 245, 249, 0.8);
  border-top-color: rgba(15, 23, 42, 0.08);
}

/* Global heading styles */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family:
    "Space Grotesk",
    "Manrope",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Premium typography rhythm */
section .section-title {
  line-height: 1.12;
  letter-spacing: -0.6px;
  margin-bottom: 0.85rem;
}

section .section-container p {
  line-height: 1.75;
}

.about-text p,
.projects-subtitle,
.contact-subtitle,
.graphics-gallery-subtitle {
  max-width: 60ch;
  font-weight: 400;
}

.project-desc {
  font-weight: 400;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1155px;
  z-index: 1000;
  background: rgba(15, 23, 42, 0);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0);
  border-radius: 50px;
  padding: 1rem 2rem;
  pointer-events: none;
  opacity: 0;
  transition: all 0.6s ease;
}

.navbar.scrolling {
  background: var(--surface-1);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
  box-shadow: var(--shadow-soft);
  pointer-events: auto;
  opacity: 1;
  transition: all 0.3s ease;
}

@media (max-width: 1024px) {
  .navbar {
    width: 85%;
    padding: 0.8rem 1.5rem;
    top: 1rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    width: 80%;
    padding: 0.6rem 1.2rem;
    top: 0.8rem;
  }
}

@media (max-width: 640px) {
  .navbar {
    width: 90%;
    padding: 0.5rem 1rem;
    top: 0.5rem;
  }
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

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

.theme-toggle {
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(15, 23, 42, 0.58);
  color: var(--text-light);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.theme-toggle i {
  font-size: 0.95rem;
  pointer-events: none;
}

body.theme-light .theme-toggle {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.8);
  color: #0f172a;
}

.logo-brand {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 2px;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.logo-brand:hover {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .logo-brand {
    font-size: 0.85rem;
    gap: 0.4rem;
  }

  .logo-mark {
    width: 2rem;
    height: 2rem;
  }
}

@media (max-width: 640px) {
  .logo-brand {
    font-size: 0.75rem;
  }

  .logo-mark {
    width: 1.85rem;
    height: 1.85rem;
  }
}

.logo-mark {
  width: 2.2rem;
  height: 2.2rem;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  transform: translateZ(0);
  filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.18));
  transition:
    transform var(--transition-base),
    filter var(--transition-base);
}

.logo-brand:hover .logo-mark {
  transform: translateZ(0) scale(1.04);
  filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.2));
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .nav-menu {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .nav-menu {
    gap: 0.5rem;
    font-size: 0.75rem;
  }
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: all var(--transition-base);
  font-size: 0.9rem;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  opacity: 0.78;
  background-image: linear-gradient(
    transparent 65%,
    rgba(var(--accent-primary-rgb), 0.14) 65%
  );
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: left bottom;
}

.nav-link:hover {
  color: var(--accent-primary);
  opacity: 1;
  background-size: 100% 100%;
  transform: translateY(-1px);
}

.nav-link:hover i {
  color: var(--accent-primary);
  transform: none;
}

.nav-link:focus-visible {
  outline: none;
  border-color: rgba(20, 184, 166, 0.35);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
  opacity: 1;
}

.nav-link.is-active {
  opacity: 1;
  color: var(--text-light);
  background-size: 100% 100%;
}
@media (max-width: 768px) {
  .nav-menu {
    gap: 1.5rem;
    font-size: 0.85rem;
  }
}

/* Section container */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  position: relative;
  z-index: 10;
  border-radius: 0;
}
#home.hero {
  padding-top: 100px;
}

@media (max-width: 1024px) {
  .hero {
    padding-top: 70px;
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 60px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 50px;
    padding-bottom: 2rem;
  }
}

.hero-container {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 1024px) {
  .hero-container {
    gap: 3rem;
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.5rem;
  }
}

@media (max-width: 640px) {
  .hero-container {
    gap: 1.5rem;
    padding: 0 1rem;
  }
}

.hero-content {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hero-greeting {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.hero-content h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.1rem;
  letter-spacing: -1px;
  color: var(--text-light);
  animation: fadeInUp 1s ease-out;
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .hero-greeting {
    text-align: center;
  }

  .hero-title {
    font-size: 2.2rem;
    text-align: center;
  }

  .hero-support {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-socials {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-support {
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
  }

  .hero-socials {
    gap: 0.7rem;
  }
}

.hero-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.profile-image-wrapper {
  width: 340px;
  height: 560px;
  position: relative;
  padding: 0;
  border-radius: 0;
  overflow: visible;
  isolation: auto;
  background: transparent;
  border: none;
  box-shadow: none;
  transform-origin: center;
  will-change: transform;
  animation: profileFloat 6.4s ease-in-out infinite;
}

.profile-image-wrapper picture {
  display: block;
  width: 100%;
  height: 100%;
}

.profile-image-wrapper::before {
  content: none;
}

.profile-image-wrapper::after {
  content: none;
}

body.theme-light .profile-image-wrapper {
  background: transparent;
  border: none;
  box-shadow: none;
}

@media (max-width: 1024px) {
  .profile-image-wrapper {
    width: 300px;
    height: 500px;
  }
}

@media (max-width: 768px) {
  .profile-image-wrapper {
    width: 240px;
    height: 400px;
  }
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  border-radius: 0;
  filter: saturate(1.02) contrast(1.04) brightness(1.01);
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
  animation: profileImageBreath 6.4s ease-in-out infinite;
}

.profile-image-wrapper:hover {
  animation-play-state: paused;
  transform: translateY(-8px) rotateX(3deg) rotateY(-2deg);
}

.profile-image-wrapper:hover .profile-image {
  animation-play-state: paused;
  transform: scale(1.03);
  filter: saturate(1.08) contrast(1.08) brightness(1.03);
}

@keyframes profileFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg);
  }
  50% {
    transform: translate3d(0, -10px, 0) rotateX(2.2deg) rotateY(-1.8deg);
  }
}

@keyframes profileImageBreath {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.018);
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-image-wrapper,
  .profile-image {
    animation: none !important;
    transform: none !important;
  }

  .profile-image-wrapper:hover {
    transform: none;
  }

  .profile-image-wrapper:hover .profile-image {
    transform: none;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: 1.2rem;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary),
    var(--accent-tertiary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.2rem;
  font-weight: 700;
  min-height: 1.8rem;
  display: inline-block;
  position: relative;
  letter-spacing: 0.5px;
}

.hero-value {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 38rem;
  margin: 0 0 1.2rem;
  font-weight: 500;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 2rem;
}

.trust-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(148, 163, 184, 0.9);
  font-weight: 600;
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.trust-chip {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(2, 6, 23, 0.5);
  color: rgba(241, 245, 249, 0.9);
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-support {
  font-size: 1.02rem;
  color: var(--text-muted);
  margin: 0 0 2.2rem;
  max-width: 34rem;
}

.hero-socials {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  margin: 0 0 2rem;
}

.hero-social {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(2, 6, 23, 0.55);
  transition: all var(--transition-base);
}

.hero-social i {
  font-size: 1.05rem;
}

.hero-social:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 184, 166, 0.6);
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.35);
}

.hero-subtitle::after {
  content: "";
  margin-left: 0.45rem;
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: rgba(20, 184, 166, 0.75);
  border-radius: 1px;
  vertical-align: text-bottom;
  opacity: 0.75;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.hero-cta .btn-primary {
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .hero-cta {
    gap: 1.2rem;
  }
}

@media (max-width: 768px) {
  .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-subtitle::after {
    content: none;
  }
}

@media (max-width: 640px) {
  .hero-cta {
    flex-direction: column;
    gap: 0.8rem;
  }
}

.btn {
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: visible;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .btn {
    padding: 0.7rem 1.6rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 640px) {
  .btn {
    width: 100%;
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
  }
}

.btn-primary {
  background: white;
  color: #000;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.95);
}

.btn-secondary {
  background: transparent;
  text-decoration: none;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-subtitle::after {
    content: none;
  }
}

/* About Section */
.about {
  padding: var(--section-pad-y) 2rem;
  position: relative;
  z-index: 10;
  scroll-margin-top: 9rem;
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.7) 0%,
    rgba(15, 23, 42, 0.55) 100%
  );
  padding-top: 12vh;
  padding-bottom: 12vh;
}
#about h2.section-title {
  padding-bottom: 0;
  margin-bottom: 1.5rem;
  margin-top: 0;
}

@media (max-width: 1024px) {
  .about {
    padding: var(--section-pad-y-md) 1.5rem;
  }
}

@media (max-width: 768px) {
  .about {
    padding: var(--section-pad-y-sm) 1.5rem;
  }
}

@media (max-width: 640px) {
  .about {
    padding: var(--section-pad-y-xs) 1rem;
  }
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  position: relative;
  letter-spacing: -0.6px;
}

@media (max-width: 1024px) {
  .section-title {
    font-size: 2.1rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.9rem;
    margin-bottom: 1.6rem;
  }
}

@media (max-width: 640px) {
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.3rem;
  }
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;

  border-radius: 2px;
  margin-top: 0.75rem;
}

#about .about-content {
  display: block;
}

#about .about-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1fr);
  gap: 1.2rem;
  padding: 0;
  border-radius: 0;
  overflow: visible;
  border: none;
  background: transparent;
  box-shadow: none;
}

#about .about-shell::before {
  content: none;
}

#about .about-shell::after {
  content: none;
}

#about .about-profile-card,
#about .about-card {
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(
    165deg,
    rgba(7, 18, 32, 0.78),
    rgba(9, 24, 40, 0.7)
  );
  color: rgba(226, 232, 240, 0.95);
  backdrop-filter: blur(10px);
}

#about .about-profile-card {
  z-index: 1;
  min-height: 620px;
  padding: 0.45rem;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  border-color: rgba(148, 163, 184, 0.24);
  background: linear-gradient(
    165deg,
    rgba(4, 14, 27, 0.9),
    rgba(7, 18, 31, 0.84)
  );
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

#about .about-avatar {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.52);
  overflow: hidden;
  isolation: isolate;
}

#about .about-avatar::before {
  content: none;
}

#about .about-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

#about .about-carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: none;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

#about .about-carousel-slide.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

#about .about-carousel-slide img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
}

#about .about-carousel-btn {
  position: absolute;
  top: 50%;
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(2, 6, 23, 0.56);
  color: rgba(226, 232, 240, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translateY(-50%);
  opacity: 0;
  transition:
    opacity var(--transition-base),
    background-color var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-base);
  z-index: 3;
  backdrop-filter: blur(6px);
}

#about .about-carousel-prev {
  left: 0.6rem;
}

#about .about-carousel-next {
  right: 0.6rem;
}

#about .about-avatar:hover .about-carousel-btn,
#about .about-avatar:focus-within .about-carousel-btn {
  opacity: 1;
}

#about .about-carousel-btn:hover {
  border-color: rgba(var(--accent-primary-rgb), 0.7);
  background: rgba(7, 19, 33, 0.74);
}

#about .about-carousel-btn:active {
  transform: translateY(-50%) scale(0.96);
}

#about .about-carousel-btn:focus-visible,
#about .about-carousel-dot:focus-visible {
  outline: 2px solid rgba(var(--accent-primary-rgb), 0.9);
  outline-offset: 2px;
}

#about .about-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 0.55rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 3;
}

#about .about-carousel-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.62);
  background: rgba(148, 163, 184, 0.44);
  cursor: pointer;
  transition:
    width var(--transition-base),
    border-color var(--transition-base),
    background-color var(--transition-base);
}

#about .about-carousel-dot.is-active {
  width: 0.98rem;
  border-color: rgba(var(--accent-primary-rgb), 0.9);
  background: rgba(var(--accent-primary-rgb), 0.85);
}

body.theme-light #about .about-carousel-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.18);
  color: rgba(15, 23, 42, 0.86);
}

body.theme-light #about .about-carousel-btn:hover {
  border-color: rgba(var(--accent-primary-rgb), 0.72);
  background: rgba(255, 255, 255, 0.98);
}

body.theme-light #about .about-carousel-dot {
  border-color: rgba(15, 23, 42, 0.32);
  background: rgba(15, 23, 42, 0.2);
}

body.theme-light #about .about-carousel-dot.is-active {
  border-color: rgba(var(--accent-primary-rgb), 0.75);
  background: rgba(var(--accent-primary-rgb), 0.75);
}

body.theme-light #about .about-carousel-slide img {
  filter: none;
}

body.theme-light #about .about-profile-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}

body.theme-light #about .about-avatar {
  background: rgba(241, 245, 249, 0.86);
}

#about .about-stack {
  z-index: 1;
  min-height: 620px;
  display: grid;
  gap: 1.2rem;
  grid-template-rows: 1fr auto;
}

#about .about-card {
  padding: 1.5rem;
}

#about .about-text {
  box-shadow: none;
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

#about .about-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(110, 231, 210, 0.95);
  font-size: 0.88rem;
  font-weight: 700;
}

#about .about-status-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: var(--accent-primary);
  box-shadow: 0 0 0 6px rgba(var(--accent-primary-rgb), 0.24);
}

#about .about-text .about-title {
  margin: 0;
  color: rgba(241, 245, 249, 0.98);
  font-weight: 700;
  font-size: 2.2rem;
  letter-spacing: -0.4px;
}

@media (max-width: 1024px) {
  #about .about-text .about-title {
    font-size: 2.1rem;
  }
}

@media (max-width: 768px) {
  #about .about-text .about-title {
    font-size: 1.9rem;
  }
}

#about .about-text-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

#about .about-work-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.34rem 0.62rem;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(167, 243, 208, 0.96);
  background: rgba(2, 16, 28, 0.55);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.34);
}

#about .about-work-badge i {
  font-size: 0.72rem;
  color: var(--accent-primary);
}

#about .about-text .about-title::after {
  display: none;
}

#about .about-text p {
  margin: 0;
  max-width: none;
  color: rgba(203, 213, 225, 0.88);
  font-size: 0.97rem;
  line-height: 1.72;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

#about .about-orbit {
  position: absolute;
  top: -22px;
  right: -18px;
  width: 132px;
  height: 132px;
  border-radius: 999px;
  border: 1px dashed rgba(var(--accent-primary-rgb), 0.42);
  opacity: 0.9;
  pointer-events: none;
}

#about .about-orbit span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(167, 243, 208, 0.72);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transform: rotate(-26deg);
}

#about .about-meta-card {
  display: grid;
  gap: 1.15rem;
}

#about .about-meta-block h3 {
  margin: 0;
  color: rgba(241, 245, 249, 0.96);
  font-size: 1.08rem;
}

#about .about-role-list {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.72rem;
}

#about .about-role-item {
  display: flex;
  align-items: center;
  gap: 0.68rem;
}

#about .about-role-icon {
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  border: 1px solid rgba(var(--accent-primary-rgb), 0.34);
  background: linear-gradient(
    145deg,
    rgba(7, 19, 33, 0.95),
    rgba(8, 26, 42, 0.96)
  );
  color: rgba(153, 246, 228, 0.95);
}

#about .about-role-copy {
  display: grid;
  line-height: 1.2;
}

#about .about-role-copy strong {
  color: rgba(226, 232, 240, 0.95);
  font-size: 0.95rem;
}

#about .about-role-copy small {
  color: rgba(148, 163, 184, 0.85);
  font-size: 0.8rem;
}

#about .about-app-list {
  list-style: none;
  margin: 0.95rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.72rem;
}

#about .about-app-list li {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  text-align: center;
}

#about .about-app-list img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(2, 6, 23, 0.65);
  box-shadow: 0 6px 14px rgba(2, 8, 20, 0.32);
}

#about .about-app-list span {
  color: rgba(148, 163, 184, 0.88);
  font-size: 0.72rem;
  font-weight: 600;
}

#about .about-profile-card,
#about .about-card,
#about .about-role-item {
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

#about .about-profile-card:hover,
#about .about-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-primary-rgb), 0.54);
  box-shadow: 0 16px 34px rgba(2, 8, 20, 0.34);
}

#about .about-role-item:hover {
  transform: translateX(4px);
}

body.theme-light #about .about-shell {
  border: none;
  background: transparent;
  box-shadow: none;
}

body.theme-light #about .about-shell::before {
  content: none;
}

body.theme-light #about .about-shell::after {
  content: none;
}

body.theme-light #about .about-profile-card,
body.theme-light #about .about-card {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

body.theme-light #about .about-text .about-title,
body.theme-light #about .about-meta-block h3,
body.theme-light #about .about-role-copy strong {
  color: #0f172a;
}

body.theme-light #about .about-work-badge {
  color: rgba(15, 118, 110, 0.95);
  background: rgba(20, 184, 166, 0.08);
  border-color: rgba(20, 184, 166, 0.32);
}

body.theme-light #about .about-text p,
body.theme-light #about .about-role-copy small,
body.theme-light #about .about-app-list span {
  color: rgba(15, 23, 42, 0.68);
}

body.theme-light #about .about-status {
  color: rgba(15, 118, 110, 0.95);
}

body.theme-light #about .about-status-dot {
  box-shadow: 0 0 0 6px rgba(var(--accent-primary-rgb), 0.18);
}

body.theme-light #about .about-role-icon {
  border-color: rgba(var(--accent-primary-rgb), 0.28);
  background: linear-gradient(135deg, #14b8a6, #0ea5a4);
  color: #ffffff;
}

body.theme-light #about .about-orbit {
  border-color: rgba(var(--accent-primary-rgb), 0.32);
}

body.theme-light #about .about-orbit span {
  color: rgba(15, 118, 110, 0.72);
}

body.theme-light #about .about-app-list img {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(241, 245, 249, 0.85);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.14);
}

@media (max-width: 1024px) {
  #about .about-profile-card,
  #about .about-stack {
    min-height: 560px;
  }

  #about .about-card {
    padding: 1.22rem;
  }
}

@media (max-width: 768px) {
  #about .about-shell {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  #about .about-profile-card,
  #about .about-stack {
    min-height: 0;
  }

  #about .about-profile-card {
    padding: 0.45rem;
  }

  #about .about-carousel-btn {
    width: 1.85rem;
    height: 1.85rem;
  }

  #about .about-orbit {
    top: 0.4rem;
    right: 0.4rem;
    width: 100px;
    height: 100px;
  }

  #about .about-orbit span {
    font-size: 0.5rem;
  }
}

@media (max-width: 640px) {
  #about .about-profile-card,
  #about .about-card {
    border-radius: 18px;
  }

  #about .about-title {
    font-size: 1.5rem;
  }

  #about .about-text-head {
    flex-wrap: wrap;
    gap: 0.55rem;
  }

  #about .about-work-badge {
    font-size: 0.69rem;
    padding: 0.3rem 0.56rem;
  }

  #about .about-text p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  #about .about-carousel-btn {
    width: 1.7rem;
    height: 1.7rem;
  }

  #about .about-carousel-prev {
    left: 0.45rem;
  }

  #about .about-carousel-next {
    right: 0.45rem;
  }

  #about .about-carousel-dots {
    bottom: 0.5rem;
  }

  #about .about-app-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #about .about-orbit {
    display: none;
  }
}

@media (hover: none), (pointer: coarse) {
  #about .about-carousel-btn {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  #about .about-profile-card,
  #about .about-card,
  #about .about-role-item,
  #about .about-carousel-slide,
  #about .about-carousel-btn,
  #about .about-carousel-dot {
    transition: none !important;
  }

  #about .about-profile-card:hover,
  #about .about-card:hover,
  #about .about-role-item:hover {
    transform: none !important;
    box-shadow: none !important;
  }
}

.abstract-shape {
  display: none;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
  }

  .abstract-shape {
    height: 200px;
  }
}

/* Skills Section */
#skills {
  --skills-title-gradient: linear-gradient(
    135deg,
    rgba(241, 245, 249, 0.98) 0%,
    rgba(20, 184, 166, 0.82) 100%
  );
  padding: var(--section-pad-y) 1rem;
  position: relative;
  z-index: 10;
  background: transparent;
  overflow: hidden;
}

body.theme-light #skills {
  --skills-title-gradient: linear-gradient(
    135deg,
    #0f172a 0%,
    rgba(15, 118, 110, 0.92) 100%
  );
}

#skills::before {
  display: none;
}

#skills::after {
  display: none;
}

.skills-header {
  text-align: center;
  margin-bottom: 2.8rem;
  position: relative;
  z-index: 1;
}

.skills-header .section-title {
  font-family:
    "Space Grotesk",
    "Manrope",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 2.6rem);
  letter-spacing: -0.7px;
  color: var(--text-light);
  background: none;
  -webkit-text-fill-color: currentColor;
  margin-bottom: 0.8rem;
}

.skills-subtitle {
  color: var(--text-subtle);
  max-width: 46ch;
  margin: 0.55rem auto 0;
  font-size: 0.98rem;
  line-height: 1.68;
}

@media (max-width: 1024px) {
  #skills {
    padding: var(--section-pad-y-sm) 1rem;
  }
}

@media (max-width: 768px) {
  #skills {
    padding: var(--section-pad-y-md) 1rem;
  }

  .skills-header {
    margin-bottom: 2.2rem;
  }

  .skills-header .section-title {
    font-size: 1.85rem;
  }
}

@media (max-width: 640px) {
  #skills {
    padding: var(--section-pad-y-xs) 0.5rem;
  }
}

/* Tools Logo Loop (ReactBits-inspired) */
.tools-logo-loop .skills-header {
  margin-bottom: 1.65rem;
}

.tools-logo-loop .skills-header .section-title {
  font-size: clamp(2rem, 4.4vw, 2.7rem);
}

.tools-logo-loop .skills-subtitle {
  max-width: 50ch;
}

.logo-loop-stack {
  display: grid;
  gap: 1.12rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.logo-loop-row {
  --logo-loop-duration: 36s;
  --logo-loop-gap: 0.75rem;
  display: flex;
  overflow: hidden;
  gap: 0;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
}

.logo-loop-track {
  min-width: max-content;
  display: flex;
  align-items: center;
  gap: var(--logo-loop-gap);
  padding-right: var(--logo-loop-gap);
  flex-shrink: 0;
  will-change: transform;
  animation: toolsLogoLoopMarquee var(--logo-loop-duration) linear infinite;
  animation-play-state: paused;
}

.logo-loop-row[data-loop-ready="true"] .logo-loop-track {
  animation-play-state: running;
}

.logo-loop-row-reverse .logo-loop-track {
  animation-direction: reverse;
}

.logo-loop-row:hover .logo-loop-track,
.logo-loop-row:focus-within .logo-loop-track {
  animation-play-state: paused;
}

.logo-loop-item {
  display: inline-flex;
  align-items: center;
  gap: 0.56rem;
  min-height: 52px;
  padding: 0.5rem 0.86rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(11, 18, 32, 0.86);
  color: rgba(226, 232, 240, 0.96);
  box-shadow:
    0 2px 8px rgba(2, 6, 23, 0.34),
    0 12px 24px rgba(2, 6, 23, 0.3);
  white-space: nowrap;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.logo-loop-item:hover {
  transform: scale(1.03);
  border-color: rgba(20, 184, 166, 0.55);
  box-shadow:
    0 4px 12px rgba(2, 6, 23, 0.38),
    0 16px 30px rgba(2, 6, 23, 0.35),
    0 0 0 1px rgba(20, 184, 166, 0.18);
}

.logo-loop-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(15, 23, 42, 0.72);
  padding: 4px;
}

body.theme-light .logo-loop-item {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  box-shadow:
    0 2px 6px rgba(15, 23, 42, 0.06),
    0 10px 22px rgba(15, 23, 42, 0.05);
}

body.theme-light .logo-loop-item:hover {
  border-color: rgba(20, 184, 166, 0.42);
  box-shadow:
    0 4px 10px rgba(15, 23, 42, 0.07),
    0 14px 28px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(20, 184, 166, 0.12);
}

body.theme-light .logo-loop-logo {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.95);
}

.logo-loop-name {
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

@keyframes toolsLogoLoopMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

@media (max-width: 768px) {
  .tools-logo-loop .skills-header {
    margin-bottom: 1.3rem;
  }

  .logo-loop-stack {
    padding: 0;
    border-radius: 0;
    gap: 0.82rem;
  }

  .logo-loop-item {
    min-height: 47px;
    padding: 0.45rem 0.7rem;
    gap: 0.5rem;
  }

  .logo-loop-logo {
    width: 27px;
    height: 27px;
  }

  .logo-loop-name {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-loop-track {
    animation: none !important;
  }

  .logo-loop-row {
    -webkit-mask-image: none;
    mask-image: none;
    overflow-x: auto;
    scrollbar-width: thin;
  }
}

/* Projects Section */
.projects {
  padding: var(--section-pad-y-sm) 2rem;
  position: relative;
  z-index: 10;
  background: rgba(15, 23, 42, 0.4);
}

@media (max-width: 1024px) {
  .projects {
    padding: var(--section-pad-y-md) 1.5rem;
  }
}

@media (max-width: 768px) {
  .projects {
    padding: var(--section-pad-y-sm) 1.5rem;
  }
}

@media (max-width: 640px) {
  .projects {
    padding: var(--section-pad-y-xs) 1rem;
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.project-card {
  background: rgba(20, 184, 166, 0.05);
  border: 1px solid rgba(20, 184, 166, 0.1);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
}

.project-card:hover {
  border-color: var(--accent-primary);
  background: rgba(20, 184, 166, 0.1);
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.project-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(
    135deg,
    rgba(20, 184, 166, 0.1),
    rgba(245, 158, 11, 0.2)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.project-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.project-card:hover .project-image::after {
  left: 100%;
}

.project-info {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.project-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  font-size: 0.95rem;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.tag {
  background: rgba(20, 184, 166, 0.15);
  color: var(--accent-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  border: 1px solid rgba(20, 184, 166, 0.3);
  letter-spacing: 0.3px;
  font-weight: 600;
  text-transform: uppercase;
}

.project-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.project-link:hover {
  gap: 1rem;
}

/* Contact Section */
.contact {
  padding: calc(var(--section-pad-y-sm) + 1rem) 2rem;
  position: relative;
  z-index: 10;
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.35) 0%,
    rgba(2, 6, 23, 0.2) 100%
  );
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

@media (max-width: 1024px) {
  .contact {
    padding: var(--section-pad-y-md) 1.5rem;
  }
}

@media (max-width: 768px) {
  .contact {
    padding: var(--section-pad-y-sm) 1.5rem;
  }
}

@media (max-width: 640px) {
  .contact {
    padding: var(--section-pad-y-xs) 1rem;
  }
}

.contact-header {
  text-align: left;
  margin-bottom: 2.6rem;
  max-width: 720px;
}

.contact .section-title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  letter-spacing: -0.8px;
}

.contact-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
  max-width: 60ch;
  line-height: 1.75;
}

.contact-trust {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  color: rgba(226, 232, 240, 0.8);
  letter-spacing: 0.04em;
}

body.theme-light .contact-trust {
  color: rgba(15, 23, 42, 0.65);
}

.contact-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-panel {
  padding: 2.6rem;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}

.contact-content {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.65);
}

.contact-actions-title {
  font-size: 1.55rem;
  margin: 0;
  color: var(--text-light);
  letter-spacing: -0.02em;
}

.contact-actions-desc {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.contact-actions-card {
  padding: 1.6rem;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-actions-card .btn-discovery {
  width: 100%;
  justify-content: flex-start;
}

.contact-form {
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.4);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
}

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

.contact-form .form-group label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.7);
}

.contact-form .form-group input,
.contact-form .form-group textarea,
.contact-form .form-group select {
  background-color: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
}

.contact-form .form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 2.8rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10' fill='none'%3E%3Cpath d='M2 2l5 5 5-5' stroke='%23cbd5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px;
}

.contact-form .form-group select::-ms-expand {
  display: none;
}

.contact-form .form-group textarea {
  min-height: 140px;
}

.contact-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-submit {
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-light);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow:
    0 12px 24px rgba(2, 6, 23, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.contact-submit:hover {
  border-color: rgba(20, 184, 166, 0.6);
  box-shadow:
    0 18px 34px rgba(2, 6, 23, 0.4),
    0 0 18px rgba(20, 184, 166, 0.25);
}

.contact-form-status {
  min-height: 1.2rem;
  font-size: 0.85rem;
  color: var(--accent-primary);
  margin: 0;
}

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

.contact-honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

.contact-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.4rem;
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.contact-highlight {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.contact-highlight i {
  color: var(--accent-primary);
  font-size: 1rem;
  margin-top: 0;
  opacity: 0.9;
}

.contact-highlight-title {
  font-weight: 600;
  margin: 0 0 0.15rem;
  color: var(--text-light);
}

.contact-highlight-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

body.theme-light .contact-actions-card,
body.theme-light .contact-form {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-soft);
}

body.theme-light .contact-eyebrow {
  color: rgba(15, 23, 42, 0.6);
}

body.theme-light .contact-form .form-group label {
  color: rgba(15, 23, 42, 0.7);
}

body.theme-light .contact-form .form-group input,
body.theme-light .contact-form .form-group textarea,
body.theme-light .contact-form .form-group select {
  background-color: rgba(248, 250, 252, 0.95);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

body.theme-light .contact-form .form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10' fill='none'%3E%3Cpath d='M2 2l5 5 5-5' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px;
}

body.theme-light .contact-submit {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

body.theme-light .contact-submit:hover {
  border-color: rgba(20, 184, 166, 0.5);
  box-shadow:
    0 18px 32px rgba(15, 23, 42, 0.15),
    0 0 18px rgba(20, 184, 166, 0.2);
}

.btn-contact {
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: none;
  background: rgba(2, 6, 23, 0.35);
  transition: all var(--transition-base);
}

.btn-contact i {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.22);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .contact-subtitle {
    font-size: 1rem;
    margin-top: 1rem;
  }
}

@media (max-width: 960px) {
  .contact-content {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 1.6rem;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .contact-form-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-submit {
    width: 100%;
    justify-content: center;
  }
}

.btn-contact {
  padding: 1.6rem 2.2rem;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  border-radius: 16px;
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  font-weight: 600;
  min-width: 280px;
  position: relative;
  overflow: hidden;
}

.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}

.btn-label {
  font-size: 1.05rem;
  font-weight: 700;
  display: block;
}

.btn-description {
  font-size: 0.85rem;
  opacity: 0.85;
  font-weight: 400;
  display: block;
}

.btn-discovery {
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: none;
}

.btn-discovery:hover {
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.35);
  filter: brightness(1.03);
}

.btn-discovery i {
  font-size: 1.5rem;
}

.btn-email {
  background: transparent;
  color: var(--text-light);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.btn-email:hover {
  border-color: rgba(20, 184, 166, 0.5);
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.3);
}

.btn-email i {
  font-size: 1.4rem;
  color: var(--accent-primary);
}

.btn-contact:active {
}

.btn-large {
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  font-weight: 600;
  min-width: 240px;
  justify-content: center;
}

.btn-large:hover {
  box-shadow: 0 10px 25px rgba(20, 184, 166, 0.3);
}

.btn-large i {
  font-size: 1.3rem;
}

/* Global Form Styling - Uniform across all sections */
form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

input,
textarea,
select {
  padding: 1rem;
  background: rgba(20, 184, 166, 0.05);
  border: 1px solid rgba(20, 184, 166, 0.1);
  border-radius: 8px;
  color: var(--text-light);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  background: rgba(20, 184, 166, 0.1);
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(20, 184, 166, 0.1);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

/* Form Label Styling */
label {
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

/* Input Group Wrapper */
.form-group,
fieldset {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

fieldset {
  border: none;
  padding: 0;
}

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

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

.form-group input,
.form-group textarea {
  padding: 1rem;
  background: rgba(20, 184, 166, 0.05);
  border: 1px solid rgba(20, 184, 166, 0.1);
  border-radius: 8px;
  color: var(--text-light);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(20, 184, 166, 0.1);
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(20, 184, 166, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* Custom Scrollbar for Textarea */
.form-group textarea::-webkit-scrollbar {
  width: 10px;
}

.form-group textarea::-webkit-scrollbar-track {
  background: rgba(20, 184, 166, 0.05);
  border-radius: 10px;
}

.form-group textarea::-webkit-scrollbar-thumb {
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  border-radius: 10px;
  transition: all var(--transition-base);
}

.form-group textarea::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    135deg,
    var(--accent-secondary),
    var(--accent-tertiary)
  );
  box-shadow: 0 0 10px rgba(20, 184, 166, 0.5);
}

/* Firefox Scrollbar */
.form-group textarea {
  scrollbar-color: var(--accent-primary) rgba(20, 184, 166, 0.05);
  scrollbar-width: thin;
}

@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.footer {
  padding: 3rem 2rem;
  border-top: 1px solid rgba(20, 184, 166, 0.1);
  position: relative;
  z-index: 10;
  background: rgba(2, 6, 23, 0.5);
}

@media (max-width: 768px) {
  .footer {
    padding: 2.5rem 1.5rem;
  }
}

@media (max-width: 640px) {
  .footer {
    padding: 2rem 1rem;
  }
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .social-links {
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .social-links {
    gap: 0.8rem;
    margin-bottom: 1.5rem;
  }
}

.social-link {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.1);
  border-radius: 50%;
  color: var(--accent-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

@media (max-width: 640px) {
  .social-link {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}

.social-link:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(20, 184, 166, 0.4);
}

.footer-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

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

  .nav-menu {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.6rem 0.8rem;
  }

  .logo-brand {
    font-size: 0.85rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {
  .btn:hover,
  .project-card:hover {
    transform: none;
  }

  .btn:active,
  .project-card:active {
    transform: scale(0.98);
  }
}

/* Landscape Mode - Small Screens */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: 60px;
    padding-bottom: 2rem;
  }
}

/* Projects Refresh */
.projects-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.projects-intro {
  max-width: 640px;
}

.projects-subtitle {
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.projects-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.projects-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.75rem;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.75),
    rgba(2, 6, 23, 0.65)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    var(--shadow-strong),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  position: relative;
}

.projects-filter-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.projects-filter-toggle {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.5);
  color: var(--text-light);
  padding: 0.35rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.projects-filter-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.35);
}

.projects-filter-toggle i {
  font-size: 0.9rem;
}

.projects-filter-wrap.is-collapsed .filter-btn {
  display: none;
}

.projects-filter-wrap.is-collapsed .filter-btn[data-filter="all"] {
  display: inline-flex;
}

.filter-btn {
  border: 1px solid transparent;
  background: rgba(15, 23, 42, 0.3);
  color: var(--text-light);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.filter-btn:hover {
  border-color: rgba(20, 184, 166, 0.6);
  background: rgba(20, 184, 166, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(20, 184, 166, 0.15);
}

.filter-btn.is-active {
  background: linear-gradient(
    120deg,
    rgba(20, 184, 166, 0.25),
    rgba(245, 158, 11, 0.2)
  );
  border-color: rgba(20, 184, 166, 0.9);
  box-shadow:
    0 16px 30px rgba(20, 184, 166, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.project-card.is-hidden {
  display: none;
}

.graphics-gallery {
  grid-column: 1 / -1;
  padding: 2rem;
  border-radius: 24px;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.75),
    rgba(2, 6, 23, 0.88)
  );
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow:
    var(--shadow-strong),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: grid;
  gap: 1.75rem;
}

.graphics-gallery.is-hidden {
  display: none;
}

.graphics-gallery-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.graphics-gallery-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: rgba(148, 163, 184, 0.85);
  margin: 0 0 0.5rem;
}

.graphics-gallery-title {
  margin: 0;
  font-size: 1.6rem;
}

.graphics-gallery-subtitle {
  margin: 0;
  color: var(--text-muted);
  max-width: 420px;
  font-size: 0.95rem;
}

.projects-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.6);
  transition: all var(--transition-base);
}

.projects-cta:hover {
  border-color: rgba(20, 184, 166, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(20, 184, 166, 0.18);
}

.section-toggle {
  margin-top: 2rem;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(2, 6, 23, 0.55);
  color: var(--text-light);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
}

.section-toggle:hover {
  border-color: rgba(20, 184, 166, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.35);
}

.section-toggle::after {
  content: "\2193";
  font-size: 0.9rem;
  transition: transform var(--transition-base);
}

.section-toggle.is-expanded::after {
  transform: rotate(180deg);
}

body.theme-light .section-toggle {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

.projects .section-toggle {
  justify-self: start;
}

.project-card {
  --project-accent: #14b8a6;
  --project-accent-soft: rgba(20, 184, 166, 0.18);
  --project-accent-strong: rgba(20, 184, 166, 0.45);
  display: grid;
  grid-template-rows: 156px 1fr;
  min-height: 430px;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.75),
    rgba(2, 6, 23, 0.85)
  );
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow:
    var(--shadow-strong),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.project-card:hover {
  border-color: rgba(20, 184, 166, 0.45);
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.85),
    rgba(2, 6, 23, 0.9)
  );
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.project-card.accent-emerald {
  --project-accent: #22c55e;
  --project-accent-soft: rgba(34, 197, 94, 0.18);
  --project-accent-strong: rgba(34, 197, 94, 0.45);
}

.project-card.accent-cyan {
  --project-accent: #38bdf8;
  --project-accent-soft: rgba(56, 189, 248, 0.2);
  --project-accent-strong: rgba(56, 189, 248, 0.45);
}

.project-card.accent-rose {
  --project-accent: #f59e0b;
  --project-accent-soft: rgba(245, 158, 11, 0.2);
  --project-accent-strong: rgba(245, 158, 11, 0.45);
}

.project-card.accent-amber {
  --project-accent: #f59e0b;
  --project-accent-soft: rgba(245, 158, 11, 0.2);
  --project-accent-strong: rgba(245, 158, 11, 0.45);
}

.project-card.accent-violet {
  --project-accent: #0ea5a4;
  --project-accent-soft: rgba(139, 92, 246, 0.2);
  --project-accent-strong: rgba(139, 92, 246, 0.45);
}

.project-media {
  position: relative;
  height: 156px;
  padding: 1.2rem;
  background:
    radial-gradient(
      circle at 20% 20%,
      var(--project-accent-strong),
      transparent 55%
    ),
    linear-gradient(135deg, var(--project-accent-soft), rgba(15, 23, 42, 0.75));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.project-media.with-thumbnail {
  background: rgba(2, 6, 23, 0.85);
}

.project-thumbnail {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 0;
  transform: scale(1.02);
  transition:
    transform var(--transition-base),
    filter var(--transition-base);
  filter: saturate(0.95) contrast(1.05);
  pointer-events: none;
}

.project-card:hover .project-thumbnail {
  transform: scale(1.06);
  filter: saturate(1) contrast(1.08);
}

.project-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 75% 25%,
    rgba(255, 255, 255, 0.12),
    transparent 60%
  );
  opacity: 0.7;
}

.project-media::after {
  content: "";
  position: absolute;
  inset: -20% 0 0;
  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(255, 255, 255, 0.12),
    transparent 60%
  );
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.project-card:hover .project-media::after {
  transform: translateX(120%);
}

.project-media.with-thumbnail::before {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.2) 0%, rgba(2, 6, 23, 0.65) 100%),
    radial-gradient(
      circle at 78% 24%,
      rgba(255, 255, 255, 0.12),
      transparent 58%
    );
  opacity: 1;
}

.project-media.with-thumbnail::after {
  z-index: 2;
}

.project-media.with-thumbnail .project-badge,
.project-media.with-thumbnail .project-metric {
  z-index: 3;
}

.project-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(2, 6, 23, 0.6);
}

.project-metric {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  z-index: 1;
  font-size: 0.85rem;
  color: rgba(241, 245, 249, 0.9);
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.project-info {
  padding: 1.25rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.project-title {
  font-size: 1.35rem;
  margin: 0;
}

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

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--text-muted);
}

.project-meta-item {
  position: relative;
  padding-left: 0;
}

.project-meta-item:first-child {
  padding-left: 0;
}

.project-meta-item:first-child::before {
  display: none;
}

.project-meta-item::before {
  content: "";
  display: none;
}

.project-highlights {
  list-style: none;
  margin: 0 0 0.4rem 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.project-highlights li {
  position: relative;
  padding-left: 1.1rem;
}

.project-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--project-accent);
  opacity: 0.8;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  background: rgba(15, 23, 42, 0.4);
  transition: all var(--transition-base);
}

.project-link.primary {
  background: var(--project-accent);
  border-color: transparent;
  color: #f8fafc;
}

.project-link:hover {
  transform: translateY(-2px);
  border-color: var(--project-accent);
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.35);
}

.project-link.primary:hover {
  filter: brightness(1.05);
}

.projects-grid .project-card .project-title {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.3;
}

.projects-grid .project-card .project-desc {
  margin: 0;
  flex-grow: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.projects-grid .project-card .project-highlights li {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.projects-grid .project-card .project-tags {
  margin: 0.2rem 0 0;
  gap: 0.42rem;
}

.projects-grid .project-card .tag {
  padding: 0.3rem 0.62rem;
  font-size: 0.67rem;
}

.projects-grid .project-card .project-actions {
  margin-top: auto;
}

@media (hover: hover) and (pointer: fine) {
  .projects-grid .project-card:hover .project-desc {
    -webkit-line-clamp: 4;
  }

  .projects-grid .project-card:hover .project-highlights li {
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 768px) {
  .projects-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .projects-cta {
    width: 100%;
  }

  .projects-filter {
    width: 100%;
    gap: 0.6rem;
  }

  .project-card {
    min-height: 400px;
    grid-template-rows: 146px 1fr;
  }

  .project-media {
    height: 146px;
  }

  .filter-btn {
    text-align: center;
    flex: 1 1 150px;
  }
}

@media (max-width: 640px) {
  .project-card {
    min-height: 360px;
    grid-template-rows: 132px 1fr;
  }

  .project-media {
    height: 132px;
  }

  .project-info {
    padding: 1rem;
  }

  .project-actions {
    flex-direction: column;
  }

  .project-link {
    width: 100%;
  }

  .projects-filter {
    padding: 1rem;
  }

  .filter-btn {
    flex: 1 1 100%;
  }

  .graphics-gallery {
    padding: 1.5rem;
  }
}

/* ===================================================== */
/* Clean & Premium Refinements (Global Overrides) */
/* ===================================================== */
:root {
  --section-pad-y: 7rem;
  --section-pad-y-md: 5.5rem;
  --section-pad-y-sm: 5.5rem;
  --section-pad-y-xs: 3.75rem;
  --shadow-soft: 0 12px 30px rgba(2, 6, 23, 0.18);
  --shadow-strong: 0 24px 60px rgba(2, 6, 23, 0.28);
  --text-subtle: rgba(226, 232, 240, 0.7);
  --form-radius: 16px;
  --form-border: rgba(148, 163, 184, 0.22);
  --form-bg: rgba(15, 23, 42, 0.7);
}

body.theme-light {
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.12);
  --shadow-strong: 0 24px 60px rgba(15, 23, 42, 0.18);
  --text-subtle: rgba(15, 23, 42, 0.62);
  --form-border: rgba(15, 23, 42, 0.14);
  --form-bg: rgba(248, 250, 252, 0.98);
}

/* Typography hierarchy */
.section-title {
  font-weight: 700;
  letter-spacing: -0.4px;
}

.projects-subtitle,
.contact-subtitle,
.graphics-gallery-subtitle {
  color: var(--text-subtle);
  letter-spacing: 0;
}

.contact-trust,
.contact-highlight-desc,
.project-desc {
  color: var(--text-subtle);
}

/* Vertical rhythm */
.about,
.skills,
.projects,
.contact {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
  padding-left: 2rem;
  padding-right: 2rem;
}

@media (max-width: 1024px) {
  .about,
  .skills,
  .projects,
  .contact {
    padding-top: var(--section-pad-y-md);
    padding-bottom: var(--section-pad-y-md);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (max-width: 768px) {
  .about,
  .skills,
  .projects,
  .contact {
    padding-top: var(--section-pad-y-sm);
    padding-bottom: var(--section-pad-y-sm);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (max-width: 640px) {
  .about,
  .skills,
  .projects,
  .contact {
    padding-top: var(--section-pad-y-xs);
    padding-bottom: var(--section-pad-y-xs);
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Shadow simplification */
.project-card,
.about-text,
.contact-panel,
.contact-form,
.contact-actions-card,
.graphics-gallery,
.contact-highlight {
  box-shadow: var(--shadow-soft);
}

/* Unified button system */
.btn-primary,
.btn-discovery,
.contact-submit {
  background: linear-gradient(135deg, #14b8a6 0%, #0ea5a4 100%);
  color: #ffffff;
  border: 1px solid rgba(20, 184, 166, 0.4);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover,
.btn-discovery:hover,
.contact-submit:hover {
  background: linear-gradient(135deg, #19c4b1 0%, #12b2ac 100%);
  color: #ffffff;
  box-shadow:
    0 16px 34px rgba(2, 6, 23, 0.35),
    0 0 18px rgba(20, 184, 166, 0.25);
}

.btn-secondary,
.btn-email {
  background: rgba(15, 23, 42, 0.35);
  color: var(--text-light);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: none;
}

.btn-secondary:hover,
.btn-email:hover {
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: var(--shadow-soft);
}

body.theme-light .btn-secondary,
body.theme-light .btn-email {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
}

body.theme-light .btn-primary,
body.theme-light .btn-discovery,
body.theme-light .contact-submit {
  box-shadow: var(--shadow-soft);
}

body.theme-light .btn-primary:hover,
body.theme-light .btn-discovery:hover,
body.theme-light .contact-submit:hover {
  background: linear-gradient(135deg, #14b8a6 0%, #0ea5a4 100%);
  color: #ffffff;
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.18),
    0 0 16px rgba(20, 184, 166, 0.2);
}

/* Send button: premium neutral treatment */
.contact-submit {
  background: rgba(10, 12, 18, 0.9);
  color: var(--text-light);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow:
    0 12px 26px rgba(2, 6, 23, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.contact-submit:hover {
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-light);
  border-color: rgba(20, 184, 166, 0.5);
  box-shadow:
    0 18px 34px rgba(2, 6, 23, 0.38),
    0 0 14px rgba(20, 184, 166, 0.18);
}

body.theme-light .contact-submit {
  background: rgba(255, 255, 255, 0.98);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

body.theme-light .contact-submit:hover {
  background: rgba(255, 255, 255, 1);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.22);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.16);
}

/* Premium form consistency */
.contact-form .form-group input,
.contact-form .form-group textarea,
.contact-form .form-group select {
  background-color: var(--form-bg);
  border: 1px solid var(--form-border);
  border-radius: var(--form-radius);
}

.contact-form .form-group label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

/* Motion cleanup */
.animate-fade-up,
.animate-skill-in,
.animate-project-in,
.animate-title-in {
  animation: fadeInUpSoft 0.6s ease forwards !important;
  opacity: 0;
  transform: translateY(16px);
  filter: none;
}

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

.contact-highlight:hover,
.hero-social:hover,
.social-link:hover,
.filter-btn:hover {
  transform: none;
}

/* Light mode cleanup */
body.theme-light {
  background: #f7fafc;
}

body.theme-light .hero,
body.theme-light .about,
body.theme-light .skills,
body.theme-light .projects,
body.theme-light .contact {
  background: transparent !important;
}

body:not(.theme-light) .hero,
body:not(.theme-light) .about,
body:not(.theme-light) .skills,
body:not(.theme-light) .projects,
body:not(.theme-light) .contact {
  background: transparent !important;
}

body.theme-light .navbar,
body.theme-light .navbar.scrolling {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
}

body.theme-light .footer {
  background: #f8fafc !important;
}

/* Premium nav cleanup */
.navbar {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition:
    opacity 0.42s ease,
    transform 0.42s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.navbar.nav-auto-hide {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-10px);
}

.navbar.nav-auto-hide.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-container {
  position: relative;
}

.logo-mark {
  animation: none !important;
  transition:
    transform var(--transition-base),
    filter var(--transition-base);
}

.logo-brand:hover .logo-mark {
  transform: translateZ(0) scale(1.04);
}

.nav-link {
  padding: 0.52rem 0.78rem;
  border-radius: 999px;
  opacity: 0.9;
  background-image: none !important;
  background-size: 0 0 !important;
}

.nav-link-icon {
  display: none;
  width: 1.12rem;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.nav-link-label {
  line-height: 1.2;
}

.nav-link-badge {
  display: none;
}

.nav-mobile-profile,
.nav-mobile-divider,
.nav-mobile-footer {
  display: none;
}

.nav-mobile-profile {
  position: relative;
}

.nav-mobile-avatar {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.nav-mobile-name {
  margin-top: 0.82rem;
  font-size: 2rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #0f172a;
  font-weight: 800;
}

.nav-mobile-email {
  margin-top: 0.18rem;
  font-size: 1.04rem;
  color: rgba(15, 23, 42, 0.62);
}

.nav-mobile-corner-toggle {
  display: none;
}

.nav-mobile-signout {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 46px;
  border-radius: 999px;
  background: var(--accent-primary);
  color: #ffffff;
  border: 1px solid rgba(var(--accent-primary-rgb), 0.4);
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 20px rgba(var(--accent-primary-rgb), 0.22);
}

.nav-link.is-active {
  background-size: 100% 100%;
}

.nav-actions {
  gap: 0.6rem;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  padding: 0.56rem 1.02rem;
  border-radius: 999px;
  border: 1px solid rgba(53, 175, 183, 0.36);
  background: linear-gradient(135deg, #67e4e8 0%, #54dce3 55%, #47d2da 100%);
  color: #2b4a51;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  text-decoration: none;
  box-shadow:
    0 10px 20px rgba(63, 182, 192, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: all var(--transition-base);
  background-size: 180% 180%;
  animation: navCtaAttract 3.4s ease-in-out infinite;
}

.nav-cta::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.1) 42%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: -1;
}

.nav-cta .nav-cta-icon {
  width: 1.32rem;
  height: 1.32rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #30535a;
  border: 1px solid rgba(43, 74, 81, 0.28);
  background: rgba(255, 255, 255, 0.42);
}

.nav-cta .nav-cta-icon i {
  animation: navCtaIconNudge 2.8s ease-in-out infinite;
}

.nav-cta:hover {
  color: #1f3f46;
  border-color: rgba(44, 152, 160, 0.5);
  background: linear-gradient(135deg, #74eaed 0%, #5fe0e6 62%, #53d8df 100%);
  transform: translateY(-1px);
  box-shadow:
    0 14px 26px rgba(63, 182, 192, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.nav-cta:hover .nav-cta-icon {
  border-color: rgba(31, 63, 70, 0.36);
  background: rgba(255, 255, 255, 0.56);
}

.nav-cta:hover,
.nav-cta:focus-visible,
.nav-cta:active {
  animation-play-state: paused;
}

@keyframes navCtaAttract {
  0%,
  100% {
    background-position: 0% 50%;
    box-shadow:
      0 10px 20px rgba(63, 182, 192, 0.26),
      inset 0 1px 0 rgba(255, 255, 255, 0.55);
  }
  50% {
    background-position: 100% 50%;
    box-shadow:
      0 14px 26px rgba(63, 182, 192, 0.34),
      0 0 0 1px rgba(53, 175, 183, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.62);
  }
}

@keyframes navCtaIconNudge {
  0%,
  76%,
  100% {
    transform: translateX(0);
  }
  84% {
    transform: translateX(1px);
  }
  92% {
    transform: translateX(-1px);
  }
}

.nav-cta:focus-visible,
.theme-toggle:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid rgba(var(--accent-primary-rgb), 0.9);
  outline-offset: 2px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.58);
  color: #f8fafc;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.nav-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(2, 6, 23, 0.36);
}

body.theme-light .nav-toggle {
  border-color: rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
}

body.theme-light .nav-toggle:hover {
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}

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

body.nav-drawer-open::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.4);
  backdrop-filter: blur(2px);
  z-index: 980;
}

@media (max-width: 768px) {
  body.nav-drawer-open .navbar,
  body.nav-drawer-open .navbar.nav-auto-hide,
  body.nav-drawer-open .navbar.nav-auto-hide.is-visible {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    min-height: 0;
    transform: none !important;
  }

  body.nav-drawer-open .navbar .logo-brand,
  body.nav-drawer-open .navbar .nav-actions {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-10px) !important;
  }

  body.nav-drawer-open .navbar .nav-container {
    gap: 0 !important;
  }

  .navbar {
    left: 0.7rem;
    right: 0.7rem;
    width: auto;
    max-width: none;
    top: 0.7rem;
    padding: 0.6rem 0.8rem;
    border-radius: 18px;
    transform: none !important;
  }

  .navbar.nav-auto-hide {
    transform: none !important;
  }

  .navbar.nav-auto-hide.is-visible {
    transform: none !important;
  }

  .nav-actions {
    gap: 0.45rem;
  }

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

  .nav-cta {
    padding: 0.48rem 0.8rem;
    font-size: 0.8rem;
  }

  .nav-menu {
    position: fixed;
    top: 0.45rem;
    right: 0;
    bottom: 0.45rem;
    left: auto;
    height: calc(100dvh - 0.9rem);
    width: min(84vw, 336px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.12rem;
    margin: 0;
    padding: 1.05rem 0.9rem 0.82rem;
    border-radius: 34px 0 0 34px;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-right: none;
    box-shadow:
      0 24px 44px rgba(15, 23, 42, 0.2),
      0 0 0 1px rgba(255, 255, 255, 0.72) inset;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(104%);
    transition:
      transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0.36s ease;
    z-index: 1100;
    overflow: hidden;
    isolation: isolate;
    min-height: 0;
  }

  .nav-menu::after {
    display: none;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu.is-open {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .nav-mobile-profile {
    display: block;
    padding: 0.15rem 0.35rem 0.66rem;
  }

  .nav-mobile-divider {
    display: block;
    height: 1px;
    background: rgba(15, 23, 42, 0.12);
    margin: 0.22rem 0.35rem 0.46rem;
  }

  .nav-link {
    display: flex;
    align-items: center;
    gap: 0.84rem;
    width: 100%;
    font-size: 1.02rem;
    font-weight: 600;
    padding: 0.78rem 0.5rem;
    border-radius: 12px;
    color: #0f172a;
    background: transparent;
    border: 1px solid transparent !important;
    box-shadow: none;
    opacity: 1;
  }

  .nav-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.22rem;
    font-size: 1.02rem;
    color: rgba(15, 23, 42, 0.82);
    opacity: 1 !important;
  }

  .nav-link-label {
    color: #0f172a !important;
    opacity: 1 !important;
  }

  .nav-link-badge {
    display: inline-flex;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    padding: 0.17rem 0.5rem;
    border-radius: 999px;
    background: var(--accent-primary);
    color: #ffffff;
    font-size: 0.74rem;
    line-height: 1.1;
    font-weight: 700;
  }

  .nav-link::after {
    display: none !important;
  }

  body.theme-light .nav-menu .nav-link,
  .nav-menu .nav-link {
    color: #0f172a;
  }

  .nav-menu .nav-link:hover,
  .nav-menu .nav-link.is-active,
  .nav-menu .nav-link[aria-current="page"],
  body.theme-light .nav-menu .nav-link:hover,
  body.theme-light .nav-menu .nav-link.is-active,
  body.theme-light .nav-menu .nav-link[aria-current="page"] {
    background: rgba(var(--accent-primary-rgb), 0.14);
    border-color: transparent !important;
    color: #0f172a;
    transform: none;
    box-shadow: none;
  }

  .nav-menu .nav-link:hover .nav-link-icon,
  .nav-menu .nav-link.is-active .nav-link-icon,
  .nav-menu .nav-link[aria-current="page"] .nav-link-icon,
  body.theme-light .nav-menu .nav-link:hover .nav-link-icon,
  body.theme-light .nav-menu .nav-link.is-active .nav-link-icon,
  body.theme-light .nav-menu .nav-link[aria-current="page"] .nav-link-icon {
    color: rgba(var(--accent-primary-rgb), 0.92);
  }

  .nav-mobile-footer {
    display: block;
    margin-top: auto;
    padding: 0.95rem 0.28rem 0.2rem;
  }

  .nav-mobile-signout {
    min-height: 48px;
    font-size: 1.06rem;
  }

  .nav-mobile-signout:hover {
    background: #0ea5a4;
    color: #ffffff;
    border-color: rgba(var(--accent-primary-rgb), 0.58);
  }
}

@media (max-width: 768px) {
  body:not(.theme-light) .nav-menu {
    background: linear-gradient(180deg, #070b14 0%, #0d1422 100%);
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow:
      0 24px 44px rgba(2, 6, 23, 0.6),
      0 0 0 1px rgba(148, 163, 184, 0.12) inset;
  }

  body:not(.theme-light) .nav-mobile-divider {
    background: rgba(148, 163, 184, 0.22);
  }

  body:not(.theme-light) .nav-mobile-name {
    color: #f8fafc;
  }

  body:not(.theme-light) .nav-mobile-email {
    color: rgba(226, 232, 240, 0.75);
  }

  body:not(.theme-light) .nav-mobile-avatar {
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.45);
  }

  body:not(.theme-light) .nav-link {
    color: #e2e8f0;
  }

  body:not(.theme-light) .nav-link-icon {
    color: rgba(226, 232, 240, 0.82);
  }

  body:not(.theme-light) .nav-link-label {
    color: #e2e8f0 !important;
  }

  body:not(.theme-light) .nav-menu .nav-link:hover,
  body:not(.theme-light) .nav-menu .nav-link.is-active,
  body:not(.theme-light) .nav-menu .nav-link[aria-current="page"] {
    background: rgba(var(--accent-primary-rgb), 0.2);
    color: #f8fafc;
  }

  body:not(.theme-light) .nav-menu .nav-link:hover .nav-link-icon,
  body:not(.theme-light) .nav-menu .nav-link.is-active .nav-link-icon,
  body:not(.theme-light)
    .nav-menu
    .nav-link[aria-current="page"]
    .nav-link-icon {
    color: rgba(153, 246, 228, 0.95);
  }
}

@media (max-width: 640px) {
  .nav-menu {
    width: min(88vw, 310px);
    border-radius: 30px 0 0 30px;
    top: 0.4rem;
    right: 0;
    left: auto;
    bottom: 0.4rem;
    height: calc(100dvh - 0.8rem);
  }

  .nav-mobile-profile {
    padding-top: 0;
  }

  .nav-mobile-name {
    font-size: 1.82rem;
  }

  .nav-mobile-email {
    font-size: 0.95rem;
  }

  .nav-link {
    font-size: 0.98rem;
  }

  .nav-cta {
    display: none;
  }
}

@media (max-width: 768px) and (max-height: 700px) {
  .nav-menu {
    padding: 0.78rem 0.72rem 0.66rem;
    gap: 0.02rem;
  }

  .nav-mobile-avatar {
    width: 58px;
    height: 58px;
  }

  .nav-mobile-name {
    margin-top: 0.54rem;
    font-size: 1.42rem;
  }

  .nav-mobile-email {
    font-size: 0.84rem;
  }

  .nav-mobile-corner-toggle {
    width: 52px;
    height: 30px;
    right: 0.05rem;
  }

  .nav-mobile-divider {
    margin: 0.16rem 0.3rem 0.34rem;
  }

  .nav-link {
    padding: 0.56rem 0.46rem;
    font-size: 0.92rem;
  }

  .nav-link-icon {
    font-size: 0.92rem;
  }

  .nav-mobile-footer {
    padding-top: 0.68rem;
  }

  .nav-mobile-signout {
    min-height: 42px;
    font-size: 0.95rem;
  }
}

body.theme-light .navbar {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

body.theme-light .navbar.scrolling {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1) !important;
}

body.theme-light .nav-link.is-active {
  color: #0f172a;
  background-image: none !important;
}

/* Premium hover effects */
@media (hover: hover) and (pointer: fine) {
  body.theme-light .nav-link,
  body.theme-light .nav-cta,
  body.theme-light .btn-primary,
  body.theme-light .btn-secondary,
  body.theme-light .btn-email,
  body.theme-light .contact-submit,
  body.theme-light .hero-social,
  body.theme-light .social-link,
  body.theme-light .project-link,
  body.theme-light .project-card,
  body.theme-light .gallery-tile {
    transition:
      transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
      border-color 0.28s ease,
      background-color 0.28s ease,
      color 0.28s ease;
    will-change: transform;
  }

  body.theme-light .nav-link,
  body.theme-light .nav-cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
  }

  body.theme-light .nav-link::after,
  body.theme-light .nav-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-120%);
    background: linear-gradient(
      100deg,
      transparent 15%,
      rgba(255, 255, 255, 0.55) 50%,
      transparent 85%
    );
    transition: transform 0.6s ease;
    pointer-events: none;
    z-index: -1;
  }

  body.theme-light .nav-link:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--accent-primary-rgb), 0.3);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
    background-color: rgba(var(--accent-primary-rgb), 0.1);
  }

  body.theme-light .nav-link:hover::after,
  body.theme-light .nav-cta:hover::after {
    transform: translateX(120%);
  }

  body.theme-light .nav-cta:hover {
    transform: translateY(-2px);
    box-shadow:
      0 16px 28px rgba(63, 182, 192, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.58);
  }

  body.theme-light .btn-primary:hover,
  body.theme-light .btn-secondary:hover,
  body.theme-light .btn-email:hover,
  body.theme-light .contact-submit:hover,
  body.theme-light .project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
  }

  body.theme-light .hero-social:hover,
  body.theme-light .social-link:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.16);
    border-color: rgba(var(--accent-primary-rgb), 0.5);
  }

  body.theme-light .project-card:hover,
  body.theme-light .gallery-tile:hover {
    transform: translateY(-6px);
    box-shadow:
      0 22px 42px rgba(15, 23, 42, 0.16),
      0 0 0 1px rgba(var(--accent-primary-rgb), 0.14) inset;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-light .nav-link,
  body.theme-light .nav-cta,
  body.theme-light .btn-primary,
  body.theme-light .btn-secondary,
  body.theme-light .btn-email,
  body.theme-light .contact-submit,
  body.theme-light .hero-social,
  body.theme-light .social-link,
  body.theme-light .project-link,
  body.theme-light .project-card,
  body.theme-light .gallery-tile {
    transition: none !important;
    transform: none !important;
  }

  body.theme-light .nav-link::after,
  body.theme-light .nav-cta::after {
    display: none;
  }
}

/* Premium pseudo states: active/current/focus */
body.theme-light .nav-link[aria-current="page"],
body.theme-light .nav-link.is-active {
  color: #0f172a;
  border-color: rgba(var(--accent-primary-rgb), 0.34);
  background-color: rgba(var(--accent-primary-rgb), 0.14);
  background-image: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 8px 18px rgba(15, 23, 42, 0.1);
}

body.theme-light .nav-link[aria-current="page"]::after,
body.theme-light .nav-link.is-active::after {
  transform: translateX(115%);
  opacity: 0.8;
}

body.theme-light .nav-link:focus-visible,
body.theme-light .nav-cta:focus-visible,
body.theme-light .btn-primary:focus-visible,
body.theme-light .btn-secondary:focus-visible,
body.theme-light .btn-email:focus-visible,
body.theme-light .contact-submit:focus-visible,
body.theme-light .hero-social:focus-visible,
body.theme-light .social-link:focus-visible,
body.theme-light .project-link:focus-visible {
  outline: none;
  border-color: rgba(var(--accent-primary-rgb), 0.55);
  box-shadow:
    0 0 0 3px rgba(var(--accent-primary-rgb), 0.2),
    0 10px 20px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

body.theme-light .nav-link:active,
body.theme-light .nav-cta:active,
body.theme-light .btn-primary:active,
body.theme-light .btn-secondary:active,
body.theme-light .btn-email:active,
body.theme-light .contact-submit:active,
body.theme-light .hero-social:active,
body.theme-light .social-link:active,
body.theme-light .project-link:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.14);
}

body.theme-light .project-card:active,
body.theme-light .gallery-tile:active {
  transform: translateY(-2px) scale(0.995);
  box-shadow:
    0 14px 26px rgba(15, 23, 42, 0.14),
    0 0 0 1px rgba(var(--accent-primary-rgb), 0.16) inset;
}

@media (hover: none) and (pointer: coarse) {
  body.theme-light .nav-link:active,
  body.theme-light .nav-cta:active,
  body.theme-light .btn-primary:active,
  body.theme-light .btn-secondary:active,
  body.theme-light .btn-email:active,
  body.theme-light .contact-submit:active,
  body.theme-light .hero-social:active,
  body.theme-light .social-link:active,
  body.theme-light .project-link:active {
    transform: scale(0.985);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-cta,
  .nav-cta .nav-cta-icon i {
    animation: none !important;
    background-position: 0% 50% !important;
  }

  .nav-menu {
    transition: none !important;
  }

  .navbar {
    transition: none !important;
  }
}

/* Ensure desktop CTA visibility in nav */
@media (min-width: 769px) {
  .nav-container {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 1rem;
  }

  .nav-menu {
    margin: 0;
    justify-content: center;
    min-width: 0;
  }

  .nav-actions {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
  }

  .nav-cta {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0;
    z-index: 2;
  }
}

@media (max-width: 1024px) {
  body:not(.nav-drawer-open) .navbar {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    border-radius: 0 !important;
    transform: none !important;
  }

  body:not(.nav-drawer-open) .navbar.nav-auto-hide,
  body:not(.nav-drawer-open) .navbar.nav-auto-hide.is-visible {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  body:not(.nav-drawer-open) #home.hero {
    padding-top: 98px !important;
  }
}

@media (max-width: 768px) {
  body:not(.nav-drawer-open) #home.hero {
    padding-top: 106px !important;
  }
}

@media (max-width: 640px) {
  body:not(.nav-drawer-open) #home.hero {
    padding-top: 112px !important;
  }
}

/* ===================================================== */
/* Heroic Arena Logo Preloader                           */
/* ===================================================== */
body.is-preloading {
  overflow: hidden;
}

.preloader {
  --preloader-start-delay: 80ms;
  --preloader-deform-duration: 760ms;
  --preloader-restore-duration: 1550ms;
  --preloader-exit-duration: 760ms;
  --preloader-logo-pulse-duration: 2200ms;
  --preloader-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --preloader-blue-rgb: 80 150 255;
  --preloader-gold-rgb: 247 199 105;
  position: fixed;
  inset: 0;
  z-index: 14000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  contain: paint;
  transition:
    opacity var(--preloader-exit-duration) ease,
    visibility var(--preloader-exit-duration) ease;
}

.preloader::before {
  content: "";
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(
      circle at 50% 46%,
      rgba(var(--preloader-blue-rgb), 0.24) 0%,
      rgba(var(--preloader-blue-rgb), 0.08) 28%,
      transparent 62%
    ),
    radial-gradient(
      circle at 50% 58%,
      rgba(var(--preloader-gold-rgb), 0.24) 0%,
      rgba(var(--preloader-gold-rgb), 0.09) 22%,
      transparent 56%
    );
  opacity: 0.72;
  filter: blur(26px) saturate(1.1);
  animation: preloaderBackdrop 3600ms ease-in-out infinite alternate;
}

.preloader.is-exiting {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-scene {
  position: relative;
  width: min(62vmin, 600px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.preloader-transform {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  transform: translateZ(0);
}

.preloader-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  will-change: transform, opacity, filter, clip-path;
}

.preloader-logo-base {
  opacity: 0;
  transform: scale(1.04) translate3d(0, 0, 0);
  filter: grayscale(1) brightness(0.12) contrast(1.24) saturate(1.2);
}

.preloader-logo-final {
  opacity: 0;
  clip-path: inset(40% 40% 40% 40% round 42%);
  transform: scale(0.9) translate3d(0, 0, 0);
  filter: grayscale(1) brightness(0) invert(0.1) contrast(1.22);
}

.preloader-logo-distort {
  opacity: 0;
  mix-blend-mode: screen;
  filter: grayscale(1) brightness(1.9) contrast(1.35) blur(0.9px);
}

.preloader-logo-layer-a {
  clip-path: inset(0 0 52% 0);
}

.preloader-logo-layer-b {
  clip-path: inset(52% 0 0 0);
}

.preloader-energy-ring {
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  border: 1px solid rgba(var(--preloader-blue-rgb), 0.25);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity, filter;
}

.preloader-energy-ring-outer {
  inset: 4%;
  border-width: 2px;
  border-color: rgba(var(--preloader-gold-rgb), 0.34);
  filter: drop-shadow(0 0 16px rgba(var(--preloader-gold-rgb), 0.22));
}

.preloader-energy-ring-inner {
  inset: 16%;
  border-color: rgba(var(--preloader-blue-rgb), 0.34);
  filter: drop-shadow(0 0 14px rgba(var(--preloader-blue-rgb), 0.22));
}

.preloader-flare {
  position: absolute;
  inset: 45% -8%;
  height: 10%;
  background: linear-gradient(
    90deg,
    rgba(var(--preloader-gold-rgb), 0) 0%,
    rgba(var(--preloader-gold-rgb), 0.68) 50%,
    rgba(var(--preloader-blue-rgb), 0) 100%
  );
  filter: blur(8px);
  opacity: 0;
  transform: translateX(-34%) scaleX(0.8);
  pointer-events: none;
}

.preloader-glow {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.23) 0%,
    rgba(255, 255, 255, 0.08) 32%,
    transparent 72%
  );
  filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}

.preloader.is-animating .preloader-logo-base {
  animation:
    preloaderLogoWarp var(--preloader-deform-duration) var(--preloader-ease)
      var(--preloader-start-delay) forwards,
    preloaderLogoForge var(--preloader-restore-duration) var(--preloader-ease)
      calc(var(--preloader-start-delay) + var(--preloader-deform-duration))
      forwards;
}

.preloader.is-animating .preloader-logo-layer-a {
  animation: preloaderShardA calc(var(--preloader-deform-duration) + 220ms)
    var(--preloader-ease) var(--preloader-start-delay) forwards;
}

.preloader.is-animating .preloader-logo-layer-b {
  animation: preloaderShardB calc(var(--preloader-deform-duration) + 220ms)
    var(--preloader-ease) calc(var(--preloader-start-delay) + 30ms) forwards;
}

.preloader.is-animating .preloader-logo-final {
  animation:
    preloaderLogoReveal var(--preloader-restore-duration) var(--preloader-ease)
      calc(var(--preloader-start-delay) + var(--preloader-deform-duration))
      forwards,
    preloaderLogoBreath var(--preloader-logo-pulse-duration) ease-in-out
      calc(
        var(--preloader-start-delay) + var(--preloader-deform-duration) +
          var(--preloader-restore-duration) + 90ms
      )
      infinite;
}

.preloader.is-animating .preloader-energy-ring-outer {
  animation:
    preloaderRingOuter var(--preloader-restore-duration) var(--preloader-ease)
      calc(var(--preloader-start-delay) + 120ms) forwards,
    preloaderRingSpinOuter 3400ms linear
      calc(var(--preloader-start-delay) + var(--preloader-deform-duration))
      infinite;
}

.preloader.is-animating .preloader-energy-ring-inner {
  animation:
    preloaderRingInner var(--preloader-restore-duration) var(--preloader-ease)
      calc(var(--preloader-start-delay) + 220ms) forwards,
    preloaderRingSpinInner 3000ms linear
      calc(var(--preloader-start-delay) + var(--preloader-deform-duration))
      infinite;
}

.preloader.is-animating .preloader-flare {
  animation: preloaderFlareSweep calc(var(--preloader-restore-duration) + 300ms)
    var(--preloader-ease)
    calc(var(--preloader-start-delay) + var(--preloader-deform-duration) - 80ms)
    forwards;
}

.preloader.is-animating .preloader-glow {
  animation: preloaderCoreGlow var(--preloader-restore-duration)
    var(--preloader-ease)
    calc(var(--preloader-start-delay) + var(--preloader-deform-duration))
    forwards;
}

@keyframes preloaderBackdrop {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
    opacity: 0.62;
  }
  100% {
    transform: scale(1.06) translate3d(0, -1.5%, 0);
    opacity: 0.82;
  }
}

@keyframes preloaderLogoWarp {
  0% {
    opacity: 0;
    transform: scale(0.82) translate3d(0, 16px, 0);
    filter: grayscale(1) brightness(0.08) contrast(1.2) blur(5px);
  }
  46% {
    opacity: 0.68;
    transform: scale(0.96) translate3d(0, 4px, 0);
    filter: grayscale(1) brightness(0.26) contrast(1.22) blur(2px);
  }
  100% {
    opacity: 0.64;
    transform: scale(1.02) translate3d(0, 0, 0);
    filter: grayscale(1) brightness(0.34) contrast(1.18) blur(0.8px);
  }
}

@keyframes preloaderLogoForge {
  0% {
    opacity: 0.62;
    transform: scale(1.02) translate3d(0, 0, 0);
    filter: grayscale(1) brightness(0.34) contrast(1.2) blur(0.8px);
  }
  56% {
    opacity: 0.52;
    transform: scale(1.01) translate3d(0, 0, 0);
    filter: grayscale(1) brightness(0.49) contrast(1.14) blur(0.3px);
  }
  100% {
    opacity: 0.42;
    transform: scale(1) translate3d(0, 0, 0);
    filter: grayscale(1) brightness(0.6) contrast(1.12) blur(0.1px);
  }
}

@keyframes preloaderShardA {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(1);
  }
  42% {
    opacity: 0.34;
    transform: translate3d(-8px, -4px, 0) scale(1.01);
  }
  100% {
    opacity: 0;
    transform: translate3d(-14px, -6px, 0) scale(1);
  }
}

@keyframes preloaderShardB {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(1);
  }
  40% {
    opacity: 0.34;
    transform: translate3d(8px, 4px, 0) scale(1.01);
  }
  100% {
    opacity: 0;
    transform: translate3d(14px, 6px, 0) scale(1);
  }
}

@keyframes preloaderLogoReveal {
  0% {
    opacity: 0;
    clip-path: inset(40% 40% 40% 40% round 42%);
    transform: scale(0.9) translate3d(0, 0, 0);
    filter: grayscale(1) brightness(0) invert(0.12) contrast(1.2);
  }
  56% {
    opacity: 0.9;
    clip-path: inset(11% 11% 11% 11% round 14%);
    transform: scale(1.02) translate3d(0, 0, 0);
    filter: grayscale(1) brightness(0) invert(0.74) contrast(1.24)
      drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: scale(1.04) translate3d(0, 0, 0);
    filter: grayscale(1) brightness(0) invert(1) contrast(1.25)
      drop-shadow(0 0 12px rgba(255, 255, 255, 0.22))
      drop-shadow(0 0 26px rgba(var(--preloader-blue-rgb), 0.12))
      drop-shadow(0 0 20px rgba(var(--preloader-gold-rgb), 0.12));
  }
}

@keyframes preloaderCoreGlow {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }
  60% {
    opacity: 0.56;
    transform: scale(1.05);
  }
  100% {
    opacity: 0.35;
    transform: scale(1.14);
  }
}

@keyframes preloaderRingOuter {
  0% {
    opacity: 0;
    transform: scale(0.7) rotate(0deg);
  }
  40% {
    opacity: 0.45;
    transform: scale(1.04) rotate(18deg);
  }
  100% {
    opacity: 0.34;
    transform: scale(1.08) rotate(32deg);
  }
}

@keyframes preloaderRingInner {
  0% {
    opacity: 0;
    transform: scale(0.72) rotate(0deg);
  }
  42% {
    opacity: 0.5;
    transform: scale(1.02) rotate(-20deg);
  }
  100% {
    opacity: 0.36;
    transform: scale(1.06) rotate(-34deg);
  }
}

@keyframes preloaderRingSpinOuter {
  from {
    transform: scale(1.08) rotate(32deg);
  }
  to {
    transform: scale(1.08) rotate(392deg);
  }
}

@keyframes preloaderRingSpinInner {
  from {
    transform: scale(1.06) rotate(-34deg);
  }
  to {
    transform: scale(1.06) rotate(-394deg);
  }
}

@keyframes preloaderFlareSweep {
  0% {
    opacity: 0;
    transform: translateX(-36%) scaleX(0.7);
  }
  24% {
    opacity: 0.76;
  }
  72% {
    opacity: 0.34;
  }
  100% {
    opacity: 0;
    transform: translateX(36%) scaleX(1.04);
  }
}

@keyframes preloaderLogoBreath {
  0%,
  100% {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.048) translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .preloader::before,
  .preloader-logo-base,
  .preloader-logo-final,
  .preloader-logo-distort,
  .preloader-energy-ring,
  .preloader-flare,
  .preloader-glow {
    animation: none !important;
  }

  .preloader-logo-distort,
  .preloader-energy-ring,
  .preloader-flare {
    opacity: 0;
  }

  .preloader-logo-base {
    opacity: 0.34;
    transform: scale(1);
    filter: grayscale(1) brightness(0.5) contrast(1.12);
  }

  .preloader-logo-final {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: scale(1.02);
    filter: grayscale(1) brightness(0) invert(1) contrast(1.24);
  }

  .preloader-glow {
    opacity: 0.2;
  }
}

/* ===================================================== */
/* Contact Mobile Responsiveness Fixes                   */
/* ===================================================== */
#contact {
  overflow-x: hidden;
}

#contact .section-container {
  width: 100%;
  max-width: 1200px;
  padding-inline: clamp(0.75rem, 2.8vw, 2rem);
}

#contact .contact-shell,
#contact .contact-panel,
#contact .contact-content,
#contact .contact-content > *,
#contact .contact-actions,
#contact .contact-actions-card,
#contact .contact-form,
#contact .contact-form-grid,
#contact .contact-form-grid > *,
#contact .form-group,
#contact .contact-form-footer,
#contact .contact-highlights,
#contact .contact-highlight,
#contact .btn-contact,
#contact .btn-text {
  min-width: 0;
}

#contact .contact-form .form-group input,
#contact .contact-form .form-group textarea,
#contact .contact-form .form-group select {
  display: block;
  width: 100%;
  max-width: 100%;
}

#contact .contact-actions-card .btn-contact,
#contact .contact-actions-card .btn-discovery {
  min-width: 0;
  width: 100%;
}

#contact .btn-text {
  flex: 1;
}

#contact .btn-label,
#contact .btn-description {
  white-space: normal;
}

#contact .contact-submit {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1024px) {
  #contact .contact-panel {
    padding: 1.8rem;
  }

  #contact .contact-form {
    padding: 1.4rem;
  }

  #contact .contact-actions-card {
    padding: 1.15rem;
  }
}

@media (max-width: 768px) {
  #contact .contact-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
  }

  #contact .contact-panel {
    padding: 1.3rem;
    border-radius: 16px;
  }

  #contact .contact-form {
    padding: 1.15rem;
    border-radius: 14px;
    gap: 1rem;
  }

  #contact .contact-form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
  }

  #contact .contact-actions-card {
    padding: 1rem;
    border-radius: 14px;
    gap: 0.9rem;
  }

  #contact .btn-contact {
    padding: 1rem 1rem;
    border-radius: 13px;
    gap: 0.75rem;
  }

  #contact .btn-contact i {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  #contact .btn-label {
    font-size: 0.95rem;
    line-height: 1.25;
  }

  #contact .btn-description {
    font-size: 0.78rem;
    line-height: 1.3;
  }

  #contact .contact-form .form-group input,
  #contact .contact-form .form-group textarea,
  #contact .contact-form .form-group select {
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    font-size: 16px;
  }

  #contact .contact-form .form-group select {
    padding-right: 2.2rem;
    background-position: right 0.8rem center;
  }

  #contact .contact-form .form-group textarea {
    min-height: 120px;
  }

  #contact .contact-form-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
  }

  #contact .contact-submit {
    width: 100%;
    padding: 0.86rem 1rem;
  }

  #contact .contact-highlights {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-top: 1rem;
    padding-top: 1rem;
  }
}

@media (max-width: 640px) {
  #contact .section-container {
    padding-inline: 0.65rem;
  }

  #contact .contact-shell {
    gap: 1.2rem;
  }

  #contact .contact-panel {
    padding: 1rem;
    border-radius: 14px;
  }

  #contact .contact-actions-title {
    font-size: 1.3rem;
    line-height: 1.25;
  }

  #contact .contact-actions-desc,
  #contact .contact-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  #contact .btn-contact {
    padding: 0.9rem 0.85rem;
    gap: 0.65rem;
    align-items: flex-start;
  }

  #contact .btn-contact i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1rem;
    flex-shrink: 0;
  }

  #contact .btn-text {
    min-width: 0;
    gap: 0.2rem;
  }

  #contact .contact-form .form-group label {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  #contact .contact-form .form-group input,
  #contact .contact-form .form-group textarea,
  #contact .contact-form .form-group select {
    padding: 0.78rem 0.82rem;
    border-radius: 11px;
  }
}

@media (max-width: 420px) {
  #contact .section-container {
    padding-inline: 0.5rem;
  }

  #contact .contact-panel {
    padding: 0.88rem;
  }

  #contact .contact-actions-card,
  #contact .contact-form {
    padding: 0.88rem;
  }

  #contact .btn-contact {
    padding: 0.82rem 0.75rem;
    border-radius: 12px;
  }

  #contact .btn-contact i {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 0.95rem;
  }

  #contact .btn-label {
    font-size: 0.88rem;
  }

  #contact .btn-description {
    font-size: 0.74rem;
  }

  #contact .btn-label,
  #contact .btn-description {
    overflow-wrap: anywhere;
  }
}

/* Contact section polish */
#contact .contact-panel-trust {
  margin: 0 0 1.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.78rem;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: rgba(226, 232, 240, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(2, 6, 23, 0.5);
}

#contact .contact-panel-trust i {
  color: var(--accent-primary);
  font-size: 0.75rem;
  line-height: 1;
}

#contact .contact-panel-trust span {
  min-width: 0;
}

#contact .contact-content {
  align-items: stretch;
}

#contact .contact-actions {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

#contact .contact-actions-card {
  margin-top: 0.95rem;
  padding: 1.2rem;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.44);
  background-image: none;
  border: 1px solid rgba(148, 163, 184, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#contact .contact-direct-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.15rem;
  margin-bottom: 0;
  max-width: 100%;
}

#contact .contact-direct-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2rem;
  width: auto;
  max-width: 100%;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(2, 6, 23, 0.46);
  background-image: none;
  color: rgba(203, 213, 225, 0.9);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
}

#contact .contact-direct-item i {
  color: var(--accent-primary);
  font-size: 0.74rem;
  line-height: 1;
}

#contact .contact-direct-item[href]:hover {
  border-color: rgba(20, 184, 166, 0.46);
  background: rgba(2, 16, 28, 0.58);
  color: rgba(241, 245, 249, 0.98);
}

#contact .contact-direct-item[href]:focus-visible {
  outline: none;
  border-color: rgba(20, 184, 166, 0.52);
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.3);
  color: rgba(248, 250, 252, 0.98);
}

#contact .contact-actions-flow {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.78rem;
  margin-top: 0.92rem;
  margin-bottom: 0;
  align-items: stretch;
}

#contact .contact-actions-flow-card {
  margin: 0;
  display: grid;
  gap: 0.28rem;
  align-content: start;
  min-height: 6.2rem;
  padding: 0.86rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(2, 6, 23, 0.42);
  background-image: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#contact .contact-actions-flow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

#contact .contact-actions-flow-step {
  display: inline-flex;
  align-items: center;
  min-height: 1.32rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.45);
  color: rgba(148, 163, 184, 0.95);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#contact .contact-actions-flow-head i {
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(20, 184, 166, 0.28);
  background: rgba(20, 184, 166, 0.12);
  color: var(--accent-primary);
  font-size: 0.72rem;
  line-height: 1;
}

#contact .contact-actions-flow-title {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: rgba(241, 245, 249, 0.95);
  font-weight: 700;
}

#contact .contact-actions-flow-desc {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(148, 163, 184, 0.94);
}

#contact .contact-actions-card .btn-discovery {
  width: 100%;
  min-height: 76px;
  padding: 1.05rem 1.15rem;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.88rem;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--accent-primary);
  background-image: none;
  box-shadow:
    0 10px 22px rgba(2, 6, 23, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  filter: none;
}

#contact .contact-actions-card .btn-discovery:hover {
  transform: translateY(-1px);
  background: #18c2bb;
  background-image: none;
  box-shadow:
    0 14px 28px rgba(2, 6, 23, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  filter: none;
}

#contact .contact-actions-card .btn-discovery:active {
  transform: translateY(0);
}

#contact .contact-actions-card .btn-discovery i {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 10px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.34);
}

#contact .contact-actions-card .btn-text {
  gap: 0.14rem;
}

#contact .contact-actions-card .btn-label {
  font-size: 1.14rem;
  line-height: 1.2;
}

#contact .contact-actions-card .btn-description {
  font-size: 0.82rem;
  line-height: 1.32;
  opacity: 0.92;
}

#contact .contact-highlights {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(0.75rem, 1.6vw, 1.35rem);
  row-gap: 0.65rem;
  margin-top: 1.15rem;
  padding-top: 1.1rem;
}

#contact .contact-highlight {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.58rem;
  padding-inline: 0.12rem;
}

#contact .contact-highlight-icon {
  width: 1.05rem;
  height: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 0.82rem;
  margin-top: 0.12rem;
  flex-shrink: 0;
}

#contact .contact-highlight-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

#contact .contact-highlight-title {
  margin: 0;
  line-height: 1.2;
}

#contact .contact-highlight-desc {
  margin-top: 0;
  line-height: 1.45;
}

body.theme-light #contact .contact-panel-trust {
  color: rgba(15, 23, 42, 0.72);
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.14);
}

body.theme-light #contact .contact-actions-card {
  background: rgba(255, 255, 255, 0.95);
  background-image: none;
  border-color: rgba(15, 23, 42, 0.12);
}

body.theme-light #contact .contact-direct-item {
  color: rgba(15, 23, 42, 0.78);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.12);
}

body.theme-light #contact .contact-direct-item[href]:hover {
  color: #0f172a;
  background: rgba(20, 184, 166, 0.08);
  border-color: rgba(20, 184, 166, 0.42);
}

body.theme-light #contact .contact-direct-item[href]:focus-visible {
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.24);
}

body.theme-light #contact .contact-actions-flow-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body.theme-light #contact .contact-actions-flow-step {
  color: rgba(71, 85, 105, 0.96);
  background: rgba(248, 250, 252, 0.96);
  border-color: rgba(15, 23, 42, 0.14);
}

body.theme-light #contact .contact-actions-flow-head i {
  background: rgba(20, 184, 166, 0.14);
  border-color: rgba(20, 184, 166, 0.34);
}

body.theme-light #contact .contact-actions-flow-title {
  color: #0f172a;
}

body.theme-light #contact .contact-actions-flow-desc {
  color: rgba(51, 65, 85, 0.82);
}

body.theme-light #contact .contact-actions-card .btn-discovery {
  background: var(--accent-primary);
  background-image: none;
  box-shadow:
    0 12px 24px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

@media (max-width: 768px) {
  #contact .contact-panel-trust {
    margin-bottom: 1.05rem;
    font-size: 0.78rem;
  }

  #contact .contact-actions {
    min-height: 0;
  }

  #contact .contact-direct-list {
    margin-top: 0.92rem;
    margin-bottom: 0;
    max-width: none;
    gap: 0.45rem;
  }

  #contact .contact-direct-item {
    min-height: 1.86rem;
    padding: 0.3rem 0.66rem;
    font-size: 0.79rem;
  }

  #contact .contact-actions-flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.6rem;
    margin-top: 0.78rem;
    margin-bottom: 0;
  }

  #contact .contact-actions-flow-card {
    min-height: 0;
    padding: 0.72rem 0.76rem;
    gap: 0.24rem;
  }

  #contact .contact-actions-flow-step {
    font-size: 0.58rem;
    letter-spacing: 0.07em;
    padding: 0.14rem 0.42rem;
  }

  #contact .contact-actions-flow-head i {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.67rem;
  }

  #contact .contact-actions-flow-title {
    font-size: 0.87rem;
  }

  #contact .contact-actions-flow-desc {
    font-size: 0.75rem;
  }

  #contact .contact-actions-card {
    margin-top: 0.84rem;
    padding: 1.02rem;
  }

  #contact .contact-actions-card .btn-discovery {
    min-height: 64px;
    padding: 0.88rem 0.94rem;
    gap: 0.74rem;
  }

  #contact .contact-actions-card .btn-discovery i {
    width: 2rem;
    height: 2rem;
    font-size: 0.94rem;
  }

  #contact .contact-actions-card .btn-label {
    font-size: 1rem;
  }

  #contact .contact-actions-card .btn-description {
    font-size: 0.76rem;
  }

  #contact .contact-highlight {
    gap: 0.5rem;
    padding-inline: 0;
  }

  #contact .contact-highlights {
    grid-template-columns: 1fr;
    gap: 0.68rem;
    margin-top: 0.9rem;
    padding-top: 0.9rem;
  }
}

@media (max-width: 420px) {
  #contact .contact-direct-list {
    gap: 0.4rem;
  }

  #contact .contact-direct-item {
    padding: 0.28rem 0.58rem;
    font-size: 0.76rem;
  }

  #contact .contact-actions-flow-card {
    padding: 0.62rem 0.66rem;
  }

  #contact .contact-actions-flow-title {
    font-size: 0.83rem;
  }

  #contact .contact-actions-flow-desc {
    font-size: 0.73rem;
  }

  #contact .contact-actions-card .btn-discovery {
    min-height: 60px;
    padding: 0.82rem 0.84rem;
    gap: 0.68rem;
  }

  #contact .contact-actions-card .btn-label {
    font-size: 0.94rem;
  }

  #contact .contact-actions-card .btn-description {
    font-size: 0.72rem;
  }
}
