/* ==========================================================================
   ROMAN GHIMIRE - PORTFOLIO STYLESHEET
   Computer Engineering Student Portfolio
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --bg-dark: #0a0a0f;
  --bg-darker: #060609;
  --bg-card: rgba(18, 18, 28, 0.72);
  --bg-card-hover: rgba(28, 28, 44, 0.88);
  --bg-glass: rgba(255, 255, 255, 0.035);
  --bg-glass-input: rgba(14, 14, 24, 0.65);
  --bg-nav: rgba(10, 10, 15, 0.85);

  /* Accents & Gradients */
  --accent-primary: #6366f1;    /* Indigo */
  --accent-secondary: #8b5cf6;  /* Purple */
  --accent-tertiary: #a855f7;   /* Violet */
  --accent-pink: #ec4899;       /* Pink */
  --accent-cyan: #06b6d4;       /* Cyan */
  --accent-emerald: #10b981;    /* Green */
  --accent-amber: #f59e0b;      /* Amber / Gold */

  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%);
  --gradient-border: linear-gradient(135deg, rgba(99, 102, 241, 0.5) 0%, rgba(139, 92, 246, 0.2) 50%, rgba(255, 255, 255, 0.05) 100%);

  /* Specific Thematic Card Gradients */
  --grad-shop: linear-gradient(135deg, #1e1b4b 0%, #3730a3 50%, #6366f1 100%);
  --grad-weather: linear-gradient(135deg, #082f49 0%, #0369a1 50%, #38bdf8 100%);
  --grad-task: linear-gradient(135deg, #3b0764 0%, #6b21a8 50%, #a855f7 100%);
  --grad-portfolio: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #6366f1 100%);
  --grad-chat: linear-gradient(135deg, #064e3b 0%, #047857 50%, #10b981 100%);
  --grad-blog: linear-gradient(135deg, #701a75 0%, #a21caf 50%, #ec4899 100%);

  --grad-aurora: linear-gradient(135deg, #1e1b4b 0%, #065f46 50%, #10b981 100%);
  --grad-sunset: linear-gradient(135deg, #450a0a 0%, #9a3412 50%, #f97316 100%);
  --grad-neon: linear-gradient(135deg, #2e1065 0%, #7c3aed 50%, #06b6d4 100%);
  --grad-ocean: linear-gradient(135deg, #082f49 0%, #0284c7 50%, #38bdf8 100%);
  --grad-purple: linear-gradient(135deg, #2e1065 0%, #581c87 50%, #a855f7 100%);
  --grad-emerald: linear-gradient(135deg, #022c22 0%, #047857 50%, #10b981 100%);
  --grad-fire: linear-gradient(135deg, #451a03 0%, #b45309 50%, #f59e0b 100%);
  --grad-cosmic: linear-gradient(135deg, #172554 0%, #1e1b4b 50%, #6366f1 100%);
  --grad-amber: linear-gradient(135deg, #422006 0%, #b45309 50%, #fbbf24 100%);
  --grad-electric: linear-gradient(135deg, #083344 0%, #0891b2 50%, #06b6d4 100%);

  /* Travel destination gradients */
  --travel-ktm: linear-gradient(135deg, #3b0764 0%, #6b21a8 50%, #d97706 100%);
  --travel-pokhara: linear-gradient(135deg, #0c4a6e 0%, #0284c7 50%, #059669 100%);
  --travel-lumbini: linear-gradient(135deg, #451a03 0%, #9a3412 50%, #eab308 100%);
  --travel-chitwan: linear-gradient(135deg, #064e3b 0%, #047857 50%, #15803d 100%);
  --travel-nagarkot: linear-gradient(135deg, #4a044e 0%, #86198f 50%, #f97316 100%);
  --travel-bandipur: linear-gradient(135deg, #7c2d12 0%, #ea580c 50%, #fbbf24 100%);

  /* Text Colors */
  --text-white: #ffffff;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  /* Borders & Shadows */
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(139, 92, 246, 0.45);
  --glow-primary: 0 0 25px rgba(99, 102, 241, 0.35);
  --glow-secondary: 0 0 35px rgba(139, 92, 246, 0.35);
  --glow-accent: 0 10px 30px -10px rgba(99, 102, 241, 0.4);
  --shadow-card: 0 16px 36px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 22px 48px rgba(0, 0, 0, 0.6);

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout & Spacing */
  --max-width: 1240px;
  --nav-height: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
  background: var(--bg-dark);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  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;
}

body {
  background-image: url('assets/dark-blue-plain-wall-background.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body::before {
  display: none;
  content: none;
}


main {
  position: relative;
  z-index: 1;
}

.empty-continuation {
  height: 0;
  min-height: 0;
  width: 100%;
  pointer-events: none;
}

.a4-continuation {
  display: block;
  min-height: 500vh;
  width: 100%;
  background-color: transparent;
  background-image: none;
  border-top: 0;
  box-shadow: none;
}


.hero-container {
  grid-template-columns: minmax(420px, 620px) 1fr;
  width: min(1180px, calc(100% - 80px));
}

.hero-visual {
  display: none;
}

@media (max-width: 700px) {
  body::before {
    background-position: 68% top;
    background-size: auto 100%;
  }

  .hero-container {
    grid-template-columns: 1fr;
    width: calc(100% - 40px);
    align-items: end;
  }

}

@keyframes fullPageBackground {
  0% { transform: scale(1.03) translate3d(-0.35%, 0, 0); }
  100% { transform: scale(1.06) translate3d(0.35%, -0.2%, 0); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: #1e1e30;
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-dark);
}

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

/* Selection */
::selection {
  background: var(--accent-primary);
  color: var(--text-white);
}

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

ul {
  list-style: none;
}

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

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   3. Interactive Particle Background Canvas
   -------------------------------------------------------------------------- */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   4. Layout Containers & Utility Classes
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 2;
}

.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-panel:hover {
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-hover);
}

/* Typography Utilities */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-accent {
  color: var(--accent-primary);
}

/* Section Header Component */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-secondary);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  margin: 0 auto 18px auto;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.65);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 1px solid var(--border-glass-hover);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: var(--accent-secondary);
  transform: translateY(-3px);
}

.btn-glass {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-glass-hover);
  transform: translateY(-2px);
}

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

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

.btn-block {
  width: 100%;
}

.mt-3 {
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   5. Navigation Bar
   -------------------------------------------------------------------------- */
.navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color var(--transition-normal), backdrop-filter var(--transition-normal), border-bottom var(--transition-normal), box-shadow var(--transition-normal);
}

.navbar {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: height var(--transition-normal);
}

.navbar-wrapper.scrolled {
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.navbar-wrapper.scrolled .navbar {
  height: 70px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-white);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  color: var(--text-white);
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: var(--glow-primary);
}

.brand-dot {
  color: var(--accent-secondary);
}

/* Menu Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-white);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Hamburger Button */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1002;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-white);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: #0f0f18;
  border-left: 1px solid var(--border-glass);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
  z-index: 1001;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right var(--transition-normal);
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.drawer-close-btn {
  font-size: 1.4rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.drawer-close-btn:hover {
  color: var(--text-white);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: auto;
}

.mobile-link {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.mobile-link i {
  color: var(--accent-secondary);
  width: 20px;
}

.mobile-link:hover,
.mobile-link.active {
  color: var(--text-white);
  padding-left: 8px;
}

.mobile-drawer-footer {
  margin-top: 24px;
}

.drawer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 0;
}

.drawer-socials a {
  font-size: 1.25rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.drawer-socials a:hover {
  color: var(--accent-primary);
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   6. Hero / Introduction Section
   -------------------------------------------------------------------------- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 0 0 0;
  overflow: hidden;
}

/* Ambient Glow Orbs */
.hero-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  animation: orbPulse 10s ease-in-out infinite alternate;
}

.hero-glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  top: -100px;
  left: -100px;
}

.hero-glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  bottom: -150px;
  right: -100px;
  animation-delay: -5s;
}

@keyframes orbPulse {
  0% { transform: scale(1) translate(0, 0); opacity: 0.35; }
  50% { transform: scale(1.15) translate(30px, 20px); opacity: 0.55; }
  100% { transform: scale(0.95) translate(-20px, 40px); opacity: 0.4; }
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  margin-bottom: 24px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: blink 2s infinite ease-in-out;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.badge-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-emerald);
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--text-white);
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-typing-wrapper {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 22px;
  min-height: 2.2em;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.typing-prefix {
  color: var(--text-muted);
  margin-right: 8px;
}

.typing-text {
  color: var(--accent-secondary);
  font-weight: 700;
}

.typing-cursor {
  display: inline-block;
  color: var(--accent-primary);
  font-weight: 300;
  animation: cursorBlink 0.9s infinite;
  margin-left: 2px;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-description {
  font-size: 1.12rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 34px;
  line-height: 1.8;
}

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

.hero-social-strip {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: all var(--transition-normal);
}

.social-icon:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--accent-secondary);
  color: var(--text-white);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.35);
}

/* Hero Right Column: Avatar & Orbit Elements */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.avatar-orbit-container {
  position: relative;
  width: 380px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.ring-1 {
  width: 360px;
  height: 360px;
  border: 1px dashed rgba(139, 92, 246, 0.25);
  animation: rotateClockwise 35s linear infinite;
}

.ring-2 {
  width: 320px;
  height: 320px;
  border: 1px solid rgba(99, 102, 241, 0.15);
}

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

/* Floating Tech Badges */
.floating-badge {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: #141424;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast);
  z-index: 3;
  animation: floatMotion 4s ease-in-out infinite alternate;
}

.floating-badge:hover {
  transform: scale(1.15) !important;
}

.badge-react {
  top: 10px;
  left: 20px;
  color: #61dafb;
  animation-delay: 0s;
}

.badge-node {
  top: 25px;
  right: 15px;
  color: #68a063;
  animation-delay: -1s;
}

.badge-python {
  bottom: 25px;
  left: 15px;
  color: #fbbf24;
  animation-delay: -2s;
}

.badge-code {
  bottom: 20px;
  right: 25px;
  color: var(--accent-pink);
  animation-delay: -3s;
}

@keyframes floatMotion {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

/* Portrait is rendered as a normal page element, not as a background. */
.hero-section::before {
  display: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93, 118, 255, 0.18), rgba(139, 92, 246, 0.08) 45%, transparent 70%);
  filter: blur(8px);
  animation: pulseGlow 5s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes cosmicDrift {
  0% { background-position: center, 82% 30%; transform: scale(1); }
  100% { background-position: center, 84% 34%; transform: scale(1.025); }
}

.hero-container,
.hero-glow-orb {
  z-index: 1;
}

/* RD Avatar Card */
.avatar-card {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.avatar-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: transparent;
  filter: none;
  opacity: 0;
  animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); opacity: 0.5; }
  100% { transform: scale(1.08); opacity: 0.85; }
}

.avatar-card {
  width: 380px;
  height: 430px;
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-14px) scale(1.015); }
}

.avatar-placeholder {
  width: 370px;
  height: 420px;
  border-radius: 0;
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.avatar-inner {
  background: transparent;
}

.hero-portrait {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  border-radius: inherit;
  filter: saturate(108%) contrast(106%);
  animation: portraitGlow 5s ease-in-out infinite alternate;
}

@keyframes portraitGlow {
  from { filter: saturate(108%) contrast(106%) brightness(0.96); }
  to { filter: saturate(118%) contrast(108%) brightness(1.04); }
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.avatar-inner::before {
  display: none;
}

.avatar-initials {
  position: relative;
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  letter-spacing: -2px;
  z-index: 1;
}

.avatar-tag {
  position: relative;
  font-size: 0.72rem;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  margin-top: 4px;
  z-index: 1;
}

/* Hero Stat Bubble Overlay */
.hero-stat-bubble {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 18, 30, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass-hover);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 4;
}

.stat-bubble-icon {
  width: 32px;
  height: 32px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.stat-bubble-text {
  display: flex;
  flex-direction: column;
}

.stat-bubble-text strong {
  font-size: 0.88rem;
  color: var(--text-white);
  line-height: 1.2;
}

.stat-bubble-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Hero Scroll Down Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
  z-index: 5;
}

.hero-scroll-indicator:hover {
  color: var(--text-white);
}

.mouse-icon {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 14px;
  position: relative;
  display: flex;
  justify-content: center;
}

.mouse-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--accent-primary);
  border-radius: 2px;
  margin-top: 6px;
  animation: mouseScroll 1.8s infinite ease-in-out;
}

@keyframes mouseScroll {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

.scroll-arrow {
  animation: bounceDown 1.8s infinite;
  font-size: 0.8rem;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* --------------------------------------------------------------------------
   7. About Me Section
   -------------------------------------------------------------------------- */
.about-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(18, 18, 30, 0.4) 50%, var(--bg-dark) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: stretch;
}

.about-bio-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bio-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-glass);
}

.bio-avatar-mini {
  width: 56px;
  height: 56px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-white);
  box-shadow: var(--glow-primary);
}

.bio-name {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-white);
}

.bio-role {
  font-size: 0.9rem;
  color: var(--accent-secondary);
  font-weight: 500;
}

.bio-body p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1.02rem;
  line-height: 1.75;
}

.bio-body p strong {
  color: var(--text-white);
}

.about-info-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-label i {
  color: var(--accent-primary);
}

.info-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.about-actions {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* Stats Column */
.about-stats-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.stat-card {
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-icon-wrapper {
  width: 52px;
  height: 52px;
  background: var(--gradient-subtle);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--accent-secondary);
  margin-bottom: 16px;
}

.stat-number-wrapper {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-plus {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

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

.philosophy-card {
  padding: 24px 28px;
  border-left: 3px solid var(--accent-primary);
  position: relative;
  background: rgba(22, 22, 38, 0.5);
}

.quote-icon {
  font-size: 1.5rem;
  color: rgba(139, 92, 246, 0.35);
  margin-bottom: 10px;
}

.philosophy-text {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.philosophy-author {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-secondary);
}

/* --------------------------------------------------------------------------
   8. Skills Showcase Section
   -------------------------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}

.skill-category-card {
  padding: 34px 30px;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-glass);
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.cat-frontend { background: rgba(99, 102, 241, 0.15); color: #6366f1; border: 1px solid rgba(99, 102, 241, 0.3); }
.cat-backend  { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.cat-tools    { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.cat-soft     { background: rgba(236, 72, 153, 0.15); color: #ec4899; border: 1px solid rgba(236, 72, 153, 0.3); }

.category-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.2;
}

.category-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

.skill-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 500;
}

.skill-name {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.skill-name i {
  font-size: 1.15rem;
}

.skill-icon-html { color: #e34f26; }
.skill-icon-css  { color: #264de4; }
.skill-icon-js   { color: #f7df1e; }
.skill-icon-react{ color: #61dafb; }
.skill-icon-node { color: #68a063; }
.skill-icon-python { color: #3776ab; }
.skill-icon-java { color: #e76f00; }
.skill-icon-db   { color: #06b6d4; }
.skill-icon-git  { color: #f05032; }
.skill-icon-vscode { color: #007acc; }
.skill-icon-figma { color: #f24e1e; }
.skill-icon-docker { color: #2496ed; }
.skill-icon-solve { color: #a855f7; }
.skill-icon-team  { color: #ec4899; }
.skill-icon-agile { color: #10b981; }
.skill-icon-clean { color: #3b82f6; }

.skill-percent {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--accent-secondary);
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* Extra Tech Pills */
.tech-pills-wrapper {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
}

.pill-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tech-pill:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--accent-secondary);
  color: var(--text-white);
  transform: translateY(-2px);
}

.tech-pill i {
  color: var(--accent-primary);
}

/* --------------------------------------------------------------------------
   9. Projects Showcase Section
   -------------------------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-8px);
}

.project-media-wrapper {
  height: 180px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 16px;
  overflow: hidden;
}

/* Mock Browser Header */
.mockup-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: fit-content;
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #f59e0b; }
.mockup-dot.green { background: #10b981; }

.mockup-url {
  font-family: monospace;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  margin-left: 6px;
}

.project-card-visual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.visual-icon-glow {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.visual-badge {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-white);
  background: rgba(0, 0, 0, 0.45);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Gradient Presets for Projects */
.gradient-shop      { background: var(--grad-shop); }
.gradient-weather   { background: var(--grad-weather); }
.gradient-task      { background: var(--grad-task); }
.gradient-portfolio { background: var(--grad-portfolio); }
.gradient-chat      { background: var(--grad-chat); }
.gradient-blog      { background: var(--grad-blog); }

.project-content {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.project-category {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-secondary);
}

.project-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-primary);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
}

.project-description {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

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

.tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.project-actions {
  display: flex;
  gap: 12px;
}

.project-actions .btn {
  flex: 1;
}

/* --------------------------------------------------------------------------
   10. Gallery Section
   -------------------------------------------------------------------------- */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  transition: all var(--transition-normal);
}

.filter-btn:hover {
  color: var(--text-white);
  border-color: var(--border-glass-hover);
}

.filter-btn.active {
  background: var(--gradient-primary);
  color: var(--text-white);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

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

.gallery-item {
  position: relative;
  cursor: pointer;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.gallery-item.hidden {
  display: none;
}

.gallery-card {
  position: relative;
  height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.gallery-item:hover .gallery-card {
  transform: translateY(-6px);
  border-color: var(--border-glass-hover);
}

.gallery-media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 20px;
}

.placeholder-icon {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.85);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.placeholder-caption {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.5px;
}

/* Gradient Classes for Gallery */
.gradient-aurora   { background: var(--grad-aurora); }
.gradient-sunset   { background: var(--grad-sunset); }
.gradient-neon     { background: var(--grad-neon); }
.gradient-ocean    { background: var(--grad-ocean); }
.gradient-purple   { background: var(--grad-purple); }
.gradient-emerald  { background: var(--grad-emerald); }
.gradient-fire     { background: var(--grad-fire); }
.gradient-cosmic   { background: var(--grad-cosmic); }
.gradient-amber    { background: var(--grad-amber); }
.gradient-electric { background: var(--grad-electric); }

/* Hover Overlay */
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 20, 0.88);
  backdrop-filter: blur(8px);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-secondary);
}

.gallery-item-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.35;
}

.gallery-zoom-icon {
  align-self: flex-end;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.5);
}

/* --------------------------------------------------------------------------
   11. Lightbox Modal
   -------------------------------------------------------------------------- */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

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

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 6, 12, 0.88);
  backdrop-filter: blur(16px);
}

