/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BASE */
body {
  font-family: 'Orbitron', sans-serif;
  background: #141319;
  color: #ffffff;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

/* HEADER */
.header {
  position: fixed;
  width: 100%;
  background: rgba(20, 19, 25, 0.9);
  border-bottom: 1px solid #2a2a2a;
  z-index: 100;
}

.nav {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  height: 40px;
}

.logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.logo:hover img {
  opacity: 0.85;
}

/* NAV LINKS */
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: white;
  font-size: 0.85rem;
  letter-spacing: 1px;
  padding-bottom: 5px;
}

/* underline hover effect */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #747399;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* HERO */
.video-hero {
  min-height: 100vh;
  position: relative;
  padding-top: 80px;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    rgba(20,19,25,0.85),
    rgba(10,37,64,0.75)
  );
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: auto;
  text-align: center;
  padding: 120px 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  color: #cfcfd4;
  margin-bottom: 30px;
}

/* BUTTON */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid #747399;
  color: #747399;
  text-decoration: none;
  letter-spacing: 2px;
}

/* SECTIONS */
.section {
  padding: 100px 20px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.section.dark {
  background: #18171f;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

/* CARDS */
.card {
  background: #1b1a22;
  padding: 30px;
  border: 1px solid #2b2b35;
  border-radius: 14px;
}
.img-container img {
    width: 100%;
    height: autopx;
    object-fit: contain; /* ✅ shows full image */
    background-color: #111; /* fills empty space */
}

.image {
  width: 100%;
  height: auto;
  }

/* LOGO MARQUEE */
.logo-marquee {
  margin-top: 40px;
  overflow: hidden;
  border-top: 1px solid #2b2b35;
  border-bottom: 1px solid #2b2b35;
}

.logo-track {
  display: flex;
  gap: 80px;
  align-items: center;
  animation: scroll-logos 45s linear infinite;
  width: max-content;
  padding: 30px 0;
}

.logo-track img {
  height: 60px;
  opacity: 0.85;
}

.logo-track img:hover {
  opacity: 1;
}

@keyframes scroll-logos {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
/* PROJECTS */
.projects {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-top: 50px;
}

.project {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: center;
}

.project img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #2b2b35;
}

.project h3 {
  margin-bottom: 12px;
  letter-spacing: 1px;
}

/* Mobile */
@media (max-width: 768px) {
  .project {
    grid-template-columns: 1fr;
  }

  .project img {
    height: 220px;
  }
}
/* SCROLL ANIMATIONS */
.animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate.visible {
  opacity: 1;
}
/* INTERACTIVE DIAGRAM */
.diagram {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.node {
  background: #1b1a22;
  border: 1px solid #2b2b35;
  padding: 30px;
  text-align: center;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.node:hover {
  transform: translateY(-5px);
  border-color: #747399;
}

#diagram-info {
  margin-top: 30px;
  color: #cfcfd4;
  min-height: 40px;
  text-align: center;
}
``
/* PAGE LOAD FADE */
#page-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

#page-fade.visible {
  opacity: 1;
  transform: translateY(0);
}
.logo-track img {
    height: 60px;
    margin: 0 25px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo-track a:hover img {
    transform: scale(1.1);
    opacity: 0.