
body {
  margin: 0;
  font-family: var(--font-family-base);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
}
a:hover, a:focus {
  text-decoration: underline;
}

header {
  background-color: var(--color-primary);
  color: #fff;
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header .logo {
  display: flex;
  align-items: center;
}
header .logo img {
  width: 40px;
  height: 40px;
  margin-right: 0.5rem;
}
header nav {
  display: flex;
  gap: 1rem;
}
header nav a {
  color: #fff;
  font-weight: 600;
  padding: 0.5rem;
}
header nav a:hover,
header nav a.active {
  background-color: var(--color-secondary);
  border-radius: 4px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.nav-toggle span {
  height: 3px;
  width: 25px;
  background-color: #fff;
  margin-bottom: 4px;
  border-radius: 2px;
}

@media (max-width: 768px) {
  header nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--color-primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    display: none;
  }
  header nav.open {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
}

main {
  padding: 2rem 1.5rem;
}
.hero {
  /* Updated hero background to use a more dynamic image highlighting our AI-driven energy theme */
  background: url('../assets/atom-electric2.png') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 5rem 1rem 6rem;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}
.btn {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-text);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}
.btn:hover {
  background-color: #e2b909;
}

.section {
  margin: 3rem 0;
}
.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}
.section p {
  max-width: 800px;
  margin: 0 auto 1.5rem;
  color: var(--color-muted);
}
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.feature {
  flex: 1 1 280px;
  background-color: var(--color-surface);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.feature h3 {
  margin-top: 0;
  color: var(--color-primary);
}
.feature p {
  margin-bottom: 0;
  color: var(--color-muted);
}

footer {
  background-color: var(--color-primary);
  color: #fff;
  padding: 2rem 1.5rem;
  text-align: center;
}
footer a {
  color: var(--color-accent);
}
.social-icons {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.social-icons svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

/* Futuristic Hero Video Section */
.hero-video-section {
  padding: 4rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  background: linear-gradient(180deg, 
    rgba(0, 20, 40, 0.9) 0%, 
    rgba(0, 30, 60, 0.7) 50%, 
    rgba(0, 20, 40, 0.9) 100%);
  position: relative;
  overflow: hidden;
}

.video-container {
  width: 100%;
  max-width: 900px;
  position: relative;
  z-index: 10;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: rgba(0, 12, 24, 0.6);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 200, 255, 0.3);
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-wrapper.expanded {
  transform: scale(1.1);
  box-shadow: 0 0 80px rgba(0, 200, 255, 0.8);
}

.featured-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  opacity: 0.9;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle, 
    rgba(0, 150, 200, 0.05) 0%, 
    rgba(0, 100, 150, 0.1) 50%, 
    rgba(0, 50, 100, 0.2) 100%);
  transition: opacity 0.3s ease;
}

.video-overlay.playing {
  opacity: 0;
  pointer-events: none;
}

.play-button {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, 
    rgba(0, 200, 255, 0.9) 0%, 
    rgba(0, 150, 220, 0.8) 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
  box-shadow: 0 0 40px rgba(0, 200, 255, 0.6);
}

.play-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 60px rgba(0, 200, 255, 0.9);
  background: linear-gradient(135deg, 
    rgba(0, 220, 255, 1) 0%, 
    rgba(0, 180, 240, 0.9) 100%);
}

.play-button svg {
  width: 35px;
  height: 35px;
  color: #ffffff;
  margin-left: 5px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

/* Cherenkov Blue Glow Effect */
.video-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 25px;
  background: linear-gradient(45deg, 
    transparent 30%, 
    rgba(0, 200, 255, 0.1) 50%, 
    transparent 70%);
  animation: energyRipple 3s linear infinite;
  pointer-events: none;
}

.video-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 25px;
  border: 2px solid transparent;
  background: linear-gradient(45deg, 
    rgba(0, 200, 255, 0.6), 
    rgba(0, 150, 255, 0.3), 
    rgba(0, 200, 255, 0.6));
  background-clip: padding-box;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: glowRotate 4s linear infinite;
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 40px rgba(0, 200, 255, 0.6);
  }
  50% {
    box-shadow: 0 0 60px rgba(0, 200, 255, 0.9),
                0 0 80px rgba(0, 150, 255, 0.4);
  }
}

@keyframes energyRipple {
  0% {
    transform: rotate(0deg) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: rotate(180deg) scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: rotate(360deg) scale(1);
    opacity: 0.5;
  }
}

@keyframes glowRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Page dimming overlay */
.page-dimmer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.page-dimmer.active {
  opacity: 1;
  pointer-events: all;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-video-section {
    padding: 2rem 1rem;
    min-height: 400px;
  }
  
  .play-button {
    width: 60px;
    height: 60px;
  }
  
  .play-button svg {
    width: 25px;
    height: 25px;
  }
  
  .video-wrapper.expanded {
    transform: scale(1.05);
  }
}

@media (max-width: 480px) {
  .hero-video-section {
    padding: 1.5rem 0.5rem;
    min-height: 300px;
  }
  
  .video-wrapper {
    border-radius: 15px;
  }
}
