/* Ultra-Modern Dark Portfolio Theme with Neon Green Accents - FIXED VERSION */

/* 1) Enhanced CSS Custom Properties - FIXED */
:root {
  /* Primary Colors - Deep Dark Foundation */
  --primary-bg: #0a0a0a;
  --secondary-bg: #111111;
  --tertiary-bg: #161616;
  --card-bg: #1a1a1a;
  
  /* Neon Green Accent System */
  --accent: #00ff88;
  --accent-hover: #00cc6a;
  --accent-light: #33ff99;
  --accent-glow: rgba(0, 255, 136, 0.267);
  
  /* Complementary Colors */
  --accent-2: #00ffff;
  --accent-3: #ff0080;
  
  /* Typography Colors */
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #707070;
  --text-light: #e0e0e0;
  --text-accent: var(--accent);
  
  /* UI Elements */
  --border: #333333;
  --border-light: #444444;
  --border-focus: var(--accent);
  
  /* Advanced Gradients */
  --gradient-primary: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 100%);
  --gradient-bg: 
    radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 255, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(255, 0, 128, 0.02) 0%, transparent 50%),
    linear-gradient(180deg, var(--primary-bg) 0%, var(--secondary-bg) 50%, var(--primary-bg) 100%);
  
  /* Professional Shadows */
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-light: 0 4px 20px rgba(0, 255, 136, 0.15), 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-medium: 0 8px 32px rgba(0, 255, 136, 0.2), 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-heavy: 0 12px 48px rgba(0, 255, 136, 0.25), 0 6px 24px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px rgba(0, 255, 136, 0.3);
  
  /* Smooth Transitions */
  --transition-fast: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Layout Constants */
  --content-max: 1200px;
  --gutter: clamp(1rem, 3vw, 2.5rem);
  --section-padding: clamp(4rem, 8vw, 8rem);
  
  /* Typography Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  
  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-black: 900;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  background: var(--gradient-bg);
  /* Use scroll attachment to avoid compositing artifacts that can blur text during scroll */
  background-attachment: scroll;
  color: var(--text-primary);
  line-height: 1.7;
  font-weight: var(--font-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Selection Styles */
::selection {
  background: var(--accent-glow);
  color: var(--text-primary);
  text-shadow: none;
}

::-moz-selection {
  background: var(--accent-glow);
  color: var(--text-primary);
  text-shadow: none;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: var(--font-bold);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 0.5em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-black);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--font-bold);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--font-semibold);
}

h4 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
}

p {
  margin-bottom: 1em;
  color: var(--text-secondary);
  line-height: 1.8;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: var(--font-black);
  text-align: center;
  margin-bottom: 4rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
  box-shadow: var(--shadow-glow);
}

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

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

a:hover {
  color: var(--accent-light);
  text-decoration: none;
}

/* Focus Styles for Accessibility */
*:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* 3) Enhanced Navigation System - FIXED */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.92);
  /* Avoid heavy backdrop blur which can cause underlying content to appear blurry while scrolling. */
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 1px solid var(--border);
  transition: var(--transition-slow);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  height: 56px; /* slim navbar height */
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  box-shadow: var(--shadow-light);
}

.nav-container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1rem; /* tighter horizontal padding */
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  height: 56px;
}

.logo {
  font-size: 1.125rem;
  font-weight: var(--font-black);
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: var(--transition);
  position: relative;
}

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

.logo:hover::after {
  width: 100%;
}

.logo:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: clamp(0.75rem, 1.5vw, 1.25rem); /* smaller gap for slim bar */
  align-items: center;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap; /* prevent nav items from wrapping to new line */
  white-space: nowrap;
}

.nav-menu li {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: var(--font-semibold);
  font-size: 0.85rem;
  position: relative;
  transition: var(--transition);
  padding: 0.25rem 0.5rem; /* tighter padding */
  border-radius: 8px;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}