.lightbox-dialog {
  position: relative;
  z-index: 2001;
  width: 90%;
  max-width: 820px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  transform: scale(0.92);
  transition: transform var(--transition-normal);
}

.lightbox-modal.active .lightbox-dialog {
  transform: scale(1);
}

.lightbox-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all var(--transition-fast);
}

.lightbox-close-btn:hover {
  background: var(--accent-pink);
  transform: rotate(90deg);
}

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

.lightbox-visual {
  height: 320px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-normal);
}

.lightbox-placeholder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lightbox-card-icon {
  font-size: 4rem;
  color: var(--text-white);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.4));
}

.lightbox-card-tag {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 18px;
  border-radius: var(--radius-full);
}

.lightbox-info {
  padding: 30px;
  background: #11111e;
}

.lightbox-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.lightbox-category {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-secondary);
}

.lightbox-counter {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.lightbox-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
}

.lightbox-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.lightbox-nav-buttons {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   12. Achievements & Certificates Section
   -------------------------------------------------------------------------- */
.achievements-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline-item {
  display: flex;
  gap: 28px;
  position: relative;
  margin-bottom: 36px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.marker-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 1.25rem;
  box-shadow: var(--glow-primary);
  z-index: 2;
  flex-shrink: 0;
}

.gold-marker   { background: linear-gradient(135deg, #d97706, #fbbf24); box-shadow: 0 0 25px rgba(245, 158, 11, 0.5); }
.purple-marker { background: linear-gradient(135deg, #7c3aed, #a855f7); box-shadow: 0 0 25px rgba(168, 85, 247, 0.5); }
.cyan-marker   { background: linear-gradient(135deg, #0891b2, #06b6d4); box-shadow: 0 0 25px rgba(6, 182, 212, 0.5); }
.orange-marker { background: linear-gradient(135deg, #ea580c, #f97316); box-shadow: 0 0 25px rgba(249, 115, 22, 0.5); }

.marker-line {
  width: 2px;
  flex-grow: 1;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.5) 0%, rgba(255, 255, 255, 0.05) 100%);
  margin-top: 10px;
}

.timeline-card {
  flex-grow: 1;
  padding: 30px;
}

.timeline-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-primary);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-gold   { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border-color: rgba(245, 158, 11, 0.35); }
.badge-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; border-color: rgba(168, 85, 247, 0.35); }
.badge-cyan   { background: rgba(6, 182, 212, 0.15); color: #22d3ee; border-color: rgba(6, 182, 212, 0.35); }
.badge-orange { background: rgba(249, 115, 22, 0.15); color: #fb923c; border-color: rgba(249, 115, 22, 0.35); }

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

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
}

.timeline-issuer {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--accent-secondary);
  font-weight: 500;
  margin-bottom: 14px;
}

.issuer-name i {
  margin-right: 4px;
}

.credential-id {
  font-family: monospace;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  border-radius: 4px;
}

.timeline-desc {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 18px;
}

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

/* --------------------------------------------------------------------------
   13. Travel Experiences Section
   -------------------------------------------------------------------------- */
.travel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

.travel-card:hover {
  transform: translateY(-8px);
}

.travel-media-banner {
  height: 180px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px;
}

.travel-date-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-white);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.travel-pin-glow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.travel-ktm      { background: var(--travel-ktm); }
.travel-pokhara  { background: var(--travel-pokhara); }
.travel-lumbini  { background: var(--travel-lumbini); }
.travel-chitwan  { background: var(--travel-chitwan); }
.travel-nagarkot { background: var(--travel-nagarkot); }
.travel-bandipur { background: var(--travel-bandipur); }

.travel-content {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.travel-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.travel-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
}

.travel-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.travel-highlights {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border-glass);
}

.travel-highlights span {
  font-size: 0.84rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.travel-highlights span i {
  color: var(--accent-emerald);
  font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   14. Contact Section
   -------------------------------------------------------------------------- */
.contact-section {
  position: relative;
  overflow: hidden;
}

.contact-bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 36px;
  align-items: stretch;
}

.contact-info-panel {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.info-panel-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.35;
  margin-bottom: 12px;
}

.info-panel-desc {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-detail-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.contact-detail-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-glass-hover);
}

.detail-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--gradient-subtle);
  border: 1px solid rgba(139, 92, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-secondary);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.status-available-icon {
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
}

.detail-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.detail-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-white);
}

