/* ==========================================================================
   RAVI AL HABSI RAMADAN — PORTFOLIO DESIGN SYSTEM
   Frontend & UI/UX Specialist — Universitas Dinamika Bangsa (UNAMA)
   ========================================================================== */

/* --- ROOT VARIABLES & DESIGN TOKENS --- */
:root {
  /* Brand Accents */
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.45);
  --primary-rgb: 99, 102, 241;
  --primary-hover: #4f46e5;
  --secondary: #06b6d4;
  --secondary-glow: rgba(6, 182, 212, 0.4);
  --accent-pink: #ec4899;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;

  /* Surfaces & Backgrounds */
  --bg-deep: #07090e;
  --bg-main: #0a0d14;
  --bg-card: rgba(17, 24, 39, 0.65);
  --bg-card-hover: rgba(26, 36, 58, 0.85);
  --bg-panel: rgba(14, 20, 35, 0.72);
  --bg-glass-nav: rgba(10, 13, 20, 0.82);

  /* Borders & Highlights */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(99, 102, 241, 0.4);
  --border-bright: rgba(255, 255, 255, 0.16);

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Typography Families */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 35px var(--primary-glow);

  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-normal: 0.35s var(--ease-spring);
  --transition-slow: 0.6s var(--ease-spring);

  /* Glassmorphism Settings */
  --glass-blur: 16px;
}

/* --- RESET & GLOBAL STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Selection */
::selection {
  background: var(--primary);
  color: #ffffff;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- AMBIENT GLOWS & BACKGROUND --- */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  will-change: transform;
}

.glow-top {
  width: 500px;
  height: 500px;
  top: -150px;
  right: -100px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.glow-middle {
  width: 600px;
  height: 600px;
  top: 40%;
  left: -200px;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  opacity: 0.25;
}

.glow-bottom {
  width: 550px;
  height: 550px;
  bottom: 5%;
  right: -150px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  opacity: 0.3;
}

/* Particle Canvas */
.particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

/* Spotlight Cursor Follower */
.cursor-spotlight {
  position: fixed;
  width: 480px;
  height: 480px;
  margin-left: -240px;
  margin-top: -240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transition: transform 0.08s ease-out;
  display: none;
}
@media (min-width: 1024px) {
  .cursor-spotlight {
    display: block;
  }
}

/* --- GLASS PANEL UTILITY --- */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: var(--transition-normal);
}

.glass-panel:hover {
  border-color: var(--border-hover);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 24px rgba(var(--primary-rgb), 0.12);
}

/* --- TYPOGRAPHY UTILITIES --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

.text-gradient {
  background: linear-gradient(135deg, #818cf8 0%, #38bdf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

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

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

.link-inline {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.link-inline:hover {
  color: #a5b4fc;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px var(--primary-glow);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #7c3aed 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-bright);
  color: var(--text-primary);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
}
.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-subtle);
}

.btn-block {
  width: 100%;
}

.btn-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #38bdf8;
  padding: 0;
  transition: var(--transition-fast);
}
.btn-text-link:hover {
  color: #a5b4fc;
  gap: 10px;
}

/* Tag Pills */
.tag-pill {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- HEADER & NAVIGATION --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: var(--transition-normal);
}

.site-header.scrolled {
  background: var(--bg-glass-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-symbol {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--primary) 0%, #38bdf8 100%);
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 14px var(--primary-glow);
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.brand-logo:hover .logo-symbol {
  transform: scale(1.06);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.logo-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 11px;
  object-fit: cover;
  display: block;
  background-color: var(--bg-deep);
}

.logo-symbol.small {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  padding: 2px;
}

.logo-symbol.small .logo-avatar-img {
  border-radius: 9px;
}

.symbol-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid var(--bg-main);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.9);
  z-index: 3;
}

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

