:root {
  /* Core Palette Refinement: Slightly softer darks, richer primary, vibrant accents */
  --primary: #8B5CF6; /* A more vibrant, but still deep, purple. Think 'royal' */
  --primary-dark: #6D28D9; /* A darker shade of the new primary for hover/active states */
  --accent: #FF6B35; /* Retained: Vibrant orange for key highlights */
  --accent-secondary: #F7931E; /* Retained: Complementary orange for secondary accents */
  --accent-glow: rgba(255, 107, 53, 0.2); /* Slightly less intense glow for subtler effect */

  /* Text Colors: Balanced for readability on refined dark backgrounds */
  --text-light: #E0E7FF; /* Soft white/off-white for primary body text, easy on eyes */
  --text-dark: #cdcdcd; /* Dark gray for elements that need to appear 'light' against dark/accent elements */

  /* Backgrounds: The true core of the sophisticated moody vibe - deep but not oppressive */
  --bg-light: #1A202C; /* Deep, muted blue-gray for main background, less harsh than pure black */
  --bg-mid: #45536c; /* Slightly lighter muted blue-gray for cards/sections, offering subtle contrast */
  --bg-dark: #171923; /* Darkest tone for footer or deepest elements, close to black but still with a tint */
  --bg-glass: rgba(255, 255, 255, 0.08); /* Lighter glass effect, visible but blends */
  --bg-glass-dark: rgba(26, 32, 44, 0.7); /* Darker glass for header/nav, consistent with bg-light */

  /* Gradients: Adapted for the new moody vibe */
  --gradient-primary: linear-gradient(135deg, #6B46C1 0%, #805AD5 100%); /* Purple gradient matches new primary */
  --gradient-accent: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%); /* Retained: Accent gradient */
  --gradient-hero: url('../assets/img/hero.jpg');
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%); /* Very subtle glass gradient */

  /* Font and Transition variables remain largely the same, as they are independent of color scheme */
  --font-header: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions & Spacing - Retaining your settings */
  --transition-speed: 0.4s;
  --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
  --border-radius-lg: 24px;

  --blur-intensity: 20px;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;

  /* Shadows: Adjusted for dark mode visibility and depth, using subtle dark tones */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 15px rgba(0,0,0,0.3);
  --shadow-lg: 0 15px 45px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 25px var(--accent-glow); /* Slightly softer glow */
  --shadow-inset: inset 0 2px 4px rgba(0,0,0,0.1);
}

/* --- Global & Base Styles (Now permanently Dark) --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-light); /* Main background: deep, muted blue-gray */
  color: var(--text-dark); /* Primary text: soft white */
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Subtle Background Gradients - Adjusted for Dark Mode */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.02) 0%, transparent 50%), /* Even subtler glow */
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.02) 0%, transparent 50%), /* Primary color tint */
    radial-gradient(circle at 40% 80%, rgba(247, 147, 30, 0.02) 0%, transparent 50%);
  z-index: -1;
  /* pointer-events: none; */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* Typography */
a {
  color: var(--primary); /* Links now use our new vibrant purple */
  text-decoration: none;
  transition: all var(--transition-speed) var(--transition-smooth);
  position: relative;
}

a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent); /* Accent gradient underline */
  transition: width 0.3s ease;
}

a:hover::before {
  width: 100%;
}

a:hover,
a:focus {
  transform: translateY(-1px);
  outline: none;
  color: var(--primary-dark); /* Slightly darker primary on hover */
}

/* Glassmorphism Header (always dark) */
header {
  background: var(--bg-glass-dark); /* Darker glass for header, consistent with new dark background */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* Subtler white border for separation */
  color: var(--text-dark); /* Header text is soft white */
  padding: var(--spacing-sm) var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md); /* Adjusted shadow for depth */
  transition: all 0.3s ease;
}

header.scrolled {
  background: var(--bg-dark); /* Even darker on scroll for stronger effect */
  backdrop-filter: blur(30px);
  transform: translateY(0);
}

