/* ==========================================================================
   Dinesh Mahenderkar — Premium Portfolio
   Custom CSS (Bootstrap Grid & Utilities only)
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties / Theme
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-light: rgba(37, 99, 235, 0.12);
  --secondary: #0F172A;
  --accent: #06B6D4;
  --accent-light: rgba(6, 182, 212, 0.12);
  --success: #10B981;

  /* Light Theme */
  --bg: #F8FAFC;
  --bg-alt: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --text: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.15);
  --card-bg: #FFFFFF;
  --card-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --card-shadow-hover: 0 20px 48px rgba(15, 23, 42, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.8);
  --navbar-bg: rgba(248, 250, 252, 0.8);
  --hero-gradient-1: #EFF6FF;
  --hero-gradient-2: #F0FDFA;
  --hero-gradient-3: #F8FAFC;
  --blur-color-1: rgba(37, 99, 235, 0.18);
  --blur-color-2: rgba(6, 182, 212, 0.15);
  --blur-color-3: rgba(16, 185, 129, 0.1);
  --mouse-glow: rgba(37, 99, 235, 0.06);
  --progress-bg: rgba(37, 99, 235, 0.1);
  --input-bg: #FFFFFF;
  --overlay: rgba(15, 23, 42, 0.4);

  /* Typography */
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Spacing & Layout */
  --section-padding: clamp(5rem, 10vw, 8rem);
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --theme-transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

