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

:root {
  /* Color Palette - Deep Space & Electric Accents */
  --bg-dark: #0a0a0c;
  --bg-card: #13131f;
  --bg-card-hover: #1c1c2e;
  --text-main: #e2e2e5;
  --text-muted: #a0a0b0;
  --accent-primary: #6366f1;
  /* Indigo */
  --accent-secondary: #a855f7;
  /* Purple */
  --accent-glow: rgba(99, 102, 241, 0.4);

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: 'Space Grotesk', sans-serif;
  color: #fff;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

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

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent-text {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
}

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

.btn-outline {
  border: 2px solid var(--accent-primary);
  color: white;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(99, 102, 241, 0.1);
}

/* Navbar */
header {
  height: var(--header-height);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 12, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -1px;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: white;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--header-height);
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-bg-glow {
  position: absolute;
  top: 50%;
  right: -10%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(10, 10, 12, 0) 70%);
  pointer-events: none;
  z-index: -1;
}

/* About & Skills */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 60px;
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.skill-item {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  font-weight: 500;
  transition: 0.3s;
}

.skill-item:hover {
  border-color: var(--accent-primary);
  transform: translateY(-5px);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.project-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.4s ease;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(99, 102, 241, 0.3);
}

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

.project-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

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

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.tag {
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.project-links {
  margin-top: auto;
}

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

/* Contact */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info-card {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: 100%;
}

.contact-form-card {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

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

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

.footer {
  padding: 50px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    /* Mobile menu implementation would go here */
  }

  .hero h1 {
    font-size: 3rem;
  }

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

  .project-detail-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Page Header */
.page-header {
  padding-top: 150px;
  padding-bottom: 50px;
  text-align: center;
  background: radial-gradient(circle at center top, rgba(99, 102, 241, 0.15) 0%, rgba(10, 10, 12, 0) 70%);
}

.page-header h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Timeline (About Page) */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 50px auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

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

.timeline-content {
  background: var(--bg-card);
  padding: 20px 30px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  transition: 0.3s;
}

.timeline-content:hover {
  border-color: var(--accent-primary);
  transform: translateY(-5px);
}

.timeline-date {
  color: var(--accent-primary);
  font-weight: 700;
  margin-bottom: 5px;
  display: block;
}

/* Project Detail View */
.project-detail-section {
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.tech-stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.feature-list {
  list-style-type: none;
  margin-top: 20px;
}

.feature-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: var(--text-muted);
}

.feature-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-secondary);
}

/* Blog/Thoughts Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 30px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.3);
}

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

.blog-date {
  font-size: 0.85rem;
  color: var(--accent-secondary);
  margin-bottom: 10px;
  font-weight: 500;
}

.blog-title {
  font-size: 1.25rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

.blog-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.read-more {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.read-more i {
  transition: transform 0.3s ease;
}

.blog-card:hover .read-more i {
  transform: translateX(5px);
}


/* --- Light Mode Variables --- */
body.light-theme {
  --bg-dark: #f8f9fa;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --accent-glow: rgba(99, 102, 241, 0.15);
}

body.light-theme .nav-links a {
  color: #4b5563;
}

body.light-theme .nav-links a:hover {
  color: var(--accent-primary);
}

body.light-theme header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-theme .footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-theme .project-card,
body.light-theme .contact-info-card,
body.light-theme .contact-form-card,
body.light-theme .timeline-content,
body.light-theme .skill-item,
body.light-theme .blog-card {
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body.light-theme h1,
body.light-theme h2,
body.light-theme h3 {
  color: #111827;
}

/* --- Theme Toggle Button --- */
.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 20px;
  transition: color 0.3s ease;
}

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

/* --- Sticky Resume FAB --- */
.sticky-resume {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--accent-primary);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 25px var(--accent-glow);
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  /* Hidden by default */
}

.sticky-resume.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.sticky-resume:hover {
  background: var(--accent-secondary);
  transform: translateY(-5px) scale(1.1);
}

