:root {
  /* --- CORE PALETTE --- */
  --text-color: #ffffff;
  --accent-color: #ff4d00;
  --bg-color: #050505;
  --container-bg: #0a0a0a;

  /* --- ASSETS & BACKGROUNDS --- */
  --hero-bg: url('../images/hero-text-bg.webp');
  --glass-bg: rgba(10, 10, 10, 0.6);
  --glass-border-default: rgba(255, 255, 255, 0.1);
  --overlay-bg: rgba(0, 0, 0, 0.5);

  /* --- TYPOGRAPHY --- */
  --font-main: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  /* Used for gallery/buttons */

  /* --- DIMENSIONS & SPACING --- */
  --spacing-xs: 4px;
  --spacing-sm: 10px;
  --spacing-md: 20px;
  --spacing-lg: 30px;
  --spacing-xl: 48px;

  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-pill: 50px;

  /* --- Z-INDEX LAYERS --- */
  --z-negative: -5;

  /* Backgrounds */
  --z-blob: -2;
  --z-overlay: -1;
  --z-content: 2;

  /* Hero text */
  --z-nav: 5;

  /* Nav buttons */
  --z-panel: 50;

  /* Sliding panels */
  --z-dock: 100;

  /* Settings dock */
  --z-modal: 9999;

  /* Gallery Modals */
  --z-modal-content: 10000;
  --z-close-btn: 10001;
  --z-lightbox: 11000;

  /* --- ANIMATION --- */
  --blob-blend: screen;
  --transition-speed: 0.7s;
  --easing: cubic-bezier(0.65, 0, 0.35, 1);

  /* --- BLOB COLORS --- */
  --main-b1: #0096c7;
  --main-b2: #d0006f;
  --main-b3: #3f37c9;
  --work-b1: #004b4d;
  --work-b2: #005f63;
  --work-b3: #3c093c;
  --about-b1: #7d1215;
  --about-b2: #cca000;
  --about-b3: #942b00;
  --contact-b1: #fdc500;
  --contact-b2: #1a1a1a;
  --contact-b3: #ffffff;

  /* --- GALLERY (GG) --- */
  --gg-glass-bg: rgba(255, 255, 255, 0.25);
  --gg-glass-border: rgba(255, 255, 255, 0.3);
  --gg-glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  --gg-modal-overlay: rgba(15, 23, 42, 0.85);
  --gg-btn-bg: rgba(255, 255, 255, 0.4);
  --gg-btn-hover: rgba(255, 255, 255, 0.6);
  --gg-text-color: #1e293b;

  /* Generic UI Elements */
  --ui-tech-bg: rgba(255, 255, 255, 0.1);
  --ui-social-bg: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] {
  --text-color: #111111;
  --accent-color: #ff0055;
  --bg-color: #ffffff;
  --container-bg: #f8f9fa;
  --hero-bg: url('../images/hero-text-bg-light.webp');
  --glass-bg: rgba(255, 255, 255, 0.5);
  --overlay-bg: rgba(255, 255, 255, 0.8);
  --glass-border-default: rgba(0, 0, 0, 0.1);
  --blob-blend: multiply;

  /* Blob Colors */
  --main-b1: #00b4d8;
  --main-b2: #ff6392;
  --main-b3: #a688fa;
  --work-b1: #4ecdc4;
  --work-b2: #81ecec;
  --work-b3: #c77dff;
  --about-b1: #ffadad;
  --about-b2: #ffd6a5;
  --about-b3: #ffc6ff;
  --contact-b1: #e6b800;
  --contact-b2: #74c0fc;
  --contact-b3: #adb5bd;

  /* Gallery Theme Overrides */
  --gg-glass-bg: rgba(30, 41, 59, 0.7);
  --gg-glass-border: rgba(255, 255, 255, 0.08);
  --gg-glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  --gg-modal-overlay: rgba(0, 0, 0, 0.92);
  --gg-btn-bg: rgba(255, 255, 255, 0.05);
  --gg-btn-hover: rgba(255, 255, 255, 0.15);
  --gg-text-color: #f8fafc;

  /* Generic UI Elements */
  --ui-tech-bg: rgba(0, 0, 0, 0.05);
  --ui-social-bg: rgba(0, 0, 0, 0.05);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* --- COMPONENTS: Button & Modal --- */
.gg-btn-trigger {
  font-family: var(--font-display);
  background: transparent;
  border: 1px solid var(--gg-glass-border);
  color: var(--text-color);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gg-btn-trigger:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .gg-btn-trigger {
  border-color: rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .gg-btn-trigger:hover {
  border-color: var(--accent-color);
  background: var(--accent-color);
  color: #ffffff;
}

.gg-modal,
.gg-modal * {
  box-sizing: border-box;
}

.gg-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  font-family: var(--font-display);
}

.gg-modal.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gg-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--gg-modal-overlay);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: default;
}

