/* ==========================================================================
   PORTFOLIO DESIGN SYSTEM - MARSHA RIFKY F
   Theme: Dynamic Drifting Clouds Atmosphere & High-Contrast Dribbble Cards
   ========================================================================== */

:root {
  /* Dynamic Palette Tokens */
  --primary: #2563eb;
  --primary-rgb: 37, 99, 235;
  --primary-hover: #1d4ed8;
  --primary-light: #38bdf8;
  --secondary: #06b6d4;
  --secondary-rgb: 6, 182, 212;
  --accent: #f43f5e;
  --success: #10b981;

  /* Card Surfaces & Dark Obsidian Contrast */
  --card-dark: #151515;
  --card-dark-hover: #1c1c1c;
  --card-surface: #1e1e1e;
  --card-border: rgba(255, 255, 255, 0.12);
  --card-border-subtle: rgba(255, 255, 255, 0.08);

  /* Typography Colors */
  --text-pure: #ffffff;
  --text-dimmed: #a1a1aa;
  --text-dark-label: #18181b;
  --heading-dark: #0f172a;

  /* Cinematic Cirrus Sky Palette (Photorealistic Soft Atmosphere) */
  --sky-top: #38bdf8;
  --sky-mid: #7dd3fc;
  --sky-bot: #f0f9ff;
  --cirrus-1: rgba(255, 255, 255, 0.88);
  --cirrus-2: rgba(240, 249, 255, 0.65);
  --cirrus-3: rgba(186, 230, 253, 0.45);
  --sun-glow: radial-gradient(circle at 75% 15%, rgba(255, 255, 255, 0.45) 0%, rgba(254, 240, 138, 0.2) 30%, transparent 65%);

  /* Dimensions & Spacing */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-full: 9999px;
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.18s ease-out;
}

/* Theme Variances */
[data-theme="cloud-sunset"] {
  --sky-top: #ea580c;
  --sky-mid: #db2777;
  --sky-bot: #4c1d95;
  --cirrus-1: rgba(254, 240, 138, 0.85);
  --cirrus-2: rgba(251, 146, 60, 0.65);
  --cirrus-3: rgba(244, 114, 182, 0.45);
  --sun-glow: radial-gradient(circle at 75% 25%, rgba(254, 240, 138, 0.55) 0%, rgba(249, 115, 22, 0.3) 35%, transparent 70%);
  --primary: #f59e0b;
}

[data-theme="cloud-night"] {
  --sky-top: #030712;
  --sky-mid: #0b1329;
  --sky-bot: #111827;
  --cirrus-1: rgba(165, 180, 252, 0.4);
  --cirrus-2: rgba(99, 102, 241, 0.28);
  --cirrus-3: rgba(30, 41, 59, 0.5);
  --sun-glow: radial-gradient(circle at 75% 15%, rgba(199, 210, 254, 0.3) 0%, rgba(99, 102, 241, 0.15) 30%, transparent 65%);
  --heading-dark: #f8fafc;
  --card-dark: #0d111a;
  --card-dark-hover: #141b2a;
}

/* Reset & Global Base Styles */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  min-height: 100vh;
  position: relative;
  color: var(--heading-dark);
  background-color: var(--sky-bot);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

main {
  position: relative;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Typography Headings */
h1, h2, h3, h4, h5, h6, .brand-name, .service-main-heading, .exp-box-title, .exp-company-name {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
  font-weight: 800;
  line-height: 1.15;
}

p {
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  transition: var(--transition);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ==========================================================================
   CINEMATIC CIRRUS CLOUDS & SOFT ATMOSPHERIC FOG SKY
   ========================================================================== */
.clouds-atmosphere-wrapper {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  contain: layout paint size;
  transform: translateZ(0);
}

.cloud-sky-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 42%, var(--sky-bot) 100%);
  transition: background 0.8s ease;
}

.sunlight-atmosphere-glow {
  position: absolute;
  inset: 0;
  background: var(--sun-glow);
  pointer-events: none;
  opacity: 0.85;
  transition: background 0.8s ease;
}

/* Layered Natural Cirrus Cloud Streams */
.cirrus-cloud-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 300%;
  height: 100%;
  background-repeat: repeat-x;
  pointer-events: none;
  will-change: transform;
}

/* High Altitude Wispy Cirrus Streams */
.cirrus-layer-back {
  background-image: 
    radial-gradient(ellipse 900px 140px at 400px 120px, var(--cirrus-1) 0%, var(--cirrus-2) 40%, transparent 75%),
    radial-gradient(ellipse 1100px 180px at 1400px 220px, var(--cirrus-1) 0%, var(--cirrus-3) 45%, transparent 80%),
    radial-gradient(ellipse 800px 130px at 2200px 150px, var(--cirrus-2) 0%, transparent 70%);
  background-size: 2400px 100%;
  animation: driftCirrus 80s linear infinite;
  opacity: 0.75;
  filter: blur(14px);
}

/* Mid Altitude Soft Feathered Cloud Banks */
.cirrus-layer-mid {
  background-image: 
    radial-gradient(ellipse 750px 190px at 250px 380px, var(--cirrus-1) 0%, var(--cirrus-2) 45%, transparent 75%),
    radial-gradient(ellipse 950px 220px at 1100px 420px, var(--cirrus-1) 0%, var(--cirrus-3) 50%, transparent 80%),
    radial-gradient(ellipse 850px 200px at 1950px 340px, var(--cirrus-1) 0%, var(--cirrus-2) 45%, transparent 75%);
  background-size: 2200px 100%;
  animation: driftCirrus 52s linear infinite;
  opacity: 0.85;
  filter: blur(10px);
}

/* Foreground Delicate Cirrus Streaks */
.cirrus-layer-front {
  background-image: 
    radial-gradient(ellipse 650px 120px at 500px 200px, var(--cirrus-1) 0%, var(--cirrus-2) 35%, transparent 70%),
    radial-gradient(ellipse 700px 150px at 1350px 580px, var(--cirrus-1) 0%, var(--cirrus-3) 40%, transparent 75%),
    radial-gradient(ellipse 600px 130px at 2100px 280px, var(--cirrus-1) 0%, transparent 65%);
  background-size: 2000px 100%;
  animation: driftCirrus 35s linear infinite;
  opacity: 0.7;
  filter: blur(6px);
}

/* Atmospheric Soft Mist Horizon Flows */
.atmospheric-mist-flow {
  position: absolute;
  inset: 0;
  width: 200%;
  height: 100%;
  background-repeat: repeat-x;
  pointer-events: none;
}

.mist-flow-1 {
  background-image: radial-gradient(ellipse 1000px 250px at 600px 700px, var(--cirrus-2) 0%, transparent 70%),
                    radial-gradient(ellipse 1200px 280px at 1600px 750px, var(--cirrus-3) 0%, transparent 75%);
  background-size: 2000px 100%;
  animation: driftMistFlow 45s linear infinite;
  opacity: 0.65;
  filter: blur(25px);
}

.mist-flow-2 {
  background-image: radial-gradient(ellipse 900px 220px at 300px 850px, var(--cirrus-1) 0%, transparent 65%),
                    radial-gradient(ellipse 1100px 260px at 1300px 880px, var(--cirrus-2) 0%, transparent 70%);
  background-size: 1800px 100%;
  animation: driftMistFlow 30s linear infinite reverse;
  opacity: 0.55;
  filter: blur(20px);
}

@keyframes driftCirrus {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-33.333%, 0, 0); }
}

