/* Modern Futuristic Portfolio Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* CSS Custom Properties for consistent theming */
:root {
  /* Color Palette - Eye-friendly */
  --bg-primary: #0f1419;
  --bg-secondary: #1a1f2e;
  --bg-tertiary: #242938;
  --accent-primary: #64b5f6;
  --accent-secondary: #81c784;
  --accent-tertiary: #4db6ac;
  --text-primary: #e8eaf6;
  --text-secondary: #90caf9;
  --text-muted: #81c784;
  --border-color: rgba(100, 181, 246, 0.2);
  --glass-bg: rgba(26, 31, 46, 0.8);
  --glass-border: rgba(100, 181, 246, 0.3);
  
  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  
  /* Spacing */
  --section-padding: 6rem 2rem;
  --container-max-width: 1200px;
  
  /* Shadows & Effects */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --glow-primary: 0 0 20px rgba(100, 181, 246, 0.3);
  --glow-secondary: 0 0 20px rgba(129, 199, 132, 0.3);
}

/* Browser-specific overrides to prevent white backgrounds */
html, body {
  background-color: var(--bg-primary) !important;
  background-image: none !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  background-position: center !important;
  background-size: cover !important;
  min-height: 100vh !important;
  min-width: 100vw !important;
}

/* Ensure the entire document has consistent background */
html {
  background: var(--bg-primary) !important;
  min-height: 100vh !important;
}

body {
  background: var(--bg-primary) !important;
  min-height: 100vh !important;
  position: relative;
}

/* Override any potential white backgrounds from viewport */
:root {
  background: var(--bg-primary) !important;
}

/* Ensure no white backgrounds on scroll */
::-webkit-scrollbar-track {
  background: var(--bg-primary) !important;
}

::-webkit-scrollbar-thumb {
  background: var(--accent-primary) !important;
}

/* Override any potential white backgrounds from selection */
::selection {
  background: var(--accent-primary) !important;
  color: var(--bg-primary) !important;
}

::-moz-selection {
  background: var(--accent-primary) !important;
  color: var(--bg-primary) !important;
}

/* Comprehensive Background Override - Prevent White Backgrounds */
*,
*::before,
*::after {
  background: transparent !important;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

body::-webkit-scrollbar {
  display: none;
}

/* Force dark background on ALL elements */
html, body, section, div, main, article, aside, header, footer, nav, ul, li, a, p, h1, h2, h3, h4, h5, h6, span, button, input, textarea, select, form, fieldset, legend, label, table, tr, td, th, thead, tbody, tfoot, caption, colgroup, col, figure, figcaption, details, summary, menu, menuitem, dialog, slot, template, canvas, svg, math, video, audio, track, source, embed, object, param, picture, source, img, iframe, map, area, portal, embed, object, applet, bgsound, link, meta, title, style, script, noscript, base, basefont, b, big, center, font, i, s, small, strike, tt, u, acronym, applet, b, basefont, bdo, big, blink, center, cite, code, dfn, em, font, i, kbd, mark, ruby, rt, rp, s, samp, small, strike, strong, sub, sup, tt, u, var, wbr, xmp, listing, plaintext, hgroup, address, blockquote, dd, dir, dl, dt, fieldset, form, hr, isindex, menu, noframes, noscript, ol, p, pre, table, ul, abbr, acronym, b, basefont, bdo, big, blink, center, cite, code, dfn, em, font, i, kbd, mark, ruby, rt, rp, s, samp, small, strike, strong, sub, sup, tt, u, var, wbr, xmp, listing, plaintext {
  background: transparent !important;
}

/* Ensure sections don't have any background */
section {
  background: transparent !important;
  position: relative;
}

/* Override any potential white backgrounds from external CSS */
.container, .container-fluid, .row, .col, [class*="col-"], [class*="container"], [class*="section"], [class*="div"], [class*="main"], [class*="article"], [class*="aside"], [class*="header"], [class*="footer"], [class*="nav"] {
  background: transparent !important;
}

/* Override any Bootstrap or external framework backgrounds */
.bg-white, .bg-light, .bg-transparent, [class*="bg-"] {
  background: transparent !important;
}

/* Ensure no white backgrounds on any pseudo-elements */
*::before, *::after {
  background: transparent !important;
}

/* Make animated background the ONLY visible background */
.animated-bg {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: -999 !important;
  background: linear-gradient(45deg, var(--bg-primary), var(--bg-secondary)) !important;
  overflow: hidden;
  pointer-events: none;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 100vh !important;
  min-width: 100vw !important;
}

.animated-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(100, 181, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(129, 199, 132, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(77, 182, 172, 0.05) 0%, transparent 50%);
  animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(1deg); }
  66% { transform: translate(-20px, 20px) rotate(-1deg); }
}

