/* ==========================================================================
   PORTFOLIO DESIGN SYSTEM & CSS STYLES - SAURABH SINGH
   Aesthetic: Ultra-Modern Dark Glassmorphism with Neon Accents & Responsive Layout
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & THEME ACCENTS
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Dark Glass Base */
  --bg-primary: #070913;
  --bg-secondary: #0d1122;
  --bg-card: rgba(16, 24, 48, 0.55);
  --bg-card-hover: rgba(24, 36, 70, 0.75);
  --bg-input: rgba(12, 19, 38, 0.7);

  /* Glass Borders */
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-light: rgba(255, 255, 255, 0.15);
  --border-glow: rgba(0, 242, 254, 0.35);

  /* Default Accent: Electric Cyan & Neon Purple */
  --accent-primary: #00f2fe;
  --accent-secondary: #4facfe;
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  --accent-glow: rgba(0, 242, 254, 0.4);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-purple) 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
  --gradient-glow: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-code: 'Fira Code', monospace;

  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #64748b;

  /* Layout & Spacing */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px var(--accent-glow);

  --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-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Color Accent Themes Override */
[data-accent="purple"] {
  --accent-primary: #a855f7;
  --accent-secondary: #ec4899;
  --accent-purple: #8b5cf6;
  --accent-glow: rgba(168, 85, 247, 0.4);
  --border-glow: rgba(168, 85, 247, 0.4);
}

[data-accent="emerald"] {
  --accent-primary: #10b981;
  --accent-secondary: #06b6d4;
  --accent-purple: #059669;
  --accent-glow: rgba(16, 185, 129, 0.4);
  --border-glow: rgba(16, 185, 129, 0.4);
}

[data-accent="flame"] {
  --accent-primary: #ff5e36;
  --accent-secondary: #ffb703;
  --accent-purple: #ef4444;
  --accent-glow: rgba(255, 94, 54, 0.4);
  --border-glow: rgba(255, 94, 54, 0.4);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-size-adjust: 100%;
}

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

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

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

ul {
  list-style: none;
}

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

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

button {
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   3. BACKGROUND & GLOW EFFECTS
   -------------------------------------------------------------------------- */
.cursor-glow {
  position: fixed;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: var(--gradient-glow);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0.6;
  transition: opacity 0.3s ease, transform 0.15s ease-out;
}

.bg-mesh-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.orb-1 {
  top: 10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: var(--accent-purple);
}

.orb-2 {
  bottom: 15%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: var(--accent-primary);
  animation-delay: -6s;
}

.orb-3 {
  top: 55%;
  left: 40%;
  width: 400px;
  height: 400px;
  background: var(--accent-secondary);
  animation-delay: -12s;
}

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

/* --------------------------------------------------------------------------
   4. REUSABLE GLASS & BUTTON UTILITIES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section-padding {
  padding: 100px 0;
}

.bg-section-alt {
  background-color: rgba(13, 17, 34, 0.6);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glass);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glass), 0 0 20px rgba(0, 242, 254, 0.15);
}

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

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

.section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 16px;
}

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

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

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #070913;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--accent-glow);
  filter: brightness(1.1);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-glass-light);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-primary);
  transform: translateY(-3px);
  color: var(--accent-primary);
}

.btn-glow-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glow);
  color: var(--text-main);
}

.btn-glow-sm:hover {
  background: var(--gradient-primary);
  color: #070913;
  box-shadow: 0 0 15px var(--accent-glow);
}

.btn-block {
  width: 100%;
}

.icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 1.25rem;
  transition: all var(--transition-normal);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-3px) rotate(6deg);
}

/* --------------------------------------------------------------------------
   5. NAVIGATION BAR
   -------------------------------------------------------------------------- */
.navbar-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  transition: all var(--transition-normal);
}

.navbar-header.scrolled {
  padding: 12px 0;
  background: rgba(7, 9, 19, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.nav-brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-code);
  letter-spacing: -0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-code {
  color: var(--text-muted);
}

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

.nav-menu {
  flex-shrink: 1;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  padding: 4px 6px;
}

.nav-link i {
  display: none;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Accent Color Picker */
.theme-accent-picker {
  position: relative;
}

.accent-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all var(--transition-fast);
  position: relative;
}

.accent-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.color-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
}

.accent-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 200px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass-light);
  border-radius: var(--radius-md);
  padding: 16px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-glass);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
}

