/* ===== CSS VARIABLES & RESET ===== */
:root {
  --font: 'Inter', system-ui, sans-serif;
  --max-w: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
}

[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #181818;
  --text: #ffffff;
  --text-muted: #999999;
  --text-subtle: #555555;
  --accent: #ffffff;
  --accent-light: #cccccc;
  --accent-glow: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --nav-bg: rgba(0, 0, 0, 0.75);
  --overlay: rgba(0, 0, 0, 0.75);

  /* Liquid Glass System (Dark Mode) */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-bg-hover: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-hover: rgba(255, 255, 255, 0.28);
  --glass-highlight: rgba(255, 255, 255, 0.22);
  --glass-highlight-hover: rgba(255, 255, 255, 0.38);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --glass-shadow-hover: 0 14px 40px rgba(255, 255, 255, 0.1);
  --glass-blur: blur(16px) saturate(160%);
  --glass-fallback-bg: #111111;

  /* Button Specific Tokens (Dark Mode) */
  /* Primary = Metallic brushed-silver gradient */
  --btn-primary-gradient: linear-gradient(135deg, #e8e8e8 0%, #ffffff 20%, #c0c0c0 40%, #f5f5f5 60%, #aaaaaa 80%, #e0e0e0 100%);
  --btn-primary-gradient-hover: linear-gradient(135deg, #ffffff 0%, #e8e8e8 18%, #b8b8b8 38%, #ffffff 58%, #c8c8c8 78%, #f0f0f0 100%);
  --btn-primary-text: #111111;
  --btn-primary-border: rgba(255, 255, 255, 0.55);
  --btn-primary-border-top: rgba(255, 255, 255, 0.9);
  --btn-primary-shadow: 0 6px 24px rgba(255, 255, 255, 0.22), 0 2px 8px rgba(0,0,0,0.4);
  --btn-primary-shadow-hover: 0 10px 36px rgba(255, 255, 255, 0.32), 0 4px 12px rgba(0,0,0,0.5);

  /* Outline = Liquid Glass */
  --btn-outline-bg: rgba(255, 255, 255, 0.07);
  --btn-outline-bg-hover: rgba(255, 255, 255, 0.15);
  --btn-outline-text: #ffffff;
  --btn-outline-border: rgba(255, 255, 255, 0.2);
  --btn-outline-border-hover: rgba(255, 255, 255, 0.45);
  --btn-outline-highlight: rgba(255, 255, 255, 0.3);
  --btn-outline-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --btn-outline-shadow-hover: 0 12px 40px rgba(255, 255, 255, 0.12), 0 4px 16px rgba(0,0,0,0.5);

  /* Filter Button Glass */
  --btn-filter-bg: rgba(255, 255, 255, 0.05);
  --btn-filter-border: rgba(255, 255, 255, 0.1);
  --btn-filter-bg-active: rgba(255, 255, 255, 0.12);
  --btn-filter-border-active: rgba(255, 255, 255, 0.35);
  --btn-filter-text-active: #ffffff;

  /* Metallic Finish System (Dark Mode: Brushed Silver / Chrome) */
  --metallic-gradient: linear-gradient(135deg, #ffffff 0%, #d0d0d0 25%, #888888 50%, #e8e8e8 75%, #a0a0a0 100%);
  --metallic-gradient-hover: linear-gradient(135deg, #ffffff 0%, #e8e8e8 20%, #999999 45%, #ffffff 70%, #b0b0b0 100%);
  --metallic-divider: linear-gradient(to bottom, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.35) 100%);
  --metallic-divider-h: linear-gradient(to right, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.35) 100%);
  --metallic-logo-filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.4)) brightness(1.2);
  --metallic-text-shadow: 0 0 12px rgba(255, 255, 255, 0.2);

  /* Card Cursor Glare (Dark Mode) */
  --card-glare-color: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;
  --text: #000000;
  --text-muted: #555555;
  --text-subtle: #999999;
  --accent: #000000;
  --accent-light: #333333;
  --accent-glow: rgba(0, 0, 0, 0.05);
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.18);
  --nav-bg: rgba(255, 255, 255, 0.75);
  --overlay: rgba(255, 255, 255, 0.75);

  /* Liquid Glass System (Light Mode) */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-hover: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(0, 0, 0, 0.1);
  --glass-border-hover: rgba(0, 0, 0, 0.22);
  --glass-highlight: rgba(255, 255, 255, 0.85);
  --glass-highlight-hover: rgba(255, 255, 255, 1);
  --glass-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  --glass-shadow-hover: 0 14px 36px rgba(0, 0, 0, 0.12);
  --glass-blur: blur(16px) saturate(160%);
  --glass-fallback-bg: #ffffff;

  /* Button Specific Tokens (Light Mode) */
  /* Primary = Metallic dark graphite gradient */
  --btn-primary-gradient: linear-gradient(135deg, #1a1a1a 0%, #484848 20%, #111111 40%, #3a3a3a 60%, #0a0a0a 80%, #2a2a2a 100%);
  --btn-primary-gradient-hover: linear-gradient(135deg, #333333 0%, #5a5a5a 18%, #222222 38%, #4a4a4a 58%, #111111 78%, #3c3c3c 100%);
  --btn-primary-text: #ffffff;
  --btn-primary-border: rgba(0, 0, 0, 0.6);
  --btn-primary-border-top: rgba(255, 255, 255, 0.3);
  --btn-primary-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0,0,0,0.15);
  --btn-primary-shadow-hover: 0 10px 32px rgba(0, 0, 0, 0.35), 0 4px 10px rgba(0,0,0,0.2);

  /* Outline = Liquid Glass */
  --btn-outline-bg: rgba(255, 255, 255, 0.52);
  --btn-outline-bg-hover: rgba(255, 255, 255, 0.8);
  --btn-outline-text: #111111;
  --btn-outline-border: rgba(0, 0, 0, 0.12);
  --btn-outline-border-hover: rgba(0, 0, 0, 0.28);
  --btn-outline-highlight: rgba(255, 255, 255, 0.92);
  --btn-outline-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
  --btn-outline-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.14);

  /* Filter Button Glass */
  --btn-filter-bg: rgba(255, 255, 255, 0.45);
  --btn-filter-border: rgba(0, 0, 0, 0.1);
  --btn-filter-bg-active: rgba(0, 0, 0, 0.88);
  --btn-filter-border-active: rgba(0, 0, 0, 0.5);
  --btn-filter-text-active: #ffffff;

  /* Metallic Finish System (Light Mode: Brushed Graphite / Dark Titanium) */
  --metallic-gradient: linear-gradient(135deg, #111115 0%, #3d3d46 25%, #1a1a20 50%, #585866 75%, #22222a 100%);
  --metallic-gradient-hover: linear-gradient(135deg, #000000 0%, #484854 20%, #22222b 45%, #666675 70%, #30303c 100%);
  --metallic-divider: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.3) 100%);
  --metallic-divider-h: linear-gradient(to right, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.3) 100%);
  --metallic-logo-filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3)) contrast(1.2);
  --metallic-text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

  /* Card Cursor Glare (Light Mode) */
  --card-glare-color: rgba(220, 210, 190, 0.15);
}

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