[data-theme="dark"] {
  --bg: #020617;
  --bg-alt: #0F172A;
  --bg-elevated: #111827;
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --text-light: #64748B;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --card-bg: #111827;
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 20px 48px rgba(0, 0, 0, 0.5);
  --glass-bg: rgba(17, 24, 39, 0.75);
  --glass-border: rgba(255, 255, 255, 0.1);
  --navbar-bg: rgba(2, 6, 23, 0.85);
  --hero-gradient-1: #0F172A;
  --hero-gradient-2: #0C1222;
  --hero-gradient-3: #020617;
  --blur-color-1: rgba(37, 99, 235, 0.25);
  --blur-color-2: rgba(6, 182, 212, 0.2);
  --blur-color-3: rgba(16, 185, 129, 0.12);
  --mouse-glow: rgba(37, 99, 235, 0.08);
  --progress-bg: rgba(37, 99, 235, 0.15);
  --input-bg: #1E293B;
  --overlay: rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  transition: var(--theme-transition);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

strong {
  font-weight: 600;
  color: var(--text);
}

::selection {
  background: var(--primary-light);
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   Scroll Progress Bar
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 10000;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* --------------------------------------------------------------------------
   Mouse Glow
   -------------------------------------------------------------------------- */
.mouse-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--mouse-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

body:hover .mouse-glow {
  opacity: 1;
}

@media (max-width: 768px) {
  .mouse-glow {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Container Override
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --------------------------------------------------------------------------
   Header / Navbar
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition-base);
}

.site-header.scrolled {
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

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

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  z-index: 1001;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

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

.nav-resume {
  color: var(--primary) !important;
  font-weight: 600;
}

.nav-resume:hover {
  background: var(--primary-light) !important;
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: var(--transition-fast);
  margin-left: 0.25rem;
}

.theme-toggle:hover {
  background: var(--primary-light);
  color: var(--primary);
}

[data-theme="light"] .theme-icon-light,
[data-theme="dark"] .theme-icon-dark {
  display: none;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition-fast);
}

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

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

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

@media (max-width: 991px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    background: var(--bg-elevated);
    border-left: 1px solid var(--border);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    transition: right var(--transition-base);
    z-index: 1000;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .theme-toggle {
    margin-left: 0;
    margin-top: 1rem;
  }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.825rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* Ripple Effect */
.ripple-btn {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   Section Shared Styles
   -------------------------------------------------------------------------- */
.section {
  padding: 2rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.section-tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1rem;
}

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

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.typed-cursor {
  color: var(--primary);
  font-weight: 300;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
  overflow-x: clip;
  overflow-y: visible;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--hero-gradient-1) 0%,
    var(--hero-gradient-2) 50%,
    var(--hero-gradient-3) 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  z-index: 0;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-blur {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  animation: blurFloat 20s ease-in-out infinite;
}

.hero-blur--1 {
  width: 500px;
  height: 500px;
  background: var(--blur-color-1);
  top: -10%;
  right: -5%;
}

.hero-blur--2 {
  width: 400px;
  height: 400px;
  background: var(--blur-color-2);
  bottom: 10%;
  left: -10%;
  animation-delay: -7s;
}

.hero-blur--3 {
  width: 300px;
  height: 300px;
  background: var(--blur-color-3);
  top: 40%;
  left: 30%;
  animation-delay: -14s;
}

@keyframes blurFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-row {
  min-height: calc(100vh - 11rem);
  min-height: calc(100dvh - 11rem);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem 0.4rem 0.6rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

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

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Profile Glass Circle — Hero Visual Focal Point */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: visible;
  opacity: 1;
  visibility: visible;
  min-height: 420px;
}

.hero-visual-stage {
  position: relative;
  width: 100%;
  max-width: 460px;
  min-height: 460px;
  margin: 0 auto;
  display: block;
  overflow: visible;
  opacity: 1;
  visibility: visible;
}

.hero-stage-glow {
  position: absolute;
  inset: 5%;
  background: radial-gradient(
    circle at 50% 45%,
    rgba(37, 99, 235, 0.22) 0%,
    rgba(6, 182, 212, 0.08) 40%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(40px);
  animation: stageGlowPulse 6s ease-in-out infinite;
  z-index: 0;
}

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

.hero-stage-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at center, transparent 35%, var(--border) 35.5%, transparent 36%),
    radial-gradient(circle at center, transparent 55%, var(--border) 55.3%, transparent 55.6%),
    radial-gradient(circle at center, transparent 75%, var(--border) 75.2%, transparent 75.4%);
  opacity: 0.35;
  mask-image: radial-gradient(circle at center, #000 55%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at center, #000 55%, transparent 85%);
  z-index: 0;
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px dashed var(--border);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

.orbit-ring--1 {
  width: 72%;
  height: 72%;
  animation: orbitFloat 8s ease-in-out infinite;
  opacity: 0.55;
}

.orbit-ring--2 {
  width: 88%;
  height: 88%;
  border-style: solid;
  border-color: rgba(37, 99, 235, 0.2);
  animation: orbitRotate 25s linear infinite reverse;
}

.orbit-ring--3 {
  width: 100%;
  height: 100%;
  border-color: rgba(6, 182, 212, 0.15);
  animation: orbitFloat 10s ease-in-out infinite reverse;
  opacity: 0.45;
}

@keyframes orbitFloat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -52%) scale(1.02); }
}

@keyframes orbitRotate {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.profile-glass {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(300px, 58vw);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.profile-glass:hover .profile-image-wrap {
  transform: scale(1.03);
}

.profile-blue-glow {
  position: absolute;
  inset: -15%;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.35) 0%,
    rgba(37, 99, 235, 0.12) 45%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(28px);
  z-index: 0;
  animation: blueGlowPulse 4s ease-in-out infinite;
}

@keyframes blueGlowPulse {
  0%, 100% { opacity: 0.7; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}

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

.profile-ring--outer {
  inset: -28px;
  background: conic-gradient(
    from 0deg,
    var(--primary),
    var(--accent),
    rgba(37, 99, 235, 0.2),
    var(--primary)
  );
  opacity: 0.55;
  animation: ringRotate 10s linear infinite;
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  z-index: 1;
}

.profile-ring--mid {
  inset: -14px;
  border: 1.5px solid rgba(37, 99, 235, 0.25);
  background: transparent;
  animation: ringFloat 5s ease-in-out infinite;
  z-index: 1;
}

.profile-ring--inner {
  inset: -6px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  z-index: 1;
}

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

@keyframes ringFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.8; }
  50% { transform: translateY(-6px) scale(1.015); opacity: 1; }
}

.profile-image-wrap {
  width: 88%;
  height: 88%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  z-index: 2;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.15),
    0 20px 50px rgba(37, 99, 235, 0.2),
    var(--card-shadow-hover);
  background: var(--bg-alt);
  transition: transform var(--transition-base);
}

[data-theme="dark"] .profile-image-wrap {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.3),
    0 20px 50px rgba(37, 99, 235, 0.25),
    var(--card-shadow-hover);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform var(--transition-slow);
}

.profile-glass:hover .profile-image {
  transform: scale(1.02);
}

.profile-badge {
  position: absolute;
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  box-shadow: var(--card-shadow);
}

.profile-badge i {
  color: var(--primary);
}

/* Orbiting Tech Icons — perimeter layout around profile */
.hero-orbit-icons {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
}

.hero-orbit-icons .float-icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--bg-elevated);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(37, 99, 235, 0.35);
  border-radius: var(--radius-md);
  color: var(--primary);
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.15);
  animation: iconFloat 5s ease-in-out infinite;
  opacity: 1;
  visibility: visible;
}

