/* RESET + GLOBAL */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  overflow-y: scroll; /* Prevent page jump on nav */
}
body {
  font-family: 'Segoe UI', 'Inter', sans-serif;
  background-color: #181a20;
  color: #f1f1f3;
  line-height: 1.6;
  min-height: 100vh;
}
a {
  color: #f6ae2d;
  text-decoration: underline;
}
a:hover {
  color: #fff;
}
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}

/* NAVBAR */
.navbar {
  background: #181a20;
  border-bottom: 1px solid #23242a;
  box-shadow: 0 2px 16px #0003;
  padding: 0;
  position: relative;
  z-index: 99;
}
.navbar-top {
  padding: 12px 0;
}
.nav-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  font-size: 2em;
  font-weight: bold;
  color: #fff;
}
.navbar nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.navbar a {
  color: #b3b9c5;
  font-size: 1.13em;
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 2px;
  transition: color 0.18s;
}
.navbar a.active,
.navbar a:hover {
  color: #fff;
  border-bottom: 2px solid #f1f1f3;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 2em;
  cursor: pointer;
  margin-left: auto;
}

/* PORTAL BUTTON */
.portal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6ae2d;
  color: #000 !important;
  font-size: 1.1em;
  font-weight: 600;
  padding: 12px 12px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.1;
  transition: background 0.18s, color 0.18s, transform 0.14s;
}
.portal-btn:hover {
  background: #fff;
  color: #222 !important;
  transform: scale(1.03);
}
.portal-btn.desktop {
  margin-left: auto;
}
.portal-btn.mobile {
  display: none;
}

/* HERO SECTION */
.hero {
  background: #191a21;
  border-radius: 0 0 36px 36px;
  padding: 64px 0 40px 0;
}
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.hero-text {
  max-width: 500px;
}
.hero-title {
  font-size: 2.7em;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3em;
}
.hero-sub {
  font-size: 1.2em;
  color: #b3b9c5;
  margin-bottom: 32px;
}
.hero-btn {
  display: inline-block;
  background: #f6ae2d;
  color: #181a20;
  font-size: 1.1em;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 28px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, transform 0.14s;
}
.hero-btn:hover {
  background: #fff;
  color: #222;
  transform: scale(1.03);
}
.hero-btn.secondary {
  background: #23242a;
  color: #fff;
}
.hero-img-card {
  background: #16181f;
  border-radius: 32px;
  width: 380px;
  height: 230px;
  box-shadow: 0 8px 32px #0007;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SECTION STYLES */
.section {
  padding: 64px 0 48px 0;
  background-color: #191a21;
  border-radius: 22px;
  margin-top: 48px;
}
.section.alt {
  background-color: #23242a;
}
.section-title {
  text-align: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 16px;
}
.section-desc {
  text-align: left;
  max-width: none;
  padding: 0;
  margin: 0 auto;
  color: #b3b9c5;
  font-size: 1.17em;
}

/* PROJECT GALLERY */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 36px;

}
.project-card {
  background: #22232a;
  border-radius: 19px;
  box-shadow: 0 2px 12px #181a2088;
  padding-bottom: 16px;
  transition: transform 0.14s, box-shadow 0.16s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.project-card:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 8px 24px #404963aa;
}
.project-card img {
  width: 100%;
  height: 152px;
  object-fit: cover;
}
.project-title {
  font-weight: 600;
  font-size: 1.13em;
  margin: 14px 0 11px 0;
  text-align: center;
  padding: 0 10px;
}

/* SERVICE GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
  margin-top: 36px;
}
.service-card {
  background: #22232a;
  border-radius: 18px;
  padding: 30px 22px;
  box-shadow: 0 2px 12px #0004;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.14s, box-shadow 0.16s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px #0006;
}
.service-img {
  width: 250px;
  object-fit: contain;
  border-radius: 12px;
  background: #2a2c33;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px #0002;
}
.service-title {
  font-weight: bold;
  font-size: 1.18em;
  margin: 10px 0 9px 0;
  color: #f1f1f3;
}
.service-desc {
  color: #b3b9c5;
  font-size: 1.07em;
  line-height: 1.55;
  text-align: left;
}

/* CONTACT FORM */
.contact-form {
  margin: 0 auto;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.contact-form label {
  font-weight: 600;
  margin-top: 18px;
  margin-bottom: 4px;
  color: #f1f1f3;
}
.contact-form input,
.contact-form textarea {
  border: 1.5px solid #23242a;
  border-radius: 9px;
  padding: 11px 12px;
  font-size: 1.08em;
  background: #f6f6f8;
  color: #181a20;
  margin-bottom: 12px;
}
.contact-form textarea {
  resize: vertical;
  min-height: 84px;
}

/* FOOTER */
footer {
  background: #191a21;
  color: #f1f1f3;
  text-align: center;
  border-top: 1px solid #23242a;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -2px 8px 0 #23242a55;
  margin-top: 60px;
  padding: 0;
}
.footer-content {
  padding: 30px 0 16px 0;
}
.footer-title {
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 1.15em;
}
.footer-link {
  color: #f1f1f3;
  text-decoration: underline;
  font-size: 1em;
  margin: 0 8px;
}
.footer-copy {
  color: #888;
  font-size: 0.96em;
  margin-top: 8px;
}

/* BACK TO TOP */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #23242a;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6em;
  box-shadow: 0 6px 16px #0007;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
}
#backToTop.show {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1.08);
}

/* RESPONSIVE */
@media (max-width: 700px) {
.nav-toggle {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 999; /* Keeps it above the nav */
  display: block;
  background: none;
  border: none;
  color: white;
  font-size: 2em;
  cursor: pointer;
}
  .navbar nav {
    display: none;
    flex-direction: column;
    background: #2c2f36;
    border-radius: 14px;              /* ← Rounded corners */
    overflow: hidden;                 /* Optional: clip inner corners */
    position: absolute;
    top: 64px;
    left: auto;
    right: 16px;
    width: 70%;
    padding: 20px 0;
    border-bottom: 1px solid #333;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: all 1s ease;        /* Smooth open/close */
    padding: 20px;
  }
  .navbar nav.open {
    display: flex;
  }
  .navbar nav a {
    color: #f1f1f3;
    font-size: 1.1em;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 8px;               /* Rounded buttons */
    transition: background 0.2s;
  }
  .navbar nav a:hover {
  background: #393c46;
  }
  .portal-btn.desktop {
    display: none;
  }
  .portal-btn.mobile {
    display: block;
    padding: 14px 24px;
    text-align: center;
    margin-top: 10px;
  }
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  .hero-img-card {
    margin-top: 20px;
    width: 95%;
    height: auto;
  }
  .services-grid, .project-gallery {
    grid-template-columns: 1fr;
  }
}
.logo-img {
  height: 42px;
  width: auto;
  display: block;
}