.logo-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.logo-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Nav Menu */
.nav-menu {
  display: flex;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.nav-link {
  display: inline-block;
  padding: 7px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 2px 10px var(--primary-glow);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-badge {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: #4ade80;
}
@media (min-width: 992px) {
  .status-badge {
    display: flex;
  }
}

.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.header-cta {
  display: none;
}
@media (min-width: 768px) {
  .header-cta {
    display: inline-flex;
  }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
}
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.hamburger-bar {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.nav-toggle.open .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Drawer */
@media (max-width: 767px) {
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    background: rgba(14, 20, 35, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    z-index: 99;
  }
  .nav-menu.open {
    display: flex;
    animation: fadeInDown 0.3s ease;
  }
  .nav-list {
    flex-direction: column;
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    gap: 10px;
  }
  .nav-link {
    width: 100%;
    text-align: center;
    padding: 10px;
  }
}

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

/* --- HERO SECTION --- */
.hero-section {
  padding-top: 150px;
  padding-bottom: 80px;
  position: relative;
  z-index: 2;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: center;
}
@media (min-width: 992px) {
  .hero-container {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  color: var(--text-secondary);
  width: fit-content;
  margin-bottom: 24px;
}
.hero-badge strong {
  color: #ffffff;
}

.hero-title {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero-subtitle strong {
  color: #ffffff;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 36px;
  width: fit-content;
  flex-wrap: wrap;
}

.metric-item {
  display: flex;
  flex-direction: column;
}
.metric-number {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1.2;
}
.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.metric-divider {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.campus-link:hover {
  color: #38bdf8;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}
.social-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.social-links {
  display: flex;
  gap: 10px;
}
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
}
.social-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px var(--primary-glow);
}

/* Hero Visual Card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-card-wrapper {
  position: relative;
  perspective: 1000px;
  width: 100%;
  max-width: 440px;
}

.hero-visual-card {
  position: relative;
  background: linear-gradient(145deg, rgba(23, 31, 52, 0.75) 0%, rgba(13, 17, 30, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}

.card-glow-reflection {
  position: absolute;
  top: 0;
  left: 20%;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, var(--primary), transparent);
}

.profile-image-container {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 24px auto;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.avatar-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px dashed rgba(99, 102, 241, 0.45);
  animation: rotate-ring 24s linear infinite;
  pointer-events: none;
}
@keyframes rotate-ring {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.profile-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.profile-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.profile-role {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.profile-campus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Floating Micro Badges */
.floating-badge {
  position: absolute;
  background: rgba(18, 25, 43, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  text-align: left;
  z-index: 3;
  animation: float-bob 4s ease-in-out infinite;
}

@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.badge-figma {
  top: 15%;
  left: -28px;
  animation-delay: 0s;
}

.badge-code {
  bottom: 18%;
  right: -30px;
  animation-delay: 1.5s;
}

.badge-firebase {
  bottom: -20px;
  left: 20px;
  animation-delay: 2.2s;
}

.badge-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.figma-box {
  background: rgba(236, 72, 153, 0.2);
  color: #f472b6;
}
.code-box {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}
.firebase-box {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.badge-info {
  display: flex;
  flex-direction: column;
}
.badge-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
}
.badge-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .floating-badge {
    display: none;
  }
}

/* Scroll Indicator */
.hero-scroll-indicator {
  margin-top: 50px;
  text-align: center;
}
.hero-scroll-indicator a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-scroll-indicator a:hover {
  color: var(--text-secondary);
}

.mouse-icon {
  width: 22px;
  height: 36px;
  border: 2px solid var(--text-dim);
  border-radius: 12px;
  position: relative;
}
.mouse-wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 7px;
  background: var(--primary);
  border-radius: 2px;
  animation: mouse-scroll 1.6s infinite;
}
@keyframes mouse-scroll {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 12px); opacity: 0; }
}

/* --- SECTIONS COMMON --- */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.card-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-heading i {
  color: #38bdf8;
}

/* --- ABOUT SECTION --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: 1.25fr 1fr;
    gap: 36px;
  }
}

.about-story-card {
  padding: 40px 36px;
}
.about-story-card p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  margin-bottom: 20px;
  line-height: 1.75;
}
.about-story-card strong {
  color: #ffffff;
}

.philosophy-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}
.philosophy-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #c7d2fe;
}
.philosophy-pill i {
  color: #38bdf8;
}

.about-info-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-data-card {
  padding: 32px 28px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
@media (min-width: 540px) {
  .info-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.info-key {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-key i {
  color: var(--primary);
}

.info-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}
.highlight-val {
  color: #38bdf8;
}

.quote-card {
  padding: 28px;
  border-left: 3px solid var(--primary);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(14, 20, 35, 0.6) 100%);
}

.quote-icon {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.quote-text {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.quote-author {
  font-size: 0.85rem;
  color: #38bdf8;
  font-weight: 600;
}

/* --- SKILLS SECTION --- */
.skills-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
@media (min-width: 768px) {
  .skills-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .skills-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
}

.skill-category-card {
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.category-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.uix-icon {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.3);
}
.fe-icon {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.tools-icon {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.category-title {
  font-size: 1.25rem;
  color: #ffffff;
}
.category-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.skill-bar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}
.skill-name {
  color: var(--text-secondary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.skill-percent {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #38bdf8;
}

.skill-track {
  height: 6px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--primary) 0%, #38bdf8 100%);
  transition: width 1s var(--ease-spring);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

/* --- PROJECTS SECTION --- */
.filter-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: var(--transition-fast);
}
.filter-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}
.filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
}
.project-card:hover {
  transform: translateY(-6px);
}

.project-image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d121d;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-spring);
}
.project-card:hover .project-img {
  transform: scale(1.06);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 20, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-fast);
}
.project-card:hover .project-overlay {
  opacity: 1;
}