/* ===== THEMED CUSTOM SCROLLBAR ===== */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-hover) var(--bg);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 4px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
  position: relative;
}

/* ===== SUBTLE GRAIN/NOISE OVERLAY ===== */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== SECTION HEADERS ===== */
.section-header { text-align: center; margin-bottom: 64px; }

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--metallic-gradient);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
  transition: background-position 0.8s ease, filter var(--transition);
}

.section-tag:hover {
  background-position: 100% 100%;
  filter: drop-shadow(var(--metallic-text-shadow));
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-title--left { text-align: left; }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== BUTTONS ===== */

/* Shimmer sweep animation */
@keyframes btn-sheen {
  0%   { left: -80%; }
  100% { left: 130%; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  transform: translate(var(--mag-x, 0px), var(--mag-y, 0px));
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

/* ─── PRIMARY: Metallic Gradient Button ─── */
.btn--primary {
  background: var(--btn-primary-gradient);
  background-size: 200% 200%;
  color: var(--btn-primary-text);
  border: 1px solid var(--btn-primary-border);
  border-top-color: var(--btn-primary-border-top);
  box-shadow: var(--btn-primary-shadow);
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Metallic sheen sweep on primary */
.btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%);
  transform: skewX(-20deg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.btn--primary:hover {
  background: var(--btn-primary-gradient-hover);
  background-size: 200% 200%;
  transform: translateY(-3px) scale(1.02) translate(var(--mag-x, 0px), var(--mag-y, 0px));
  box-shadow: var(--btn-primary-shadow-hover);
}

.btn--primary:hover::before {
  opacity: 1;
  animation: btn-sheen 0.75s ease forwards;
}

/* ─── OUTLINE: Liquid Glass Button ─── */
.btn--outline {
  background: var(--btn-outline-bg);
  border: 1px solid var(--btn-outline-border);
  border-top-color: var(--btn-outline-highlight);
  color: var(--btn-outline-text);
  box-shadow: var(--btn-outline-shadow), inset 0 1px 0 var(--btn-outline-highlight);
}

/* Glass top-edge highlight shimmer */
.btn--outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
  transform: skewX(-20deg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.btn--outline:hover {
  background: var(--btn-outline-bg-hover);
  border-color: var(--btn-outline-border-hover);
  border-top-color: var(--btn-outline-highlight);
  color: var(--btn-outline-text);
  transform: translateY(-3px) scale(1.02) translate(var(--mag-x, 0px), var(--mag-y, 0px));
  box-shadow: var(--btn-outline-shadow-hover), inset 0 1px 0 var(--btn-outline-highlight);
}

.btn--outline:hover::before {
  opacity: 1;
  animation: btn-sheen 0.75s ease forwards;
}

.btn--full { width: 100%; justify-content: center; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  transition: all var(--transition);
}

.navbar--scrolled {
  box-shadow: var(--glass-shadow), inset 0 -1px 1px 0 var(--glass-highlight);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar__logo { display: flex; align-items: center; }

.navbar__logo img,
.footer__logo,
.about__logo-img {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.navbar__logo:hover img,
.footer__logo:hover,
.about__logo-img:hover {
  transform: scale(1.05);
  filter: var(--metallic-logo-filter);
}

.logo-desktop { height: 32px; width: auto; transition: opacity var(--transition); }
.logo-mobile { height: 36px; width: auto; display: none; transition: opacity var(--transition); }

.navbar__links {
  display: flex;
  gap: 36px;
}

.navbar__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
  border-radius: 2px;
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--text);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
  border: 1px solid var(--border);
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-glow);
}

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

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.hamburger__line {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.navbar__hamburger.active .hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__hamburger.active .hamburger__line:nth-child(2) {
  opacity: 0;
}
.navbar__hamburger.active .hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg);
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

[data-theme="light"] .hero__bg-img {
  opacity: 0.25;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 30%, transparent 60%, var(--bg) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 32px;
  animation: fadeInDown 0.8s ease;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero__title {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero__title-accent {
  background: var(--metallic-gradient);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  transition: background-position 0.8s ease, filter var(--transition);
}

.hero__title-accent:hover {
  background-position: 100% 100%;
  filter: drop-shadow(var(--metallic-text-shadow));
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero__stat { text-align: center; }

.hero__stat-number {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}

.hero__stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: var(--metallic-divider);
  transition: background var(--transition);
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-subtle);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: fadeInUp 1s ease 0.6s both;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

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

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

/* ===== SERVICES ===== */
.services {
  padding: 120px 0;
  background: var(--bg-alt);
}

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

.service-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%) padding-box,
              linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 40px 32px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .service-card {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.01) 100%) padding-box,
              linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%) border-box;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transition: transform 0.28s ease;
}

.service-card:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.04) 100%) padding-box,
              linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.12) 100%) border-box;
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), 0 0 20px var(--accent-glow);
}