.sticky-tooltip {
  position: absolute;
  right: 70px;
  background: var(--bg-card);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: 0.3s;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sticky-resume:hover .sticky-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .sticky-resume {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}


/* --- Light Mode Visibility Fixes --- */

/* 1. Fix Invisible Gradient Text (Touch, Experiences) */
body.light-theme .gradient-text {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #111827 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 2. Fix Outline Buttons (Resume) */
body.light-theme .btn-outline {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  font-weight: 600;
}

body.light-theme .btn-outline:hover {
  background: var(--accent-primary);
  color: white;
}

/* 3. Fix Contact Form Inputs */
body.light-theme .form-input,
body.light-theme .form-textarea {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #1f2937;
}

body.light-theme .form-input:focus,
body.light-theme .form-textarea:focus {
  background: #ffffff;
  border-color: var(--accent-primary);
}

/* 4. Fix Section Titles & Headers */
body.light-theme h1,
body.light-theme h2,
body.light-theme h3,
body.light-theme .project-title,
body.light-theme .blog-title {
  color: #111827;
}

body.light-theme .project-desc,
body.light-theme .blog-excerpt,
body.light-theme p {
  color: #4b5563;
}

/* --- DEFINITIONS FOR NEW CLASSES (Replacing inline styles) --- */

/* 1. Projects: Tech Tags */
.tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-right: 8px;
  margin-bottom: 8px;
  /* Dark Mode Defaults */
  background: rgba(99, 102, 241, 0.2);
  color: white;
  border: 1px solid transparent;
}

.tag-purple {
  background: rgba(168, 85, 247, 0.2);
}

/* Light Mode Tags */
body.light-theme .tag {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(99, 102, 241, 0.2);
  font-weight: 600;
}

body.light-theme .tag-purple {
  background: rgba(168, 85, 247, 0.1);
  color: #9333ea;
  border-color: rgba(168, 85, 247, 0.2);
}

/* 2. Achievements: Hero Card */
.achievement-hero-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(10, 10, 12, 0.5) 100%);
  padding: 50px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 80px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
  color: white;
}

.achievement-hero-card .glow-effect {
  position: absolute;
  top: -50px;
  left: -50px;
  width: 150px;
  height: 150px;
  background: var(--accent-primary);
  filter: blur(80px);
  opacity: 0.3;
}

/* Light Mode Hero Card */
body.light-theme .achievement-hero-card {
  background: white;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  color: #1f2937;
}

body.light-theme .achievement-hero-card h2 {
  color: #111827;
  /* Dark title */
}

/* 3. Achievements: Pills Styling */
.achievement-pill {
  padding: 12px 30px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  /* Glassy default */
  color: white;
  font-weight: 500;
  display: flex;
  align-items: center;
  font-size: 1.05rem;
  backdrop-filter: blur(5px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  gap: 8px;
}

/* CGPA Pill - Premium Styling */
.achievement-hero-card .pill-cgpa {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.25) 100%);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
  /* Bright Green */
  font-weight: 800;
  font-size: 1.3rem;
  /* Highlighted Size */
  letter-spacing: 0.5px;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
  position: relative;
  z-index: 1;
  margin-left: 15px;
  /* Spacing */
}

.achievement-hero-card .pill-cgpa:hover {
  transform: scale(1.05);
}

/* Light Mode Pills */
body.light-theme .achievement-pill.pill-date {
  background: white;
  color: #374151;
  border-color: #e5e7eb;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

body.light-theme .achievement-hero-card .pill-cgpa {
  background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
  color: #059669;
  /* Darker Green for Contrast */
  border: 2px solid #10b981;
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.25);
}

/* Pulse Animation for CGPA */
@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.achievement-hero-card .pill-cgpa {
  animation: pulse-green 2s infinite;
}

/* 4. Active Nav Label */
.nav-links a.active {
  color: white;
  /* Dark mode default */
  font-weight: 600;
}

body.light-theme .nav-links a.active {
  color: var(--accent-primary) !important;
}

/* --- INTERACTIVE ANIMATIONS (Point 5 Fix) --- */

/* Scroll Reveal Base State */
.hidden-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* Smooth bounce */
}

/* Scroll Reveal Visible State */
.show-scroll {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid items (optional JS injection, or simple CSS) */

/* Nav Link Sliding Underline */
.nav-links a {
  position: relative;
  padding-bottom: 5px;
}

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

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

/* Footer Polish */
.footer {
  background: linear-gradient(to bottom, var(--bg-card), var(--bg-dark));
  margin-top: 50px;
  padding: 40px 0;
}


/* FIX: Timeline Vertical Line Visibility in Light Mode */
body.light-theme .timeline::after {
  background: rgba(0, 0, 0, 0.1);
}


/* --- PRO POLISH: Project Cards (Fix 4) --- */

.project-detail-section {
  border-bottom: none !important;
  /* Remove lines, use spacing */
  padding: 20px 0;
}

.project-detail-grid {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
  margin-bottom: 40px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-detail-grid:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.4);
}

/* Add a subtle top highlight */
.project-detail-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-detail-grid:hover::before {
  opacity: 1;
}

/* Light Mode Card Overrides */
body.light-theme .project-detail-grid {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body.light-theme .project-detail-grid:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.15);
}


