/* ========== CSS CUSTOM PROPERTIES ========== */
:root {
  /* Colors */
  --primary-color: #6366f1;
  --secondary-color: #ec4899;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --white: #ffffff;
  --black: #000000;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
}

/* ========== BODY PADDING FOR FIXED HEADER ========== */
body {
  padding-top: 80px !important;
  margin-top: 0 !important;
}

html {
  scroll-padding-top: 80px;
}

/* Ensure consistent spacing across all pages */
body.index-page,
body.about-page,
body.passion-page,
body.project-page,
body.contact-page {
  padding-top: 80px !important;
  margin-top: 0 !important;
}

/* Override any conflicting main content padding */
.main-content,
.content-wrapper,
.passion-section,
.about-section,
.project-section,
.contact-section {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ========== MODERN NAVIGATION ========== */
.modern-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(25px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.6s ease-out;
  height: 80px;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  height: 80px;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
}

.logo-img {
  height: 40px;
  width: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  padding: 3px;
}

.logo-img:hover {
  transform: scale(1.08) rotate(2deg);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.85rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 10px 16px;
  border-radius: 25px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
  color: white;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  transform: translateY(-2px);
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 25px;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
  opacity: 1;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  transition: var(--transition-normal);
  border-radius: 2px;
}

.nav-toggle-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle-active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-container {
    padding: 8px var(--space-md);
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-sm);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-link {
    width: 100%;
    text-align: center;
    padding: var(--space-md);
    border-radius: 12px;
  }
  
  .nav-toggle {
    display: flex;
  }
}