/* Ensure special CV link visually matches other nav links */
.nav-menu .cv-link {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: var(--text-sm);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: rgba(0, 255, 136, 0.05);
  transform: translateY(-2px);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
  border-radius: 1px;
  box-shadow: var(--shadow-glow);
}

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

.nav-link.active {
  color: var(--accent);
  background: rgba(0, 255, 136, 0.08);
  box-shadow: 0 2px 8px rgba(0, 255, 136, 0.15);
}

/* Enhanced Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  padding: 8px;
  border-radius: 6px;
  transition: var(--transition);
  background: transparent;
  border: none;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: scale(1.05);
}

.hamburger span {
  width: 24px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background: var(--accent);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background: var(--accent);
}

/* CV Link Styling — behaves like a normal nav-link */
.nav-link[href*="drive.google.com"] {
  background: transparent !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0.25rem 0.5rem !important;
  color: var(--text-secondary) !important;
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}


/* Make CV link turn neon green on hover + active */
.nav-link[href*="drive.google.com"]:hover,
.nav-link[href*="drive.google.com"].active {
  color: var(--accent) !important;
  background: rgba(0, 255, 136, 0.05) !important;
  transform: translateY(-2px);
}


/* 4) Enhanced Hero Section - FIXED */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--section-padding) 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(0, 255, 136, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(0, 255, 255, 0.04) 0%, transparent 50%),
    var(--gradient-bg);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(800px 600px at 20% 30%, rgba(0, 255, 136, 0.08), transparent 60%),
    radial-gradient(600px 400px at 80% 70%, rgba(0, 255, 255, 0.06), transparent 50%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

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

.hero-container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: var(--font-black);
  margin-top: 1rem;
  margin-bottom: 0rem;
  line-height: 1.5;
  letter-spacing: -0.03em;
  animation: slideInUp 0.8s ease-out;
}

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

.hero-content .highlight::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0.3;
  border-radius: 2px;
  animation: underlineGlow 2s ease-in-out infinite alternate;
}

@keyframes underlineGlow {
  0% {
    box-shadow: 0 0 5px var(--accent-glow);
  }
  100% {
    box-shadow: 0 0 15px var(--accent-glow), 0 0 25px var(--accent-glow);
  }
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: var(--font-semibold);
  line-height: 1.4;
  animation: slideInUp 0.8s ease-out 0.2s both;
}

.hero-description {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  margin-bottom: 2.5rem;
  max-width: 65ch;
  line-height: 1.7;
  animation: slideInUp 0.8s ease-out 0.4s both;
}

/* Enhanced CTA Button */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--gradient-primary);
  color: var(--primary-bg);
  border: none;
  border-radius: 50px;
  font-weight: var(--font-bold);
  font-size: var(--text-base);
  letter-spacing: 0.025em;
  text-decoration: none;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  animation: slideInUp 0.8s ease-out 0.6s both;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-heavy);
  color: var(--primary-bg);
}

.cta-button:active {
  transform: translateY(-1px) scale(0.98);
}

.cta-button i {
  font-size: 1.1rem;
  transition: var(--transition);
}

.cta-button:hover i {
  transform: scale(1.1) rotate(5deg);
}

/* Enhanced Profile Container */
.profile-container {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 3/4;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 2px solid var(--border);
  background: linear-gradient(145deg, var(--card-bg), var(--secondary-bg));
  box-shadow: 
    0 0 0 1px rgba(0, 255, 136, 0.1) inset,
    var(--shadow-light);
  transition: var(--transition-slow);
  animation: slideInRight 0.8s ease-out 0.3s both;
  cursor: pointer;
}

.profile-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
  mix-blend-mode: overlay;
}

.profile-container:hover::before {
  opacity: 0.1;
}

.profile-container:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 
    0 0 0 2px rgba(0, 255, 136, 0.3) inset,
    var(--shadow-heavy),
    var(--shadow-glow);
}

.profile-container img,
.profile-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
  z-index: 2;
}

.profile-container video {
  display: none;
}

.profile-container:hover img {
  opacity: 0.7;
  transform: scale(1.05);
  filter: brightness(1.1) contrast(1.1);
}