[data-theme="light"] .service-card:hover {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.02) 100%) padding-box,
              linear-gradient(135deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.12) 100%) border-box;
}

.service-card:hover::before { transform: scaleX(1); }

.service-card__number {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  background: var(--metallic-gradient);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 24px;
  box-shadow: 0 0 12px var(--accent-glow);
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.service-card:hover .service-card__icon {
  box-shadow: 0 0 24px var(--accent-glow), 0 0 12px rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.service-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-card__tags span {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.service-card__tags span:hover {
  color: var(--accent);
  border-color: var(--border-hover);
  background: var(--accent-glow);
}

/* ===== PORTFOLIO ===== */
.portfolio { padding: 120px 0; }

.portfolio__filter {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}

.portfolio__filter-btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--btn-filter-bg);
  border: 1px solid var(--btn-filter-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.portfolio__filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
  transform: skewX(-20deg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.portfolio__filter-btn:hover {
  color: var(--text);
  background: var(--btn-outline-bg-hover);
  border-color: var(--btn-outline-border-hover);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight-hover);
  transform: translateY(-1px);
}

.portfolio__filter-btn:hover::before {
  opacity: 1;
  animation: btn-sheen 0.75s ease forwards;
}

.portfolio__filter-btn.active {
  background: var(--btn-filter-bg-active);
  color: var(--btn-filter-text-active);
  border-color: var(--btn-filter-border-active);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.25);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portfolio__item { border-radius: var(--radius); overflow: hidden; }

.portfolio__img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
}

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

.portfolio__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio__item:hover img { transform: scale(1.05); }

.portfolio__item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition);
}