/* Floating Particles - Optimized for Performance */
.particles {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: -998 !important;
  pointer-events: none;
  overflow: hidden;
  min-height: 100vh !important;
  min-width: 100vw !important;
  will-change: transform;
}

.particle {
  position: absolute;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
  opacity: 0.8;
  box-shadow: 0 0 8px var(--accent-primary);
  z-index: -998;
  will-change: transform;
  transform: translateZ(0);
}

.particle:nth-child(odd) {
  background: var(--accent-secondary);
  animation-duration: 10s;
  box-shadow: 0 0 8px var(--accent-secondary);
}

.particle:nth-child(3n) {
  background: var(--accent-tertiary);
  animation-duration: 12s;
  box-shadow: 0 0 8px var(--accent-tertiary);
}

.particle:nth-child(4n) {
  background: rgba(255, 255, 255, 0.9);
  animation-duration: 6s;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
}

@keyframes float {
  0%, 100% { 
    transform: translate3d(0, 0, 0); 
    opacity: 0.8; 
  }
  25% { 
    transform: translate3d(10px, -30px, 0); 
    opacity: 0.8; 
  }
  50% { 
    transform: translate3d(-5px, -60px, 0); 
    opacity: 0.8; 
  }
  75% { 
    transform: translate3d(-15px, -30px, 0); 
    opacity: 0.8; 
  }
}

/* Additional particle layers for depth */
.particles::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(100, 181, 246, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(129, 199, 132, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(77, 182, 172, 0.04) 0%, transparent 50%);
  animation: particleGlow 15s ease-in-out infinite;
}

@keyframes particleGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* Glassmorphism Components - Optimized */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  will-change: transform;
  transform: translateZ(0);
}

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

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

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl), var(--glow-primary);
  border-color: rgba(0, 212, 255, 0.3);
}

/* Navigation */
.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 99999 !important;
  background: rgba(15, 20, 25, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 2px solid var(--accent-primary);
  transition: all 0.3s ease;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
  height: 70px !important;
  display: flex !important;
  align-items: center !important;
}

.navbar.scrolled {
  background: rgba(15, 20, 25, 1) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.9);
  border-bottom: 2px solid var(--accent-primary);
}

.nav-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-primary) !important;
  text-decoration: none;
  transition: all 0.3s ease;
  text-shadow: 0 0 10px var(--accent-primary);
}

.logo:hover {
  color: var(--accent-secondary) !important;
  text-shadow: 0 0 15px var(--accent-secondary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-primary) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  text-shadow: 0 0 5px var(--text-primary);
  padding: 0.5rem 1rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
  box-shadow: 0 0 5px var(--accent-primary);
}

.nav-links a:hover {
  color: var(--accent-primary) !important;
  text-shadow: 0 0 8px var(--accent-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 8rem 2rem 6rem 2rem;
  background: transparent;
  z-index: 2;
  margin-top: 70px;
}

.hero-content {
  max-width: 800px;
  z-index: 10;
  position: relative;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary) !important;
  text-shadow: 0 0 20px var(--accent-primary), 0 0 40px var(--accent-primary);
  animation: titleGlow 3s ease-in-out infinite alternate;
  position: relative;
  z-index: 10;
}

@keyframes titleGlow {
  0% { filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3)); }
  100% { filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.6)); }
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--text-secondary) !important;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 0 10px var(--accent-primary);
  position: relative;
  z-index: 10;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}

/* Buttons - Optimized */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 10;
  will-change: transform;
  transform: translateZ(0);
}

.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.5s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary)) !important;
  color: #1a1f2e !important;
  box-shadow: 0 0 20px var(--accent-primary);
  position: relative;
  z-index: 10;
  font-weight: 700;
  text-shadow: none !important;
  border: 2px solid var(--accent-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--accent-primary);
  background: linear-gradient(135deg, var(--accent-tertiary), var(--accent-primary)) !important;
  color: #1a1f2e !important;
}

.btn-secondary {
  background: rgba(100, 181, 246, 0.1) !important;
  color: var(--text-primary) !important;
  border: 2px solid var(--accent-primary) !important;
  position: relative;
  z-index: 10;
  font-weight: 700;
  text-shadow: 0 0 8px var(--text-primary) !important;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(100, 181, 246, 0.3) !important;
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 20px var(--accent-primary);
  color: var(--accent-primary) !important;
  text-shadow: 0 0 10px var(--accent-primary) !important;
}

.btn:active {
  transform: translateY(0);
}

/* Sections - Optimized for Performance */
.section {
  padding: var(--section-padding);
  position: relative;
  background: transparent;
  margin-top: 0;
  will-change: transform;
  transform: translateZ(0);
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--text-primary) !important;
  text-shadow: 0 0 20px var(--accent-primary), 0 0 40px var(--accent-primary);
  position: relative;
  z-index: 10;
  font-weight: 700;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  position: relative;
  z-index: 10;
  padding: 0 2rem;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.about-image::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: 10px;
  bottom: 10px;
  border: 2px solid var(--accent-primary);
  border-radius: 16px;
  z-index: -1;
  opacity: 0.5;
}