.profile-container:hover video {
  display: block;
  opacity: 1;
}

/* Enhanced Floating Elements */
.floating-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.floating-icon {
  position: absolute;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--accent);
  opacity: 0.4;
  filter: drop-shadow(0 0 10px var(--accent-glow));
  animation: floatAdvanced 8s ease-in-out infinite;
  transition: var(--transition);
}

.floating-icon:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-icon:nth-child(2) {
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.floating-icon:nth-child(3) {
  bottom: 30%;
  left: 20%;
  animation-delay: 4s;
}

.floating-icon:nth-child(4) {
  top: 40%;
  right: 30%;
  animation-delay: 1s;
}

@keyframes floatAdvanced {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0.4;
  }
  25% {
    transform: translateY(-10px) rotate(90deg) scale(1.1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-20px) rotate(180deg) scale(1);
    opacity: 0.3;
  }
  75% {
    transform: translateY(-10px) rotate(270deg) scale(1.1);
    opacity: 0.5;
  }
}

/* Animation keyframes */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* 5) Enhanced Section Layouts - FIXED */

/* Section Base Styles */
section {
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}

.about {
  background: var(--secondary-bg);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 80% 20%, rgba(0, 255, 136, 0.03), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(0, 255, 255, 0.02), transparent 50%);
  pointer-events: none;
}

.experience {
  background: var(--primary-bg);
  position: relative;
}

.experience::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 30% 70%, rgba(0, 255, 136, 0.04), transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(255, 0, 128, 0.02), transparent 50%);
  pointer-events: none;
}

/* Bug Bounty Section Styles - FIXED */
.bug-bounty {
  background: var(--secondary-bg);
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}

.bug-bounty::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(0, 255, 136, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 150, 255, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.2rem;
  margin-bottom: 3rem;
  font-weight: 300;
}

/* Bounty Stats */
.bounty-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.stat-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
  transition: left 0.6s ease;
}

.stat-card:hover::before {
  left: 100%;
}

.stat-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: var(--shadow-heavy);
}

.stat-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.stat-number {
  font-size: 2.5rem;
  font-weight: var(--font-black);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: var(--font-semibold);
}

/* Bounty Grid */
.bounty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.bounty-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  transition: var(--transition-slow);
  position: relative;
  box-shadow: var(--shadow-subtle);
}

.bounty-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.bounty-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: var(--shadow-heavy);
}

.bounty-header {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border-light);
}

.company-logo {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.5rem;
  color: var(--primary-bg);
}

.bounty-info {
  flex: 1;
}

.bounty-info h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: var(--font-bold);
}

.bounty-amount {
  color: var(--accent);
  font-weight: var(--font-bold);
  font-size: 0.9rem;
}

.severity {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.severity.critical {
  background: rgba(255, 0, 0, 0.2);
  color: #ff4444;
  border: 1px solid #ff4444;
}

.severity.high {
  background: rgba(255, 165, 0, 0.2);
  color: #ffa500;
  border: 1px solid #ffa500;
}

.severity.medium {
  background: rgba(255, 255, 0, 0.2);
  color: #ffff00;
  border: 1px solid #ffff00;
}

.bounty-content {
  padding: 1.5rem;
}

.bounty-content h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: var(--font-semibold);
}

.vulnerability-desc {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.tech-used {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  background: rgba(0, 255, 136, 0.1);
  color: var(--accent);
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: var(--font-semibold);
  border: 1px solid rgba(0, 255, 136, 0.3);
  transition: var(--transition);
}

.tech-tag:hover {
  background: rgba(0, 255, 136, 0.2);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.proof-concept {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  border: 1px solid var(--border-light);
}

.proof-concept pre {
  margin: 0;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.4;
}

.proof-concept code {
  background: none;
  padding: 0;
}

.impact {
  color: var(--text-light);
  font-size: 0.9rem;
  padding: 1rem;
  background: rgba(0, 255, 136, 0.05);
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}

.impact strong {
  color: var(--accent);
}

/* Bounty Skills */
.bounty-skills {
  margin-top: 4rem;
}

.bounty-skills h3 {
  text-align: center;
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 3rem;
  font-weight: var(--font-bold);
}

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

.skill-category {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  transition: var(--transition-slow);
  box-shadow: var(--shadow-subtle);
}

.skill-category:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow-light);
}