@keyframes driftMistFlow {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* ==========================================================================
   CUSTOM CURSOR & FLOATING PREVIEW TOOLTIP
   ========================================================================== */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--heading-dark);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s, transform 0.08s linear;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.22s, height 0.22s, border-color 0.22s, transform 0.12s ease-out;
}

.cursor-ring.active {
  width: 55px;
  height: 55px;
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.12);
}

/* Floating Hover Preview Card (Matching Image 2 phone cluster on hover) */
.floating-preview-card {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 800;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85) rotate(-3deg);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-preview-card.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(2deg);
}

.preview-card-inner {
  display: flex;
  align-items: center;
  gap: -12px;
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.preview-phone {
  width: 60px;
  height: 105px;
  background: #111;
  border-radius: 8px;
  border: 2px solid #222;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

.phone-1 { transform: rotate(-6deg) translateY(-2px); z-index: 1; }
.phone-2 { transform: rotate(0deg) scale(1.05); z-index: 2; }
.phone-3 { transform: rotate(6deg) translateY(2px); z-index: 1; }

.preview-phone .phone-notch {
  width: 20px;
  height: 4px;
  background: #000;
  margin: 2px auto;
  border-radius: 2px;
}

.phone-screen {
  width: 100%;
  height: calc(100% - 8px);
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.screen-1 { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.screen-2 { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.screen-3 { background: linear-gradient(135deg, #10b981, #06b6d4); }

/* ==========================================================================
   CONTAINER & GLOBAL ELEMENTS
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 60px 0;
  position: relative;
  z-index: 1;
}

.gradient-text {
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="cloud-night"] .gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 60%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Global Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #111111;
  color: #ffffff;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.96rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  color: var(--heading-dark);
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--heading-dark);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
}

.btn-glass:hover {
  background: #111111;
  color: #ffffff;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.84rem;
  border-radius: var(--radius-sm);
}

.btn-block { width: 100%; }

/* ==========================================================================
   STICKY NAVBAR & DOCK
   ========================================================================== */
.glass-navbar-container {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 90;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.glass-navbar {
  width: 100%;
  max-width: 1220px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-full);
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  height: 56px;
  white-space: nowrap;
}

[data-theme="cloud-night"] .glass-navbar {
  background: rgba(14, 19, 32, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.logo-symbol {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #111111;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.logo-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  white-space: nowrap;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--heading-dark);
  white-space: nowrap;
  line-height: 1.2;
}

.brand-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.64rem;
  color: var(--success);
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  margin-top: 1px;
}

.status-pulse {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
  animation: pulseStatus 2s infinite;
}

@keyframes pulseStatus {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  color: #4b5563;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
}

[data-theme="cloud-night"] .nav-link {
  color: #94a3b8;
}

.nav-link:hover, .nav-link.active {
  color: #111111;
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="cloud-night"] .nav-link:hover, [data-theme="cloud-night"] .nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.project-count-badge {
  background: #111111;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-left: 2px;
  line-height: 1;
}

[data-theme="cloud-night"] .project-count-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #38bdf8;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-cta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-full) !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
}

.nav-cta span {
  white-space: nowrap !important;
}

/* Floating Dock */
.floating-dock {
  position: fixed;
  right: 24px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
}

.dock-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--heading-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  position: relative;
  transition: var(--transition);
}

[data-theme="cloud-night"] .dock-btn {
  background: rgba(18, 24, 38, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.dock-btn:hover {
  transform: scale(1.1);
  background: #111111;
  color: #ffffff;
}

/* Scroll Top Button with Circular Progress Ring */
.scroll-top-btn {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: visible;
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.scroll-top-btn i {
  position: relative;
  z-index: 2;
  font-size: 0.95rem;
  color: var(--heading-dark);
  transition: transform 0.2s ease;
  pointer-events: none;
}

[data-theme="cloud-night"] .scroll-top-btn i {
  color: #ffffff;
}

.scroll-top-btn:hover i {
  transform: translateY(-2px);
  color: #ffffff;
}

.progress-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: rotate(-90deg);
  z-index: 1;
}

.progress-ring__circle {
  stroke: var(--primary);
  stroke-dasharray: 113;
  stroke-dashoffset: 113;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.15s ease;
}

.dock-tooltip {
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: #111111;
  color: #ffffff;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 10;
}

.dock-btn:hover .dock-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.icon-sound-off { display: none; }
.sound-muted .icon-sound-on { display: none; }
.sound-muted .icon-sound-off { display: inline-block; color: var(--accent); }

/* Theme Menu */
.theme-dropdown-wrapper { position: relative; }
.theme-palette-menu {
  position: absolute;
  right: 56px;
  bottom: 0;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: var(--transition);
}

.theme-palette-menu.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.palette-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  color: #374151;
  font-size: 0.82rem;
  font-weight: 600;
}

.palette-option:hover, .palette-option.active {
  background: #f3f4f6;
  color: #000;
}

.color-dot { width: 12px; height: 12px; border-radius: 50%; }
.color-dot.day { background: #38bdf8; }
.color-dot.sunset { background: #f97316; }
.color-dot.night { background: #1e1b4b; }

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: 145px;
  padding-bottom: 45px;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.status-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.84rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.hero-title {
  font-size: 3.1rem;
  color: var(--heading-dark);
  margin-bottom: 12px;
}

.hero-role-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  color: #4b5563;
  margin-bottom: 14px;
  font-family: 'JetBrains Mono', monospace;
}

.role-typewriter {
  color: var(--primary);
  font-weight: 700;
}

.typewriter-cursor {
  color: var(--primary);
  animation: blink 0.9s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-description {
  font-size: 1.02rem;
  color: #475569;
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: 24px;
}

.hero-description strong {
  color: var(--heading-dark);
  font-weight: 700;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-label {
  font-size: 0.82rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--heading-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.social-icon:hover {
  background: #111111;
  color: #ffffff;
  transform: translateY(-3px);
}

/* Hero 3D Card */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card-3d {
  width: 100%;
  max-width: 430px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

[data-theme="cloud-night"] .hero-card-3d {
  background: rgba(14, 19, 32, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

.orbit-node {
  position: absolute;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #111;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  animation: floatNode 6s ease-in-out infinite alternate;
  z-index: 2;
}

.node-php { top: -15px; right: 20px; color: #777bb4; }
.node-node { top: 35%; left: -30px; animation-delay: -2s; color: #16a34a; }
.node-python { bottom: 110px; right: -20px; animation-delay: -4s; color: #0284c7; }
.node-database { bottom: -15px; left: 30px; animation-delay: -1.5s; color: #d97706; }
.node-js { top: 30px; left: 10px; animation-delay: -3s; color: #f59e0b; }

@keyframes floatNode {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-14px); }
}

.hero-center-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.avatar-ring {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: linear-gradient(135deg, #111111, #333333);
  padding: 3px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.avatar-ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="cloud-night"] .avatar-ring-inner {
  background: #0f172a;
}

.center-icon-pulse {
  font-size: 2.2rem;
  color: var(--primary);
}

.code-preview-widget {
  width: 100%;
  background: #151515;
  border-radius: var(--radius-md);
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.code-header {
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.code-header .dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.code-file {
  margin-left: 6px;
  color: #94a3b8;
  font-size: 0.72rem;
}

.code-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.c-keyword { color: #f43f5e; }
.c-var { color: #60a5fa; }
.c-string { color: #34d399; }
.c-accent { color: #fcd34d; }

/* Stats Grid */
.hero-stats-ribbon { margin-top: 36px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

[data-theme="cloud-night"] .stat-card {
  background: rgba(18, 24, 38, 0.75);
  border-color: rgba(255, 255, 255, 0.1);
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: #111111;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.stat-number {
  font-size: 1.85rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--heading-dark);
}

.stat-plus, .stat-sub {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}

/* ==========================================================================
   /SERVICE SECTION (Exact Dribbble Style with Interactive Floating Mockups)
   ========================================================================== */
.service-section {
  padding: 90px 0;
}

.service-header-row {
  margin-bottom: 40px;
}

.service-main-heading {
  font-size: 3.2rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
}

[data-theme="cloud-night"] .service-main-heading {
  color: #f8fafc;
}

.service-subtext {
  font-size: 0.95rem;
  color: #64748b;
}

.service-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.service-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  cursor: pointer;
}

[data-theme="cloud-night"] .service-item {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

/* Collapsed Row State (Visible by default) */
.service-row-collapsed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 10px;
  transition: var(--transition);
}

.service-row-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  transition: var(--transition);
}

[data-theme="cloud-night"] .service-row-title {
  color: #f8fafc;
}

.service-row-arrow {
  font-size: 1.6rem;
  color: #0f172a;
  transition: var(--transition);
}

[data-theme="cloud-night"] .service-row-arrow {
  color: #f8fafc;
}

.service-item:hover .service-row-title {
  transform: translateX(8px);
  color: var(--primary);
}

.service-item:hover .service-row-arrow {
  transform: translate(4px, -4px);
  color: var(--primary);
}

/* Active Expanded Capsule Card (Exact match to Dribbble Image 1) */
.service-card-active {
  display: none;
  background: #171717;
  border-radius: 14px;
  padding: 40px 36px;
  color: #ffffff;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  margin: 16px 0;
  overflow: visible;
}

.service-item.expanded .service-row-collapsed {
  display: none;
}

.service-item.expanded .service-card-active {
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: expandCard 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes expandCard {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.service-card-text {
  max-width: 440px;
  z-index: 2;
}

.service-item-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.service-item-desc {
  font-size: 0.96rem;
  color: #a1a1aa;
  line-height: 1.6;
}

/* Floating 3D Phone & Laptop Mockups Cluster */
.service-floating-mockups {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 2;
  margin-right: 20px;
}

.mockup-phone-cluster-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

/* 3D Laptop Mockup Stage */
.mockup-laptop-wrap {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  perspective: 900px;
}

.mockup-laptop-stage {
  position: relative;
  width: 100%;
  transform: rotateX(8deg) rotateY(-6deg) rotateZ(2deg);
  transition: transform 0.4s ease;
  transform-style: preserve-3d;
}

.service-floating-mockups:hover .mockup-laptop-stage {
  transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1.04);
}

.laptop-screen-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #0f172a;
  border: 6px solid #1e293b;
  border-bottom: 5px solid #1e293b;
  border-radius: 10px 10px 2px 2px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.15);
  overflow: hidden;
  box-sizing: border-box;
}

.laptop-camera-dot {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  z-index: 3;
}

.laptop-screen {
  width: 100%;
  height: 100%;
  background: #090d16;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.laptop-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.laptop-base-keyboard {
  position: relative;
  width: 114%;
  left: -7%;
  height: 10px;
  background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
  border-radius: 2px 2px 8px 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.laptop-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 3px;
  background: #0f172a;
  border-radius: 0 0 3px 3px;
}

.hide-laptop { display: none !important; }
.hide-phones { display: none !important; }

.mockup-phone {
  width: 90px;
  height: 155px;
  background: #ffffff;
  border-radius: 12px;
  border: 3px solid #e4e4e7;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease;
}

.mockup-phone.phone-left {
  transform: rotate(-10deg) translateY(-8px);
}
.mockup-phone.phone-center {
  transform: rotate(0deg) scale(1.08) translateY(-14px);
  z-index: 3;
}
.mockup-phone.phone-right {
  transform: rotate(10deg) translateY(4px);
}

.service-floating-mockups:hover .phone-left {
  transform: rotate(-14deg) translateX(-8px) translateY(-10px);
}
.service-floating-mockups:hover .phone-right {
  transform: rotate(14deg) translateX(8px) translateY(8px);
}

.phone-header-bar {
  height: 14px;
  background: #f4f4f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
}
.phone-header-bar span {
  width: 14px;
  height: 3px;
  background: #d4d4d8;
  border-radius: 2px;
}

.phone-screen-content {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
}

.screen-dashboard .mock-dash-top { height: 16px; background: #e0f2fe; border-radius: 4px; }
.screen-dashboard .mock-dash-chart { height: 40px; background: #bae6fd; border-radius: 4px; }
.screen-dashboard .mock-dash-grid { display: flex; gap: 4px; }
.screen-dashboard .mock-dash-grid span { flex: 1; height: 35px; background: #e0f2fe; border-radius: 4px; }

.screen-mobile-app .mock-app-avatar { width: 22px; height: 22px; border-radius: 50%; background: #60a5fa; }
.screen-mobile-app .mock-app-bubble { height: 30px; background: #dbeafe; border-radius: 6px; }
.screen-mobile-app .mock-app-card { height: 45px; background: #f3f4f6; border-radius: 6px; }

.screen-chat .mock-chat-bubble { height: 14px; border-radius: 4px; }
.mock-chat-bubble.b1 { width: 70%; background: #3b82f6; align-self: flex-end; }
.mock-chat-bubble.b2 { width: 80%; background: #e5e7eb; }
.screen-chat .mock-chat-card { height: 45px; background: #18181b; border-radius: 6px; }

.screen-code .mock-code-line { height: 6px; border-radius: 2px; }
.mock-code-line.l1 { width: 85%; background: #f43f5e; }
.mock-code-line.l2 { width: 60%; background: #3b82f6; }
.mock-code-line.l3 { width: 90%; background: #10b981; }

.screen-portal .mock-dash-top { height: 20px; background: #0284c7; border-radius: 4px; }
.screen-portal .mock-dash-grid span { height: 50px; background: #f1f5f9; }

/* Close Button on Active Card */
.service-close-btn {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  z-index: 4;
}

.service-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

/* ==========================================================================
   /EXPERIENCE SECTION (Exact Dribbble Style with Background Watermark)
   ========================================================================== */
.experience-section {
  padding: 90px 0;
}

.experience-showcase-box {
  background: #141414;
  border-radius: 16px;
  padding: 56px 48px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Huge Background Watermark Text */
.experience-watermark {
  position: absolute;
  top: -10px;
  left: 30px;
  font-family: 'Outfit', sans-serif;
  font-size: 7.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.04);
  letter-spacing: 0.04em;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.exp-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
  gap: 16px;
}

.exp-box-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.exp-box-badge {
  font-size: 0.95rem;
  color: #a1a1aa;
  font-weight: 500;
}

/* Experience Rows */
.exp-rows-list {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.exp-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
  cursor: pointer;
}

.exp-row-item:last-child {
  border-bottom: none;
}

.exp-row-item:hover {
  background: rgba(255, 255, 255, 0.03);
  padding-left: 18px;
}

.exp-left-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.exp-company-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  transition: var(--transition);
}

.exp-row-item:hover .exp-company-name {
  color: var(--primary-light);
}

.exp-role-name {
  font-size: 0.88rem;
  color: #71717a;
}

.exp-right-date {
  font-size: 0.9rem;
  color: #a1a1aa;
  font-family: 'JetBrains Mono', monospace;
}

/* ==========================================================================
   FEATURED PROJECTS SECTION
   ========================================================================== */
.projects-section {
  padding: 90px 0;
}

.section-header {
  margin-bottom: 48px;
}

.section-header.text-center {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-full);
  color: #111;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: 2.75rem;
  color: var(--heading-dark);
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.02rem;
  color: #4b5563;
}

.project-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 9px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #4b5563;
  font-size: 0.88rem;
  font-weight: 600;
}

.filter-tab:hover {
  background: #ffffff;
  color: #000;
}

.filter-tab.active {
  background: #111111;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.search-box-wrapper {
  position: relative;
  min-width: 280px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.9rem;
}

.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-full);
  padding: 10px 40px 10px 42px;
  color: #111;
  font-size: 0.88rem;
  outline: none;
}

.search-input:focus {
  border-color: #111;
  background: #ffffff;
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  display: none;
}
.search-clear-btn.visible { display: block; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

.project-card {
  background: #141414;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.2);
}

.project-card-thumb {
  position: relative;
  height: 200px;
  background: #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-illustration {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.15) 0%, #0d0d0d 80%);
}

.thumb-preview-window {
  width: 85%;
  height: 75%;
  background: #18181b;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.thumb-window-bar {
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.thumb-window-dots { display: flex; gap: 4px; }
.thumb-window-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.thumb-window-title { font-size: 0.65rem; color: #71717a; font-family: 'JetBrains Mono', monospace; }

.thumb-window-canvas {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.card-category-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #1e1e24;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  z-index: 3;
}

.card-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 4;
}
.project-card:hover .card-hover-overlay { opacity: 1; }

.card-hover-btn {
  background: #ffffff;
  color: #000000;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.project-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  color: #ffffff;
}

.project-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.project-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  min-height: 2.8em;
  display: flex;
  align-items: flex-start;
}

.project-card-icon {
  font-size: 1.2rem;
  color: var(--primary-light);
}

.project-card-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #a1a1aa;
  margin-bottom: 18px;
  flex: 1;
}

.project-metrics-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 18px;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: #d4d4d8;
}

.project-card-footer {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-action-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   SKILLS & TECHNICAL CAPABILITIES
   ========================================================================== */
.skills-layout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-category-card {
  background: #141414;
  border-radius: var(--radius-xl);
  padding: 28px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.cat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--primary-light);
}

.cat-desc { font-size: 0.78rem; color: #71717a; }

.skill-bars-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.skill-pct { color: var(--primary-light); font-family: 'JetBrains Mono', monospace; }

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%);
  border-radius: var(--radius-full);
}

.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.s-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  color: #a1a1aa;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-card-wrapper {
  background: #141414;
  border-radius: var(--radius-xl);
  padding: 48px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
}

.contact-headline {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.contact-desc {
  font-size: 0.95rem;
  color: #a1a1aa;
  margin-bottom: 32px;
}

.contact-direct-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.direct-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 18px;
  border-radius: var(--radius-md);
}

.direct-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.direct-icon.wa-icon { background: rgba(37, 211, 102, 0.2); color: #25d366; }

.direct-label { display: block; font-size: 0.75rem; color: #71717a; }
.direct-val { font-size: 0.95rem; font-weight: 600; color: #ffffff; }

.btn-copy { color: #a1a1aa; padding: 8px; }
.btn-copy:hover { color: #ffffff; }

.social-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.soc-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d4d4d8;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.soc-pill:hover { background: #ffffff; color: #000000; }

.contact-form-panel {
  background: #1c1c1e;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.form-header { margin-bottom: 24px; }
.form-header h3 { font-size: 1.35rem; margin-bottom: 4px; }
.form-sub { font-size: 0.82rem; color: #71717a; }

.interactive-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: #a1a1aa; }

.form-control {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: #ffffff;
  font-size: 0.92rem;
  outline: none;
}
.form-control:focus { border-color: #ffffff; }

select.form-control { cursor: pointer; }
select.form-control option { background: #1c1c1e; color: #fff; }

.template-chips-wrapper { 
  display: flex; 
  flex-direction: column;
  gap: 10px;
}

.template-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}

.chip-title { font-size: 0.75rem; color: #71717a; font-weight: 600; }

.btn-template-chip {
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  color: #a1a1aa;
  font-size: 0.78rem;
  white-space: nowrap;
  transition: var(--transition);
  flex: 0 0 auto;
  width: auto;
  display: inline-flex;
  align-items: center;
}
.btn-template-chip:hover { background: rgba(255, 255, 255, 0.15); color: #fff; border-color: rgba(255,255,255,0.25); }

.form-submit-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-section {
  padding: 60px 0 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.6);
}

[data-theme="cloud-night"] .footer-section {
  background: #080c14;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--heading-dark);
}

.footer-tagline { font-size: 0.85rem; color: #64748b; max-width: 320px; }
.footer-nav { display: flex; gap: 20px; list-style: none; }
.footer-nav a { color: #4b5563; font-size: 0.88rem; font-weight: 600; }
.footer-nav a:hover { color: #000; }

.copyright-text { font-size: 0.85rem; color: #64748b; margin-bottom: 4px; }
.tech-badge-footer { font-size: 0.75rem; color: #94a3b8; font-family: 'JetBrains Mono', monospace; }

/* ==========================================================================
   MODAL & CLI TERMINAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-dialog {
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #ffffff;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal-dialog { transform: scale(1); }

.modal-header {
  padding: 20px 28px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-category-badge { font-size: 0.72rem; font-weight: 700; color: var(--primary-light); text-transform: uppercase; }
.modal-project-title { font-size: 1.55rem; color: #fff; }

.modal-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close-btn:hover { background: #ef4444; color: #fff; }

.modal-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
}

.modal-tab-btn {
  padding: 12px 20px;
  color: #a1a1aa;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.modal-tab-btn.active { color: #fff; border-bottom-color: #fff; background: rgba(255, 255, 255, 0.05); }

.modal-body { padding: 28px; overflow-y: auto; flex: 1; }
.modal-tab-pane { display: none; }
.modal-tab-pane.active { display: block; }

.modal-hero-banner {
  height: 160px;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.25) 0%, #0d0d0d 85%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--primary-light);
}

.modal-metrics-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.modal-metric-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}
.modal-metric-val { font-size: 1.3rem; font-weight: 800; color: #ffffff; }
.modal-metric-lbl { font-size: 0.75rem; color: #71717a; margin-top: 2px; }

.modal-article h3 { font-size: 1.15rem; color: #ffffff; margin-top: 20px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.modal-article p { font-size: 0.92rem; line-height: 1.7; color: #a1a1aa; }

.modal-features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.modal-feature-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius-md); padding: 18px; }
.modal-feature-card h4 { font-size: 1rem; color: #fff; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.modal-feature-card p { font-size: 0.88rem; color: #a1a1aa; }

.architecture-diagram-box { background: #0b0b0b; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius-md); padding: 20px; }
.arch-flow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; overflow-x: auto; padding-bottom: 8px; }
.arch-step { background: rgba(255, 255, 255, 0.08); padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 600; white-space: nowrap; }

.modal-tech-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.simulator-wrapper { background: #0b0b0b; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius-lg); padding: 20px; }
.sim-screen { background: #151515; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius-md); padding: 16px; min-height: 200px; }

.modal-footer {
  padding: 16px 28px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-meta-tag { font-size: 0.8rem; color: var(--success); font-weight: 600; }
.modal-footer-right { display: flex; gap: 10px; }

/* CLI Terminal Drawer */
.terminal-drawer {
  position: fixed;
  bottom: -100%;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 820px;
  height: 460px;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  z-index: 95;
  box-shadow: 0 -15px 50px rgba(0, 0, 0, 0.8);
  transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.terminal-drawer.open { bottom: 0; }

.terminal-titlebar {
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.terminal-dots { display: flex; gap: 6px; }
.term-dot { width: 11px; height: 11px; border-radius: 50%; }
.term-dot.close { background: #ef4444; }
.term-dot.min { background: #f59e0b; }
.term-dot.max { background: #10b981; }
.terminal-title { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: #a1a1aa; }

.terminal-screen {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #e2e8f0;
}
.term-ascii { color: var(--primary-light); font-size: 0.58rem; line-height: 1.15; margin-bottom: 12px; }
.cmd-highlight { background: rgba(255, 255, 255, 0.15); color: #fff; padding: 1px 6px; border-radius: 4px; }
.term-quick-chips { display: flex; gap: 8px; margin: 12px 0 18px; flex-wrap: wrap; }
.term-chip { background: rgba(255, 255, 255, 0.08); padding: 4px 10px; border-radius: var(--radius-sm); color: #67e8f9; font-size: 0.78rem; }
.term-chip:hover { background: #fff; color: #000; }

.terminal-prompt-line { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.term-user { color: #10b981; font-weight: 700; }
.term-path { color: #60a5fa; }
.term-symbol { color: #fff; }
.term-input { flex: 1; background: transparent; border: none; outline: none; color: #fff; font-family: inherit; font-size: 0.88rem; }
.term-response { margin: 10px 0; line-height: 1.6; }

/* Toast */
.toast-container { position: fixed; top: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: #ffffff;
  font-size: 0.88rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-role-wrapper { justify-content: center; }
  .hero-buttons { justify-content: center; }
  .hero-socials { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-layout-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .experience-watermark { font-size: 5rem; }
  .service-floating-mockups { display: none; }
}

/* ==========================================================================
   FULL-SCREEN GLASS MODAL & HAMBURGER BUTTON
   ========================================================================== */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: var(--transition);
}

.hamburger-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

.hamburger-btn .bar {
  width: 18px;
  height: 2px;
  background: var(--heading-dark);
  border-radius: 2px;
  transition: var(--transition);
}

[data-theme="cloud-night"] .hamburger-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="cloud-night"] .hamburger-btn .bar {
  background: #ffffff;
}

/* Full-Screen Ethereal Glass Modal */
.mobile-drawer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 24px;
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="cloud-day"], [data-theme="cloud-sunset"] {
  /* Keep modal sleek obsidian glass for contrast even in light themes */
}

.mobile-drawer.open {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  padding-bottom: 10px;
}

.drawer-close-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: var(--transition);
}

.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin: auto 0;
  padding: 20px 0;
}

.mobile-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.25rem;
  font-weight: 700;
  width: 100%;
  max-width: 340px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
}

.mobile-nav-link i {
  font-size: 1.1rem;
  color: var(--primary-light);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.mobile-drawer-footer {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  padding-top: 20px;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  padding: 15px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
  transition: var(--transition);
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(37, 211, 102, 0.5);
}

/* ==========================================================================
   BREAKPOINTS & MOBILE PERFECTION (iOS, Android, Tablet)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-role-wrapper { justify-content: center; }
  .hero-buttons { justify-content: center; }
  .hero-socials { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-layout-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .experience-watermark { font-size: 5rem; }
}

@media (max-width: 768px) {
  /* Global Container & Section Safety */
  html, body, main {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
  }
  .container {
    padding: 0 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .section {
    padding: 45px 0 !important;
    overflow: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Navigation Header */
  .nav-links, .nav-cta { display: none !important; }
  .hamburger-btn { display: flex !important; }
  .glass-navbar-container {
    top: 10px !important;
    padding: 0 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .glass-navbar {
    padding: 8px 16px !important;
    border-radius: 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .brand-name { font-size: 0.95rem; }
  .brand-status { font-size: 0.62rem; }

  /* Floating Dock (Vertical stack on right side, unobtrusive & crystal clear) */
  .floating-dock {
    position: fixed !important;
    bottom: 16px !important;
    right: 12px !important;
    flex-direction: column !important;
    gap: 6px !important;
    z-index: 85 !important;
  }
  .dock-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.84rem !important;
    background: rgba(15, 23, 42, 0.88) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
  }
  [data-theme="cloud-day"] .dock-btn {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #0f172a !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
  }
  .dock-tooltip { display: none !important; }

  /* Hero Section */
  .hero-section { padding-top: 85px !important; padding-bottom: 24px !important; width: 100% !important; }
  .hero-container { grid-template-columns: 1fr !important; text-align: center !important; gap: 24px !important; width: 100% !important; }
  .status-pill-badge { font-size: 0.74rem; padding: 6px 14px; max-width: 100%; white-space: normal; line-height: 1.3; }
  .hero-title { font-size: 1.95rem !important; margin-bottom: 12px; line-height: 1.2; }
  .hero-role-wrapper { justify-content: center; font-size: 0.95rem; flex-wrap: wrap; margin-bottom: 14px; }
  .hero-description { font-size: 0.9rem; line-height: 1.65; margin: 0 auto 18px auto; max-width: 100%; }
  .hero-buttons { flex-direction: column; width: 100%; gap: 10px; }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary,
  .hero-buttons .btn-glass { width: 100%; justify-content: center; padding: 12px 20px; font-size: 0.9rem; }
  .hero-socials { justify-content: center; gap: 10px; }
  .social-circle-btn { width: 38px; height: 38px; font-size: 0.95rem; }

  /* Hero Visual & Orbit Nodes (Prevent overflow) */
  .hero-visual {
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 0 !important;
  }
  .hero-card-3d {
    width: 100% !important;
    max-width: 100% !important;
    padding: 22px 14px !important;
    box-sizing: border-box !important;
  }
  .orbit-node {
    font-size: 0.72rem !important;
    padding: 4px 10px !important;
    transform: scale(0.85) !important;
  }
  .node-php { top: 0 !important; right: 10px !important; }
  .node-node { top: 35% !important; left: 0 !important; }
  .node-python { bottom: 70px !important; right: 0 !important; }
  .node-database { bottom: 0 !important; left: 10px !important; }
  .node-js { top: 15px !important; left: 5px !important; }

  /* Stats Ribbon */
  .hero-stats-ribbon { margin-top: 24px !important; width: 100% !important; }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; width: 100% !important; }
  .stat-card { padding: 14px 10px !important; }
  .stat-number { font-size: 1.5rem !important; }
  .stat-label { font-size: 0.7rem !important; }

  /* Service Section */
  .service-section { width: 100% !important; }
  .service-main-heading { font-size: 1.85rem !important; }
  .service-item { width: 100% !important; box-sizing: border-box !important; overflow: hidden !important; }
  .service-row-collapsed { padding: 14px 12px !important; flex-direction: row !important; align-items: center !important; justify-content: space-between !important; }
  .service-row-title { font-size: 1.1rem !important; }
  .service-card-active {
    padding: 22px 16px 28px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    position: relative !important;
    overflow: hidden !important;
  }
  .service-card-text {
    max-width: 100% !important;
    padding-right: 42px !important;
  }
  .service-item-title { font-size: 1.35rem !important; }
  .service-item-desc { font-size: 0.86rem !important; }
  .service-close-btn {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    transform: none !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 1rem !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    z-index: 10 !important;
  }
  .service-close-btn:hover {
    transform: scale(1.08) !important;
  }

  /* Service Floating 3D Mockup - Visible & Scaled Cleanly on Mobile */
  .service-floating-mockups {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 14px !important;
    margin-bottom: 4px !important;
    margin-right: 0 !important;
    overflow: visible !important;
  }
  .mockup-phone-cluster-wrap {
    transform: scale(0.64) !important;
    transform-origin: center center !important;
    margin: -24px 0 -20px 0 !important;
  }
  .mockup-laptop-wrap {
    max-width: 240px !important;
    transform: scale(0.88) !important;
    margin: 0 auto !important;
  }

  /* Experience Section */
  .experience-section { width: 100% !important; }
  .exp-box-title { font-size: 1.45rem !important; }
  .experience-watermark { display: none !important; }
  .experience-showcase-box { padding: 20px 14px !important; width: 100% !important; box-sizing: border-box !important; overflow: hidden !important; }
  .exp-row-item { padding: 14px 12px !important; flex-direction: column !important; align-items: flex-start !important; gap: 6px !important; }
  .exp-company-name { font-size: 0.98rem !important; }
  .exp-role-name { font-size: 0.82rem !important; }
  .exp-right-date span { font-size: 0.75rem !important; }

  /* Projects Section */
  .projects-section { width: 100% !important; }
  .projects-controls { flex-direction: column !important; gap: 12px !important; align-items: stretch !important; width: 100% !important; }
  .project-search-bar { max-width: 100% !important; width: 100% !important; }
  .projects-filter-tabs { overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; padding-bottom: 6px !important; flex-wrap: nowrap !important; scrollbar-width: none !important; width: 100% !important; }
  .projects-filter-tabs::-webkit-scrollbar { display: none; }
  .filter-tab { padding: 7px 14px !important; font-size: 0.8rem !important; flex-shrink: 0 !important; }
  .projects-grid { grid-template-columns: 1fr !important; gap: 18px !important; width: 100% !important; }
  .project-card { width: 100% !important; box-sizing: border-box !important; }
  .project-card-title { font-size: 1.15rem !important; min-height: auto !important; }
  .project-card-body { padding: 16px 14px !important; }
  .project-tech-tags { gap: 4px !important; }
  .tech-tag { font-size: 0.72rem !important; padding: 2px 7px !important; }

  /* Skills Section */
  .skills-section { width: 100% !important; }
  .skills-layout-grid { grid-template-columns: 1fr !important; gap: 16px !important; width: 100% !important; }
  .skill-category-card { padding: 18px 14px !important; width: 100% !important; box-sizing: border-box !important; }
  .category-header h3 { font-size: 1.05rem !important; }
  .skill-info { font-size: 0.82rem !important; }
  .skill-tags { gap: 6px !important; }
  .s-tag { font-size: 0.72rem !important; padding: 3px 8px !important; }

  /* Contact Section (Perfected Card & Side Gutters) */
  #contact.section { padding-bottom: 60px !important; width: 100% !important; }
  .contact-card-wrapper {
    padding: 24px 16px !important;
    border-radius: 18px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .contact-grid { grid-template-columns: 1fr !important; gap: 24px !important; width: 100% !important; }
  .contact-headline { font-size: 1.55rem !important; line-height: 1.25 !important; }
  .contact-desc { font-size: 0.88rem !important; margin-bottom: 18px !important; }
  .direct-item { padding: 12px 14px !important; gap: 10px !important; width: 100% !important; box-sizing: border-box !important; }
  .direct-val { font-size: 0.82rem !important; word-break: break-all !important; }
  .social-pills-row { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; width: 100% !important; }
  .social-pill-btn { padding: 9px 12px !important; font-size: 0.8rem !important; justify-content: center !important; }
  
  .contact-form-panel {
    padding: 18px 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .form-row { grid-template-columns: 1fr !important; gap: 12px !important; }
  .form-control { width: 100% !important; box-sizing: border-box !important; }
  .template-chips-row { gap: 6px !important; }
  .btn-template-chip { font-size: 0.74rem !important; padding: 6px 10px !important; white-space: normal !important; text-align: left !important; }

  /* Project Modal On Mobile (Image 3 fix) */
  .modal-overlay { padding: 10px !important; }
  .modal-dialog { max-width: 100% !important; width: 100% !important; max-height: 94vh !important; border-radius: var(--radius-lg) !important; }
  .modal-header { padding: 14px 16px !important; }
  .modal-project-title { font-size: 1.2rem !important; line-height: 1.25 !important; }
  .modal-close-btn { width: 34px !important; height: 34px !important; font-size: 0.85rem !important; }
  .modal-tabs { display: flex !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; padding: 0 4px !important; scrollbar-width: none !important; }
  .modal-tabs::-webkit-scrollbar { display: none; }
  .modal-tab-btn { padding: 10px 14px !important; font-size: 0.78rem !important; flex-shrink: 0 !important; gap: 6px !important; }
  .modal-body { padding: 16px 14px !important; }
  .modal-hero-banner { height: 110px !important; font-size: 2.4rem !important; margin-bottom: 16px !important; }
  .modal-metrics-row { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 6px !important; margin-bottom: 16px !important; }
  .modal-metric-box { padding: 10px 4px !important; }
  .modal-metric-val { font-size: 0.92rem !important; }
  .modal-metric-lbl { font-size: 0.62rem !important; line-height: 1.2 !important; }
  .modal-features-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
  .modal-footer { padding: 12px 14px !important; flex-direction: column !important; gap: 10px !important; align-items: stretch !important; }
  .modal-meta-tag { text-align: center !important; font-size: 0.76rem !important; }
  .modal-footer-right { display: flex !important; gap: 8px !important; width: 100% !important; }
  .modal-footer-right button,
  .modal-footer-right a { flex: 1 !important; justify-content: center !important; padding: 10px 8px !important; font-size: 0.8rem !important; text-align: center !important; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.75rem !important; }
  .stats-grid { grid-template-columns: 1fr 1fr !important; }
  .contact-headline { font-size: 1.45rem !important; }
  .btn-whatsapp { font-size: 0.9rem !important; padding: 13px 18px !important; }
  .modal-metrics-row { grid-template-columns: 1fr 1fr 1fr !important; }
}

/* ==========================================================================
   ADMIN MANAGEMENT DASHBOARD & MOCKUP STUDIO STYLES
   ========================================================================== */
.admin-badge-btn {
  background: rgba(37, 99, 235, 0.15) !important;
  color: var(--primary-light) !important;
  border-color: rgba(37, 99, 235, 0.3) !important;
}
.admin-badge-btn:hover {
  background: var(--primary) !important;
  color: #fff !important;
}

/* ============================================
   PREMIUM ADMIN LOGIN MODAL — ALM System
   ============================================ */
.admin-login-dialog {
  position: relative;
  max-width: 440px;
  width: 100%;
  background: linear-gradient(145deg, #080e1a 0%, #0c1628 45%, #0a1020 100%);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 28px;
  padding: 36px 40px 28px;
  text-align: center;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03),
    0 40px 100px rgba(0, 0, 0, 0.9),
    0 0 80px rgba(14, 64, 160, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
  animation: almSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  max-height: 95vh;
}

@keyframes almSlideIn {
  from { opacity: 0; transform: translateY(40px) scale(0.94); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* Animated Grid Background */
.alm-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34,211,238,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 40%, transparent 100%);
}

/* Glow Orbs */
.alm-bg-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.alm-orb1 {
  width: 320px; height: 320px;
  top: -140px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(37,99,235,0.18) 0%, transparent 65%);
  animation: almOrbPulse 4s ease-in-out infinite alternate;
}
.alm-orb2 {
  width: 200px; height: 200px;
  bottom: -60px; right: -40px;
  background: radial-gradient(circle, rgba(6,182,212,0.1) 0%, transparent 70%);
  animation: almOrbPulse 6s ease-in-out infinite alternate-reverse;
}
@keyframes almOrbPulse {
  from { opacity: 0.6; transform: translateX(-50%) scale(1); }
  to   { opacity: 1; transform: translateX(-50%) scale(1.15); }
}
.alm-orb2 { animation: almOrb2Pulse 6s ease-in-out infinite alternate-reverse; }
@keyframes almOrb2Pulse {
  from { opacity: 0.4; transform: scale(1); }
  to   { opacity: 0.9; transform: scale(1.2); }
}

/* All children above bg layers */
.admin-login-dialog > *:not(.alm-bg-grid):not(.alm-bg-orb) {
  position: relative;
  z-index: 2;
}

/* ---- Icon with concentric rings ---- */
.alm-icon-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.alm-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: almRingPulse 3s ease-in-out infinite;
}
.alm-ring1 {
  inset: 0;
  border-color: rgba(34,211,238,0.4);
  animation-delay: 0s;
}
.alm-ring2 {
  inset: -9px;
  border-color: rgba(34,211,238,0.2);
  animation-delay: 0.5s;
}
.alm-ring3 {
  inset: -18px;
  border-color: rgba(34,211,238,0.08);
  animation-delay: 1s;
}
@keyframes almRingPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.04); }
}
.alm-icon-core {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37,99,235,0.25) 0%, rgba(6,182,212,0.15) 100%);
  border: 1.5px solid rgba(34,211,238,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  color: #22d3ee;
  box-shadow:
    0 0 0 8px rgba(34,211,238,0.04),
    0 0 40px rgba(37,99,235,0.4),
    inset 0 1px 0 rgba(255,255,255,0.08);
  position: relative;
  z-index: 1;
}

/* ---- Badge ---- */
.alm-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(90deg, rgba(6,182,212,0.12), rgba(37,99,235,0.12));
  border: 1px solid rgba(34,211,238,0.22);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #22d3ee;
  text-transform: uppercase;
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
}
.alm-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 6px #22d3ee;
  animation: almDotBlink 2s ease-in-out infinite;
}
@keyframes almDotBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px #22d3ee; }
  50%       { opacity: 0.4; box-shadow: none; }
}

/* ---- Title ---- */
.alm-title {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 40%, #7dd3fc 80%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.alm-subtitle {
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.6;
  max-width: 300px;
  margin: 0 auto;
}

/* ---- Divider ---- */
.alm-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}
.alm-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,0.15), transparent);
}
.alm-divider-icon {
  color: #1e3a5f;
  font-size: 0.75rem;
}

/* ---- Input ---- */
.alm-input-wrap { text-align: left; margin-bottom: 6px; }

.alm-input-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.alm-input-box {
  position: relative;
  display: flex;
  align-items: center;
}
.alm-input-icon {
  position: absolute;
  left: 16px;
  color: #1e3a5f;
  font-size: 0.85rem;
  z-index: 1;
  transition: color 0.2s;
}
.alm-input-box:focus-within .alm-input-icon { color: #22d3ee; }

.admin-pin-input {
  width: 100%;
  padding: 15px 50px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: #e2e8f0;
  font-size: 1.4rem;
  letter-spacing: 0.22em;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  outline: none;
  transition: all 0.25s ease;
  box-shadow: inset 0 2px 12px rgba(0,0,0,0.4);
  box-sizing: border-box;
}
.admin-pin-input::placeholder { letter-spacing: 0.12em; color: #1e3a5f; }
.admin-pin-input:focus {
  border-color: rgba(34,211,238,0.45);
  background: rgba(34,211,238,0.04);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.08), inset 0 2px 12px rgba(0,0,0,0.4);
}

.admin-pin-toggle {
  position: absolute;
  right: 14px;
  color: #1e3a5f;
  cursor: pointer;
  padding: 6px;
  transition: color 0.2s;
  background: none;
  border: none;
  font-size: 0.9rem;
}
.admin-pin-toggle:hover { color: #22d3ee; }

.admin-pin-error {
  color: #f87171;
  font-size: 0.78rem;
  margin-top: 8px;
  min-height: 1.2em;
  text-align: left;
  padding-left: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ---- Buttons ---- */
.alm-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.alm-btn-cancel {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #475569;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.alm-btn-cancel span { display: none; }
.alm-btn-cancel:hover {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.25);
  color: #f87171;
}

.alm-btn-submit {
  flex: 1;
  position: relative;
  padding: 14px 24px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #0ea5e9 100%);
  border: 1px solid rgba(14,165,233,0.4);
  border-radius: 12px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: 0 4px 20px rgba(37,99,235,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
  letter-spacing: 0.03em;
  overflow: hidden;
}
.alm-btn-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.08) 100%);
  pointer-events: none;
}
.alm-btn-submit:hover {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #22d3ee 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,99,235,0.55), inset 0 1px 0 rgba(255,255,255,0.2);
}
.alm-btn-submit:active { transform: translateY(0); }

/* ---- Footer ---- */
.alm-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
  font-size: 0.7rem;
  color: #1e3a5f;
  letter-spacing: 0.02em;
}
.alm-footer-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #1e3a5f;
  display: inline-block;
}


/* Full Screen Admin Management Dashboard Modal */
.admin-dashboard-modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 15, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.admin-dashboard-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.admin-window {
  width: 100%;
  max-width: 1300px;
  height: 90vh;
  background: #0f131d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  color: #ffffff;
}

/* Admin Top Bar */
.admin-topbar {
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-logo-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #1d4ed8, #06b6d4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.admin-title-wrap h2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

.admin-title-wrap span {
  font-size: 0.72rem;
  color: #38bdf8;
  font-family: 'JetBrains Mono', monospace;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-admin-action {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-admin-action.save {
  background: #2563eb;
  color: #fff;
}
.btn-admin-action.save:hover {
  background: #1d4ed8;
}

.btn-admin-action.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-admin-action.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-admin-action.danger {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-admin-action.danger:hover {
  background: #ef4444;
  color: #fff;
}

/* Admin Main Body Layout (Sidebar + Content) */
.admin-body-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 240px 1fr;
  overflow: hidden;
}

/* Admin Sidebar */
.admin-sidebar {
  background: rgba(0, 0, 0, 0.25);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  color: #94a3b8;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.admin-nav-item i {
  font-size: 1rem;
  width: 20px;
}

.admin-nav-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.admin-nav-item.active {
  color: #fff;
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(37, 99, 235, 0.4);
}

.admin-nav-item.active i {
  color: #38bdf8;
}

.admin-nav-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 7px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
}

.admin-nav-badge.alert {
  background: #ef4444;
  color: #fff;
}

/* Admin Content Viewport */
.admin-viewport {
  flex: 1;
  padding: 28px;
  overflow-y: auto;
  background: #0d111a;
}

.admin-tab-pane {
  display: none;
  animation: fadeInPane 0.25s ease-out;
}

.admin-tab-pane.active {
  display: block;
}

@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 14px;
}

.admin-section-header h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
}

.admin-section-header p {
  font-size: 0.84rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* Admin Overview Stat Cards */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.admin-stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.admin-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.15);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.admin-stat-val {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: #fff;
}

.admin-stat-lbl {
  font-size: 0.78rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Admin Card Container */
.admin-card {
  background: #141824;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-sizing: border-box;
  overflow: hidden;
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 14px;
}

.admin-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Admin Table */
.admin-table-wrapper {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  color: #cbd5e1;
}

.admin-table th {
  text-align: left;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.2);
  color: #94a3b8;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-tbl-action {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-tbl-action:hover {
  background: #2563eb;
  color: #fff;
}

.btn-tbl-action.delete:hover {
  background: #ef4444;
  color: #fff;
}

/* Admin Form Controls */
.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.admin-form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
}

.admin-input, .admin-select, .admin-textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition-fast);
}

.admin-input:focus, .admin-select:focus, .admin-textarea:focus {
  border-color: #38bdf8;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
}

.admin-textarea {
  min-height: 80px;
  resize: vertical;
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.admin-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Mockup Studio Styles */
.mockup-studio-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.mockup-item-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 4px;
  margin-bottom: 20px;
}

.mockup-item-pill {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-fast);
}

.mockup-item-pill:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.mockup-item-pill.active {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  border-color: #38bdf8;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.mockup-presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.preset-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  box-sizing: border-box;
  overflow: hidden;
}

.preset-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.06);
  transform: translateY(-2px);
}

.preset-card.selected {
  border-color: #38bdf8;
  background: rgba(37, 99, 235, 0.2);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.3);
}

.preset-mini-icon {
  font-size: 1.3rem;
  color: #38bdf8;
}

.preset-card h5 {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  word-break: break-word;
}

.preset-card span {
  font-size: 0.68rem;
  color: #94a3b8;
}

/* 3-Phone Upload Slots Grid */
.mockup-phones-upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.phone-upload-slot {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.phone-upload-slot.active-slot {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(37, 99, 235, 0.08);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.1);
}

.phone-slot-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.phone-dropzone {
  padding: 12px 8px !important;
  margin-bottom: 0 !important;
}

.phone-dropzone .dropzone-icon {
  font-size: 1.2rem !important;
  margin-bottom: 4px !important;
}

.phone-dropzone .dropzone-text {
  font-size: 0.74rem !important;
}

.phone-url-input {
  font-size: 0.76rem !important;
  padding: 6px 10px !important;
}

.phone-placeholder-screen {
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  text-align: center;
  box-sizing: border-box;
}

/* Image Upload Dropzone */
.image-upload-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: rgba(0, 0, 0, 0.2);
  margin-bottom: 16px;
}

.image-upload-dropzone:hover, .image-upload-dropzone.dragover {
  border-color: #38bdf8;
  background: rgba(37, 99, 235, 0.08);
}

.dropzone-icon {
  font-size: 2rem;
  color: #38bdf8;
  margin-bottom: 8px;
}

.dropzone-text {
  font-size: 0.85rem;
  color: #cbd5e1;
  font-weight: 600;
}

.dropzone-sub {
  font-size: 0.74rem;
  color: #94a3b8;
  margin-top: 4px;
}

/* Studio Live 3D Preview Box */
.studio-live-preview-box {
  background: #080c14;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 10px;
}

.studio-preview-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38bdf8;
  font-weight: 700;
  margin-bottom: 24px;
}

.live-mockup-cluster-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 180px;
  width: 100%;
}

/* Image Inside 3D Mockup Screen */
.phone-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-screen {
  position: relative;
  overflow: hidden;
}

.phone-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, transparent 60%);
  pointer-events: none;
}

/* Skills Slider Row */
.admin-skill-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}

.admin-skill-name {
  width: 180px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}

.admin-skill-slider-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-range-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  outline: none;
}

.admin-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #38bdf8;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.admin-skill-pct-badge {
  width: 48px;
  text-align: right;
  font-size: 0.85rem;
  font-family: 'JetBrains Mono', monospace;
  color: #38bdf8;
  font-weight: 700;
}

/* Modal Inner Form Overlay */
.admin-submodal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(14px);
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.admin-submodal.active {
  opacity: 1;
  pointer-events: auto;
}

.admin-submodal-dialog {
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  background: #11141f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8);
}

.admin-submodal-header {
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-submodal-body {
  padding: 22px;
  overflow-y: auto;
  flex: 1;
}

.admin-submodal-footer {
  padding: 14px 22px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Admin Responsive Rules */
@media (max-width: 1024px) {
  .admin-body-layout { grid-template-columns: 80px 1fr; }
  .admin-nav-item span, .admin-nav-badge { display: none; }
  .admin-nav-item { justify-content: center; padding: 12px; }
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .mockup-studio-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .admin-dashboard-modal {
    padding: 8px !important;
  }
  .admin-window {
    width: 100% !important;
    height: 96vh !important;
    border-radius: var(--radius-lg) !important;
  }
  .admin-topbar {
    padding: 12px 14px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .admin-logo-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.95rem !important;
  }
  .admin-title-wrap h2 {
    font-size: 1rem !important;
  }
  .admin-title-wrap span {
    font-size: 0.62rem !important;
  }
  .admin-topbar-actions {
    display: flex !important;
    gap: 6px !important;
    width: 100% !important;
  }
  .btn-admin-action {
    padding: 7px 8px !important;
    font-size: 0.74rem !important;
    flex: 1 !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }
  .admin-body-layout {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    overflow: hidden !important;
  }
  .admin-sidebar {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 8px 10px !important;
    gap: 6px !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    scrollbar-width: none !important;
    flex-shrink: 0 !important;
  }
  .admin-sidebar::-webkit-scrollbar {
    display: none !important;
  }
  .admin-nav-item {
    padding: 7px 12px !important;
    border-radius: var(--radius-full) !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  .admin-nav-item span {
    display: inline-block !important;
    font-size: 0.78rem !important;
  }
  .admin-nav-badge {
    display: inline-block !important;
    font-size: 0.65rem !important;
    padding: 1px 5px !important;
  }
  .admin-viewport {
    padding: 14px 12px !important;
    flex: 1 !important;
    overflow-y: auto !important;
  }
  .admin-section-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
  }
  .admin-section-header h3 {
    font-size: 1.15rem !important;
  }
  .admin-stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
  }
  .admin-stat-box {
    padding: 12px 10px !important;
    gap: 10px !important;
  }
  .admin-stat-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 1rem !important;
  }
  .admin-stat-val {
    font-size: 1.35rem !important;
  }
  .admin-stat-lbl {
    font-size: 0.68rem !important;
  }
  .admin-card {
    padding: 16px 12px !important;
    margin-bottom: 16px !important;
  }
  .admin-card-title {
    font-size: 0.98rem !important;
  }
  .admin-grid-2, .admin-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .admin-skill-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  .admin-skill-name {
    width: 100% !important;
    font-size: 0.84rem !important;
  }
  .admin-skill-slider-wrap {
    width: 100% !important;
  }
  .mockup-studio-layout {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .mockup-presets-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .preset-card {
    padding: 10px 8px !important;
  }
  .preset-mini-icon {
    font-size: 1.15rem !important;
  }
  .preset-card h5 {
    font-size: 0.76rem !important;
  }
  .studio-live-preview-box {
    position: static !important;
    padding: 18px 12px !important;
    margin-top: 14px !important;
  }
  .admin-submodal {
    padding: 10px !important;
  }
  .admin-submodal-dialog {
    max-height: 92vh !important;
    border-radius: var(--radius-md) !important;
  }
  .admin-submodal-header {
    padding: 12px 16px !important;
  }
  .admin-submodal-body {
    padding: 16px 14px !important;
  }
  .admin-submodal-footer {
    padding: 12px 16px !important;
  }
}