/* IMPACT METRICS (Fix 3) */
.impact-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 15px;
  margin-right: 10px;
  margin-bottom: 5px;
}

body.light-theme .impact-badge {
  background: #ecfdf5;
  color: #059669;
  border-color: #10b981;
}


/* Typewriter Cursor */
.cursor {
  display: inline-block;
  width: 3px;
  background-color: var(--accent-primary);
  animation: blink 1s infinite;
  margin-left: 5px;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}


/* METRICS UPDATE: High Visibility (Fix 3 - Final Polish) */
.impact-badge {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-size: 1.0rem !important;
  font-weight: 700 !important;
  padding: 12px 18px !important;
  margin-bottom: 12px !important;
  border: none !important;
  border-left: 5px solid #10b981 !important;
  /* Distinctive Green Bar */
  background: rgba(16, 185, 129, 0.12) !important;
  color: #a7f3d0 !important;
  /* Brighter Green Text in Dark Mode */
  border-radius: 4px !important;
  /* Sharper look */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.impact-badge:hover {
  transform: translateX(5px);
  background: rgba(16, 185, 129, 0.2) !important;
}

body.light-theme .impact-badge {
  background: #f0fdf4 !important;
  color: #166534 !important;
  /* Dark Green Text in Light Mode */
  border-left-color: #16a34a !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}


/* CASE STUDY FLOW (Fix 6) */
.case-study-flow {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.case-item {
  display: flex;
  gap: 15px;
  margin-bottom: 12px;
  align-items: baseline;
}

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

.case-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
}

.case-label {
  color: var(--text-main);
  font-weight: 700;
  margin-right: 5px;
}

.case-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

body.light-theme .case-study-flow {
  background: #f9fafb;
  border-color: rgba(0, 0, 0, 0.05);
}


/* SCROLL DOWN INDICATOR */
.scroll-down-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-down-indicator a {
  color: var(--text-muted);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.scroll-down-indicator a:hover {
  color: var(--accent-primary);
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }

  40% {
    transform: translateY(-10px) translateX(-50%);
  }

  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}


/* MOBILE MENU STYLES (Fix 8) */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--bg-card);
    /* Glass effect if supported */
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transition: right 0.4s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.active {
    right: 0;
  }

  body.light-theme .nav-links {
    background: rgba(255, 255, 255, 0.95);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
  }
}


/* STICKY NAVBAR SCROLL EFFECT */
header {
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  /* Darker on scroll */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  padding: 10px 0;
  /* Slight shrink for visual feedback */
  backdrop-filter: blur(15px);
}

body.light-theme header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}


/* FOOTER LINKS (Fix 7) */
.footer-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

@media (max-width: 768px) {
  .footer .container {
    flex-direction: column;
    gap: 15px;
  }
}

/* --- TECH MARQUEE (New Feature) --- */
.tech-marquee {
  width: 100%;
  overflow: hidden;
  padding: 30px 0;
  position: relative;
  background: transparent;
  border-radius: 8px;
  /* Optional */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 60px;
  /* Space between items */
  width: max-content;
  animation: marquee-scroll 25s linear infinite;
}

.marquee-item {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  opacity: 0.7;
  transition: all 0.3s ease;
  cursor: default;
}

.marquee-item i {
  font-size: 1.8rem;
  color: var(--accent-secondary);
  /* Icon Color */
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item:hover {
  opacity: 1;
  color: white;
  transform: scale(1.1);
}

.marquee-item:hover i {
  color: var(--accent-primary);
  filter: drop-shadow(0 0 10px var(--accent-primary));
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }

  /* Move by half the width (one full set) */
}

/* Light Mode Support */
body.light-theme .marquee-item {
  color: var(--text-muted);
}

body.light-theme .marquee-item:hover {
  color: var(--text-main);
}

/* --- PREMIUM SKILLS GRID (Replaces Marquee) --- */
.premium-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  max-width: 900px;
  /* Constrain width */
  margin: 0 auto;
}

.skill-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 25px 15px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  position: relative;
  overflow: hidden;
}

/* Icon Styling */
.skill-card i {
  font-size: 2.5rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

/* Text Styling */
.skill-card span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

/* Hover Effects */
.skill-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(99, 102, 241, 0.2);
}

.skill-card:hover i {
  color: var(--accent-secondary);
  transform: scale(1.1);
}

.skill-card:hover span {
  color: white;
}

/* Light Mode Overrides */
body.light-theme .skill-card {
  background: white;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

body.light-theme .skill-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.15);
}

body.light-theme .skill-card:hover span {
  color: var(--accent-primary);
  font-weight: 600;
}