html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #111;
  color: #eee;
  line-height: 1.6;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4rem 2rem;
  background: #1e1e1e;
  flex-wrap: wrap;
}

.intro {
  max-width: 500px;
}

h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

p {
  font-size: 1.2rem;
}

.btn {
  background-color: #00ffd1;
  color: #000;
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.3s;
}
.btn:hover {
  background-color: #00c9a9;
}

section {
  padding: 3rem 2rem;
  background: #181818;
  border-top: 1px solid #333;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #00bfff;
}

ul {
  list-style: square;
  padding-left: 1.5rem;
}

footer {
  background: #0f0f0f;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #aaa;
}

a {
  color: #4dc7ff;
}

a:hover {
  text-decoration: underline;
}

/* 3D Pyramid Styles (preserved) */
.stage {
  transform: scale(0.85);
  margin-top: 30px;
  margin-right: 50px;
  width: 150px;
  height: 150px;
  position: relative;
  perspective: 1200px;
  perspective-origin: 50% 50%;
}

.pyramid3d {
  width: 150px;
  height: 150px;
  transform-style: preserve-3d;
  transform: rotateX(75deg) rotate(65deg);
  animation: turnPyramid 10s linear infinite;
}

.triangle {
  width: 0;
  height: 0;
  background: none;
}

.triangle:before {
  content: "";
  position: absolute;
  height: 0;
  width: 0;
  border-style: solid;
  border-width: 176px 75px 0 75px;
}

.side1 { transform: translateX(0) rotateY(115.2deg) rotateZ(90deg); }
.side2 { transform: translateX(150px) rotateZ(90deg) rotateX(64.8deg); }
.side3 { transform: translateZ(0) rotateX(64.8deg); }
.side4 { transform: translateY(150px) rotateX(115.2deg); }

.side1:before { border-color: rgba(115, 115, 0, 0.3) transparent transparent transparent; }
.side2:before { border-color: rgba(20, 90, 225, 0.3) transparent transparent transparent; }
.side3:before { border-color: rgba(255, 0, 0, 0.3) transparent transparent transparent; }
.side4:before { border-color: rgba(0, 255, 255, 0.3) transparent transparent transparent; }

@keyframes turnPyramid {
  100% { transform: rotateX(75deg) rotate(425deg); }
}

/* Fix for GIF alignment */
.animated-gif {
  display: block;
  max-width: 150px;
  width: 100%;
  height: auto;
  margin: 2rem auto;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    align-items: center;
  }
  .stage {
    margin: 2rem auto 0;
  }
  .intro {
    text-align: center;
  }
  .btn {
    display: block;
    margin: 1rem auto;
  }
}
/* Navigation Styles */
header {
  position: sticky;
  top: 0;
  background: #111;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  color: #ffffff;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  color: #ffffff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: all 0.3s ease;
  cursor: pointer;
  text-shadow: 0 0 5px #00ffd1, 0 0 10px #00ffd1;
}

.logo:hover {
  transform: scale(1.1) rotate(-1deg);
  text-shadow: 0 0 10px #00ffd1, 0 0 20px #00ffd1;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background: #00ffd1;
  left: 0;
  bottom: 0;
  transition: width 0.3s ease;
}

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

/* Responsive menu - optional */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    background-color: #111;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    display: none;
  }
  .nav-links.show {
    display: flex;
  }
}
@media (max-width: 600px) {
  .intro h1 {
    font-size: 1.8rem;
  }
  .intro p {
    font-size: 1rem;
  }
  .btn {
    padding: 0.6rem 1rem;
  }
}
.cad-slideshow {
  text-align: center;
  margin-top: 2rem;
}

.slideshow {
  position: relative;
  max-width: 500px;
  margin: 1rem auto;
}

.slideshow img {
  width: 100%;
  display: none;
  border-radius: 8px;
}

.slideshow .prev,
.slideshow .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 255, 209, 0.7);
  border: none;
  padding: 0.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #000;
  border-radius: 50%;
}

.slideshow .prev { left: 10px; }
.slideshow .next { right: 10px; }

.slideshow .prev:hover,
.slideshow .next:hover {
  background-color: rgba(0, 255, 209, 1);
}

/* Monkey Project Gallery */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  padding: 3rem 2rem;
  background: #181818;
  border-top: 1px solid #333;
}