.skill-category h4 {
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-weight: var(--font-bold);
  text-align: center;
}

.skill-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-category li {
  color: var(--text-light);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  padding-left: 1.5rem;
  transition: var(--transition);
}

.skill-category li:hover {
  color: var(--text-primary);
  transform: translateX(5px);
}

.skill-category li:before {
  content: '▸';
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.skill-category li:last-child {
  border-bottom: none;
}

.projects {
  background: var(--secondary-bg);
  position: relative;
}

.projects::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 60% 40%, rgba(0, 255, 255, 0.03), transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(0, 255, 136, 0.02), transparent 50%);
  pointer-events: none;
}

.contact {
  background: var(--primary-bg);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(0, 255, 136, 0.05), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.03), transparent 50%);
  pointer-events: none;
}

/* About Section Enhanced */
.about-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
  position: relative;
  z-index: 2;
}

.about-text {
  position: relative;
}

.about-text h3 {
  color: var(--accent);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--font-bold);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.about-text h3::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 50%;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
  box-shadow: var(--shadow-glow);
}

.about-text p {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.about-text p:hover {
  color: var(--text-primary);
  transform: translateX(5px);
}

.about-text strong {
  color: var(--accent);
  font-weight: var(--font-bold);
}

/* Skills Section Enhanced */
.skills-section h3 {
  color: var(--accent);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--font-bold);
  margin-bottom: 2rem;
  text-align: center;
}

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

.skill-item {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: var(--transition-slow);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    var(--shadow-subtle);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.skill-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
  transition: left 0.6s;
}

.skill-item:hover::before {
  left: 100%;
}

.skill-item:hover {
  transform: translateY(-8px) scale(1.05);
  border-color: var(--accent);
  box-shadow: 
    var(--shadow-light),
    0 0 20px rgba(0, 255, 136, 0.2);
  background: rgba(0, 255, 136, 0.02);
}

.skill-item i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 8px var(--accent-glow));
  transition: var(--transition);
}

.skill-item:hover i {
  transform: scale(1.2) rotateY(360deg);
  filter: drop-shadow(0 0 12px var(--accent-glow));
}

.skill-item div {
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.skill-item:hover div {
  color: var(--accent);
  transform: scale(1.05);
}

/* Enhanced Experience Timeline */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg, 
    transparent 0%,
    var(--accent) 20%,
    var(--accent-2) 80%,
    transparent 100%
  );
  transform: translateX(-50%);
  box-shadow: 
    0 0 20px rgba(0, 255, 136, 0.3),
    0 0 40px rgba(0, 255, 136, 0.1);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  display: flex;
  justify-content: flex-end;
  width: 50%;
  animation: slideInLeft 0.6s ease-out;
}

.timeline-item:nth-child(odd) {
  justify-content: flex-start;
  margin-left: 50%;
  animation: slideInRight 0.6s ease-out;
}

.timeline-item:nth-child(even) {
  margin-right: 50%;
}

.timeline-content {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  max-width: 450px;
  transition: var(--transition-slow);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    var(--shadow-subtle);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-left: 3px solid var(--accent);
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.05), transparent);
  transition: left 0.8s;
}

.timeline-content:hover::before {
  left: 100%;
}

.timeline-content:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 
    var(--shadow-medium),
    0 0 30px rgba(0, 255, 136, 0.2);
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(26, 26, 26, 0.9) 100%);
}

.timeline-content.featured {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.05) 0%, rgba(26, 26, 26, 0.95) 100%);
  border-left: 3px solid var(--accent-light);
}

