/* #region Global Styles & Imports */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Ubuntu:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Ubuntu:wght@400;500;700&family=JetBrains+Mono:wght@400;500&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  scroll-behavior: smooth;
}
/* #endregion */

/* #region Custom Scroll Bar CSS */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #125179;
  border-radius: 12px;
  transition: all 0.3s ease;

}

::-webkit-scrollbar-thumb:hover {
  background: #0E2431;
}
/* #endregion */

/* #region Navbar Styling */
nav {
  width: 100%;
  padding: 20px 0;
  z-index: 998;
  transition: all 0.3s ease;
  font-family: 'Ubuntu', sans-serif;
  background: #125179;
}

nav .navbar {
  width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: auto;
}

nav .navbar .logo a {
  font-weight: 500;
  font-size: 35px;
  color: white;
}

nav .navbar .menu {
  display: flex;
  position: relative;
}

nav .navbar .menu li {
  list-style: none;
  margin: 0 15px;
}

.navbar .menu a {
  font-size: 22px;
  font-weight: 500;
  color: white;
  padding: 6px 0;
  transition: all 0.4s ease;
}

.navbar .menu a:hover {
  color: #c56902;
}

.navbar .media-icons a {
  color: white;
  font-size: 18px;
  margin: 0 6px;
}

.navbar.active {
  position: fixed;
  width: 250px;
  background-color: #125179;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar.active .logo {
  display: none;
}

.navbar.active .menu {
  left: 0;
  top: 0;
  max-width: 8em;
  padding-top: 60px;
}

.navbar.active .menu a {
  color: #ecf0f1;
}

.navbar.active .menu a:hover {
  color: #155365;
}

.navbar.active .media-icons {
  display: flex;
  justify-content: center;
  /*margin-top: 20px;*/
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
}

.navbar.active .media-icons a {
  color: white;
  font-size: 18px;
  margin: 0 6px;
}
/* #endregion */

/* #region Plots styling */

*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  scroll-behavior: smooth;
}

:root {
  --navy:    #125179;
  --navy-dk: #0E2431;
  --orange:  #c56902;
  --white:   #ffffff;
  --bg:      #f5f8fa;
  --card-bg: #ffffff;
  --border:  #dde4ea;
  --mono:    'JetBrains Mono', monospace;
}

body {
  background: var(--bg);
  font-family: 'Poppins', sans-serif;
  color: var(--navy-dk);
  min-height: 100vh;
  display: flex; flex-direction: column;
}

.container {
  flex: 1;
  padding: 48px 5% 80px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.sim-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(18,81,121,.07);
}