.portfolio__item:hover .portfolio__item-overlay { opacity: 1; }

.portfolio__item-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-light);
  margin-bottom: 4px;
}

.portfolio__item-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.portfolio__item-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

.portfolio__item a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Premium Brand/Logo Spotlight Cards */
.portfolio__item--brand {
  display: flex;
  flex-direction: column;
  background: transparent;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio__item--brand:hover {
  transform: translateY(-8px);
}

.portfolio__brand-card {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 48px;
  transition: border-color var(--transition), background var(--transition);
}

.portfolio__item--brand:hover .portfolio__brand-card {
  border-color: var(--accent);
  background: var(--bg-card-hover, rgba(255, 255, 255, 0.03));
}

[data-theme="light"] .portfolio__item--brand:hover .portfolio__brand-card {
  background: rgba(0, 0, 0, 0.02);
}

.portfolio__brand-logo {
  width: 100%;
  height: 100%;
  max-width: 65%;
  max-height: 45%;
  object-fit: contain;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio__item--brand:hover .portfolio__brand-logo {
  transform: scale(1.08);
}

.portfolio__brand-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0;
  filter: blur(40px);
  z-index: 1;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.portfolio__item--brand:hover .portfolio__brand-glow {
  opacity: 0.12;
}

[data-theme="light"] .portfolio__brand-glow {
  background: radial-gradient(circle, #000 0%, transparent 70%);
}

[data-theme="light"] .portfolio__item--brand:hover .portfolio__brand-glow {
  opacity: 0.08;
}

.portfolio__brand-info {
  padding: 16px 4px 8px 4px;
}

.portfolio__brand-cat {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
  transition: color var(--transition);
}

.portfolio__item--brand:hover .portfolio__brand-cat {
  color: var(--accent);
}

.portfolio__brand-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.portfolio__brand-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.portfolio__brand-arrow {
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
  transition: stroke var(--transition), transform 0.4s ease;
}

.portfolio__item--brand:hover .portfolio__brand-arrow {
  stroke: var(--accent);
  transform: translate(3px, -3px);
}

.portfolio__brand-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 6px 0 0 0;
}

.portfolio__item.hidden {
  display: none;
}

/* ===== ABOUT ===== */
.about {
  padding: 120px 0;
  background: var(--bg-alt);
}

.about__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}

.about__text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about__highlights {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.about__highlight {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.about__highlight-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.about__highlight:hover .about__highlight-icon {
  box-shadow: 0 0 24px var(--accent-glow), 0 0 12px rgba(255, 255, 255, 0.25);
  border-color: var(--glass-border-hover);
  transform: scale(1.05);
}

.about__highlight strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

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

.about__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__logo-showcase {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__logo-showcase::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(20px);
  z-index: 1;
  pointer-events: none;
}

.about__logo-img {
  width: 80px;
  height: auto;
  position: relative;
  z-index: 2;
  transition: opacity var(--transition);
}

.about__logo-ring {
  position: absolute;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation: spin 20s linear infinite;
}

.about__logo-ring--outer {
  width: 220px;
  height: 220px;
  border-style: dashed;
  animation: spin 30s linear infinite reverse, ambient-ring-pulse 4s ease-in-out infinite;
}

@keyframes ambient-ring-pulse {
  0%, 100% {
    box-shadow: 0 0 15px var(--accent-glow), inset 0 0 15px var(--accent-glow);
    border-color: rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 32px var(--accent-glow), inset 0 0 25px var(--accent-glow);
    border-color: rgba(255, 255, 255, 0.45);
  }
}

[data-theme="light"] .about__logo-ring {
  border-color: rgba(0, 0, 0, 0.2);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== CONTACT ===== */
.contact { padding: 120px 0; }

.contact .section-tag {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}

.contact .section-tag::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent);
}

.contact .section-title {
  background: linear-gradient(180deg, #ffffff 0%, #a1a1a1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .contact .section-title {
  background: linear-gradient(180deg, #111111 0%, #666666 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact__inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: start;
}

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

.contact__info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow), inset 0 1px 1px 0 var(--glass-highlight);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.contact__info-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover), inset 0 1px 1px 0 var(--glass-highlight-hover);
  transform: translateY(-3px);
}

/* ===== CURSOR-FOLLOWING GLARE ON CARDS ===== */
.service-card::after,
.contact__info-card::after,
.portfolio__brand-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    var(--card-glare-color, rgba(255, 255, 255, 0.15)),
    transparent 40%
  );
}