.gg-close-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: var(--z-close-btn);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}

.gg-close-btn:hover {
  background: rgba(220, 38, 38, 0.8);
  border-color: rgba(220, 38, 38, 1);
  transform: rotate(90deg);
}

.gg-modal-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  padding-top: 30px;
  z-index: var(--z-modal-content);
}

@media (min-width: 768px) {
  .gg-modal-container {
    padding: var(--spacing-xl);
  }
}

.gg-modal-header {
  margin-bottom: 24px;
  padding-right: 60px;
  padding-top: 10px;
}

@media (min-width: 768px) {
  .gg-modal-header {
    padding-top: 0;
  }
}

.gg-modal-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.gg-gallery-scroll {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 40px;
}

.gg-gallery-scroll::-webkit-scrollbar {
  display: none;
}

.gg-masonry-grid {
  column-count: 1;
  column-gap: var(--spacing-md);
}

@media (min-width: 640px) {
  .gg-masonry-grid {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .gg-masonry-grid {
    column-count: 3;
  }
}

@media (min-width: 1280px) {
  .gg-masonry-grid {
    column-count: 4;
  }
}

.gg-masonry-item {
  break-inside: avoid;
  margin-bottom: var(--spacing-md);
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--gg-glass-bg);
  border: 1px solid var(--gg-glass-border);
  box-shadow: var(--gg-glass-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: zoom-in;
}

.gg-masonry-item:hover {
  transform: translateY(-5px);
  z-index: 1;
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.5);
}

.gg-masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.3s ease;
  cursor: pointer;
}

/* --- Lightbox --- */
.gg-lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gg-modal-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
}

.gg-lightbox.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gg-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gg-lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
  border: 1px solid var(--gg-glass-border);
}

.gg-lightbox.visible .gg-lightbox-img {
  transform: scale(1);
}

.gg-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 32px;
  cursor: pointer;
  background: transparent;
  border: none;
  z-index: 11002;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}

.gg-lightbox-close:hover {
  color: white;
  transform: scale(1.1);
}

/* --- PARTICLES --- */
#particle-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  top: -10%;
  user-select: none;
  pointer-events: none;
  will-change: transform, top;
}

.particle.distant {
  filter: blur(2px);
  opacity: 0.6;
}

@keyframes fall {
  0% {
    top: -10%;
  }

  100% {
    top: 110%;
  }
}

@keyframes sway {
  0% {
    transform: translateX(0px) rotate(0deg);
  }

  50% {
    transform: translateX(var(--drift)) rotate(var(--rot));
  }

  100% {
    transform: translateX(0px) rotate(0deg);
  }
}

@keyframes tumble {
  0% {
    transform: rotate3d(0, 0, 1, 0deg);
  }

  100% {
    transform: rotate3d(1, 1, 1, 360deg);
  }
}

[data-theme="light"] .particle {
  filter: invert(1);
}

[data-theme="light"] .particle.distant {
  filter: invert(1) blur(2px);
}

/* --- BLOBS & BACKGROUND --- */
.blob-container,
.main-background,
.overlay {
  height: 100%;
  left: 0;
  width: 100%;
  position: absolute;
}

.blob-container {
  top: 0;
  z-index: var(--z-blob);
  background: var(--container-bg);
  overflow: hidden;
}

.main-background {
  position: fixed;
  top: 0;
  z-index: var(--z-negative);
}