.theme-accent-picker.open .accent-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.accent-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.accent-option {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.accent-option:hover, .accent-option.active {
  transform: scale(1.15);
  border-color: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   6. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: 170px;
  padding-bottom: 100px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.role-wrapper {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.typewriter-text {
  color: var(--accent-primary);
  font-family: var(--font-code);
}

.cursor-blink {
  animation: blink 1s infinite;
  color: var(--accent-primary);
}

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

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

/* Stats Counter Grid */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--border-glass);
}

.stat-card {
  text-align: left;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-code);
  line-height: 1;
  margin-bottom: 6px;

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

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

/* Hero Visual Area */
.hero-visual {
  position: relative;
}

.avatar-card-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.avatar-card {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(0, 0, 0, 0.4) 100%);
  border-radius: var(--radius-lg);
}

.avatar-image {
  width: 280px;
  height: 280px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-glass-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.avatar-glow-ring {
  position: absolute;
  inset: 16px;
  border-radius: var(--radius-md);
  border: 2px solid var(--accent-primary);
  opacity: 0.4;
  filter: blur(8px);
  pointer-events: none;
}

/* Floating Orbit Badges */
.floating-badge {
  position: absolute;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: rgba(13, 17, 34, 0.85);
  border: 1px solid var(--border-glass-light);
  backdrop-filter: blur(12px);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-glass);
  animation: floatBadge 6s ease-in-out infinite alternate;
}

.badge-1 { top: -10px; left: -20px; animation-delay: 0s; }
.badge-2 { top: 40px; right: -25px; animation-delay: -1.5s; }
.badge-3 { bottom: 30px; left: -30px; animation-delay: -3s; }
.badge-4 { bottom: -15px; right: 10px; animation-delay: -4.5s; }

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

/* Code Snippet Card Widget */
.code-widget {
  padding: 16px 20px;
  font-family: var(--font-code);
  font-size: 0.85rem;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-glass);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.code-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 6px;
}

.code-content {
  color: var(--text-muted);
}
.code-content .keyword { color: #f43f5e; }
.code-content .string { color: #10b981; }

/* --------------------------------------------------------------------------
   7. ABOUT & PHILOSOPHY SECTION
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.philosophy-card {
  padding: 36px 28px;
  text-align: left;
}

.philosophy-card:hover {
  transform: translateY(-6px);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-primary);
  margin-bottom: 24px;
  transition: all var(--transition-normal);
}

.philosophy-card:hover .card-icon {
  background: var(--gradient-primary);
  color: #070913;
  box-shadow: 0 0 20px var(--accent-glow);
}

.philosophy-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.philosophy-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   8. SKILLS & TECH ECOSYSTEM
   -------------------------------------------------------------------------- */
.skill-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.skill-tab-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.skill-tab-btn:hover, .skill-tab-btn.active {
  background: var(--accent-primary);
  color: #070913;
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px var(--accent-glow);
}

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

.skill-card {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.skill-card:hover {
  transform: translateY(-4px);
}

.skill-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.skill-info {
  flex-grow: 1;
}

.skill-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

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

.skill-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  transition: width 1s ease-out;
}

/* --------------------------------------------------------------------------
   9. FEATURED PROJECTS SECTION
   -------------------------------------------------------------------------- */
.projects-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.project-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.project-search {
  position: relative;
  min-width: 300px;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border-radius: var(--radius-full);
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
}

.search-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.project-thumb-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-secondary);
}

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

.project-card:hover .project-thumb {
  transform: scale(1.06);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 24, 48, 0.95) 0%, rgba(16, 24, 48, 0.2) 60%, transparent 100%);
  opacity: 0.6;
  transition: opacity var(--transition-normal);
}

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

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

.project-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  min-height: 28px;
}

.project-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid var(--border-glow);
  color: var(--accent-primary);
  font-family: var(--font-code);
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.35;
}

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

.project-footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-glass);
}

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

.btn-card-action:hover {
  background: var(--accent-primary);
  color: #070913;
  border-color: var(--accent-primary);
}

/* --------------------------------------------------------------------------
   10. INTERACTIVE TERMINAL SECTION
   -------------------------------------------------------------------------- */
.terminal-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  background: rgba(8, 12, 24, 0.95);
  border: 1px solid var(--border-glass-light);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  font-family: var(--font-code);
}

.terminal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(15, 22, 45, 0.8);
  border-bottom: 1px solid var(--border-glass);
}