.service-card:hover::after,
.contact__info-card:hover::after,
.portfolio__brand-card:hover::after {
  opacity: 1;
}

/* ===== BRAND LOGO PLACEHOLDER ===== */
.portfolio__brand-logo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  background: var(--accent-glow);
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  width: 100%;
  height: 100%;
  max-width: 65%;
  max-height: 45%;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact__info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.contact__info-card h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact__info-card a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.contact__info-card a:hover { color: var(--accent); }

.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 20px;
}

.contact__form .form-group {
  position: relative;
}

.contact__form .form-group:nth-child(1) { grid-column: 1; }
.contact__form .form-group:nth-child(2) { grid-column: 2; }
.contact__form .form-group:nth-child(3) { grid-column: 1 / -1; }
.contact__form #contact-submit { grid-column: 1 / -1; }

@media (max-width: 768px) {
  .contact__form {
    grid-template-columns: 1fr;
  }
  .contact__form .form-group:nth-child(1),
  .contact__form .form-group:nth-child(2) {
    grid-column: 1;
  }
}

.form-group__icon {
  position: absolute;
  left: 16px;
  top: 17px;
  width: 18px;
  height: 18px;
  color: var(--text-subtle);
  pointer-events: none;
  transition: color 0.2s ease, transform 0.2s ease;
  z-index: 3;
}

.form-group:has(textarea) .form-group__icon,
.form-group__icon--textarea {
  top: 18px;
}

