/* Base Styles */
:root {
  /* Color System */
  --color-primary-50: #f5f3ff;
  --color-primary-100: #ede9fe;
  --color-primary-200: #ddd6fe;
  --color-primary-300: #c4b5fd;
  --color-primary-400: #a78bfa;
  --color-primary-500: #8b5cf6;
  --color-primary-600: #7c3aed;
  --color-primary-700: #6d28d9;
  --color-primary-800: #5b21b6;
  --color-primary-900: #4c1d95;
  
  --color-neutral-50: #fafafa;
  --color-neutral-100: #f4f4f5;
  --color-neutral-200: #e4e4e7;
  --color-neutral-300: #d4d4d8;
  --color-neutral-400: #a1a1aa;
  --color-neutral-500: #71717a;
  --color-neutral-600: #52525b;
  --color-neutral-700: #3f3f46;
  --color-neutral-800: #27272a;
  --color-neutral-900: #18181b;
  
  --color-accent-300: #ffd8be;
  --color-accent-400: #ffb088;
  --color-accent-500: #ff9466;
  --color-accent-600: #ff7d45;
  
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  
  --body-bg: #0f0a1e;
  --text-color: #e9e9ec;
  --text-color-muted: #a1a1aa;
  
  /* Typography */
  --font-family: 'Poppins', sans-serif;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  
  /* Spacing (8px system) */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-24: 6rem;    /* 96px */
  
  /* Other */
  --border-radius-sm: 0.25rem;
  --border-radius: 0.5rem;
  --border-radius-md: 0.75rem;
  --border-radius-lg: 1rem;
  
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
  
  --max-width: 1200px;
  --header-height: 80px;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Adjust this value based on your header height */
}

body {
  font-family: var(--font-family);
  line-height: 1.5;
  background-color: var(--body-bg);
  color: var(--text-color);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: scroll;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

button, 
.button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-8);
  position: relative;
  color: var(--color-neutral-50);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary-400), var(--color-primary-600));
  border-radius: 4px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background-color: rgba(15, 10, 30, 0.8);
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
}

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

/* Logo styles */
.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-neutral-50);
  font-weight: 700;
  font-size: var(--font-size-xl);
}

.logo img {
  height: 40px;
  width: auto;
  margin-right: var(--space-2);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-link {
  font-size: var(--font-size-base);
  font-weight: 500;
  position: relative;
  padding: var(--space-1) 0;
  color: var(--color-neutral-300);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary-500);
  transition: width var(--transition-normal);
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--color-neutral-50);
}

.contact-btn {
  background: linear-gradient(to right, var(--color-primary-600), var(--color-primary-700));
  padding: var(--space-2) var(--space-4);
  border-radius: var(--border-radius);
  color: var(--color-neutral-50);
  font-weight: 500;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.3);
}

.contact-btn::after {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--color-neutral-50);
  transition: var(--transition-fast);
}

/* Footer */
.footer {
  background-color: var(--color-neutral-900);
  padding: var(--space-8) 0;
  margin-top: var(--space-16);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, 
    transparent, 
    var(--color-primary-600), 
    transparent
  );
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}

.footer-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.footer-logo img {
  height: 32px;
  width: auto;
}

.footer-links ul {
  display: flex;
  gap: var(--space-6);
}

.footer-links a {
  color: var(--color-neutral-300);
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-neutral-50);
}

.copyright {
  text-align: center;
  color: var(--color-neutral-500);
  font-size: var(--font-size-sm);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-neutral-800);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .nav-list {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: 0;
    flex-direction: column;
    background-color: rgba(15, 10, 30, 0.95);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: height var(--transition-normal);
    padding: 0;
    opacity: 0;
    z-index: 99;
  }

  .nav-list.active {
    height: calc(100vh - var(--header-height));
    padding: var(--space-6) 0;
    opacity: 1;
  }

  .hamburger {
    display: flex;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

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

  .hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .footer-content {
    flex-direction: column;
    gap: var(--space-4);
  }
  
  .footer-links ul {
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
  }

  .footer-logo img {
    height: 28px;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 60px;
  }
  
  .section-title {
    font-size: var(--font-size-2xl);
  }
  
  .footer {
    padding: var(--space-6) 0;
    margin-top: var(--space-8);
  }
}

/* Ensure sections have proper spacing for scroll targets */
section {
  scroll-margin-top: 80px; /* Should match the scroll-padding-top value */
}