.timeline-content.featured:hover {
  box-shadow: var(--shadow-medium), 0 0 15px var(--accent-glow);
}

.timeline-date {
  color: var(--accent);
  font-weight: var(--font-bold);
  font-size: var(--text-sm);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}

.timeline-date::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
}

.timeline-title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  transition: var(--transition);
}

.timeline-content:hover .timeline-title {
  color: var(--accent);
}

.timeline-description {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: var(--text-base);
  transition: var(--transition);
}

.timeline-content:hover .timeline-description {
  color: var(--text-primary);
}

.timeline-marker {
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: var(--gradient-primary);
  border-radius: 50%;
  border: 4px solid var(--primary-bg);
  box-shadow: 
    0 0 0 4px rgba(0, 255, 136, 0.2),
    0 0 20px rgba(0, 255, 136, 0.4),
    var(--shadow-medium);
  transition: var(--transition);
  z-index: 3;
}

.timeline-item:nth-child(odd) .timeline-marker {
  left: -12px;
  right: auto;
}

.timeline-content:hover .timeline-marker {
  transform: translateY(-50%) scale(1.2);
  box-shadow: 
    0 0 0 6px rgba(0, 255, 136, 0.3),
    0 0 30px rgba(0, 255, 136, 0.6),
    var(--shadow-heavy);
}

/* Animation keyframes for timeline */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
  counter-reset: project;
}

.project-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  transition: var(--transition-slow);
  position: relative;
  cursor: pointer;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    var(--shadow-subtle);
  transform-origin: center;
  counter-increment: project;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.02), rgba(0, 255, 255, 0.01));
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}

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

.project-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 
    var(--shadow-heavy),
    0 0 40px rgba(0, 255, 136, 0.25);
}

.project-image {
  height: 250px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.2), transparent 50%, rgba(255, 255, 255, 0.1));
  opacity: 0;
  transition: var(--transition);
}

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

.project-image img,
.project-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
  filter: saturate(1.1) contrast(1.05) brightness(0.95);
}

.project-card:hover .project-image img,
.project-card:hover .project-image video {
  transform: scale(1.08);
  filter: saturate(1.2) contrast(1.1) brightness(1.05);
}

.project-info {
  padding: 2rem;
  position: relative;
  z-index: 2;
  background: var(--card-bg);
}

.project-info h3 {
  color: var(--text-primary);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-bottom: 1rem;
  transition: var(--transition);
  line-height: 1.3;
  position: relative;
  padding-left: 2rem;
}

/* Auto number label */
.project-info h3::before {
  content: counter(project) '. ';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: var(--font-black);
}

.project-card:hover .project-info h3 {
  color: var(--accent);
  transform: translateX(5px);
}

.project-info p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: var(--text-base);
  transition: var(--transition);
}

.project-card:hover .project-info p {
  color: var(--text-primary);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.tag {
  background: rgba(0, 255, 136, 0.1);
  color: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(0, 255, 136, 0.3);
  transition: var(--transition);
  cursor: pointer;
}

.tag:hover {
  background: rgba(0, 255, 136, 0.2);
  border-color: var(--accent);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 255, 136, 0.2);
}

.project-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
}

/* Enhanced Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

.contact-info {
  position: relative;
}

.contact-info h3 {
  color: var(--accent);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: var(--font-black);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.contact-info h3::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 60%;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
  box-shadow: var(--shadow-glow);
}

.contact-info p {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: var(--text-base);
  padding: 1rem;
  border-radius: 12px;
  background: rgba(0, 255, 136, 0.02);
  border: 1px solid rgba(0, 255, 136, 0.1);
  transition: var(--transition);
  cursor: pointer;
}

.contact-item:hover {
  background: rgba(0, 255, 136, 0.05);
  border-color: rgba(0, 255, 136, 0.3);
  transform: translateX(10px);
  box-shadow: var(--shadow-light);
}

.contact-item i {
  color: var(--accent);
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
  filter: drop-shadow(0 0 4px var(--accent-glow));
}

.contact-item:hover i {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

/* Enhanced Contact Form */
.contact-form {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    var(--shadow-light);
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.03), transparent);
  transition: left 0.8s;
}