.form-group.is-focused .form-group__icon,
.form-group:focus-within .form-group__icon {
  color: var(--accent);
}

.form-group label {
  position: absolute;
  left: 44px;
  top: 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 4;
  margin-bottom: 0;
  line-height: 1;
}

.form-group:has(textarea) label,
.form-group--textarea label {
  top: 18px;
}

.form-group.is-focused label,
.form-group.has-value label,
.form-group:focus-within label {
  top: -10px;
  left: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

[data-theme="light"] .form-group.is-focused label,
[data-theme="light"] .form-group.has-value label,
[data-theme="light"] .form-group:focus-within label {
  background: var(--bg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 18px 16px 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  outline: none;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 0 3px var(--accent-glow), 0 0 20px var(--accent-glow);
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
  background: rgba(0, 0, 0, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: transparent;
  transition: color 0.2s ease;
}

.form-group.is-focused input::placeholder,
.form-group.is-focused textarea::placeholder,
.form-group:focus-within input::placeholder,
.form-group:focus-within textarea::placeholder {
  color: var(--text-subtle);
}

.form-group textarea {
  resize: none;
  min-height: 120px;
  overflow-y: hidden;
}

#contact-submit svg {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#contact-submit:hover svg {
  transform: translateX(4px);
}

/* ===== FOOTER ===== */
.footer {
  padding: 60px 0 0;
  border-top: none;
  position: relative;
  background: var(--bg-alt);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
  pointer-events: none;
}

[data-theme="light"] .footer::before {
  background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.15) 50%, transparent 100%);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__logo { height: 28px; width: auto; margin-bottom: 16px; transition: opacity var(--transition); }

.footer__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 320px;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.28s ease, border-color 0.28s ease, background-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

.footer__social-link:hover {
  color: var(--accent);
  border-color: var(--border-hover);
  background: var(--accent-glow);
  box-shadow: 0 0 16px var(--accent-glow), 0 0 6px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.footer__heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer__links li { margin-bottom: 12px; }

.footer__links a {
  position: relative;
  display: inline-block;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.28s ease;
}

.footer__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 1.5px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
  transition: width 0.28s ease;
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__links a:hover::after {
  width: 100%;
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
}

.footer__bottom p {
  font-size: 0.82rem;
  color: var(--text-subtle);
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 968px) {
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .about__inner { grid-template-columns: 1fr; gap: 48px; }
  .about__visual { order: -1; }
  .section-title--left { text-align: center; }
  .about__content .section-tag { display: block; text-align: center; }
  .contact__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .services__grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 768px) {
  :root {
    --glass-blur: blur(10px) saturate(140%);
  }

  .logo-desktop { display: none; }
  .logo-mobile { display: block; }

  .navbar__nav {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 999;
  }

  .navbar__nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .navbar__links {
    flex-direction: column;
    gap: 0;
  }

  .navbar__link {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .navbar__link::after { display: none; }

  .navbar__hamburger { display: flex; }

  .hero__title { font-size: clamp(1.8rem, 7vw, 2.8rem); }

  .hero__stats {
    flex-direction: column;
    gap: 16px;
  }

  .hero__stat-divider {
    width: 40px;
    height: 1px;
    background: var(--metallic-divider-h);
  }

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

  .hero__scroll-indicator { display: none; }

  .services, .portfolio, .about, .contact { padding: 80px 0; }

  .section-header { margin-bottom: 48px; }

  /* Disable glare and magnetic pull on mobile */
  .service-card::after,
  .contact__info-card::after,
  .portfolio__brand-card::after {
    display: none !important;
  }

  .btn {
    --mag-x: 0px !important;
    --mag-y: 0px !important;
  }

  body::before {
    opacity: 0.015;
  }
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 990; /* Below navbar (1000) and mobile navigation menu (999) to prevent overlapping */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: 50%;
  /* Same appearance as .btn--outline */
  background: var(--btn-outline-bg);
  border: 1px solid var(--btn-outline-border);
  border-top-color: var(--btn-outline-highlight);
  color: var(--btn-outline-text);
  box-shadow: var(--btn-outline-shadow), inset 0 1px 0 var(--btn-outline-highlight);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-radius 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background var(--transition),
              border-color var(--transition),
              box-shadow 0.4s ease,
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
}

/* Light theme handled entirely by --btn-outline-* variables, no override needed */

.whatsapp-float__text {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.25s ease, 
              margin 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.whatsapp-float__icon-wrap {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 211, 102, 0.15);
  color: var(--text);
  position: relative;
  transition: all 0.3s ease;
}

.whatsapp-float__icon {
  width: 22px;
  height: 22px;
  transition: all 0.3s ease;
}

.whatsapp-float__dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34d399; /* Green active dot */
  border: 2px solid transparent;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.5);
  animation: pulse-dot 2s infinite;
}

/* Hover: same as .btn--outline:hover */
.whatsapp-float:hover {
  width: auto;
  max-width: 220px;
  border-radius: 50px;
  padding: 0 10px 0 20px;
  background: var(--btn-outline-bg-hover);
  border-color: var(--btn-outline-border-hover);
  border-top-color: var(--btn-outline-highlight);
  color: var(--btn-outline-text);
  transform: translateY(-3px);
  box-shadow: var(--btn-outline-shadow-hover), inset 0 1px 0 var(--btn-outline-highlight);
}


.whatsapp-float:hover .whatsapp-float__text {
  max-width: 130px;
  opacity: 1;
  margin-right: 8px;
}

.whatsapp-float:hover .whatsapp-float__icon-wrap {
  background: #25D366;
  color: #ffffff;
}

.whatsapp-float:hover .whatsapp-float__dot {
  border-color: #25D366;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
  }
  
  .whatsapp-float__icon-wrap {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .whatsapp-float__icon {
    width: 20px;
    height: 20px;
  }
  
  .whatsapp-float__text {
    display: none; /* Hide text on mobile entirely to avoid any resizing layout shifts */
  }
  
  .whatsapp-float:hover {
    width: 58px;
    max-width: 58px;
    padding: 0;
    transform: scale(1.05) translateY(-2px);
  }
}


/* ===== FALLBACK FOR BACKDROP-FILTER ===== */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .navbar,
  .service-card,
  .contact__info-card,
  .btn,
  .whatsapp-float {
    background: var(--glass-fallback-bg);
  }
}


