/* ===================================================================
   DEVMINI DULARI - PORTFOLIO STYLESHEET
   Responsive styling, custom properties, and glassmorphic UI components
   =================================================================== */

/* -------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   ------------------------------------------------------------- */
:root {
  /* Dark Theme Palette (Default) */
  --bg-primary: #070a12;
  --bg-secondary: #0c111e;
  --bg-tertiary: #131b2e;
  --bg-card: rgba(16, 24, 42, 0.75);
  --bg-card-hover: rgba(22, 33, 58, 0.85);
  --bg-glass: rgba(12, 17, 30, 0.72);
  --bg-input: rgba(14, 21, 38, 0.8);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(56, 189, 248, 0.15);
  --border-card-hover: rgba(168, 85, 247, 0.4);
  --border-focus: #38bdf8;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #070a12;

  /* Accent Colors */
  --accent-cyan: #00f2fe;
  --accent-blue: #38bdf8;
  --accent-violet: #a855f7;
  --accent-purple: #7c3aed;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #38bdf8 0%, #a855f7 100%);
  --grad-cyan-blue: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --grad-violet-rose: linear-gradient(135deg, #a855f7 0%, #f43f5e 100%);
  --grad-emerald: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --grad-card: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);

  /* Shadows & Glows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  --glow-cyan: 0 0 25px rgba(56, 189, 248, 0.35);
  --glow-violet: 0 0 25px rgba(168, 85, 247, 0.35);

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

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(255, 255, 255, 0.8);
  --bg-input: #ffffff;

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-card: rgba(56, 189, 248, 0.25);
  --border-card-hover: rgba(168, 85, 247, 0.5);
  --border-focus: #0284c7;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #f8fafc;

  --grad-primary: linear-gradient(135deg, #0284c7 0%, #7c3aed 100%);
  --grad-card: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(241,245,249,0.7) 100%);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.15);
  --glow-cyan: 0 0 25px rgba(2, 132, 199, 0.2);
  --glow-violet: 0 0 25px rgba(124, 58, 237, 0.2);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  background: var(--grad-primary);
  width: 0%;
  z-index: 1000;
  transition: width 0.1s linear;
}

/* Ambient Background Lights & Interactive Canvas */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
  animation: pulseAmbient 12s ease-in-out infinite alternate;
}

.glow-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  left: -100px;
  background: radial-gradient(circle, #38bdf8 0%, rgba(56, 189, 248, 0) 70%);
}

.glow-2 {
  width: 550px;
  height: 550px;
  bottom: 10%;
  right: -100px;
  background: radial-gradient(circle, #a855f7 0%, rgba(168, 85, 247, 0) 70%);
  animation-delay: -6s;
}

@keyframes pulseAmbient {
  0% { transform: scale(1) translate(0, 0); opacity: 0.25; }
  50% { transform: scale(1.15) translate(40px, 30px); opacity: 0.4; }
  100% { transform: scale(0.95) translate(-30px, 50px); opacity: 0.3; }
}

#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  opacity: 0.45;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

p {
  color: var(--text-secondary);
}

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

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

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

.w-full {
  width: 100%;
}

/* Section Header Styling */
.section {
  padding: 6rem 0;
  position: relative;
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-blue);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* Glass Card Helper */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

/* -------------------------------------------------------------
   3. Buttons & Interactive Elements
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(168, 85, 247, 0.45);
}

.btn-glass {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.btn-glass:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-card);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-2px);
}

/* -------------------------------------------------------------
   4. Header & Navigation Bar
   ------------------------------------------------------------- */
.navbar-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 900;
  transition: all var(--transition-smooth);
}

.navbar-wrapper.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(7, 10, 18, 0.92);
}

[data-theme="light"] .navbar-wrapper.scrolled {
  background: rgba(255, 255, 255, 0.92);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100%;
}

.nav-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.brand-bracket {
  color: var(--accent-blue);
  font-family: var(--font-mono);
  font-weight: 700;
}

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

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
}

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

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: absolute;
  right: 1.5rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.05rem;
  transition: all var(--transition-smooth);
}