.project-badge-float {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  background: rgba(10, 13, 20, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: #38bdf8;
  z-index: 2;
}

.project-info {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-meta-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.35;
}

.project-excerpt {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  gap: 12px;
  flex-wrap: wrap;
}

.project-tech-stack {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.project-tech-stack span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.project-tech-stack i {
  color: #38bdf8;
}

/* --- EDUCATION TIMELINE SECTION --- */
.timeline-container {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.timeline-track {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 28px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, #38bdf8 50%, rgba(99, 102, 241, 0.1) 100%);
}
@media (min-width: 768px) {
  .timeline-track {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
  display: flex;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
  }
  .timeline-item:nth-child(odd) .timeline-content {
    margin-right: calc(50% + 36px);
    margin-left: 0;
  }
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: calc(50% + 36px);
    margin-right: 0;
  }
}

.timeline-marker {
  position: absolute;
  left: 28px;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  font-size: 1.2rem;
  z-index: 3;
  box-shadow: 0 0 16px var(--primary-glow);
}
@media (min-width: 768px) {
  .timeline-marker {
    left: 50%;
  }
}

.timeline-content {
  margin-left: 72px;
  padding: 30px;
  width: 100%;
}
@media (min-width: 768px) {
  .timeline-content {
    width: calc(50% - 36px);
    margin-left: 0;
  }
}

.timeline-badge-year {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: #a5b4fc;
  margin-bottom: 12px;
}

.timeline-title {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 6px;
}

.timeline-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.timeline-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* --- INTERACTIVE UI LAB & PLAYGROUND --- */
.lab-container {
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 992px) {
  .lab-container {
    grid-template-columns: 1fr 1.35fr;
  }
}

.lab-controls {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.lab-control-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.control-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.control-label i {
  color: var(--primary);
}

.color-picker-row {
  display: flex;
  gap: 12px;
}

.color-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--c);
  border: 3px solid transparent;
  transition: var(--transition-fast);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.color-dot:hover {
  transform: scale(1.15);
}
.color-dot.active {
  border-color: #ffffff;
  box-shadow: 0 0 16px var(--c);
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.range-slider {
  flex: 1;
  accent-color: var(--primary);
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  outline: none;
}

.slider-value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #38bdf8;
  width: 48px;
}

/* Toggle Switch */
.toggle-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider-toggle {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: 0.3s;
  border-radius: 34px;
}
.slider-toggle:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}
input:checked + .slider-toggle {
  background-color: var(--primary);
}
input:checked + .slider-toggle:before {
  transform: translateX(22px);
}
.toggle-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Preview Canvas */
.lab-preview-area {
  background: rgba(7, 10, 16, 0.9);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.preview-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 16px;
}

.preview-dots {
  display: flex;
  gap: 6px;
}
.dot-red, .dot-yellow, .dot-green {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.preview-title-bar {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.preview-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.demo-widget-card {
  background: var(--bg-card);
  padding: 24px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.demo-widget-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #ffffff;
}
.demo-widget-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.demo-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.click-counter-text {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #38bdf8;
}

.demo-interactive-status {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.live-pill.active {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: #4ade80;
}
.pulse-circle {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
}

.demo-input-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.demo-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.9rem;
  outline: none;
}
.demo-input:focus {
  border-color: var(--primary);
}
.live-input-display {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.live-input-display span {
  color: #38bdf8;
  font-weight: 600;
}

/* --- CONTACT SECTION --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.contact-info-card {
  padding: 36px;
  display: flex;
  flex-direction: column;
}
.contact-info-card p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-bottom: 28px;
  line-height: 1.65;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}
a.contact-channel:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.wa-icon {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}
.mail-icon {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}
.loc-icon {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
}
.unama-icon {
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
}

.channel-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.channel-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.channel-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.channel-arrow {
  font-size: 1.2rem;
  color: var(--text-dim);
}

.firebase-hosting-badge {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
}
.firebase-hosting-badge i {
  font-size: 1.8rem;
  color: #f59e0b;
}
.firebase-hosting-badge strong {
  display: block;
  font-size: 0.9rem;
  color: #fbbf24;
}
.firebase-hosting-badge p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

/* Contact Form */
.contact-form-card {
  padding: 36px;
}

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

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

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.required {
  color: #ef4444;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-dim);
  font-size: 1.1rem;
  pointer-events: none;
}

.form-control {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition-fast);
}
textarea.form-control {
  padding: 12px 14px;
  resize: vertical;
  min-height: 110px;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.form-error {
  font-size: 0.78rem;
  color: #f87171;
  min-height: 18px;
}

/* Toast */
.form-toast {
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: var(--radius-md);
  color: #ffffff;
}
.form-toast.hidden {
  display: none;
}
.toast-icon {
  font-size: 1.5rem;
  color: #22c55e;
}
.toast-body strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.toast-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

/* --- CASE STUDY MODAL --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 13, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  background: rgba(14, 19, 32, 0.95);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-xl);
  transform: scale(0.94);
  transition: transform 0.3s var(--ease-spring);
}
.modal-backdrop.active .modal-dialog {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.modal-header-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  object-fit: cover;
  margin-bottom: 24px;
}

.modal-title {
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 1rem;
  color: #38bdf8;
  font-weight: 600;
  margin-bottom: 20px;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}
.modal-meta-cell span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.modal-meta-cell strong {
  font-size: 0.9rem;
  color: #ffffff;
}

.modal-section-block {
  margin-bottom: 24px;
}
.modal-section-block h4 {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-section-block h4 i {
  color: var(--primary);
}
.modal-section-block p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.modal-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

/* --- BACK TO TOP BUTTON --- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(14, 20, 35, 0.85);
  border: 1px solid var(--border-bright);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: var(--transition-fast);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--primary-glow);
}

/* --- FOOTER --- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-deep);
  padding: 50px 0 30px 0;
  position: relative;
  z-index: 2;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  text-align: center;
}
@media (min-width: 992px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-center {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.footer-subtext {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.highlight-text {
  color: #f59e0b;
  font-weight: 600;
}

.footer-socials {
  display: flex;
  gap: 12px;
}
.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
}
.footer-socials a:hover {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

/* --- ANIMATION UTILITIES --- */
.animate-fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-spring) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }
.delay-5 { animation-delay: 0.75s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