.timezone-indicator,
.response-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.copy-btn {
  color: var(--text-muted);
  font-size: 1.05rem;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.08);
}

.contact-socials-wrapper {
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
}

.socials-heading {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.contact-social-icons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.contact-social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-normal);
}

.contact-social-btn:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--accent-secondary);
  color: var(--text-white);
  transform: translateY(-2px);
}

.contact-social-btn i {
  font-size: 1.15rem;
  color: var(--accent-primary);
}

/* Form Panel */
.contact-form-panel {
  padding: 40px;
}

.form-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 6px;
}

.form-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-label .required {
  color: var(--accent-pink);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  font-size: 1.05rem;
  pointer-events: none;
  transition: color var(--transition-fast);
}

.textarea-wrapper .textarea-icon {
  top: 16px;
}

.form-control {
  width: 100%;
  padding: 13px 16px 13px 46px;
  background: var(--bg-glass-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-white);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
  background: rgba(18, 18, 32, 0.95);
}

.form-control:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
  color: var(--accent-primary);
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
  padding-top: 14px;
}

.field-error {
  display: block;
  font-size: 0.78rem;
  color: #ef4444;
  margin-top: 4px;
  min-height: 1.2em;
}

/* Submit Button & Spinner */
.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--text-white);
  border-radius: 50%;
  animation: spinnerRotate 0.8s linear infinite;
}