.overlay {
  top: 0;
  background: var(--overlay-bg);
  backdrop-filter: blur(30px);
  z-index: var(--z-overlay);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .8;
  will-change: transform;
  mix-blend-mode: var(--blob-blend);
}

@keyframes drift1 {
  0% {
    transform: translate(0, 0) scale(1)
  }

  100% {
    transform: translate(20%, 20%) scale(1.1)
  }
}

@keyframes drift2 {
  0% {
    transform: translate(0, 0) rotate(0)
  }

  100% {
    transform: translate(-15%, -25%) rotate(90deg)
  }
}

@keyframes drift3 {
  0% {
    transform: translate(0, 0) scale(1)
  }

  50% {
    transform: translate(25%, -25%) scale(.9)
  }

  100% {
    transform: translate(-15%, 15%) scale(1.1)
  }
}

.bg-main .b1 {
  top: -10%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: var(--main-b1);
  animation: 12s ease-in-out infinite alternate drift1;
}

.bg-main .b2 {
  bottom: -10%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: var(--main-b2);
  animation: 15s ease-in-out infinite alternate-reverse drift2;
}

.bg-main .b3 {
  bottom: 20%;
  left: 20%;
  width: 40%;
  height: 40%;
  background: var(--main-b3);
  animation: 18s ease-in-out infinite alternate drift3;
}

.bg-work .b1 {
  top: -20%;
  right: -10%;
  width: 70%;
  height: 70%;
  background: var(--work-b1);
  animation: 14s ease-in-out infinite alternate drift1;
}

.bg-work .b2 {
  bottom: -20%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: var(--work-b2);
  animation: 16s ease-in-out infinite alternate-reverse drift2;
}

.bg-work .b3 {
  top: 40%;
  right: 40%;
  width: 50%;
  height: 50%;
  background: var(--work-b3);
  animation: 15s ease-in-out infinite alternate drift3;
}

.bg-about .b1 {
  top: 0;
  left: -20%;
  width: 80%;
  height: 80%;
  background: var(--about-b1);
  animation: 15s ease-in-out infinite alternate drift1;
}

.bg-about .b2 {
  bottom: -10%;
  right: -10%;
  width: 50%;
  height: 50%;
  background: var(--about-b2);
  animation: 12s ease-in-out infinite alternate-reverse drift2;
}

.bg-about .b3 {
  top: 10%;
  right: 10%;
  width: 40%;
  height: 40%;
  background: var(--about-b3);
  animation: 18s ease-in-out infinite alternate drift3;
}

.bg-contact .b1 {
  top: -30%;
  left: 20%;
  width: 70%;
  height: 70%;
  background: var(--contact-b1);
  animation: 16s ease-in-out infinite alternate drift1;
  opacity: .5;
}

.bg-contact .b2 {
  bottom: -30%;
  right: 20%;
  width: 80%;
  height: 80%;
  background: var(--contact-b2);
  animation: 14s ease-in-out infinite alternate-reverse drift2;
}

.bg-contact .b3 {
  top: 50%;
  left: 50%;
  width: 30%;
  height: 30%;
  background: var(--contact-b3);
  animation: 20s ease-in-out infinite alternate drift3;
  opacity: .4;
}

/* --- HERO --- */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100vh;
  padding: 2rem;
  z-index: var(--z-content);
  transition: transform var(--transition-speed) var(--easing), opacity .4s ease;
}

.hero.dimmed {
  transform: scale(.9);
  opacity: 0;
  pointer-events: none;
}

.hero-title {
  font-size: 9rem;
  font-weight: 900;
  margin: 0;
  text-transform: uppercase;
  background-image: var(--hero-bg);
  background-size: 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: 20s linear infinite alternate heroBg;
}

@keyframes heroBg {
  0% {
    background-position: 0 50%
  }

  100% {
    background-position: 100% 50%
  }
}

.hero-desc {
  margin-top: 1.5rem;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-color);
  letter-spacing: 1px;
  opacity: 0.9;
}

