/* ==========================================================================
   PANULUH ADI RIYANTO (epang.my.id) - 3D GLASSMORPHIC PORTFOLIO STYLES
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables & Design Tokens
   -------------------------------------------------------------------------- */
:root {
  --bg-dark: #070913;
  --bg-darker: #04050a;
  --bg-card: rgba(18, 24, 43, 0.65);
  --bg-card-hover: rgba(26, 35, 62, 0.8);
  
  --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-hover: rgba(255, 255, 255, 0.28);
  --glass-shine: rgba(255, 255, 255, 0.18);
  --glass-blur: blur(18px);

  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.35);
  --purple: #8b5cf6;
  --purple-glow: rgba(139, 92, 246, 0.35);
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --amber: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.35);
  --rose: #f43f5e;
  --rose-glow: rgba(244, 63, 94, 0.35);
  --blue: #3b82f6;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --shadow-glass: 0 20px 45px -10px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  --shadow-glow: 0 0 35px var(--cyan-glow);
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Base & Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-main);
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #111a33 0%, var(--bg-dark) 55%, var(--bg-darker) 100%);
}

::selection {
  background: rgba(6, 182, 212, 0.3);
  color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --------------------------------------------------------------------------
   3. Ambient 3D Glowing Orbs & Background Grid
   -------------------------------------------------------------------------- */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.orb-1 {
  width: 550px;
  height: 550px;
  top: -150px;
  left: -100px;
  background: radial-gradient(circle, #3b82f6 0%, #06b6d4 50%, transparent 70%);
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.orb-2 {
  width: 650px;
  height: 650px;
  top: 30%;
  right: -200px;
  background: radial-gradient(circle, #8b5cf6 0%, #ec4899 50%, transparent 70%);
  animation: floatOrb2 22s ease-in-out infinite alternate;
}

.orb-3 {
  width: 500px;
  height: 500px;
  bottom: 10%;
  left: -100px;
  background: radial-gradient(circle, #10b981 0%, #06b6d4 50%, transparent 70%);
  animation: floatOrb 20s ease-in-out infinite alternate-reverse;
}

.orb-4 {
  width: 450px;
  height: 450px;
  bottom: -150px;
  right: 15%;
  background: radial-gradient(circle, #6366f1 0%, #8b5cf6 50%, transparent 70%);
  animation: floatOrb2 16s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(-40px, 70px) scale(0.95); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -30px) scale(1.15); }
  100% { transform: translate(40px, -60px) scale(0.9); }
}

.bg-grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 95%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 95%);
  pointer-events: none;
  z-index: 1;
}

#canvas-3d {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2;
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   4. Glassmorphism Utilities
   -------------------------------------------------------------------------- */
.glass-card,
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.4s ease, 
              box-shadow 0.4s ease;
  transform-style: preserve-3d;
}

.glass-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.7), 
              0 0 25px rgba(6, 182, 212, 0.15),
              inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

/* 3D Tilt Glare overlay */
.glare-effect {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.18) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.glass-card:hover .glare-effect {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   5. Sticky Glass Navbar
   -------------------------------------------------------------------------- */
.navbar-wrapper {
  position: fixed;
  top: 1.25rem;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 1.5rem;
}

.glass-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1180px;
  padding: 0.75rem 1.25rem;
  background: rgba(10, 15, 28, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: var(--transition-smooth);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 0 15px var(--cyan-glow);
}

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

.brand-name {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.brand-tag {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

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

.btn-glass-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
}

.btn-glass-glow:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.35), rgba(139, 92, 246, 0.35));
  border-color: var(--cyan);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.45);
  transform: translateY(-2px);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 110;
}