/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: zoom-out;
}

.lightbox__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 95vw;
  max-height: 95vh;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox.active .lightbox__content {
  transform: scale(1) translateY(0);
}

.lightbox__img {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__caption {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
}

.lightbox__close {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  transform: rotate(90deg) scale(1.1);
}

/* Clickable cursor on design portfolio items */
.portfolio__item[data-category="design"] .portfolio__img-wrap {
  cursor: zoom-in;
}

/* Ensure correct zoom pivot */
.lightbox__img {
  transform-origin: center center;
  will-change: transform;
  -webkit-user-drag: none;
  user-select: none;
}

/* Zoom % badge */
#lightbox-zoom-hint {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10001;
}


#lightbox-zoom-hint.visible {
  opacity: 1;
}

/* ── Nav prev / next buttons ── */
.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.lightbox__nav--prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox__nav--next:hover { transform: translateY(-50%) translateX(3px); }

.lightbox__nav:disabled {
  opacity: 0.2;
  cursor: default;
  pointer-events: none;
}

/* ── Image counter badge ── */
.lightbox__counter {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 5px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
  z-index: 10001;
}

/* ── Crossfade on image switch ── */
.lightbox__img.fading {
  opacity: 0;
  transition: opacity 0.18s ease !important;
}
.lightbox__img {
  transition: opacity 0.18s ease, transform 0.25s ease;
}

@media (max-width: 600px) {
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__nav { width: 40px; height: 40px; }
}