.about-content h2 {
  margin-bottom: 1.5rem;
  color: var(--accent-primary);
}

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

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-3px);
  border-color: var(--accent-primary);
  box-shadow: var(--glow-primary);
}

.social-link img {
  width: 24px;
  height: 24px;
  filter: invert(1);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
  transform: translateX(-50%);
  box-shadow: 0 0 15px var(--accent-primary), 0 0 30px var(--accent-primary);
  z-index: 10;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-content {
  width: 45%;
  padding: 2rem;
  background: rgba(26, 31, 46, 0.9);
  backdrop-filter: blur(20px);
  border: 2px solid var(--accent-primary);
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(100, 181, 246, 0.3);
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px var(--accent-primary), 0 0 50px rgba(100, 181, 246, 0.5);
  border-color: var(--accent-secondary);
}

.timeline-content h3 {
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  text-shadow: 0 0 10px var(--accent-primary);
  position: relative;
  z-index: 10;
}

.timeline-content h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  text-shadow: 0 0 5px var(--text-primary);
  position: relative;
  z-index: 10;
}

.timeline-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.timeline-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  text-shadow: 0 0 3px var(--accent-primary);
  position: relative;
  z-index: 10;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  background: var(--accent-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px var(--accent-primary), 0 0 40px var(--accent-primary);
  z-index: 15;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: rgba(26, 31, 46, 0.8);
  backdrop-filter: blur(20px);
  border: 2px solid var(--accent-primary);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px var(--accent-secondary), 0 0 50px rgba(129, 199, 132, 0.3);
  border-color: var(--accent-secondary);
}

.skill-category h3 {
  color: var(--accent-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

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

.skill-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.skill-item:hover {
  background: rgba(129, 199, 132, 0.15);
  transform: translateX(5px);
  border: 1px solid rgba(129, 199, 132, 0.3);
}

.skill-item img {
  width: 20px;
  height: 20px;
}

/* Projects Section - Optimized */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: rgba(26, 31, 46, 0.8);
  backdrop-filter: blur(10px);
  border: 2px solid var(--accent-primary);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
  transform: translateZ(0);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 30px var(--accent-primary), 0 0 50px rgba(100, 181, 246, 0.3);
  border-color: var(--accent-secondary);
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-content {
  padding: 1.5rem;
}

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

.project-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-tag {
  background: rgba(100, 181, 246, 0.15);
  color: var(--accent-primary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(100, 181, 246, 0.3);
}

.project-links {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.project-links .btn {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
}

/* Contact Section */
.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-email {
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-decoration: none;
  margin-bottom: 2rem;
  display: block;
  transition: all 0.3s ease;
}

.contact-email:hover {
  color: var(--accent-secondary);
  text-shadow: var(--glow-primary);
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .timeline::before {
    left: 20px;
    width: 6px;
    box-shadow: 0 0 15px var(--accent-primary), 0 0 30px var(--accent-primary);
  }
  
  .timeline-item {
    flex-direction: row !important;
  }
  
  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px !important;
    padding: 1.5rem;
  }
  
  .timeline-dot {
    left: 20px;
    width: 30px;
    height: 30px;
    box-shadow: 0 0 20px var(--accent-primary), 0 0 40px var(--accent-primary);
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 4rem 1rem;
  }
  
  .hero {
    padding: 4rem 1rem;
  }
  
  .nav-container {
    padding: 1rem;
  }
  
  .scroll-progress {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  
  .hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.2rem);
  }
  
  .section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
  }
  
  .timeline-content {
    padding: 1rem;
  }
  
  .project-content {
    padding: 1rem;
  }
  
  .skill-category {
    padding: 1.5rem;
  }
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  z-index: 1000;
}

.scroll-progress-bar {
  width: 100%;
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 2px;
  transition: height 0.3s ease;
  box-shadow: var(--glow-primary);
}

/* Loading Animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-text {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--accent-primary);
  animation: loadingPulse 2s ease-in-out infinite;
}

@keyframes loadingPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Content Overlay for Readability */
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.1);
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.05);
  z-index: -1;
  pointer-events: none;
}

/* Ensure all sections have transparent backgrounds */
.section {
  background: transparent !important;
  position: relative;
  z-index: 1;
}

/* Ensure the main container doesn't interfere with background */
.container {
  background: transparent !important;
  position: relative;
  z-index: 1;
}

/* Ensure all content is above the background */
.hero, .section, .navbar, .scroll-progress {
  position: relative;
  z-index: 1;
}
  