.contact-form:hover::before {
  left: 100%;
}

.form-group {
  margin-bottom: 2rem;
  position: relative;
}

.form-group label {
  display: block;
  font-weight: var(--font-bold);
  color: var(--text-primary);
  font-size: var(--text-sm);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--primary-bg);
  color: var(--text-primary);
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: var(--text-base);
  font-family: inherit;
  transition: var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 
    0 0 0 4px rgba(0, 255, 136, 0.1),
    var(--shadow-light);
  background: rgba(0, 255, 136, 0.02);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

/* Enhanced Submit Button */
.submit-btn {
  width: 100%;
  padding: 1.25rem 2rem;
  background: var(--gradient-primary);
  color: var(--primary-bg);
  border: none;
  border-radius: 50px;
  font-weight: var(--font-bold);
  font-size: var(--text-base);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-heavy);
}

.submit-btn:active {
  transform: translateY(-2px) scale(0.98);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.submit-btn i {
  margin-right: 0.75rem;
  transition: var(--transition);
}

.submit-btn:hover i {
  transform: translateX(5px) scale(1.1);
}

/* Enhanced Footer */
.footer {
  background: var(--secondary-bg);
  border-top: 2px solid var(--border);
  text-align: center;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 0%, rgba(0, 255, 136, 0.03), transparent 50%);
  pointer-events: none;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.5rem;
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.social-links a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  border-radius: 50%;
  transition: var(--transition);
  transform: scale(0);
}

.social-links a:hover::before {
  opacity: 0.1;
  transform: scale(1);
}

.social-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 
    var(--shadow-light),
    0 0 20px rgba(0, 255, 136, 0.3);
  transform: translateY(-8px) scale(1.1) rotate(5deg);
}

.social-links a i {
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.social-links a:hover i {
  filter: drop-shadow(0 0 8px var(--accent-glow));
  transform: scale(1.1);
}

.footer p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin: 0;
  position: relative;
  z-index: 2;
}

/* Enhanced Scroll Reveal Animations - FIXED */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: 
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.timeline-title {
  position: relative;
  display: inline-block;
}

.timeline-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.timeline-content:hover .timeline-title::after {
  width: 100%;
}

.timeline-content.featured .timeline-title {
  animation: pulse 2s infinite;
}