@keyframes spinnerRotate {
  to { transform: rotate(360deg); }
}

.btn.loading .btn-text,
.btn.loading .btn-icon {
  display: none;
}

.btn.loading .btn-spinner {
  display: inline-block;
}

.form-feedback {
  margin-top: 18px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  display: none;
}

.form-feedback.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.form-feedback.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

/* --------------------------------------------------------------------------
   15. Footer Section
   -------------------------------------------------------------------------- */
.footer-section {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-glass);
  padding: 80px 0 30px 0;
  position: relative;
  z-index: 10;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 320px;
  margin-bottom: 24px;
}

.footer-social-links {
  display: flex;
  gap: 12px;
}

.footer-social-links a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.footer-social-links a:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--accent-secondary);
  color: var(--text-white);
  transform: translateY(-2px);
}

.footer-column-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 20px;
  position: relative;
}

.footer-column-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--accent-primary);
  border-radius: var(--radius-full);
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-list a {
  font-size: 0.92rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.footer-nav-list a i {
  font-size: 0.7rem;
  color: var(--accent-secondary);
  transition: transform var(--transition-fast);
}

.footer-nav-list a:hover {
  color: var(--text-white);
  transform: translateX(4px);
}

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

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-emerald);
}

.status-indicator {
  width: 6px;
  height: 6px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
  gap: 20px;
}