.mobile-toggle span {
  width: 100%;
  height: 2.5px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  transform-origin: center;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. Buttons & Interactive Elements
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn-primary-3d {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
  color: #ffffff;
  box-shadow: 0 8px 25px -4px rgba(6, 182, 212, 0.4), 
              0 2px 4px rgba(0, 0, 0, 0.2), 
              inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.btn-primary-3d:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px -5px rgba(6, 182, 212, 0.6), 
              0 4px 8px rgba(0, 0, 0, 0.3),
              inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.btn-glass-3d {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.btn-glass-3d:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 255, 255, 0.1);
}

.btn-outline-glass {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
}

.btn-outline-glass:hover {
  color: #ffffff;
  border-color: var(--cyan);
  background: rgba(6, 182, 212, 0.08);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   7. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 8.5rem 0 5rem;
  z-index: 10;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.badge-icon {
  font-size: 1rem;
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.greeting {
  display: block;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.name-gradient {
  background: linear-gradient(135deg, #ffffff 15%, #67e8f9 50%, #c084fc 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 0 30px rgba(103, 232, 249, 0.3);
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 580px;
}

.hero-lead strong {
  color: #ffffff;
  font-weight: 600;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.tag-dot.cyan { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.tag-dot.purple { background: var(--purple); box-shadow: 0 0 6px var(--purple); }
.tag-dot.emerald { background: var(--emerald); box-shadow: 0 0 6px var(--emerald); }
.tag-dot.amber { background: var(--amber); box-shadow: 0 0 6px var(--amber); }

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.75rem;
}

/* Stats Ribbon */
.stats-glass-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5);
  max-width: 600px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.85rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, #ffffff, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.stat-divider {
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------------------------------
   8. Hero 3D Terminal & Badges
   -------------------------------------------------------------------------- */
.hero-visual {
  position: relative;
  perspective: 1200px;
}

.terminal-card {
  background: rgba(10, 14, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8),
              0 0 30px rgba(6, 182, 212, 0.15),
              inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
  display: flex;
  gap: 0.4rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.terminal-tabs {
  display: flex;
  gap: 0.3rem;
  overflow-x: auto;
}

.terminal-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.terminal-tab:hover {
  color: #ffffff;
}

.terminal-tab.active {
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.terminal-chip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
}

.chip-status {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulse 1.8s infinite;
}

.terminal-body {
  padding: 1.5rem;
  max-height: 380px;
  overflow-y: auto;
}

.terminal-body pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: #e2e8f0;
}

.terminal-footer {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
}

.metric-label {
  color: var(--text-muted);
  margin-right: 0.35rem;
}

.metric-val {
  font-weight: 600;
  color: #ffffff;
}
.metric-val.text-green {
  color: var(--emerald);
}

/* Floating 3D Badges around visual */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.15rem;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
  z-index: 15;
  animation: floatBadge 6s ease-in-out infinite alternate;
}

.badge-top-right {
  top: -20px;
  right: -25px;
}

.badge-bottom-left {
  bottom: -25px;
  left: -25px;
  animation-delay: -3s;
}

@keyframes floatBadge {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-12px) rotate(1.5deg); }
}

.badge-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge-icon-box.cyan {
  background: rgba(6, 182, 212, 0.18);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.35);
}
.badge-icon-box.emerald {
  background: rgba(16, 185, 129, 0.18);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

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

/* --------------------------------------------------------------------------
   9. Section Header Commons
   -------------------------------------------------------------------------- */
.section-wrapper {
  padding: 6rem 0;
  position: relative;
  z-index: 10;
}

.section-header {
  max-width: 780px;
  margin: 0 auto 3.5rem;
}

.text-center {
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   10. About Section
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: stretch;
}

.about-profile-card {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-avatar-wrap {
  position: relative;
  margin-bottom: 1.5rem;
}

.avatar-box {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.avatar-initials {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.avatar-ring {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(6, 182, 212, 0.5);
  animation: rotateRing 20s linear infinite;
}

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

.online-status {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--emerald);
  border: 2px solid var(--bg-dark);
  z-index: 3;
}

.profile-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.profile-title {
  font-size: 0.88rem;
  color: var(--cyan);
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.profile-brand a {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.profile-brand a:hover {
  color: #ffffff;
}

.profile-quote {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--cyan);
  padding: 0.85rem 1.15rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  text-align: left;
}

.profile-info-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  gap: 0.5rem;
}

.info-key {
  color: var(--text-muted);
  font-weight: 500;
}

.info-val {
  color: #ffffff;
  font-weight: 600;
  text-align: right;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.pillar-card {
  padding: 1.85rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.pillar-icon.cyan { background: rgba(6, 182, 212, 0.15); color: var(--cyan); border: 1px solid rgba(6, 182, 212, 0.3); }
.pillar-icon.purple { background: rgba(139, 92, 246, 0.15); color: var(--purple); border: 1px solid rgba(139, 92, 246, 0.3); }
.pillar-icon.emerald { background: rgba(16, 185, 129, 0.15); color: var(--emerald); border: 1px solid rgba(16, 185, 129, 0.3); }
.pillar-icon.amber { background: rgba(245, 158, 11, 0.15); color: var(--amber); border: 1px solid rgba(245, 158, 11, 0.3); }

.pillar-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.65rem;
}

.pillar-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   11. Skills Matrix Section
   -------------------------------------------------------------------------- */
.skills-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.6);
  padding: 0.35rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-btn:hover {
  color: #ffffff;
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--cyan), #3b82f6);
  color: #ffffff;
  box-shadow: 0 0 15px var(--cyan-glow);
}

.filter-count {
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
}

.skill-search-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  min-width: 290px;
}

.skill-search-box svg {
  color: var(--text-muted);
}

.skill-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.88rem;
  width: 100%;
}

.skill-search-box input::placeholder {
  color: var(--text-muted);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.skill-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  cursor: pointer;
}

.skill-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.skill-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon-wrap {
  transform: scale(1.1) translateZ(20px);
}

.skill-icon-wrap svg {
  width: 28px;
  height: 28px;
}

.skill-type-pill {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}
.skill-type-pill.prog {
  background: rgba(6, 182, 212, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.25);
}
.skill-type-pill.db {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.skill-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.skill-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.skill-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.75rem;
}

.skill-level-dots {
  display: flex;
  gap: 3px;
}

.level-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.level-dot.filled {
  background: var(--cyan);
  box-shadow: 0 0 5px var(--cyan);
}

/* --------------------------------------------------------------------------
   12. Portfolio Section
   -------------------------------------------------------------------------- */
.portfolio-tabs {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.portfolio-filter-btn {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.portfolio-filter-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.portfolio-filter-btn.active {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #ffffff;
  box-shadow: 0 0 20px var(--purple-glow);
  border-color: transparent;
}

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

.portfolio-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-img-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #090d18;
  cursor: pointer;
}

.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .project-img-wrapper img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 13, 24, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-card:hover .project-overlay {
  opacity: 1;
}

.zoom-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-full);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.project-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.project-category-badge.cyan { background: rgba(6, 182, 212, 0.85); color: #000000; }
.project-category-badge.purple { background: rgba(139, 92, 246, 0.85); color: #ffffff; }
.project-category-badge.amber { background: rgba(245, 158, 11, 0.85); color: #000000; }
.project-category-badge.emerald { background: rgba(16, 185, 129, 0.85); color: #000000; }
.project-category-badge.rose { background: rgba(244, 63, 94, 0.85); color: #ffffff; }

.project-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.project-sub {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 0.85rem;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

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

.p-tag {
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.btn-detail {
  background: transparent;
  border: none;
  color: var(--cyan);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.btn-detail:hover {
  color: #ffffff;
  transform: translateX(5px);
}

/* --------------------------------------------------------------------------
   13. Timeline Section
   -------------------------------------------------------------------------- */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan), var(--purple), var(--emerald));
  transform: translateX(-50%);
  opacity: 0.4;
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 3rem;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 3rem;
  text-align: left;
}

.timeline-marker {
  position: absolute;
  top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline-item:nth-child(odd) .timeline-marker {
  right: -14px;
  flex-direction: row;
}

.timeline-item:nth-child(even) .timeline-marker {
  left: -14px;
  flex-direction: row-reverse;
}

.marker-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0f172a;
  border: 3px solid var(--cyan);
  box-shadow: 0 0 15px var(--cyan-glow);
  z-index: 5;
}

.marker-year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.timeline-content {
  padding: 2rem;
  text-align: left;
}

.era-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.65rem;
}

.timeline-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill {
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

/* --------------------------------------------------------------------------
   14. Services Section
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 2.25rem 1.85rem;
  display: flex;
  flex-direction: column;
}

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.service-icon.cyan { background: rgba(6, 182, 212, 0.15); color: var(--cyan); border: 1px solid rgba(6, 182, 212, 0.3); }
.service-icon.purple { background: rgba(139, 92, 246, 0.15); color: var(--purple); border: 1px solid rgba(139, 92, 246, 0.3); }
.service-icon.emerald { background: rgba(16, 185, 129, 0.15); color: var(--emerald); border: 1px solid rgba(16, 185, 129, 0.3); }
.service-icon.amber { background: rgba(245, 158, 11, 0.15); color: var(--amber); border: 1px solid rgba(245, 158, 11, 0.3); }

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.service-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

.service-points li {
  font-size: 0.82rem;
  color: #cbd5e1;
  position: relative;
  padding-left: 1.25rem;
}

.service-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   15. Contact Section & Forms
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: stretch;
}

.contact-info-card {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
}

.contact-info-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.contact-card-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.channel-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-smooth);
}

.channel-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(6px);
}

.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.channel-item.whatsapp .channel-icon { background: rgba(16, 185, 129, 0.15); color: var(--emerald); }
.channel-item.email .channel-icon { background: rgba(6, 182, 212, 0.15); color: var(--cyan); }
.channel-item.website .channel-icon { background: rgba(139, 92, 246, 0.15); color: var(--purple); }

.channel-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.channel-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.channel-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.channel-arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}
.channel-item:hover .channel-arrow {
  transform: translateX(4px);
  color: #ffffff;
}

.quick-copy-box {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.copy-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.5rem;
}

.copy-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.85rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
}

.copy-field code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan);
}

.btn-copy {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-copy:hover {
  background: var(--cyan);
  color: #000000;
  border-color: var(--cyan);
}

/* Contact Form Card */
.contact-form-card {
  padding: 2.5rem 2.25rem;
}

.contact-form-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.form-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.45rem;
}

input, select, textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(10, 15, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-smooth);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
  background: rgba(15, 23, 42, 0.9);
}

select {
  cursor: pointer;
}

select option {
  background: #0f172a;
  color: #ffffff;
}

.form-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.w-full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   16. Lightbox Modal
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-glass-container {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(6, 182, 212, 0.2);
  width: 100%;
  max-width: 950px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-glass-container {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background: var(--rose);
  border-color: var(--rose);
  transform: rotate(90deg);
}

.modal-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2.5rem;
}

.modal-img-box {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.modal-details {
  display: flex;
  flex-direction: column;
}

.modal-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.modal-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.modal-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 1.25rem;
}

.modal-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.modal-specs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.modal-spec-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.spec-key {
  color: var(--text-muted);
}

.spec-val {
  color: #ffffff;
  font-weight: 600;
  text-align: right;
}

/* --------------------------------------------------------------------------
   17. Toast Notification
   -------------------------------------------------------------------------- */
.toast-glass {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.4rem;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--emerald);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px var(--emerald-glow);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.toast-glass.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--emerald);
  color: #000000;
  font-size: 0.8rem;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   18. Glass Footer
   -------------------------------------------------------------------------- */
.glass-footer {
  position: relative;
  z-index: 10;
  background: rgba(7, 10, 18, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3.5rem 0 2.5rem;
}

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

.footer-left {
  max-width: 400px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-tech-badge {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--cyan);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.btn-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: var(--transition-smooth);
}

.btn-back-to-top:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-credits {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   19. Responsive Media Queries (Mobile, Tablet, Desktop)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  }

  .timeline-line {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 55px !important;
    padding-right: 0 !important;
    text-align: left !important;
  }

  .timeline-marker {
    left: 7px !important;
    right: auto !important;
    flex-direction: row-reverse !important;
  }

  .modal-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Prevent horizontal overflow strictly */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .container {
    padding: 0 1.25rem;
  }

  /* Optimize ambient glow for mobile GPU performance */
  .ambient-glow {
    filter: blur(60px);
    opacity: 0.35;
  }
  .orb-1, .orb-2, .orb-3, .orb-4 {
    width: 280px;
    height: 280px;
  }

  /* Responsive Floating Glass Navbar */
  .navbar-wrapper {
    top: 0.65rem;
    padding: 0 0.85rem;
  }

  .glass-nav {
    padding: 0.55rem 0.95rem;
  }

  .brand-badge {
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .brand-tag {
    font-size: 0.68rem;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-actions .nav-cta {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 4.8rem;
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    background: rgba(10, 15, 28, 0.97);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-lg);
    padding: 1.25rem 0.85rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(6, 182, 212, 0.2);
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    gap: 0.35rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-15px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  }

  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 0.7rem;
    font-size: 0.95rem;
  }

  /* Hero Section Mobile */
  .hero-section {
    padding: 5.8rem 0 2.5rem;
  }

  .hero-pill-badge {
    font-size: 0.78rem;
    padding: 0.35rem 0.85rem;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
  }

  .hero-title {
    font-size: clamp(2rem, 7.5vw, 2.75rem);
    word-break: break-word;
  }

  .greeting {
    font-size: 1rem;
  }

  .hero-lead {
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .hero-tags {
    gap: 0.4rem;
    margin-bottom: 1.5rem;
  }

  .hero-tag {
    font-size: 0.78rem;
    padding: 0.25rem 0.7rem;
  }

  .hero-cta-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.92rem;
  }

  .stats-glass-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    padding: 1.25rem 1rem;
    max-width: 100%;
  }

  .stat-num {
    font-size: 1.6rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .stat-divider {
    display: none;
  }

  /* Hero Terminal on Mobile */
  .terminal-card {
    border-radius: var(--radius-md);
    margin-top: 1.25rem;
  }

  .terminal-header {
    padding: 0.6rem 0.85rem;
    gap: 0.5rem;
  }

  .terminal-dots {
    display: none;
  }

  .terminal-tabs {
    flex-grow: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    display: flex;
    gap: 0.35rem;
  }
  .terminal-tabs::-webkit-scrollbar {
    display: none;
  }

  .terminal-tab {
    font-size: 0.72rem;
    padding: 0.25rem 0.55rem;
    white-space: nowrap;
  }

  .terminal-chip {
    font-size: 0.65rem;
    padding: 0.15rem 0.45rem;
  }

  .terminal-body {
    padding: 1rem 0.85rem;
    max-height: 280px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .terminal-body pre {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .terminal-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.75rem 0.85rem;
    font-size: 0.75rem;
  }

  /* Floating Badges in Mobile Hero */
  .floating-badge {
    position: static !important;
    transform: none !important;
    animation: none !important;
    margin-top: 0.85rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.7rem 1rem !important;
  }

  /* Section Wrappers */
  .section-wrapper {
    padding: 4rem 0;
  }

  .section-header {
    margin-bottom: 2.25rem;
  }

  .section-title {
    font-size: clamp(1.75rem, 6vw, 2.3rem);
  }

  .section-subtitle {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  /* About Profile & Pillars */
  .about-profile-card {
    padding: 1.85rem 1.25rem;
  }

  .avatar-box {
    width: 82px;
    height: 82px;
  }

  .avatar-initials {
    font-size: 1.75rem;
  }

  .profile-quote {
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    margin: 1.25rem 0;
  }

  .about-pillars {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .pillar-card {
    padding: 1.45rem 1.2rem;
  }

  /* Skills Controls & Grid */
  .skills-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .filter-tabs {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.3rem;
  }

  .filter-btn {
    font-size: 0.8rem;
    padding: 0.45rem 0.85rem;
    flex: 1 1 auto;
    text-align: center;
    justify-content: center;
  }

  .skill-search-box {
    min-width: 0;
    width: 100%;
    padding: 0.55rem 0.95rem;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
  }

  .skill-card {
    padding: 1.25rem;
    min-height: auto;
  }

  /* Portfolio Section Mobile */
  .portfolio-tabs {
    gap: 0.45rem;
    margin-bottom: 2rem;
  }

  .portfolio-filter-btn {
    font-size: 0.8rem;
    padding: 0.45rem 0.95rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .project-img-wrapper {
    height: 210px;
  }

  .project-content {
    padding: 1.35rem 1.25rem;
  }

  .project-title {
    font-size: 1.25rem;
  }

  .project-sub {
    font-size: 0.82rem;
  }

  .project-desc {
    font-size: 0.86rem;
  }

  /* Services Grid Mobile */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .service-card {
    padding: 1.6rem 1.35rem;
  }

  /* Contact Section Mobile */
  .contact-info-card,
  .contact-form-card {
    padding: 1.75rem 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Avoid iOS Safari auto-zoom on input focus */
  input, select, textarea {
    font-size: 16px !important;
    padding: 0.75rem 0.85rem;
  }

  .quick-copy-box .copy-field {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .quick-copy-box .copy-field code {
    text-align: center;
    font-size: 0.85rem;
    word-break: break-all;
  }

  .quick-copy-box .btn-copy {
    width: 100%;
    padding: 0.45rem;
  }

  /* Lightbox Modal Mobile */
  .modal-backdrop {
    padding: 0.75rem;
  }

  .modal-glass-container {
    width: 100%;
    max-height: 92vh;
    border-radius: var(--radius-md);
  }

  .modal-content-grid {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.15rem;
    gap: 1.25rem;
  }

  .modal-img-box img {
    max-height: 260px;
  }

  .modal-title {
    font-size: 1.45rem;
  }

  .modal-subtitle {
    font-size: 0.9rem;
  }

  .modal-desc {
    font-size: 0.88rem;
  }

  .modal-specs {
    gap: 0.5rem;
  }

  .modal-spec-item {
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.82rem;
  }

  .spec-val {
    text-align: left;
  }

  .modal-close-btn {
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  /* Footer Mobile */
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-left {
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-badges {
    justify-content: center;
  }

  .footer-right {
    align-items: center;
  }
}

/* Extra Small Phones (<= 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 0.85rem;
  }

  .navbar-wrapper {
    padding: 0 0.5rem;
    top: 0.5rem;
  }

  .glass-nav {
    padding: 0.45rem 0.75rem;
  }

  .brand-name {
    max-width: 150px;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-tag {
    font-size: 0.62rem;
  }

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

  .stats-glass-card {
    gap: 0.75rem;
    padding: 1rem 0.75rem;
  }

  .stat-num {
    font-size: 1.4rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .info-val {
    text-align: left;
  }

  /* Timeline on Ultra-Compact Mobile */
  .timeline-line {
    left: 12px;
  }

  .timeline-item {
    padding-left: 38px !important;
    margin-bottom: 1.75rem;
  }

  .timeline-marker {
    left: 1px !important;
  }

  .marker-dot {
    width: 22px;
    height: 22px;
  }

  .marker-year {
    font-size: 0.68rem;
    padding: 0.15rem 0.35rem;
  }

  .timeline-content {
    padding: 1.15rem 0.85rem;
  }

  .toast-glass {
    left: 1rem;
    right: 1rem;
    bottom: 1.25rem;
    justify-content: center;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
  }
}