/* --- NAVIGATION --- */
.nav-trigger {
  position: fixed;
  z-index: var(--z-nav);
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  padding: var(--spacing-lg);
  color: var(--text-color);
  transition: transform .3s;
  cursor: pointer;
}

.nav-trigger:hover {
  color: var(--accent-color);
  transform: scale(1.1);
}

.top-left {
  top: 0;
  left: 0;
}

.top-right {
  top: 0;
  right: 0;
}

.bottom-left {
  bottom: 0;
  left: 0;
}

.bottom-right {
  bottom: 0;
  right: 0;
}

.close-btn {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 101;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-color);
  transition: opacity .3s, transform .4s cubic-bezier(.68, -.55, .265, 1.55), color .3s;
  opacity: 0;
  pointer-events: none;
}

.close-btn:hover {
  color: var(--accent-color);
}

body.menu-open .close-btn {
  opacity: 1;
  pointer-events: all;
}

body.menu-open .nav-trigger {
  opacity: 0;
  pointer-events: none;
}

/* --- SETTINGS DOCK --- */
.settings-dock {
  position: fixed;
  bottom: 90px;
  right: 25px;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border-default);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-pill);
  padding: 6px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  height: 44px;
  overflow: hidden;
  max-width: 300px;
}

.dock-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  border-radius: 50%;
  transition: transform 0.4s ease, background 0.3s;
  flex-shrink: 0;
}

.dock-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .dock-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.settings-dock.collapsed .dock-toggle {
  transform: rotate(180deg);
}

.dock-content {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 8px;
  padding-right: 8px;
  opacity: 1;
  transition: opacity 0.3s ease 0.1s;
}

.settings-dock.collapsed {
  max-width: 44px;
  padding-left: 6px;
}

.settings-dock.collapsed .dock-content {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.dock-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dock-btn,
.dock-text-btn {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  opacity: 0.5;
  transition: 0.3s;
  border-radius: 50%;
}

.dock-btn {
  width: 28px;
  height: 28px;
}

.dock-text-btn {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0 6px;
  height: 28px;
  border-radius: 14px;
}

.dock-btn:hover,
.dock-text-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .dock-btn:hover,
[data-theme="light"] .dock-text-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.dock-btn.active,
.dock-text-btn.active {
  opacity: 1;
  background: var(--text-color);
  color: var(--bg-color);
}

.dock-divider {
  width: 1px;
  height: 16px;
  background: var(--text-color);
  opacity: 0.2;
  margin: 0 4px;
}

/* --- PANELS --- */
.panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-panel);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
  background: 0 0;
  overflow: hidden;
  transition: transform var(--transition-speed) var(--easing), opacity var(--transition-speed) ease;
}

.panel.work-panel {
  transform: translateY(-105%);
}

.panel.about-panel {
  transform: translateX(-105%);
}

.panel.contact-panel {
  transform: translateY(105%);
}

.panel.active {
  transform: translate(0, 0);
  pointer-events: all;
}

.panel-content {
  max-width: 800px;
  width: 100%;
  z-index: 10;
  position: relative;
}

.panel h2 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 2rem;
  letter-spacing: -1px;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* --- WORK CONTENT --- */
.work-list {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 15px;
  margin-bottom: 20px;
}

.work-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--spacing-md) 0;
  border-bottom: 2px solid var(--glass-border-default);
  color: var(--text-color);
  transition: border-color .3s, transform .3s, padding-left .3s;
  gap: 20px;
}

.work-item:hover {
  border-color: var(--accent-color);
  transform: translateX(5px);
  padding-left: 10px;
}

.work-link-wrapper {
  text-decoration: none;
  color: inherit;
  flex: 1;
  display: block;
}

.work-info h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #fff;
}

[data-theme="light"] .work-info h3 {
  color: #111;
}

.work-desc {
  font-weight: 300;
  font-size: 1rem;
  opacity: .7;
  line-height: 1.5;
  margin-top: 5px;
  max-width: 95%;
}

.work-num {
  font-size: 1rem;
  opacity: .5;
  margin-right: 10px;
  color: var(--accent-color);
}

.work-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  min-width: 140px;
}