.copyright-text {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  transition: all var(--transition-fast);
}

.back-to-top-btn:hover {
  color: var(--text-white);
  border-color: var(--accent-secondary);
  background: rgba(139, 92, 246, 0.15);
  transform: translateY(-2px);
}

.back-to-top-btn i {
  color: var(--accent-primary);
  transition: transform var(--transition-fast);
}

.back-to-top-btn:hover i {
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   16. Toast Notification
   -------------------------------------------------------------------------- */
.toast-notification {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #141426;
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-md);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-white);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon {
  font-size: 1.25rem;
  color: var(--accent-emerald);
}

.toast-message {
  font-size: 0.92rem;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   17. Scroll-Reveal Animation Classes
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.revealed {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}

/* --------------------------------------------------------------------------
   18. Responsive Media Queries
   -------------------------------------------------------------------------- */
/* Large Desktops / Laptops (under 1200px) */
@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .travel-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

/* Tablets (under 992px) */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }

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

  .hero-typing-wrapper {
    justify-content: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-social-strip {
    justify-content: center;
  }

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

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

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

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Keep the hero copy visible on direct page load and preserve the full portrait. */
.reveal-left {
  opacity: 1;
  transform: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 620px;
}

.hero-container {
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-areas: "copy photo";
}

.hero-visual {
  grid-area: photo;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
}

.hero-content {
  grid-area: copy;
}

.avatar-orbit-container {
  width: 430px;
  height: 520px;
}

.avatar-card {
  width: 420px;
  height: 500px;
}

.avatar-placeholder {
  width: 410px;
  height: 500px;
  border-radius: 18px;
}

.hero-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-title,
.hero-typing-wrapper,
.hero-description {
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.78);
}