.sim-card__header {
  padding: 28px 32px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.sim-card__header-text h2 {
  font-family: 'Ubuntu', sans-serif;
  font-size: 20px; font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.sim-card__header-text p {
  font-size: 13px; color: #6b7f8e;
}

.params {
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center;
}
.params__label {
  font-size: 11px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: #6b7f8e; margin-right: 4px;
}
.param-pill {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
}
.param-pill span { color: var(--orange); font-weight: 500; }
.param-pill input[type="range"] {
  width: 100%;
  accent-color: var(--navy);
  cursor: pointer;
}

.sim-card__footer {
  padding: 24px 32px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.btn-run {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--navy);
  color: var(--white);
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 12px 28px;
  font-family: 'Ubuntu', sans-serif;
  font-size: 16px; font-weight: 500;
  cursor: pointer;
  transition: background .25s, border-color .25s, color .25s;
}
.btn-run:hover:not(:disabled) {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}
.btn-run:disabled { opacity: .55; cursor: not-allowed; }
.btn-run i { font-size: 15px; }

.status {
  font-family: var(--mono);
  font-size: 13px;
  color: #6b7f8e;
  display: flex; align-items: center; gap: 8px;
}
.status.running { color: var(--orange); }
.status.success { color: #1a7a4a; }
.status.error   { color: #b91c1c; }

@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}

.plot-area {
  padding: 32px;
  min-height: 340px;
  display: flex; align-items: center; justify-content: center;
}

.plot-placeholder {
  text-align: center;
  color: #aab5be;
}
.plot-placeholder i { font-size: 48px; margin-bottom: 12px; display: block; }
.plot-placeholder p { font-size: 14px; }

.plot-image {
  display: none;
  width: 100%;
  border-radius: 8px;
}
.plot-image.visible { display: block; }

.error-box {
  display: none;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 20px 24px;
  color: #7f1d1d;
  font-size: 14px;
  max-width: 480px;
  text-align: center;
}
.error-box.visible { display: block; }
.error-box i { font-size: 22px; color: #b91c1c; display: block; margin-bottom: 8px; }

.sim-card__plot-wrap { border-top: 1px solid var(--border); }

footer {
  background: var(--navy);
  padding: 15px 0;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}
.footer_ul { display: flex; justify-content: center; list-style: none; gap: 30px; }
.footer_ul a { font-size: 16px; color: var(--white); transition: color .2s; }
.footer_ul a:hover { color: var(--orange); text-decoration: underline; }

.scroll-button a {
  position: fixed; bottom: 20px; right: 20px;
  color: var(--white); background: var(--navy);
  padding: 7px 12px; font-size: 18px;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0,0,0,.12);
  display: none; z-index: 999;
}

@media (max-width: 700px) {
  .sim-card__header { flex-direction: column; }
  .plot-area { padding: 20px; min-height: 220px; }
  .sim-card__footer { flex-direction: column; align-items: flex-start; }
  .navbar .menu { gap: 16px; }
  .navbar .menu a { font-size: 15px; }
}


/* #endregion */

/* #region Footer*/

footer {
  background: #125179;
  padding: 15px 0;
  text-align: center;
  padding: 15px 0;
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  font-family: 'Poppins', sans-serif;
  z-index: 999;
}

footer .footer_ul {
  font-size: 17px;
  display: flex;
  justify-content: center;
  list-style: none;
  margin: auto;
}

.footer .footer_ul li {
  margin: 0 15px;
}

footer .footer .footer_ul a {
  font-weight: 250;
  font-size: 22px;
  padding: 6px 0;
  transition: all 0.2s ease;
  color: white;
}

footer .footer_ul a:hover {
  text-decoration: underline;
}

/* #endregion */

/* #region Media Queries */
@media (max-width: 1190px) {
  section .content {
    width: 85%;
  }
}

@media (max-width: 1050px) {
  .about .about-details {
    justify-content: center;
    flex-direction: column;
  }

  .about .about-details .left {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .about-details .right {
    width: 90%;
    margin: 40px 0;
  }

  .contact .boxes .box {
    margin: 20px 0;
    width: calc(100% / 2 - 20px);
  }
}

@media (max-width: 900px) {
  .about .left img {
    height: 350px;
    width: 350px;
  }
}

@media (max-width: 750px) {
  nav .navbar {
    width: 90%;
  }

  nav .navbar .menu {
    position: fixed;
    left: -100%;
    top: 0;
    background: #125179;
    height: 100vh;
    max-width: 400px;
    width: 100%;
    padding-top: 60px;
    flex-direction: column;
    align-items: center;
    transition: all 0.5s ease;
  }

  nav .navbar .menu a {
    font-size: 23px;
    display: block;
    color: #fff;
    margin: 10px 0;
  }

  nav .navbar .media-icons {
    display: none;
  }

  nav .menu-btn,
  .navbar .menu .cancel-btn {
    display: block;
  }

  .home .text-two {
    font-size: 65px;
  }

  .home .text-three {
    font-size: 35px;
  }

  .contact .contact-details {
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .contact-details .text {
    width: 100%;
    margin-bottom: 100px;
  }

  .contact-details .boxes {
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .contact .boxes .box {
    margin: 20px 0;
    width: 100%;
  }

  .contact .text {
    width: 100%;
  }
}

/* #endregion */