.hero-orbit-icons .float-icon::after {
  content: attr(data-tech);
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* Positioned around the visual stage perimeter */
.hero-orbit-icons .float-icon--1 { top: 0;   left: calc(50% - 25px); animation-delay: 0s; }
.hero-orbit-icons .float-icon--2 { top: 8%;  right: 0;  animation-delay: -0.6s; }
.hero-orbit-icons .float-icon--3 { top: 38%; right: -4px; animation-delay: -1.2s; }
.hero-orbit-icons .float-icon--4 { bottom: 22%; right: 0; animation-delay: -1.8s; }
.hero-orbit-icons .float-icon--5 { bottom: 0;  left: calc(50% - 25px); animation-delay: -2.4s; }
.hero-orbit-icons .float-icon--6 { bottom: 22%; left: 0;  animation-delay: -3s; }
.hero-orbit-icons .float-icon--7 { top: 38%; left: -4px;  animation-delay: -3.6s; }
.hero-orbit-icons .float-icon--8 { top: 8%;  left: 0;   animation-delay: -4.2s; }

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Safety: hero visual must never stay hidden */
.hero-visual,
.hero-visual-stage {
  opacity: 1;
  visibility: visible;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  z-index: 2;
  transition: color var(--transition-fast);
}

.scroll-indicator:hover {
  color: var(--primary);
}

.scroll-indicator-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scrollLine 2s ease infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 991px) {
  .hero-visual {
    margin-top: 3rem;
  }

  .hero-visual-stage {
    min-height: 420px;
    max-width: 400px;
  }

  .hero-orbit-icons .float-icon {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .hero-orbit-icons .float-icon--1,
  .hero-orbit-icons .float-icon--5 {
    left: calc(50% - 22px);
  }

  .hero-stats {
    gap: 1.25rem;
  }
}

@media (max-width: 575px) {
  .hero-visual-stage {
    min-height: 380px;
    max-width: 320px;
  }

  .hero-orbit-icons .float-icon--7,
  .hero-orbit-icons .float-icon--8 {
    display: flex;
  }

  .hero-orbit-icons .float-icon--3 { right: 0; }
  .hero-orbit-icons .float-icon--7 { left: 0; }
}

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */
.about {
  background: var(--bg-alt);
}

.about-photo-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 12px;
}

.about-photo-wrap:hover .about-photo-frame {
  transform: scale(1.03);
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.2),
    0 24px 60px rgba(37, 99, 235, 0.22);
}

.about-photo-glow {
  position: absolute;
  inset: -10%;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(37, 99, 235, 0.3) 0%,
    rgba(37, 99, 235, 0.1) 50%,
    transparent 75%
  );
  filter: blur(40px);
  z-index: 0;
  animation: blueGlowPulse 5s ease-in-out infinite;
}

.about-photo-ring {
  position: absolute;
  border-radius: var(--radius-xl);
  pointer-events: none;
  z-index: 1;
}

.about-photo-ring--outer {
  inset: 0;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-alt), var(--bg-alt)) padding-box,
    conic-gradient(from 0deg, var(--primary), var(--accent), rgba(37, 99, 235, 0.2), var(--primary)) border-box;
  opacity: 0.7;
  animation: ringRotate 12s linear infinite;
}

.about-photo-ring--inner {
  inset: 6px;
  border: 1px solid rgba(37, 99, 235, 0.15);
  animation: ringFloat 6s ease-in-out infinite;
}

.about-photo-frame {
  position: relative;
  z-index: 2;
  border-radius: calc(var(--radius-xl) - 4px);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  box-shadow: var(--card-shadow-hover);
}

.about-photo {
  width: 100%;
  border-radius: calc(var(--radius-xl) - 4px);
  object-fit: cover;
  aspect-ratio: 4/5;
  display: block;
}

.about-photo-accent {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 3;
  border-radius: 0 0 calc(var(--radius-xl) - 4px) calc(var(--radius-xl) - 4px);
}

.about-prose {
  max-width: 36rem;
  line-height: 1.8;
}

.about-lead {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  max-width: 34rem;
}

.about-prose p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  max-width: 34rem;
}

.about-prose p:last-child {
  margin-bottom: 0;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-cards {
  margin-top: 2.75rem;
}

.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: 100%;
  transition: var(--transition-base);
  box-shadow: var(--card-shadow);
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--primary);
}

.about-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.about-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.about-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Skills Section
   -------------------------------------------------------------------------- */