/* Mobile & Small Tablets (under 768px) */
@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  .nav-menu,
  .nav-cta {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .avatar-orbit-container {
    width: 320px;
    height: 320px;
  }

  .ring-1 {
    width: 300px;
    height: 300px;
  }

  .ring-2 {
    width: 270px;
    height: 270px;
  }

  .avatar-card {
    width: 210px;
    height: 210px;
  }

  .avatar-placeholder {
    width: 200px;
    height: 200px;
  }

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

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

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

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

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

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

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

  .timeline-item {
    gap: 16px;
  }

  .timeline-marker {
    align-items: center;
  }

  .marker-circle {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .timeline-card {
    padding: 22px 18px;
  }
}

/* Small Phones (under 480px) */
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .contact-social-icons {
    grid-template-columns: 1fr;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .about-bio-card,
  .contact-info-panel,
  .contact-form-panel {
    padding: 24px 18px;
  }
}

/* Final hero layout: text stays structured and the photo remains a normal
   scalable page element rather than a background or animated crop. */
.reveal-right {
  opacity: 1 !important;
  transform: none !important;
}

.hero-section {
  min-height: 100vh;
  height: 100vh;
}

.hero-container {
  width: min(1360px, calc(100% - 40px));
  grid-template-columns: minmax(520px, 1.08fr) minmax(430px, 0.92fr);
  grid-template-areas: "copy photo";
  align-items: center;
  gap: 36px;
}

.hero-content {
  grid-area: copy;
  width: 100%;
  max-width: 600px;
  justify-self: start;
  transform: none;
}

.hero-visual {
  grid-area: photo;
  width: 100%;
  display: flex !important;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 0;
  transform: translateY(-3vh);
}

.hero-content {
  padding-top: 2vh;
}

.hero-title {
  font-size: clamp(2.75rem, 5vw, 4.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hero-typing-wrapper {
  width: 100%;
  min-height: 48px;
  margin-bottom: 18px;
  flex-wrap: nowrap;
  white-space: nowrap;
  font-size: clamp(1.35rem, 2.35vw, 1.9rem);
}

.typing-prefix {
  flex: 0 0 auto;
  margin-right: 6px;
}

.typing-text {
  display: inline-block;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: clip;
}

.hero-description {
  width: 100%;
  max-width: 600px;
  min-height: 240px;
  font-size: 1.28rem;
  line-height: 1.75;
  margin-bottom: 0;
}

.hero-section::after {
  display: none;
}

.avatar-orbit-container {
  width: min(600px, 44vw);
  height: min(700px, 90vh);
  justify-content: flex-start;
}

.avatar-card {
  width: min(590px, 44vw);
  height: min(680px, 90vh);
}

.avatar-placeholder,
.avatar-inner {
  width: 100%;
  height: 100%;
}

.hero-image img {
  width: 500px;
  height: auto;
  transform: translate(40px, -50px);
}

.hero-portrait {
  object-fit: contain;
  object-position: center 40%;
  border-radius: 0;
  filter: none !important;
  animation: none;
}

@media (max-width: 992px) and (min-width: 769px) {
  .hero-container {
    width: calc(100% - 48px);
    grid-template-columns: minmax(300px, 0.9fr) minmax(380px, 1.1fr);
    gap: 28px;
  }

  .hero-title {
    font-size: 2.35rem;
  }

  .hero-description {
    font-size: 1rem;
    min-height: 220px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 100vh;
    min-height: 100vh;
    padding: 0;
    align-items: flex-start;
  }

  .hero-container {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    grid-template-areas: "copy photo";
    width: calc(100% - 40px);
    gap: 18px;
    text-align: left;
    align-items: flex-start;
    padding-top: 7vh;
  }

  .hero-content {
    padding-top: 0;
    align-items: flex-start;
    max-width: 100%;
    transform: none;
  }  .hero-title {
    font-size: clamp(1.8rem, 4.8vw, 2.6rem);
    white-space: nowrap;
  }

  .hero-typing-wrapper {
    justify-content: flex-start;
    font-size: clamp(0.95rem, 2.5vw, 1.25rem);
    min-height: 40px;
    margin-bottom: 10px;
  }

  .hero-description {
    min-height: 0;
    max-width: 100%;
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    line-height: 1.55;
  }

  .hero-visual {
    justify-content: flex-end;
    align-items: flex-start;
    padding-top: 0;
    transform: translateX(0);
  }

  .avatar-orbit-container {
    width: 100%;
    height: min(560px, 86vh);
    justify-content: center;
  }

  .avatar-card {
    width: 100%;
    height: min(550px, 86vh);
  }
}

/* Stable hero geometry at every browser zoom level. */
.hero-section {
  height: 100vh;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  background: transparent;
}

.hero-section::before,
.hero-section::after,
.avatar-glow,
.orbit-ring,
.avatar-card::before,
.avatar-card::after,
.hero-image::before,
.hero-image::after {
  display: none !important;
  content: none !important;
}

.avatar-card {
  background: transparent;
  box-shadow: none;
  animation: none !important;
}

.hero-image img {
  opacity: 1;
  mix-blend-mode: normal;
}

.hero-section {
  height: 100vh;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  background: transparent;
  padding-top: 0;
  overflow: hidden;
}

.hero-container {
  width: min(1320px, calc(100vw - 80px));
  max-width: 1320px;
  height: auto;
  grid-template-columns: minmax(520px, 1.08fr) minmax(500px, 0.92fr);
  grid-template-areas: "copy photo";
  align-items: center;
  gap: 40px;
}

.hero-content {
  grid-area: copy;
  width: 600px;
  max-width: 600px;
  justify-self: start;
  transform: none;
}

.hero-visual {
  grid-area: photo;
  width: 100%;
  height: 100%;
  display: flex !important;
  align-items: flex-start;
  justify-content: flex-end;
  transform: none;
}

.hero-image {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  overflow: hidden;
}

.hero-image img {
  width: 500px;
  height: auto;
  transform: translate(40px, -50px);
}

.hero-title {
  font-size: 4rem;
  line-height: 1.08;
  white-space: nowrap;
}

.hero-typing-wrapper {
  font-size: 1.75rem;
  min-height: 48px;
  white-space: nowrap;
}

.hero-description {
  width: 600px;
  max-width: 600px;
  min-height: 230px;
  font-size: 1.18rem;
  line-height: 1.75;
}

.hero-description::after {
  display: none;
}

.education-heading {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  margin: 0;
  color: #fff;
  font-size: clamp(1.25rem, 3vw, 2rem);
  text-align: center;
  white-space: nowrap;
  z-index: 12;
}

.education-section {
  position: relative;
  min-height: 0;
  height: auto;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: -10px;
  padding: 0 40px 40px;
  box-sizing: border-box;
}

.education-table {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 100%);
  border-collapse: collapse;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  table-layout: fixed;
}

.education-table th,
.education-table td {
  border: 2px solid rgba(255, 255, 255, 0.85);
  padding: 18px;
  text-align: center;
}

.education-table th {
  font-size: 1.1rem;
  background: rgba(0, 0, 0, 0.55);
}

.education-table td {
  font-size: 1rem;
}

.bio-divider {
position: absolute;
left: 0;
width: 100vw;
height: 20px;
background: #fff;
pointer-events: none;
z-index: 10;
}

.education-divider {
position: absolute;
left: 0;
width: 100vw;
height: 20px;
background: #fff;
pointer-events: none;
z-index: 10;
}

.profile-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin-top: 20px;
  padding: 0 40px 60px;
}

.profile-grid {
  width: min(1120px, calc(100vw - 80px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.professional-life-box {
  width: min(1120px, calc(100vw - 80px));
  min-height: 54px;
  margin-top: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 12px 24px;
  color: #fff;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.42);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.professional-life-box h2 {
  margin: 0;
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1;
}

.professional-life-box:hover {
  border-color: #fff;
  background: rgba(0, 0, 0, 0.55);
  transform: translateY(-4px);
}

.profile-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 20px;
  margin-top: 50px;
  background: #fff;
  flex-shrink: 0;
}

.profile-card {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  color: #fff;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(35px);
  animation: profile-card-enter 0.9s cubic-bezier(.2,.8,.2,1) forwards;
}

.profile-card-skills {
  animation-delay: 0.15s;
}

.profile-card-achievements {
  animation-delay: 0.45s;
}

.profile-card-projects {
  animation-delay: 0.75s;
}

.profile-card-events {
  animation-delay: 1.05s;
}

.profile-card h2 {
  margin: 0;
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

@keyframes profile-card-enter {
  from {
    opacity: 0;
    transform: translateY(35px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-card:hover {
  border-color: #fff;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transform: translateY(-6px) scale(1.02);
}

.contact-section {
  position: relative;
  min-height: 70vh;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px 100px;
  color: #fff;
  text-align: center;
}

.contact-content {
  width: min(900px, 100%);
}

.contact-kicker {
  margin: 0 0 10px;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-content h2 {
  margin: 0 0 44px;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.contact-details div {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.55);
}

.contact-details div:last-child {
  border-right: 0;
}

.contact-details span {
  margin-bottom: 10px;
  font-size: 0.85rem;
  opacity: 0.72;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.contact-details strong {
  font-size: 1.05rem;
}

.copyright {
  margin: 36px 0 0;
  font-size: 0.9rem;
  opacity: 0.82;
}

.ending-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 20px;
  background: #fff;
}

@media (max-width: 768px) {
  .profile-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: calc(100vw - 24px);
    gap: 8px;
  }

  .professional-life-box {
    width: calc(100vw - 24px);
    min-height: 44px;
    margin-top: 80px;
    border-radius: 12px;
  }

  .profile-card {
    border-radius: 16px;
    padding: 8px;
  }

  .profile-card h2 {
    font-size: clamp(0.75rem, 2.5vw, 1rem);
  }

  .contact-details {
    grid-template-columns: 1fr;
  }

  .contact-details div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  }

  .contact-details div:last-child {
    border-bottom: 0;
  }
}

.detail-page {
  min-height: 100vh;
  padding: 50px;
  box-sizing: border-box;
  color: #fff;
  background: transparent;
}

.detail-page h1 {
  margin-top: 80px;
  font-size: 4rem;
}

.back-link {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  border-bottom: 1px solid #fff;
}

.avatar-orbit-container,
.avatar-card,
.avatar-placeholder,
.avatar-inner {
  width: 500px;
  height: auto;
}

.avatar-orbit-container {
  overflow: visible;
}

.avatar-card {
  height: auto;
  border-radius: 0;
}

@media (max-width: 768px) {
  .hero-section {
    height: 100vh;
    min-height: 0;
    align-items: flex-start;
    padding-top: 0;
  }

  .hero-container {
    width: calc(100vw - 40px);
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 18px;
  }

  .hero-content,
  .hero-description {
    width: 100%;
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(1.55rem, 4.8vw, 2.5rem);
  }

  .hero-typing-wrapper {
    font-size: clamp(0.95rem, 2.5vw, 1.25rem);
  }

  .hero-description {
    min-height: 0;
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  }

  .avatar-orbit-container,
  .avatar-card,
  .avatar-placeholder,
  .avatar-inner {
    width: 100%;
    height: calc(123.6979167vw);
  }

  .hero-image {
    overflow: hidden;
  }

  .hero-image img {
    width: min(500px, 100%);
    max-width: 100%;
    transform: translate(40px, -50px);
  }
}

/* Mobile layout overrides: stack content instead of squeezing the desktop hero. */
@media (max-width: 768px) {
  .hero-section {
    height: auto;
    min-height: 100svh;
    overflow: hidden;
    padding: 0 0 72px;
  }

  .hero-container {
    width: calc(100% - 32px);
    height: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "photo"
      "copy";
    gap: 28px;
    align-items: start;
    padding-top: 0;
  }

  .hero-content {
    width: 100%;
    align-items: flex-start;
    text-align: left;
  }

  .hero-title {
    white-space: normal;
    font-size: clamp(2rem, 10vw, 2.75rem);
    line-height: 1.12;
  }

  .hero-typing-wrapper {
    width: 100%;
    white-space: normal;
    font-size: clamp(1rem, 5vw, 1.25rem);
    min-height: 36px;
    margin-bottom: 14px;
  }

  .hero-description {
    width: 100%;
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-visual {
    width: 100%;
    height: calc(123.6979167vw);
    justify-content: center;
  }

  .hero-image {
    width: min(100%, 360px);
    height: 420px;
    justify-content: center;
    overflow: hidden;
  }

  .hero-image img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center bottom;
    transform: none;
  }

  .bio-divider {
    bottom: 0;
  }

  .education-section {
    height: auto;
    min-height: 0;
    display: block;
    margin-top: 0;
    padding: 36px 12px 52px;
  }

  .education-heading {
    position: static;
    transform: none;
    width: 100%;
    margin-bottom: 18px;
    white-space: normal;
    font-size: 1.45rem;
    line-height: 1.25;
  }

  .education-table {
    position: static;
    transform: none;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
  }

  .education-table th,
  .education-table td {
    height: 48px;
    padding: 8px 4px;
    border-width: 1px;
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .education-table th {
    font-size: 0.78rem;
  }

  .education-table th:first-child,
  .education-table td:first-child {
    width: 12%;
  }

  .education-table th:nth-child(2),
  .education-table td:nth-child(2) {
    width: 38%;
  }

  .education-divider {
    bottom: 0;
  }

  .profile-section {
    min-height: 0;
    margin-top: 20px;
    padding: 64px 16px 64px;
  }

  .profile-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .profile-card {
    border-radius: 16px;
    padding: 12px;
  }

  .profile-card h2 {
    font-size: clamp(1rem, 5vw, 1.35rem);
  }

  .professional-life-box {
    width: 100%;
    min-height: 52px;
    margin-top: 24px;
  }

  .contact-section {
    min-height: 0;
    padding: 64px 16px 84px;
  }

  .contact-content h2 {
    margin-bottom: 28px;
  }
}

@media (max-width: 480px) {
  .hero-image {
    height: 380px;
  }

  .profile-grid {
    gap: 10px;
  }

  .profile-card {
    aspect-ratio: 1 / 0.82;
  }
}

/* Keep the mobile page start immediately below the browser address bar. */
@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .hero-section {
    width: 100%;
    min-height: 0;
    height: auto;
    margin: 0;
    padding: 0 0 56px;
    align-items: start;
    overflow: hidden;
  }

  .hero-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "photo"
      "copy";
    gap: 0;
  }

  .hero-visual {
    width: 100%;
    height: calc(123.6979167vw);
    margin: 0;
    padding: 0;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
  }

  .hero-image {
    width: 100%;
    height: calc(123.6979167vw);
    margin: 0;
    justify-content: center;
    overflow: hidden;
  }

  .hero-image img {
    width: 100%;
    height: calc(123.6979167vw);
    aspect-ratio: 768 / 950;
    margin: 0;
    display: block;
    object-fit: contain;
    object-position: center top;
    transform: none;
  }

  .hero-content {
    width: calc(100% - 32px);
    max-width: none;
    margin: 0 16px;
    padding: 0;
  }
}