.header-branding {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  animation: slideInLeft 0.8s var(--transition-bounce);
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1;
  /* Retained gradient for the main branding title to keep it vibrant */
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Enhanced Headshot */
.headshot {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  transition: all 0.3s ease;
}

.headshot:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
  filter: brightness(1.1);
}

/* Navigation with Hover Effects */
nav {
  display: flex;
  gap: 1.5rem;
  animation: slideInRight 0.8s var(--transition-bounce);
}

header nav a {
  color: var(--text-dark); /* Nav links are soft white */
  font-weight: 600;
  font-size: 1rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--border-radius-lg);
  transition: all var(--transition-speed) var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

header nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-accent); /* Accent gradient fill on hover */
  transition: left 0.3s ease;
  z-index: -1;
}

header nav a:hover::before {
  left: 0;
}

header nav a:hover,
header nav a:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--text-light); /* On hover, text becomes light (off-white) */
}

header nav a.active {
  background: var(--gradient-accent);
  color: var(--text-light); /* Active link text also uses dark gray for contrast */
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}

/* Main Content */
main {
  flex-grow: 1;
  padding: calc(80px + var(--spacing-lg)) 0 var(--spacing-lg);
  margin-top: 0;
}

section {
  margin-bottom: var(--spacing-xl);
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  font-family: var(--font-header);
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  padding-left: 1rem;
  color: var(--primary); /* Section titles now use the vibrant purple */
  position: relative;
  overflow: hidden;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--gradient-accent);
  border-radius: 3px; /* Added border-radius to match surrounding elements if applicable */
  animation: slideDown 0.6s ease forwards;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  animation: slideRight 0.8s ease 0.3s forwards;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

@keyframes slideRight {
  to { width: 100%; }
}

/* Enhanced Buttons with Micro-interactions */
.button-link {
  display: inline-block;
  background: var(--gradient-accent);
  color: var(--text-light); /* Button text uses the dark gray for contrast with accent */
  padding: 1rem 2rem;
  border-radius: var(--border-radius-lg);
  font-weight: 600;
  user-select: none;
  transition: all var(--transition-speed) var(--transition-bounce);
  cursor: pointer;
  text-align: center;
  border: none;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.button-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2); /* Slightly less opaque ripple */
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.button-link:hover::before {
  width: 300px;
  height: 300px;
}

.button-link:hover,
.button-link:focus {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  outline: none;
}

.button-link:active {
  transform: translateY(-2px) scale(1.02);
}

/* Button Variants */
.btn-primary {
  background: var(--gradient-primary); /* Primary button uses primary gradient */
  border: 2px solid transparent;
  color: var(--text-light); /* Primary button text: soft white */
}

.btn-secondary {
  background: var(--gradient-accent); /* Secondary button uses accent gradient */
  border: 2px solid transparent;
  color: var(--text-light); /* Secondary button text: dark gray */
}

.btn-outline {
  background: transparent;
  color: var(--primary); /* Outline buttons use the vibrant primary purple */
  border: 2px solid var(--primary); /* And border with it */
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: var(--gradient-accent);
  color: var(--text-light); /* On hover, text becomes the dark gray */
  border-color: transparent;
}

