/* 
  DMX Facade Lighting - Premium Dark Mode Design System 
*/

:root {
  /* Colors */
  --bg-dark: #0a0a0f;
  --bg-card: rgba(25, 25, 35, 0.6);
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  
  /* Gradients */
  --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --accent-purple: linear-gradient(135deg, #b06ab3 0%, #4568dc 100%);
  --glow-color: rgba(79, 172, 254, 0.4);
  
  /* Effects */
  --glass-border: 1px solid rgba(255, 255, 255, 0.05);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --backdrop-blur: blur(12px);
  
  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Glassmorphism Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  transition: all 0.4s ease;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  z-index: 1;
}

.nav-links a::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--accent-gradient);
  border-radius: 30px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
  box-shadow: 0 4px 15px var(--glow-color);
}

.nav-links a:hover, .nav-links a.active {
  color: #fff;
}

.nav-links a:hover::before, .nav-links a.active::before {
  opacity: 1;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 5%;
  position: relative;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.6;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #0a0a0f 0%, rgba(10,10,15,0.4) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  animation: fadeUp 1s ease-out;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 15px var(--glow-color);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 172, 254, 0.6);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  margin-left: 1rem;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* Sections */
.section {
  padding: 6rem 5%;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 4rem;
  font-size: 1.1rem;
}

/* Cards (Glassmorphism) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-card);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.15);
}

.card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover .card-img {
  transform: scale(1.05);
}

.card-content {
  padding: 2rem;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.card-link {
  color: #4facfe;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.card-link::after {
  content: '→';
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.card-link:hover::after {
  transform: translateX(5px);
}

/* Decorative Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.5;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: #4facfe;
  top: -50px;
  right: -50px;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: #b06ab3;
  bottom: 10%;
  left: -100px;
}

/* Footer */
footer {
  background: #050508;
  padding: 4rem 5% 2rem;
  border-top: var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col ul a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: var(--text-primary);
  margin: 4px 0;
  border-radius: 3px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(10, 10, 15, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.4s ease;
    backdrop-filter: var(--backdrop-blur);
    border-left: var(--glass-border);
    z-index: 1000;
  }

  .nav-links.nav-active {
    right: 0;
  }

  .nav-links li {
    margin: 1.5rem 0;
  }

  .toggle span:nth-child(1) {
    transform: rotate(-45deg) translate(-7px, 7px);
  }
  .toggle span:nth-child(2) {
    opacity: 0;
  }
  .toggle span:nth-child(3) {
    transform: rotate(45deg) translate(-8px, -8px);
  }
  
  .btn-outline {
    margin-left: 0;
    margin-top: 1rem;
    display: block;
    width: fit-content;
  }
}

/* Particle Canvas Background */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3; /* Behind everything */
  pointer-events: none;
}

/* Hero Slideshow */
.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out, transform 10s ease-out; /* Very smooth crossfade and slow pan/zoom */
  transform: scale(1.1); /* Start slightly zoomed in */
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1); /* Zoom out slowly while active */
}

.hero {
  position: relative;
}

.hero-overlay {
  z-index: 1 !important;
}

.hero-content {
  z-index: 2;
  position: relative;
}
