/*--------------------------------------------------------------
# Sham Rote - Ultra Modern Developer Portfolio Design System
# Color Palette: Deep Obsidian, Cyber Cyan, Electric Violet, Glass Accents
--------------------------------------------------------------*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400;500;600&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Fonts */
  --font-primary: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Theme Colors */
  --bg-primary: #070a12;
  --bg-secondary: #0d121f;
  --bg-surface: #131b2e;
  --bg-card: rgba(19, 27, 46, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.035);
  --bg-glass-hover: rgba(255, 255, 255, 0.07);

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-active: rgba(56, 189, 248, 0.45);
  --border-glow: rgba(99, 102, 241, 0.35);

  /* Accents & Brand */
  --accent-cyan: #38bdf8;
  --accent-blue: #0284c7;
  --accent-indigo: #6366f1;
  --accent-violet: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #38bdf8 0%, #6366f1 50%, #a855f7 100%);
  --grad-cyan: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  --grad-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --grad-card: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  --grad-glow: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, transparent 70%);

  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-accent: #38bdf8;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.25);
  --shadow-glow-indigo: 0 0 25px rgba(99, 102, 241, 0.3);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
}

/*--------------------------------------------------------------
# Reset & Base Setup
--------------------------------------------------------------*/
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.65;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 999px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Selection */
::selection {
  background: rgba(56, 189, 248, 0.3);
  color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: var(--transition-fast);
}
a:hover {
  color: #7dd3fc;
}

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

/* Code & Badges */
code, .badge-code {
  font-family: var(--font-mono);
}

/*--------------------------------------------------------------
# Background Glow Elements & Ambient Effects
--------------------------------------------------------------*/
.bg-ambient-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
  animation: orbFloat 18s ease-in-out infinite alternate;
}

.ambient-orb-1 {
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, rgba(99, 102, 241, 0.1) 70%, transparent 100%);
}

.ambient-orb-2 {
  bottom: 15%;
  left: 5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, rgba(56, 189, 248, 0.08) 70%, transparent 100%);
  animation-duration: 24s;
  animation-delay: -5s;
}

.ambient-orb-3 {
  top: 45%;
  right: 15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  animation-duration: 20s;
  animation-delay: -10s;
}

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

/* Particles Canvas */
#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Subtle Grid Texture */
.bg-grid-pattern {
  position: absolute;
  inset: 0;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  mask-image: radial-gradient(circle at center, black, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 85%);
  pointer-events: none;
  z-index: 1;
}

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

.gradient-text-cyan {
  background: var(--grad-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-emerald {
  background: var(--grad-emerald);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Status Pill / Live Badge */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background-color: inherit;
  animation: pulseDot 2s ease-out infinite;
}

@keyframes pulseDot {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* Section Header Styles */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(56, 189, 248, 0.2);
  margin-bottom: 0.75rem;
}

.section-tag i {
  font-size: 0.9rem;
}

.section-title-wrap {
  margin-bottom: 3.5rem;
}

.section-title-wrap h2 {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.section-title-wrap p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto;
}

/* Glass Card Base */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.glass-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Glowing Border Elements */
.glow-card {
  position: relative;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.glow-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 10px 30px -10px rgba(56, 189, 248, 0.2);
}

/* Buttons */
.btn-primary-custom {
  background: var(--grad-primary);
  color: #ffffff !important;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
  cursor: pointer;
}

.btn-primary-custom::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: -1;
}

.btn-primary-custom:hover {
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45);
}

.btn-primary-custom:hover::after {
  opacity: 1;
}

.btn-outline-custom {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main) !important;
  border: 1px solid var(--border-glass);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  backdrop-filter: blur(8px);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.btn-outline-custom:hover {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan) !important;
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.2);
}

/*--------------------------------------------------------------
# Sidebar / Header Navigation
--------------------------------------------------------------*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 290px;
  padding: 1.5rem 1rem;
  z-index: 997;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.header-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(13, 18, 31, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}

/* Brand Card in Header */
.brand-profile {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.brand-avatar-wrap {
  width: 86px;
  height: 86px;
  margin: 0 auto 0.9rem;
  position: relative;
}

.brand-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
  transition: var(--transition-normal);
}

.brand-avatar:hover {
  transform: scale(1.05);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
}

.brand-avatar-badge {
  position: absolute;
  bottom: 2px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-emerald);
  border: 2px solid var(--bg-surface);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

.brand-role {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Nav Menu */
.navmenu {
  flex-grow: 1;
}

.navmenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.navmenu a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
}

.navmenu a i.navicon {
  font-size: 1.15rem;
  color: var(--text-dim);
  transition: var(--transition-fast);
}

.navmenu a:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.navmenu a:hover i.navicon {
  color: var(--accent-cyan);
  transform: scale(1.1);
}

.navmenu a.active {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.15) 0%, rgba(99, 102, 241, 0.05) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-weight: 600;
}

.navmenu a.active i.navicon {
  color: var(--accent-cyan);
}

.navmenu a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  bottom: 25%;
  width: 3px;
  background: var(--accent-cyan);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 8px var(--accent-cyan);
}