.hero-actions {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Enhanced Hero Section */
.hero-section {
  background: var(--gradient-hero); /* IMPORTANT: Replace with a 'moody-dark-hero.jpg' image */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  color: var(--text-dark); /* Hero text is soft white */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100vh;
  padding: var(--spacing-xl) var(--spacing-sm);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Slightly less opaque overlay for more image visibility */
  z-index: 1;
  /* pointer-events: none; */
}

.hero-content {
  position: relative;
  z-index: 2;
  background: rgba(45, 55, 72, 0.75); /* Hero content box uses bg-mid tint for softness */
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle white border for definition */
}

.hero-content h1 {
  font-size: 4rem;
  color: var(--text-dark); /* Hero heading is soft white */
  margin-bottom: var(--spacing-sm);
  /* Adjusted gradient for hero title to ensure it pops on dark background */
  background: linear-gradient(45deg, #fff, var(--accent), #fff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content .tagline {
  font-size: 1.5rem;
  max-width: 800px;
  margin: 0 auto var(--spacing-md) auto;
  color: var(--text-dark); /* Tagline also uses the soft white */
}

/* Enhanced Cards with Glassmorphism */
.code-card,
.project-card {
  background: var(--bg-glass); /* Using the lighter glass variant */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  /* The primary border will now be transparent to allow the pseudo-element to render correctly */
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md); /* Adjusted shadow for darker backdrop */
  transition: all var(--transition-speed) var(--transition-smooth);
  position: relative;
  overflow: hidden;
  color: var(--text-dark); /* Ensure card text is soft white */
}

/* Pseudo-element for the accent border that respects border-radius */
.code-card::after,
.project-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px; /* The width of the accent line */
  height: 100%;
  background: var(--gradient-accent); /* Apply the accent gradient here */
  border-top-left-radius: var(--border-radius-lg); /* Apply radius to match card */
  border-bottom-left-radius: var(--border-radius-lg); /* Apply radius to match card */
  transition: all var(--transition-speed) var(--transition-smooth);
  z-index: 1000; /* Place it behind the content but in front of the main card background */
}

.code-card:hover::after,
.project-card:hover::after {
  /* On hover, if you want it to expand or change, you can modify it here */
  width: 8px; /* Example: make it slightly wider on hover */
  box-shadow: 2px 0 10px rgba(255, 107, 53, 0.4); /* Add a subtle shadow to the border itself */
}


.code-card::before,
.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 48%, var(--accent-glow) 50%, transparent 52%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1; /* Ensure it's below the accent border if they overlap */
}

.code-card:hover::before,
.project-card:hover::before {
  opacity: 0.1;
}

.code-card:hover,
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), var(--shadow-glow); /* Shadows remain impactful */
}


/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-title {
  font-family: var(--font-header);
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
  background: var(--gradient-accent); /* Project titles are accent gradient */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.project-tech {
  font-size: 0.9rem;
  color: var(--accent-secondary); /* Project tech is secondary accent */
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.project-impact {
  font-weight: bold;
  color: var(--text-light) !important; /* Impact text uses the light text color */
  margin-top: 0.75rem;
  padding: 0.5rem;
  background: var(--bg-mid); /* Slightly lighter dark background for this element */
  border-radius: var(--border-radius);
  border-left: 3px solid var(--accent);
  text-decoration: none; /* Explicitly remove any text decoration */
  -webkit-font-smoothing: antialiased; /* Ensure crisp text rendering */
  -moz-osx-font-smoothing: grayscale;
}

/* Enhanced Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-md);
}

.skill-category {
  background: var(--bg-mid); /* Skills categories use the mid-dark background */
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08); /* Slightly more visible border */
  transition: all 0.3s ease;
  color: var(--text-dark); /* Ensure skill category text is soft white */
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.skill-category h3 {
  color: var(--primary); /* Skill headings use the new vibrant purple */
  font-size: 1.4rem;
  margin-bottom: var(--spacing-sm);
  text-align: center;
}

.skill-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
 
.skill-category li {
  background: var(--bg-light); /* Individual skill items are the main background color */
  border-left: 3px solid var(--accent);
  border-radius: var(--border-radius); /* Ensure list items have rounded corners */
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  box-shadow: var(--shadow-sm); /* Adjusted shadow for darker backdrop */
  transition: all 0.3s ease;
  cursor: pointer;
  color: var(--text-dark); /* Skill list text is soft white */
}

.skill-category li:hover {
  transform: translateX(5px);
  border-left-width: 5px;
  box-shadow: var(--shadow-md);
}

/* --- Contact Form Styling --- */
.contact-form-container {
  max-width: 800px;
  margin: var(--spacing-xl) auto; /* Add margin top/bottom for separation */
  padding: 2rem;
  background: var(--bg-glass); /* Uses the lighter glass effect */
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
  color: var(--text-dark); /* Ensure text within form container is readable */
}

.contact-form-container h3 {
  color: var(--primary); /* Section title for the form */
  font-size: 1.6rem;
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* Spacing between form groups */
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* Spacing between label and input */
}

.contact-form label {
  font-weight: 600;
  color: var(--text-light); /* Labels are slightly lighter for better contrast */
  font-size: 1.1rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  padding: 1rem;
  font-size: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.15); /* Slightly more visible border for inputs */
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05); /* Very subtle light background for inputs */
  color: var(--text-light); /* Input text is soft white */
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(205, 205, 205, 0.6); /* Lighter placeholder text for visibility */
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  transform: translateY(-2px);
}

