/* ==========================================================================
   MXP Solutions - Dark Cyberpunk Theme
   ========================================================================== */

/* CSS Custom Properties */
:root {
  /* Backgrounds */
  --bg-primary: #0a0a0f;
  --bg-secondary: #0d0d14;
  --bg-tertiary: #12121a;
  --bg-card: #15151f;
  --bg-hover: #1a1a24;
  
  /* Accents - muted, professional */
  --accent-primary: #3d7a7a;
  --accent-secondary: #4a5568;
  --accent-tertiary: #5a4a6a;
  --accent-subtle: #2d4a4a;
  
  /* Text */
  --text-primary: #c8c8d0;
  --text-secondary: #9a9aaa;
  --text-muted: #6a6a7a;
  --text-highlight: #d8d8e0;
  
  /* Borders */
  --border-subtle: #1f1f2a;
  --border-light: #2a2a35;
  
  /* Effects */
  --glow-subtle: rgba(61, 122, 122, 0.15);
  --glow-hover: rgba(61, 122, 122, 0.25);
  
  /* Spacing */
  --nav-height: 70px;
  --section-padding: 80px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

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

/* ==========================================================================
   Interactive Background Canvas
   ========================================================================== */

#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: background var(--transition-medium);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-highlight);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo span {
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-primary);
  transition: width var(--transition-medium);
}

.nav-link:hover {
  color: var(--text-highlight);
}

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

.nav-link.active {
  color: var(--text-highlight);
}

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

/* Mobile Navigation */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-fast);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-medium);
    border-bottom: 1px solid var(--border-subtle);
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-link {
    padding: 16px 0;
    width: 100%;
    border-bottom: 1px solid var(--border-subtle);
  }
}

/* ==========================================================================
   Main Content
   ========================================================================== */

.main-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-top: var(--nav-height);
}

/* ==========================================================================
   Hero Section (Main Page with Slideshow)
   ========================================================================== */

.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--section-padding) 24px;
  position: relative;
}

.hero-content {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text-highlight);
  letter-spacing: -1px;
}

.hero-title .highlight {
  color: var(--accent-primary);
  text-shadow: 0 0 30px var(--glow-subtle);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-primary);
  color: var(--text-highlight);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: var(--transition-medium);
}

.hero-cta:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  box-shadow: 0 0 30px var(--glow-hover);
}

/* Slideshow */
.slideshow-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-tertiary);
}

.slideshow-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.slideshow-slide.active {
  opacity: 1;
}

.slideshow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) saturate(0.8);
}

.slideshow-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 15, 0.3) 0%,
    rgba(61, 122, 122, 0.1) 100%
  );
  pointer-events: none;
}

.slideshow-indicators {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slideshow-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  opacity: 0.5;
}

.slideshow-indicator.active {
  background: var(--accent-primary);
  opacity: 1;
}

@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .slideshow-container {
    max-width: 600px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   Page Section (Subpages)
   ========================================================================== */

.page-section {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--section-padding) 24px;
}

.page-container {
  max-width: 900px;
  width: 100%;
}

.page-header {
  margin-bottom: 48px;
  text-align: center;
}

.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-highlight);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.page-content {
  background: rgba(18, 18, 26, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 48px;
}

.page-content h2 {
  font-size: 1.5rem;
  color: var(--text-highlight);
  margin-top: 32px;
  margin-bottom: 16px;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.page-content ul {
  list-style: none;
  margin-bottom: 16px;
}

.page-content ul li {
  color: var(--text-secondary);
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px;
}

.page-content ul li::before {
  content: '›';
  position: absolute;
  left: 8px;
  color: var(--accent-primary);
}

.page-content a {
  color: var(--accent-primary);
  border-bottom: 1px solid transparent;
}

.page-content a:hover {
  border-bottom-color: var(--accent-primary);
}

@media (max-width: 768px) {
  .page-content {
    padding: 32px 24px;
  }
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-card {
  text-align: center;
  padding: 60px 48px;
}

.contact-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-hover);
  border: 1px solid var(--border-light);
  border-radius: 50%;
}

.contact-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent-primary);
}

.contact-email {
  font-size: 1.5rem;
  color: var(--text-highlight);
  font-weight: 500;
}

.contact-email:hover {
  color: var(--accent-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  position: relative;
  z-index: 1;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 24px 32px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-section h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-highlight);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

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

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.footer-section p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal a:hover {
  color: var(--text-primary);
}

@media (max-width: 968px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 568px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Subtle animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.fade-in-delay-1 {
  animation-delay: 0.1s;
  opacity: 0;
}

.fade-in-delay-2 {
  animation-delay: 0.2s;
  opacity: 0;
}

.fade-in-delay-3 {
  animation-delay: 0.3s;
  opacity: 0;
}