/* Nav Socials */
.header-footer {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.social-link:hover {
  color: #ffffff;
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
}

/* Header Toggle Button for Mobile */
.header-toggle {
  display: none;
  position: fixed;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 9999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-size: 1.35rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.header-toggle:hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
}

/* Main Layout Offset for Desktop */
@media (min-width: 1200px) {
  .main, .footer {
    margin-left: 290px;
  }
}

@media (max-width: 1199px) {
  .header {
    transform: translateX(-105%);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.6);
  }
  .header.header-show {
    transform: translateX(0);
  }
  .header-toggle {
    display: flex;
  }
}

/*--------------------------------------------------------------
# Main Content & Sections
--------------------------------------------------------------*/
.main {
  position: relative;
  z-index: 2;
  overflow-x: hidden;
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-greeting {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.hero-name {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-typed-wrap {
  font-size: clamp(1.2rem, 2.5vw, 1.85rem);
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hero-typed-text {
  color: var(--accent-cyan);
  border-bottom: 2px solid rgba(56, 189, 248, 0.3);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Quick Metrics Row */
.hero-metrics {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.metric-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.metric-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.metric-data h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-main);
}

.metric-data span {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* 3D Profile Card in Hero */
.hero-avatar-card {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
}

.hero-avatar-glow {
  position: absolute;
  inset: -15px;
  background: var(--grad-primary);
  border-radius: var(--radius-lg);
  filter: blur(35px);
  opacity: 0.3;
  z-index: 1;
  transition: opacity var(--transition-normal);
}

.hero-avatar-card:hover .hero-avatar-glow {
  opacity: 0.55;
}

.hero-avatar-inner {
  position: relative;
  z-index: 2;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
}

.hero-avatar-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  object-position: top center;
  border-radius: calc(var(--radius-lg) - 6px);
  background: #0b1120;
}

/* Floating Badges on Hero Card */
.floating-chip {
  position: absolute;
  z-index: 3;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-md);
  animation: floatChip 6s ease-in-out infinite alternate;
}

.floating-chip-top {
  top: 10%;
  left: -20px;
}

.floating-chip-bottom {
  bottom: 8%;
  right: -15px;
  animation-duration: 7s;
  animation-delay: -3s;
}

.chip-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.chip-icon.java {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
}

.chip-icon.code {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
}

.chip-text h5 {
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0;
}

.chip-text p {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 0;
}

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

@media (max-width: 767px) {
  .hero-avatar-img {
    height: 360px;
  }
  .floating-chip-top {
    left: 0;
    top: 5%;
  }
  .floating-chip-bottom {
    right: 0;
    bottom: 5%;
  }
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about-card {
  padding: 2.25rem;
  height: 100%;
}

.about-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--accent-cyan);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.about-bio {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.75rem;
}

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

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.info-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  font-weight: 600;
}

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

/* Stat Cards in About */
.stat-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stat-box::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.stat-box:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-active);
  transform: translateY(-3px);
}

.stat-box:hover::after {
  opacity: 1;
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 0.4rem;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 576px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

/*--------------------------------------------------------------
# Skills Section
--------------------------------------------------------------*/
.skill-group-card {
  padding: 2rem;
  height: 100%;
}

.skill-group-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.skill-group-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.skill-group-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.skill-item-wrap {
  margin-bottom: 1.35rem;
}

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

.skill-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.skill-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.skill-percent {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

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

.progress-bar-custom {
  height: 100%;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  width: 0;
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.progress-bar-custom::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 10px;
  background: #ffffff;
  filter: blur(2px);
  opacity: 0.7;
}

/* Tech Pills Grid */
.tech-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
  justify-content: center;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all var(--transition-fast);
}

.tech-tag:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--accent-cyan);
  color: var(--text-main);
  transform: translateY(-2px);
}

/*--------------------------------------------------------------
# Education & Experience Roadmap Timeline
--------------------------------------------------------------*/
.timeline-wrap {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 2.5rem;
}

.timeline-wrap::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent-indigo) 50%, var(--border-subtle) 100%);
}

.timeline-node {
  position: relative;
  margin-bottom: 2.5rem;
}

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

.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
}

.timeline-card {
  padding: 1.75rem 2rem;
}

.timeline-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: inline-block;
  margin-bottom: 0.65rem;
}

.timeline-card h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.timeline-institution {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.timeline-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.65;
}

.timeline-score {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.3rem 0.8rem;
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
}

/*--------------------------------------------------------------
# Projects Section
--------------------------------------------------------------*/
.project-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card-header {
  padding: 1.75rem 1.75rem 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.project-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  transition: var(--transition-fast);
}

.project-card:hover .project-icon-box {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  transform: scale(1.05);
}

.project-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

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

.project-card-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.project-card-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.project-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.project-feature-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.project-feature-list li i {
  color: var(--accent-cyan);
  font-size: 0.8rem;
}

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

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-project {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.btn-project:hover {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: var(--bg-primary);
}

/*--------------------------------------------------------------
# Certifications Section
--------------------------------------------------------------*/
.cert-card {
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.cert-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.cert-img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #080c14;
}

.cert-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.cert-card:hover .cert-img {
  transform: scale(1.06);
}

.cert-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.2) 0%, rgba(8, 12, 20, 0.85) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

