/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Segoe UI", sans-serif;
  background: #f8fafc;
  color: #1e293b;
  line-height: 1.6;
}

/* ---------- Navbar ---------- */

header {
    width: 100%;
    background-color: #2c3e50;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 15px;
    min-height: 50px;
    align-items: center;
}

.nav-bar a {
    color: white;
    text-decoration: none;
    margin: 10px 15px;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-bar a:hover {
    color: #f39c12; /* highlight on hover */
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation Menu */
nav {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    background-color: #2c3e50;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    z-index: 999;
}

nav.active {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px 0;
}

nav h3 {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

nav a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    transition: background-color 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav a:hover {
    background-color: rgba(243, 156, 18, 0.2);
}

/* ---------- Main Side-by-Side Layout ---------- */
.page-layout {
  display: flex;
  max-width: 1200px;
  margin: 40px auto;
  gap: 30px;
  padding: 0 20px;
  align-items: flex-start;
}

/* ---------- Features Box (Left) ---------- */
.features {
  flex: 1; /* left side */
}
.features h3 {
  margin-bottom: 16px;
}
.features ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.features ul li {
  width: 220px; /* smaller horizontal box */
  padding: 10px 14px;
  background: #d0e7ff;

  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s, background 0.2s;
}
.features ul li:hover {
  background: #a8d0ff;
  transform: translateX(4px);
}

/* ---------- 3D Model (Right) ---------- */
.model-box {
  flex: 2;
 border-radius: 10px;
   box-shadow: 0 6px 15px rgba(11, 70, 133, 0.463);
}
.model-box h3 {
  margin-bottom: 12px;
}
.model-box model-viewer {
  width: 100%;
  height: 480px; /* medium size */
  border-radius: 10px;
  background: #fff;
  display: block;
}

/* ---------- Footer ---------- */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 30px 20px;
    text-align: center;
    width: 100%;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-links a {
    color: #f0c92b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #73afef;
    text-decoration: none;
}


/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    /* Hamburger visible on mobile */
    .hamburger {
        display: flex;
    }

    /* Nav bar adjustments for mobile */
    .nav-bar {
        justify-content: flex-start;
        padding: 10px;
    }

    /* Page layout stacked on mobile */
    .page-layout {
        flex-direction: column;
        margin: 20px auto;
        gap: 20px;
        padding: 0 15px;
    }

    /* Features full width on mobile */
    .features ul li {
        width: 100%;
    }

    /* Model viewer smaller on mobile */
    .model-box model-viewer {
        height: 300px;
    }

    /* Footer links stacked on mobile */
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    /* Header margin for fixed nav */
    body {
        padding-top: 0;
    }
}

@media (min-width: 769px) {
    /* Desktop: nav-bar displays normally */
    .nav-bar {
        display: flex;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Hide navigation menu on desktop (show inline) */
    nav {
        position: relative;
        top: auto;
        left: auto;
        max-height: none;
        overflow: visible;
        transition: none;
        background: transparent;
        padding: 0;
    }

    nav h3 {
        display: flex;
        flex-direction: row;
        margin: 0;
        padding: 0;
    }

    nav a {
        display: inline-block;
        padding: 0;
        border: none;
        color: white;
        margin: 0 15px;
    }

    nav a:hover {
        background-color: transparent;
        color: #f39c12;
    }
}