.theme-toggle-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: rotate(15deg);
}

.theme-icon-light {
  display: none;
}

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

[data-theme="light"] .theme-icon-light {
  display: inline-block;
  color: var(--accent-amber);
}

/* Mobile Hamburger Button */
.mobile-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-smooth);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-subtle);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transition: right var(--transition-smooth);
  box-shadow: var(--shadow-lg);
}

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

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
}

.drawer-close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
}

.drawer-link {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.drawer-link:hover {
  color: var(--accent-blue);
}

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

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

/* -------------------------------------------------------------
   5. Hero Section
   ------------------------------------------------------------- */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  position: relative;
}

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

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.hero-role-wrapper {
  font-size: 1.35rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2rem;
}

.typed-text {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-weight: 600;
}

.typing-cursor {
  color: var(--accent-cyan);
  font-weight: 400;
  animation: blinkCursor 0.8s infinite;
}

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

.hero-description {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-description strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.hero-social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.social-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.15rem;
  transition: all var(--transition-smooth);
}

.social-icon-btn:hover {
  color: #ffffff;
  background: var(--grad-primary);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.email-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.1rem;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.email-badge-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(56, 189, 248, 0.08);
}

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

.visual-card-wrapper {
  position: relative;
  width: 380px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-glow-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: var(--grad-primary);
  opacity: 0.5;
  filter: blur(28px);
  animation: rotateGlow 14s linear infinite;
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.avatar-frame {
  position: relative;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg), 0 0 35px rgba(56, 189, 248, 0.25);
  background: var(--bg-secondary);
  z-index: 2;
}

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

.avatar-frame:hover .hero-avatar-img {
  transform: scale(1.04);
}

/* Floating Micro Badges */
.floating-badge {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.1rem;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  animation: floatElement 5s ease-in-out infinite alternate;
}

.badge-top-left {
  top: -10px;
  left: -25px;
  animation-delay: 0s;
}

.badge-bottom-right {
  bottom: 0px;
  right: -30px;
  animation-delay: -2.5s;
}

.badge-middle-left {
  bottom: 30px;
  left: -35px;
  animation-delay: -1.2s;
}

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

.badge-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.badge-icon-box.cyan {
  background: rgba(56, 189, 248, 0.2);
  color: var(--accent-cyan);
}

.badge-icon-box.violet {
  background: rgba(168, 85, 247, 0.2);
  color: var(--accent-violet);
}

.badge-icon-box.emerald {
  background: rgba(16, 189, 129, 0.2);
  color: var(--accent-emerald);
}

.badge-text-box {
  display: flex;
  flex-direction: column;
}

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

.badge-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Quick Metrics Counter Strip */
.hero-metrics-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 4.5rem;
  padding: 1.6rem 2rem;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

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

.metric-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 0.3rem;
}

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

/* -------------------------------------------------------------
   6. About Me Section
   ------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.about-narrative {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-lead {
  font-size: 1.45rem;
  line-height: 1.4;
  color: var(--text-primary);
  font-weight: 600;
}

.about-narrative p {
  font-size: 1.02rem;
  line-height: 1.8;
}

.about-narrative strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-top: 1rem;
}

.pillar-card {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.1rem 1.3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-smooth);
}

.pillar-card:hover {
  border-color: var(--border-card);
  transform: translateX(6px);
  background: var(--bg-card-hover);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.pillar-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

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

/* About Side Box (Terminal + Quick info) */
.about-side-box {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.code-terminal-card {
  background: #090e1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.terminal-bar {
  display: flex;
  align-items: center;
  padding: 0.65rem 1rem;
  background: #0d1527;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
  display: flex;
  gap: 6px;
  margin-right: 1rem;
}

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

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.terminal-code {
  padding: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: #e2e8f0;
  overflow-x: auto;
}

.code-key { color: #38bdf8; }
.code-str { color: #a7f3d0; }

.personal-info-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-subtle);
}

.info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

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

.info-val a {
  color: var(--accent-blue);
}

.info-val a:hover {
  text-decoration: underline;
}

/* -------------------------------------------------------------
   7. Education Timeline Section
   ------------------------------------------------------------- */
.timeline-wrapper {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 1rem 0;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-blue) 0%, var(--accent-violet) 50%, var(--accent-emerald) 100%);
  opacity: 0.4;
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.timeline-marker {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--accent-blue);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.3);
}