.contact-form textarea {
  resize: vertical; /* Allow vertical resizing */
  min-height: 120px; /* Minimum height for the textarea */
}

.contact-form .button-link {
  align-self: center; /* Center the submit button */
  margin-top: var(--spacing-md);
  width: fit-content; /* Make button fit its content */
}

/* Existing Contact Links for Social Media */
.contact-links {
  display: flex;
  flex-direction: column; /* Stack links vertically on smaller screens */
  gap: var(--spacing-md);
  margin-top: var(--spacing-md); /* Space from form */
  align-items: center; /* Center items for single column layout */
}

.contact-links h3 {
  color: var(--primary);
  font-size: 1.6rem;
  margin-bottom: var(--spacing-xs);
  text-align: center;
}

@media (min-width: 768px) {
  .contact-links {
    flex-direction: row; /* Row layout on larger screens */
    justify-content: center; /* Center items in a row */
  }
}

/* Enhanced Footer */
.main-footer {
  background: var(--bg-dark); /* Footer is the darkest background */
  color: var(--text-dark); /* Footer text is soft white */
  padding: var(--spacing-lg) 0;
  text-align: center;
  margin-top: auto;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(var(--blur-intensity));
  -webkit-backdrop-filter: blur(var(--blur-intensity));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent); /* Footer top line is accent gradient */
}

.footer-links {
  margin-top: var(--spacing-sm);
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-dark); /* Footer links are soft white */
  transition: all var(--transition-speed);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.05); /* Subtle glass background for links */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.footer-links a:hover {
  color: var(--accent-secondary); /* Secondary accent on hover */
  background: rgba(255, 107, 53, 0.15); /* More visible accent on hover */
  transform: translateY(-2px);
}

/* Enhanced Mobile Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.hamburger .bar {
  width: 100%;
  height: 3px;
  background: var(--primary); /* Hamburger bars now use the vibrant primary purple */
  border-radius: 2px;
  transition: all 0.3s var(--transition-bounce);
}

.hamburger.is-active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.is-active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content .tagline {
    font-size: 1.2rem;
  }

  .hero-section {
    min-height: 80vh;
    padding: var(--spacing-lg) var(--spacing-xs);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .hamburger {
    display: flex;
  }

  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-glass-dark); /* Mobile nav background is dark glass */
    backdrop-filter: blur(var(--blur-intensity));
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-sm) 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Subtle top border */
  }

  header nav.active-mobile-nav {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  header nav a {
    padding: 1rem 1.5rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* Subtle separator for mobile links */
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content .tagline {
    font-size: 1rem;
  }

  .hero-section {
    min-height: 70vh;
  }

  main {
    padding-top: calc(70px + var(--spacing-md));
  }
}

/* Advanced Animations */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
  40%, 43% { transform: translateY(-10px); }
  70% { transform: translateY(-5px); }
  90% { transform: translateY(-2px); }
}

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Loading animation for initial page load */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark); /* Loader background is now your main dark background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* --- HONEYPOT FIELD FOR BOT PREVENTION --- */
.honeypot-field {
    position: absolute;   /* Take it out of normal document flow */
    left: -9999px;        /* Move it far off-screen */
    width: 1px;           /* Make it extremely small */
    height: 1px;
    overflow: hidden;     /* Hide any overflow */
    opacity: 0;           /* Make it completely invisible */
    pointer-events: none; /* Prevent any mouse events */
}
/* Ensure label and input are treated as blocks for proper positioning/hiding */
.honeypot-field label,
.honeypot-field input {
    display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}