@import url('./variables.css');
@import url('./reset.css');
@import url('./typography.css');
@import url('./layout.css');
@import url('./components.css');
@import url('./animations.css');

body {
  overflow-x: hidden;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border-bottom: 1px solid var(--surface-alt);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.99);
}

.nav-container {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: var(--space-4) var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-base);
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--secondary);
}

.logo span {
  color: var(--secondary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav-menu a {
  font-weight: 500;
  color: var(--text-primary);
  transition: color var(--transition-base);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: width var(--transition-base);
}

.nav-menu a:hover {
  color: var(--secondary);
}

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

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all var(--transition-base);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.footer {
  background-color: var(--primary);
  color: white;
  padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-8);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer-section h4 {
  margin-bottom: var(--space-4);
  color: white;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--space-2);
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-base);
}

.footer-section ul li a:hover {
  color: var(--secondary);
}

.footer-bottom {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: var(--space-8) var(--space-8) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: white;
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero {
    padding-top: 120px;
  }
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.section-subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.bg-light {
  background-color: var(--background-alt);
}

.bg-white {
  background-color: var(--background);
}

.bg-dark {
  background-color: var(--primary);
  color: white;
}

.text-center {
  text-align: center;
}

.error-message {
  color: var(--error);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}

.form-input.error,
.form-textarea.error,
.form-select.error {
  border-color: var(--error);
}

.loading {
  opacity: 0.6;
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  margin-bottom: var(--space-8);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--secondary);
  transition: color var(--transition-base);
}

.breadcrumb a:hover {
  color: var(--secondary-dark);
}

.breadcrumb-separator {
  color: var(--text-tertiary);
}

.code-block {
  background-color: var(--primary);
  color: var(--secondary);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.metric-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  text-align: center;
}

.metric-value {
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: var(--space-2);
}

.metric-label {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
}

.tech-spec {
  display: flex;
  justify-content: space-between;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--surface-alt);
}

.tech-spec-label {
  font-weight: 600;
  color: var(--text-primary);
}

.tech-spec-value {
  color: var(--text-secondary);
}