.work-tech {
  font-size: 0.9rem;
  opacity: .8;
  white-space: nowrap;
  background: var(--ui-tech-bg);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

[data-theme="light"] .work-tech {
  border-color: rgba(0, 0, 0, .1);
}

/* --- ABOUT & CONTACT --- */
.about-scroll-wrapper {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 15px;
  margin-bottom: 20px;
}

.about-intro {
  line-height: 1.6;
  font-size: 1.3rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

.section-subtitle {
  font-size: 1.2rem;
  opacity: .9;
  margin-bottom: 1rem;
}

.services-list {
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.service-item {
  font-size: 1rem;
  color: var(--text-color);
  opacity: 0.85;
  display: flex;
  align-items: center;
}

.service-item::before {
  content: "•";
  color: var(--accent-color);
  margin-right: 10px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-stack span {
  font-weight: 600;
  padding: 8px 16px;
  font-size: .9rem;
  border: 1px solid var(--glass-border-default);
  border-radius: var(--radius-pill);
  background: var(--ui-tech-bg);
  transition: background .3s;
}

.tech-stack span:hover {
  background: rgba(255, 255, 255, .15);
}

.email-link {
  font-size: 2.5rem;
  color: var(--contact-b1);
  text-decoration: none;
  font-weight: 700;
  word-break: break-all;
  display: block;
  margin-bottom: 1rem;
  transition: transform .3s;
}

.email-link:hover {
  transform: scale(1.05);
}

.contact-text {
  margin-top: 20px;
  opacity: .8;
  font-size: 1.1rem;
}

.social-links {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  opacity: .8;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: var(--ui-social-bg);
  transition: .3s;
}

.social-item:hover {
  opacity: 1;
  transform: translateY(-3px);
  background: rgba(255, 255, 255, .15);
}

/* --- UTILITIES --- */
.btn-outline {
  display: inline-block;
  padding: 15px 30px;
  border: 1px solid var(--text-color);
  border-radius: var(--radius-pill);
  letter-spacing: 1px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  transition: .3s;
}

.btn-outline:hover {
  background: var(--text-color);
  color: var(--bg-color);
  transform: translateY(-3px);
}

.text-link {
  color: var(--text-color);
  text-decoration: none;
  opacity: .7;
  border-bottom: 1px solid var(--text-color);
  padding-bottom: 2px;
  transition: opacity .3s;
}

.text-link:hover {
  opacity: 1;
}

.view-all-container,
.download-container {
  margin-top: 40px;
  text-align: center;
}

[data-theme="light"] .btn-outline,
[data-theme="light"] .tech-stack span,
[data-theme="light"] .social-item {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .btn-outline:hover,
[data-theme="light"] .tech-stack span:hover,
[data-theme="light"] .social-item:hover {
  background: var(--text-color);
  color: var(--bg-color);
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .02);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(125, 125, 125, .3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

[data-i18n] {
  transition: opacity .3s, transform .3s;
  opacity: 1;
  transform: translateY(0);
  display: inline-block;
}

.text-changing {
  opacity: 0;
  transform: translateY(5px);
}

/* --- RESPONSIVE OPTIMIZATION --- */
@media (max-width: 768px) {
  .hero-title {
    font-size: 5rem;
  }

  .panel h2 {
    font-size: 2.5rem;
  }

  .email-link {
    font-size: 1.5rem;
  }

  .nav-trigger {
    font-size: .75rem;
    padding: var(--spacing-md);
  }

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

  .work-item {
    flex-direction: column;
    gap: 15px;
  }

  .work-meta {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed var(--glass-border-default);
    padding-top: 10px;
  }

  .work-desc {
    max-width: 100%;
  }

  .panel {
    padding: 0 !important;
  }

  .panel-content {
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    padding: 100px 25px 120px;
    scrollbar-width: none;
  }

  .panel-content::-webkit-scrollbar {
    display: none;
  }

  .blob {
    filter: blur(40px);
    opacity: 0.6;
  }
}

body.menu-open .main-background .blob,
body.menu-open .hero-title {
  animation-play-state: paused !important;
}

.panel:not(.active) .blob {
  animation-play-state: paused !important;
}