.terminal-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.term-btn {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

.term-btn:hover {
  color: #ef4444;
}

.terminal-body {
  padding: 20px;
  min-height: 240px;
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.terminal-line {
  line-height: 1.5;
  color: #cbd5e1;
  word-break: break-word;
}

.terminal-line .accent-text { color: var(--accent-primary); font-weight: 600; }
.terminal-line .highlight-cmd { color: #f43f5e; font-weight: 600; }
.terminal-line .cmd-output { color: #94a3b8; }
.terminal-line .success-output { color: #10b981; }

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(12, 17, 35, 0.9);
  border-top: 1px solid var(--border-glass);
}

.terminal-prompt {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.terminal-input {
  flex-grow: 1;
  color: var(--text-main);
  font-family: var(--font-code);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   11. EXPERIENCE TIMELINE
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  max-width: 840px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-primary), var(--accent-purple), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 40px;
}

.timeline-marker {
  position: absolute;
  top: 24px;
  left: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-primary);
  transform: translateX(-50%);
}

.timeline-content {
  padding: 28px;
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.timeline-role {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.timeline-company {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.timeline-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   11.5. EDUCATION & ACHIEVEMENTS STYLES
   -------------------------------------------------------------------------- */
.education-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.education-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.education-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-primary);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--accent-glow);
}

.edu-year {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.edu-institution {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.edu-degree {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.5;
}

.edu-score {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c084fc;
  font-weight: 700;
  font-size: 0.85rem;
  width: fit-content;
  margin-top: auto;
}

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

.achievement-card {
  padding: 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.achievement-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-primary);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 0 20px var(--accent-glow);
}

.achievement-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.achievement-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #070913;
  font-size: 1.4rem;
  box-shadow: 0 0 20px var(--accent-glow);
}

.achievement-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid var(--border-glow);
  color: var(--accent-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.achievement-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.achievement-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.achievement-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.achievement-stat {
  font-size: 0.85rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --------------------------------------------------------------------------
   12. CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}

.contact-info-card, .contact-form-card {
  padding: 40px;
}

.contact-info-card h3 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

.contact-info-card p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.detail-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 1.15rem;
  flex-shrink: 0;
}

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

.detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: 0.5px;
}

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

.copy-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  background: var(--accent-primary);
  color: #070913;
}

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

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 1.15rem;
  transition: all var(--transition-normal);
}

.social-btn:hover {
  background: var(--gradient-primary);
  color: #070913;
  transform: translateY(-3px);
  box-shadow: 0 0 15px var(--accent-glow);
}

/* FORM ELEMENTS */
.form-group {
  margin-bottom: 20px;
}

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

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

.input-icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-input {
  width: 100%;
  padding: 12px 16px 12px 46px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass-light);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.text-area-wrapper .input-icon {
  top: 16px;
}

/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-glass);
  background: var(--bg-primary);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  font-family: var(--font-code);
  font-size: 1.25rem;
  font-weight: 800;
}

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

.back-to-top-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass-light);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.back-to-top-btn:hover {
  background: var(--accent-primary);
  color: #070913;
  transform: translateY(-4px);
}

/* --------------------------------------------------------------------------
   14. MODALS & TOAST NOTIFICATIONS
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 14, 0.85);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 2rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: #ef4444;
}

/* Toast System */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  padding: 14px 24px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-glass);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.3s forwards, fadeOut 0.4s 3.6s forwards;
}

.toast-success i { color: #10b981; }
.toast-info i { color: var(--accent-primary); }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; visibility: hidden; }
}

@media (max-width: 1200px) {
  .nav-menu {
    position: fixed;
    top: 74px;
    left: 0;
    width: 100%;
    background: rgba(7, 9, 19, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 24px;
    clip-path: circle(0% at 100% 0);
    transition: clip-path 0.4s ease-in-out;
  }

  .nav-menu.active {
    clip-path: circle(140% at 100% 0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .nav-link i {
    display: inline-block;
  }

  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual {
    order: -1;
    display: flex;
    justify-content: center;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .role-wrapper {
    font-size: 1.6rem;
  }

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

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

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

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

/* --------------------------------------------------------------------------
   16. SCROLL MARGIN OFFSET & PRINT STYLES
   -------------------------------------------------------------------------- */
section[id] {
  scroll-margin-top: 90px;
}

@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  
  .navbar-header,
  .cursor-glow,
  .bg-mesh-grid,
  .bg-orb,
  .modal-close,
  .footer,
  .back-to-top-btn,
  .toast-container,
  .btn-primary {
    display: none !important;
  }

  .modal-backdrop {
    position: static !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 0 !important;
  }

  .modal-container {
    max-width: 100% !important;
    max-height: none !important;
    box-shadow: none !important;
    border: none !important;
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    transform: none !important;
  }

  .modal-container * {
    color: #1e293b !important;
    text-shadow: none !important;
    border-color: #cbd5e1 !important;
  }

  .modal-container h1, 
  .modal-container h3 {
    color: #0f172a !important;
  }
}