.cert-preview-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.5);
  transform: scale(0.8);
  transition: transform var(--transition-normal);
}

.cert-card:hover .cert-preview-btn {
  transform: scale(1);
}

.cert-content {
  padding: 1.5rem;
}

.cert-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  margin-bottom: 0.4rem;
  display: block;
}

.cert-content h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.cert-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Filter Controls */
.filter-container {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent-cyan);
  color: #ffffff;
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.service-card-modern {
  padding: 2.25rem 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.service-card-modern:hover {
  transform: translateY(-5px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.service-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-normal);
}

.service-card-modern:hover .service-icon-wrap {
  background: var(--grad-primary);
  color: #ffffff;
  transform: scale(1.08);
}

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

.service-card-modern p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.service-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition-fast);
}

.service-card-modern:hover .service-link {
  gap: 0.7rem;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact-info-card {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.25rem;
  transition: all var(--transition-fast);
}

.contact-info-card:hover {
  border-color: var(--border-active);
  transform: translateX(4px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.15rem;
  color: var(--text-main);
}

.contact-details p, .contact-details a {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.contact-details a:hover {
  color: var(--accent-cyan);
}

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

.form-control-custom {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  padding: 0.85rem 1.15rem;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  width: 100%;
}

.form-control-custom:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
  color: #ffffff;
  outline: none;
}

.form-control-custom::placeholder {
  color: var(--text-dim);
}

/* Toast Message */
.copy-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-active);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 99999;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
}

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

/*--------------------------------------------------------------
# Resume Modal (Interactive CV Viewer) - Ultra Clear High Contrast
--------------------------------------------------------------*/
.modal-custom .modal-content {
  background: #0b1120;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  color: #f8fafc;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 30px rgba(56, 189, 248, 0.15);
}

.modal-custom .modal-header {
  background: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 2rem;
}

.modal-custom .modal-header .modal-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.3rem;
}

.modal-custom .modal-body {
  padding: 2rem;
  max-height: 75vh;
  overflow-y: auto;
  background: #070a12;
}

.modal-custom .modal-footer {
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.2rem 2rem;
}

/* Resume Paper Sheet */
.resume-paper {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.resume-header {
  border-bottom: 2px solid rgba(56, 189, 248, 0.4);
  padding-bottom: 1.5rem;
  margin-bottom: 1.8rem;
}

.resume-name {
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff !important;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.resume-role {
  font-size: 1.2rem;
  font-weight: 600;
  color: #38bdf8 !important;
  margin-bottom: 0.75rem;
}

.resume-contact-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.95rem;
  color: #e2e8f0 !important;
}

.resume-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #e2e8f0 !important;
}

.resume-contact-item i {
  color: #38bdf8;
  font-size: 1rem;
}

.resume-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #38bdf8 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.resume-text {
  font-size: 0.98rem;
  color: #f1f5f9 !important;
  line-height: 1.75;
  margin-bottom: 0.5rem;
}

.resume-card-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
}

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

.resume-item-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff !important;
  margin: 0;
}

.resume-item-subtitle {
  font-size: 0.98rem;
  font-weight: 600;
  color: #7dd3fc !important;
  margin: 0.2rem 0 0.4rem;
}

.resume-year-badge {
  background: rgba(56, 189, 248, 0.15) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  font-size: 0.85rem !important;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.resume-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
}

.resume-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.resume-list li {
  font-size: 0.98rem;
  color: #f1f5f9 !important;
  line-height: 1.7;
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
}

.resume-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #38bdf8;
  font-size: 1.1rem;
}

.resume-skill-row {
  margin-bottom: 0.75rem;
  font-size: 0.98rem;
  color: #f1f5f9 !important;
  line-height: 1.7;
}

.resume-skill-row strong {
  color: #ffffff !important;
  font-weight: 700;
}

.resume-tag-pill {
  display: inline-block;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0 0.2rem;
}

/* Print CSS */
@media print {
  body * {
    visibility: hidden;
  }
  .resume-paper, .resume-paper * {
    visibility: visible;
  }
  .resume-paper {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #ffffff !important;
    color: #000000 !important;
    border: none;
    padding: 0;
    box-shadow: none;
  }
  .resume-paper h1, .resume-paper h2, .resume-paper h3, .resume-paper h4, .resume-paper h5, .resume-paper h6,
  .resume-paper p, .resume-paper span, .resume-paper li, .resume-paper div, .resume-paper strong {
    color: #000000 !important;
  }
  .resume-section-title {
    color: #000000 !important;
    border-bottom: 1px solid #000000 !important;
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
  text-align: center;
  position: relative;
  z-index: 2;
}

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

/* Scroll Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.scroll-top-btn.active {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.spinner-glow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(56, 189, 248, 0.15);
  border-top-color: var(--accent-cyan);
  animation: spinLoader 0.8s linear infinite;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

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