.skills {
  background: var(--bg);
}

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

.skill-category-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-category-title i {
  color: var(--primary);
  font-size: 0.9rem;
}

.skill-capsules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-capsule {
  display: inline-block;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  cursor: default;
}

.skill-capsule:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* --------------------------------------------------------------------------
   Experience Section
   -------------------------------------------------------------------------- */
.experience {
  background: var(--bg-alt);
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.exp-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: var(--transition-base);
  overflow: hidden;
}

.exp-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.exp-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: transparent;
}

.exp-card:hover .exp-card-glow {
  opacity: 1;
}

.exp-card-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.exp-logo {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

.exp-company {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.exp-role {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.exp-duration {
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.exp-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.exp-achievements {
  margin-bottom: 1.25rem;
}

.exp-achievements li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.exp-achievements li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
}

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

.exp-tech span {
  padding: 0.3rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

[data-theme="dark"] .exp-tech span {
  background: var(--bg-alt);
}

/* --------------------------------------------------------------------------
   Projects Section
   -------------------------------------------------------------------------- */
.projects {
  background: var(--bg);
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: transparent;
}

.project-image {
  position: relative;
  aspect-ratio: 25/9;
  overflow: hidden;
}

.project-image--featured {
  aspect-ratio: auto;
  height: 100%;
  min-height: 280px;
}

.project-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1E3A5F 0%, #2563EB 100%);
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.85);
}

.project-placeholder--accent {
  background: linear-gradient(135deg, #0E7490 0%, #06B6D4 100%);
}

.project-placeholder--insurance {
  background: linear-gradient(135deg, #065F46 0%, #10B981 100%);
}

.project-placeholder--health {
  background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
}

.project-placeholder--floral {
  background: linear-gradient(135deg, #BE185D 0%, #F472B6 100%);
  font-size: 4rem;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

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

.project-overlay-btn {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  color: var(--primary);
  border-radius: 50%;
  font-size: 1.1rem;
  transform: scale(0.8);
  transition: transform var(--transition-fast);
}

.project-card:hover .project-overlay-btn {
  transform: scale(1);
}

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

.project-body--featured {
  padding: 2.5rem;
  justify-content: center;
}

.project-featured-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  width: fit-content;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  flex: 1;
}

.project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.project-badges span {
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: var(--radius-full);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-card--featured {
  border: 1px solid var(--border);
}

.project-card--featured:hover {
  border-color: var(--primary);
}

/* --------------------------------------------------------------------------
   Tech Marquee
   -------------------------------------------------------------------------- */
.tech-marquee-section {
  padding: 3rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.marquee-wrapper {
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  to { transform: translateX(-50%); }
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 0 1.5rem;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.marquee-item i {
  font-size: 1.25rem;
  color: var(--primary);
}

.marquee-item:hover {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Achievements Section
   -------------------------------------------------------------------------- */
.achievements {
  background: var(--bg);
}

.achievement-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  height: 100%;
  transition: var(--transition-base);
  text-align: center;
}

.achievement-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--primary);
}

.achievement-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-lg);
  font-size: 1.5rem;
  transition: var(--transition-fast);
}

.achievement-card:hover .achievement-icon {
  transform: scale(1.1);
}

.achievement-icon--accent {
  background: var(--accent-light);
  color: var(--accent);
}

.achievement-icon--cloud {
  background: rgba(37, 99, 235, 0.15);
  color: var(--primary);
}

.achievement-icon--ai {
  background: rgba(124, 58, 237, 0.12);
  color: #7C3AED;
}

.achievement-icon--lead {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
}

.achievement-icon--success {
  background: rgba(245, 158, 11, 0.12);
  color: #F59E0B;
}

.achievement-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.achievement-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact {
  background: var(--bg-alt);
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  height: 100%;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.contact-card:hover::before {
  transform: scaleX(1);
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: transparent;
}

.contact-card--static {
  cursor: default;
}

.contact-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-lg);
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  transition: var(--transition-fast);
}

.contact-card:hover .contact-card-icon {
  background: var(--primary);
  color: #FFFFFF;
  transform: scale(1.05);
}

.contact-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.contact-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  word-break: break-all;
}

.contact-card-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
}

.contact-resume {
  text-align: center;
  margin-top: 3rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 2.5rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

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

.footer-credit strong {
  color: var(--text);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* --------------------------------------------------------------------------
   Back to Top
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-base);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.5);
}

/* --------------------------------------------------------------------------
   Accessibility & Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .marquee-track {
    animation: none;
  }
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* Skip link for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