.timeline-item:nth-child(2) .timeline-marker {
  border-color: var(--accent-violet);
  color: var(--accent-violet);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.3);
}

.timeline-item:nth-child(3) .timeline-marker {
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  box-shadow: 0 0 18px rgba(16, 189, 129, 0.3);
}

.timeline-content {
  flex: 1;
  padding: 1.8rem;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-smooth);
}

.timeline-content:hover {
  border-color: var(--border-card);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.timeline-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
}

.bcu-badge {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.uok-badge {
  background: rgba(168, 85, 247, 0.15);
  color: var(--accent-violet);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.cert-badge {
  background: rgba(16, 189, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 189, 129, 0.3);
}

.timeline-period {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.timeline-degree {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.timeline-institution {
  font-size: 1rem;
  color: var(--accent-blue);
  font-weight: 600;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.timeline-item:nth-child(2) .timeline-institution {
  color: var(--accent-violet);
}

.timeline-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* -------------------------------------------------------------
   8. Skills Section & Interactive Tabs
   ------------------------------------------------------------- */
.skills-tab-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.skill-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.skill-tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-card);
  transform: translateY(-2px);
}

.skill-tab-btn.active {
  background: var(--grad-primary);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.3);
}

.skills-panes {
  min-height: 380px;
}

.skills-pane {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.skills-pane.active {
  display: block;
}

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

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

.skill-item-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

.skill-item-card:hover {
  border-color: var(--border-card);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.skill-item-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.skill-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* Color thematic icons */
.java-icon { background: rgba(234, 88, 12, 0.15); color: #ea580c; }
.csharp-icon { background: rgba(147, 51, 234, 0.15); color: #a855f7; }
.ts-icon { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.web-icon { background: rgba(249, 115, 22, 0.15); color: #f97316; }
.db-icon { background: rgba(14, 165, 233, 0.15); color: #0ea5e9; }
.android-icon { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.dsa-icon { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.algo-icon { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }
.oop-icon { background: rgba(244, 63, 94, 0.15); color: #f43f5e; }
.os-icon { background: rgba(234, 179, 8, 0.15); color: #eab308; }
.ai-icon { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.python-icon { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.viz-icon { background: rgba(16, 189, 129, 0.15); color: #10b981; }
.iot-icon { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.stats-icon { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.prob-icon { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }
.reg-icon { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.eda-icon { background: rgba(16, 189, 129, 0.15); color: #10b981; }
.sec-icon { background: rgba(244, 63, 94, 0.15); color: #f43f5e; }
.git-icon { background: rgba(249, 115, 22, 0.15); color: #f97316; }
.ide-icon { background: rgba(147, 51, 234, 0.15); color: #a855f7; }

.skill-name {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

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

.skill-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.1rem;
  flex: 1;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
}

.skill-tags span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* -------------------------------------------------------------
   9. Projects Showcase Section
   ------------------------------------------------------------- */
.projects-control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  padding: 1rem 1.4rem;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pill {
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  color: var(--text-primary);
  border-color: var(--accent-blue);
}

.filter-pill.active {
  background: var(--grad-primary);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.3);
}

.project-search-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  width: 280px;
  transition: all var(--transition-smooth);
}

.project-search-box:focus-within {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.project-search-box i {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.project-search-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  width: 100%;
}

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

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.8rem;
}

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-smooth);
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.project-card:hover {
  border-color: var(--border-card);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md), 0 0 20px rgba(56, 189, 248, 0.15);
  background: var(--bg-card-hover);
}

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

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.1rem;
}

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

.project-card.client .project-icon-box {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
}

.project-card.data-pred .project-icon-box {
  background: rgba(168, 85, 247, 0.15);
  color: var(--accent-violet);
}

.project-card.mobile-iot .project-icon-box {
  background: rgba(16, 189, 129, 0.15);
  color: var(--accent-emerald);
}

.project-cat-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  line-height: 1.3;
}

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

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.08);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.project-detail-btn {
  background: transparent;
  border: none;
  color: var(--accent-blue);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast);
}

.project-detail-btn:hover {
  color: var(--accent-violet);
  gap: 0.65rem;
}

.no-projects-found {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}

.no-projects-found i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-projects-found h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

/* -------------------------------------------------------------
   10. Contact Section - Redesigned Showcase Grid & CTA Banner
   ------------------------------------------------------------- */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.4rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.contact-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.contact-feature-card:hover {
  border-color: var(--border-card);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md), 0 0 20px rgba(56, 189, 248, 0.12);
  background: var(--bg-card-hover);
}

.contact-feature-card:hover::before {
  opacity: 1;
}

/* Thematic Color Highlights */
.contact-feature-card.cyan-theme .feature-card-icon {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
}
.contact-feature-card.violet-theme .feature-card-icon {
  background: rgba(168, 85, 247, 0.15);
  color: var(--accent-violet);
}
.contact-feature-card.emerald-theme .feature-card-icon {
  background: rgba(16, 189, 129, 0.15);
  color: var(--accent-emerald);
}
.contact-feature-card.amber-theme .feature-card-icon {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
}

.feature-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

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

.feature-card-pill {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.feature-card-pill.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent-emerald);
  background: rgba(16, 189, 129, 0.12);
  border-color: rgba(16, 189, 129, 0.3);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
  animation: pulseLive 2s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.feature-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--text-primary);
}

.feature-card-sub {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.1rem;
  flex: 1;
}

.feature-card-val-box {
  margin-bottom: 1.2rem;
}

.feature-card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-blue);
  word-break: break-all;
  display: inline-block;
  transition: color var(--transition-fast);
}

.feature-card-link:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
}

.feature-card-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.feature-card-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.feature-card-actions .btn {
  flex: 1;
  justify-content: center;
}

.copy-inline-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.copy-inline-btn:hover {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
  background: rgba(56, 189, 248, 0.1);
}

/* Quick Collaboration CTA Banner */
.contact-cta-banner {
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(16, 24, 42, 0.85) 0%, rgba(12, 17, 30, 0.95) 100%);
}

[data-theme="light"] .contact-cta-banner {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.9) 100%);
  border-color: rgba(56, 189, 248, 0.3);
}

.cta-banner-content {
  flex: 1;
  max-width: 680px;
}

.cta-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.cta-banner-title {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.cta-banner-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.cta-banner-desc strong {
  color: var(--text-primary);
}

.cta-banner-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 230px;
}

.cta-banner-buttons .btn {
  width: 100%;
  justify-content: center;
}

.form-status-alert.success {
  background: rgba(16, 189, 129, 0.15);
  border: 1px solid rgba(16, 189, 129, 0.35);
  color: #34d399;
}

.form-status-alert.error {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fb7185;
}

/* -------------------------------------------------------------
   11. Footer
   ------------------------------------------------------------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-tagline {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-top: 0.8rem;
  max-width: 480px;
  line-height: 1.6;
}

.footer-links-group {
  display: flex;
  justify-content: flex-end;
  gap: 4rem;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 1.1rem;
  color: var(--text-primary);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--accent-blue);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.heart-beat {
  color: var(--accent-rose);
  animation: heartBeat 1.5s ease infinite;
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.3); }
  28% { transform: scale(1); }
  42% { transform: scale(1.3); }
  70% { transform: scale(1); }
}

.back-to-top-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.back-to-top-btn:hover {
  background: var(--grad-primary);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-3px);
}

/* -------------------------------------------------------------
   12. Modals (Project Detail & Resume)
   ------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.92);
  transition: transform var(--transition-smooth);
  padding: 2.2rem;
}

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

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  color: #ffffff;
  background: var(--accent-rose);
  border-color: transparent;
}

/* Modal Content Styles */
.modal-project-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
}

.modal-project-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

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

.modal-section-title {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.modal-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.modal-features-list li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.modal-features-list li i {
  color: var(--accent-emerald);
  margin-top: 0.25rem;
}

.modal-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
}

/* Resume Modal Customization */
.resume-modal-container {
  max-width: 820px;
  padding: 2.2rem;
}

.resume-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.2rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.resume-header-titles h3 {
  font-size: 1.35rem;
}

.resume-header-titles span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.resume-sheet {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.resume-sheet-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 1.2rem;
}

.resume-sheet-name {
  font-size: 1.6rem;
  letter-spacing: 0.02em;
}

.resume-sheet-sub {
  font-size: 0.9rem;
  color: var(--accent-blue);
  font-weight: 600;
}

.resume-sheet-contact {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.resume-sec-title {
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.3rem;
  margin-bottom: 0.75rem;
}

.resume-sec p {
  font-size: 0.88rem;
  line-height: 1.6;
}

.resume-entry {
  margin-bottom: 0.8rem;
}

.resume-entry-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.resume-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* -------------------------------------------------------------
   13. Toast Notification
   ------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--accent-emerald);
  color: var(--text-primary);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  font-weight: 500;
  z-index: 2000;
  transform: translateY(120%);
  opacity: 0;
  transition: all var(--transition-bounce);
}

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

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

/* -------------------------------------------------------------
   14. Responsive Media Queries
   ------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

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

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

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

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

  .contact-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .contact-cta-banner {
    flex-direction: column;
    text-align: center;
    gap: 1.8rem;
    padding: 2rem 1.5rem;
  }

  .cta-banner-buttons {
    flex-direction: row;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .cta-banner-buttons .btn {
    width: auto;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-links-group {
    justify-content: flex-start;
  }
}

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

  .mobile-toggle-btn {
    display: flex;
  }

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

  .section-title {
    font-size: 2rem;
  }

  .timeline-wrapper::before {
    left: 20px;
  }

  .timeline-marker {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .timeline-item {
    gap: 1.2rem;
  }

  .visual-card-wrapper {
    width: 300px;
    height: 300px;
  }

  .avatar-frame {
    width: 270px;
    height: 270px;
  }

  .floating-badge {
    padding: 0.5rem 0.8rem;
  }

  .badge-top-left {
    left: -10px;
  }

  .badge-bottom-right {
    right: -10px;
  }

  .badge-middle-left {
    display: none;
  }

  .hero-metrics-strip {
    flex-direction: column;
    gap: 1.2rem;
  }

  .metric-divider {
    display: none;
  }

  .projects-control-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .project-search-box {
    width: 100%;
  }

  .resume-sheet-header {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .contact-cards-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner-buttons {
    flex-direction: column;
  }

  .cta-banner-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.1rem;
  }

  .btn {
    width: 100%;
  }

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

/* -------------------------------------------------------------
   15. Print Stylesheet
   ------------------------------------------------------------- */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .navbar-wrapper,
  .hero-section,
  .about-section,
  .education-section,
  .skills-section,
  .projects-section,
  .contact-section,
  .footer,
  .ambient-glow,
  #ambient-canvas,
  .scroll-progress,
  .modal-close-btn,
  #print-resume-btn {
    display: none !important;
  }

  .modal-backdrop {
    position: static !important;
    background: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    padding: 0 !important;
  }

  .resume-modal-container {
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .resume-sheet {
    background: #ffffff !important;
    color: #000000 !important;
    border: none !important;
    padding: 0 !important;
  }
}