/* Scroll Animations - FIXED */
.scroll-fade-in, .scroll-slide-up, .scroll-slide-in, .scroll-scale-in, .scroll-rotate-in {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  /* Limit will-change to opacity to reduce forced GPU compositing which can blur text */
  will-change: opacity;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.scroll-fade-in {
  opacity: 0;
}

/* Default animations for downward scrolling */
.scroll-slide-up {
  transform: translateY(50px);
}

.scroll-slide-in {
  transform: translateX(-50px);
}

.scroll-scale-in {
  transform: scale(0.9);
}

.scroll-rotate-in {
  transform: rotate(-10deg) scale(0.9);
}

/* Animated states */
.scroll-fade-in.animate {
  opacity: 1;
}

.scroll-slide-up.animate {
  opacity: 1;
  transform: translateY(0);
}

.scroll-slide-in.animate {
  opacity: 1;
  transform: translateX(0);
}

.scroll-scale-in.animate {
  opacity: 1;
  transform: scale(1);
}

.scroll-rotate-in.animate {
  opacity: 1;
  transform: rotate(0) scale(1);
}

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

::-webkit-scrollbar-track {
  background: var(--primary-bg);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 6px;
  border: 2px solid var(--primary-bg);
  box-shadow: 
    inset 0 0 5px rgba(0, 0, 0, 0.3),
    0 0 10px rgba(0, 255, 136, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-secondary);
  box-shadow: 
    inset 0 0 5px rgba(0, 0, 0, 0.3),
    0 0 15px rgba(0, 255, 136, 0.4);
}

/* Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--primary-bg);
}

/* 6) Responsive Design Enhancements - FIXED */

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .profile-container {
    margin: 0 auto;
    max-width: 300px;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  /* Navigation Mobile */
  .nav-menu {
    position: fixed;
    top: 56px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 56px);
    background: var(--secondary-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-top: 1px solid var(--border);
    z-index: 1200; /* ensure mobile menu appears above page content */
  }
  
  .nav-menu.active {
    right: 0;
    z-index: 1200;
  }
  
  .hamburger {
    display: flex;
  }
  
  /* Grid Adjustments */
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Timeline Mobile */
  .timeline::before {
    left: 20px;
    transform: none;
  }
  
  .timeline-item {
    width: 100%;
    margin-left: 40px !important;
    margin-right: 0 !important;
    justify-content: flex-start !important;
  }
  
  .timeline-marker {
    left: -30px !important;
    right: auto !important;
  }
  
  /* Bounty Grid Mobile */
  .bounty-grid {
    grid-template-columns: 1fr;
  }
  
  .bounty-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .stat-card {
    padding: 1.5rem;
  }
  
  .bounty-skills .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .bounty-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .company-logo {
    margin-right: 0;
  }
  
  /* Typography Mobile */
  .hero-content h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  .section-title {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }
  
  /* Padding Adjustments */
  :root {
    --section-padding: clamp(3rem, 6vw, 4rem);
    --gutter: 1rem;
  }

  /* Ensure reveal classes are visible on mobile (JS initializers are skipped) */
  .fade-in,
  .scroll-fade-in,
  .scroll-slide-up,
  .scroll-slide-in,
  .scroll-scale-in,
  .scroll-rotate-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (max-width: 480px) {
  /* Ultra Mobile */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .bounty-stats {
    grid-template-columns: 1fr;
  }
  
  .bounty-card {
    margin: 0 -1rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .profile-container {
    max-width: 250px;
  }
  
  .nav-container {
    padding: 0.75rem 1rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
}

/* 7) Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Certificates Section */
.certificates {
  padding: var(--section-padding) 0;
  background: transparent;
}
.certificate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.certificate-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1rem;
  align-items: stretch;
  padding: 0.5rem;
  transition: var(--transition);
}
.certificate-image {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
}
.certificate-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.certificate-info {
  padding: 0.75rem 0.75rem 0.75rem 0.25rem;
}
.cert-name {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: var(--font-bold);
}
.cert-meta {
  margin: 0 0 0.75rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.cert-desc {
  margin: 0 0 0.75rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}
.cert-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  color: var(--text-light);
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: var(--font-semibold);
  cursor: pointer;
}
.btn:hover {
  background: rgba(0,255,136,0.06);
  color: var(--accent-light);
  border-color: rgba(0,255,136,0.18);
}
.verify-link { text-transform: none; }
.certificate-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-light);
  border-color: var(--accent);
}

/* Modal */
.certificate-modal { display: none; }
.certificate-modal.open { display: block; position: fixed; inset: 0; z-index: 2000; }
.certificate-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.75); }
.certificate-modal-panel {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1100px, 95%);
  max-height: 90vh;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: auto;
  padding: 1rem;
  box-shadow: var(--shadow-heavy);
}
.certificate-modal-close {
  position: absolute;
  right: 12px;
  top: 8px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 28px;
  cursor: pointer;
}
.certificate-modal-content { text-align: center; }
.certificate-modal img { max-width: 100%; height: auto; }
.certificate-modal iframe { width: 100%; height: 80vh; border: none; }

@media (max-width: 768px) {
  .certificate-card {
    grid-template-columns: 1fr;
  }
  .certificate-image img { height: 220px; }
}

/* Scroll slide-in (from left) + fade animation */
.scroll-slide-in {
  opacity: 0;
  transform: translateX(-40px);
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1), opacity 420ms ease-out;
  will-change: transform, opacity;
}
.scroll-slide-in.animate {
  opacity: 1;
  transform: translateX(0);
}