@layer fonts {

  /* orbitron-regular - latin */
  @font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 400;
    src: url('/static/fonts/orbitron-v31-latin-regular.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }

  /* orbitron-600 - latin */
  @font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 600;
    src: url('/static/fonts/orbitron-v31-latin-600.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }

  /* orbitron-900 - latin */
  @font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 900;
    src: url('/static/fonts/orbitron-v31-latin-900.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
}

@layer colors {
  :root {
    --c-black: rgb(0, 0, 0);
    --c-white: rgb(255, 255, 255);
    --c-emissive-blue: rgb(28, 235, 255);
    --c-light-gray: rgb(108, 118, 130);
    --c-medium-gray: rgb(71, 78, 87);
    --c-dark-gray: rgb(40, 43, 47);
    --c-bg-dark-gray: rgb(24, 24, 24);
    --color-background-dark: var(--c-black);
    --color-white: var(--c-white);
    --color-emissive-blue: var(--c-emissive-blue);
    --color-light-gray: var(--c-light-gray);
    --color-medium-gray: var(--c-medium-gray);
    --color-dark-gray: var(--c-dark-gray);
  }
}

@layer typography {
  :root {
    --fs-48: calc(48 / 16 * 1rem);
    /*-- calculates what 48px is in rem, where 16px is 1rem --*/
    --fs-38: calc(38 / 16 * 1rem);
    --fs-28: calc(28 / 16 * 1rem);
    --fs-24: calc(24 / 16 * 1rem);
    --fs-22: calc(22 / 16 * 1rem);
    --fs-18: calc(18 / 16 * 1rem);
    --fs-16: calc(16 / 16 * 1rem);
    --fs-12: calc(12 / 16 * 1rem);
    /*-- Mobile first --*/
    --font-size-h1: var(--fs-24);
    --font-size-h2: var(--fs-22);
    --font-size-h3: var(--fs-18);
    --font-size-p: var(--fs-16);
    --font-size-p-sm: var(--fs-16);
    --font-size-footer: var(--fs-12);

    /*-- Tablet media query --*/
    @media (width >=calc(700 / 16 * 1rem)) {
      --font-size-h1: var(--fs-38);
      --font-size-h2: var(--fs-28);
      --font-size-h3: var(--fs-22);
      --font-size-p: var(--fs-18);

    }

    /*-- Laptop media query --*/
    @media (width >=calc(1100 / 16 * 1rem)) {
      --font-size-h1: var(--fs-48);
      --font-size-h2: var(--fs-38);
      --font-size-h3: var(--fs-28);
    }

  }

  h1,
  h2,
  h3 {
    margin: 0;
  }

  h1 {
    font-size: var(--font-size-h1);
    font-weight: 400;
  }

  h2 {
    font-size: var(--font-size-h2);
    font-weight: 900;
  }

  h3 {
    font-size: var(--font-size-h3);
    font-weight: 900;
  }

  p {
    margin: 0;
    font-size: var(--font-size-p);
    font-weight: 400;
    line-height: 1.5;

    &.small {
      font-size: var(--font-size-p-sm);
    }
  }

  a {
    text-decoration: none;
  }
}

@layer global {

  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    margin: 0;
    background: var(--color-background-dark);
    color: var(--color-white);
    font-family: 'Orbitron', Arial, Helvetica, sans-serif;
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
  }

  section {
    padding: 1rem;
  }

  footer {
    background-color: #222;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    color: #777;
  }

  img {
    display: block;
    max-width: 100%;
    height: auto;
  }

  video {
    display: block;
    max-width: 100%;
    height: auto;
  }

  ul {
    list-style: none;
    padding: 0;
  }

  ul li {
    margin-bottom: 1rem;
    padding-left: 1rem;
    position: relative;
  }

  .list-icon {
    width: 40px;
    height: 40px;
  }

}

@layer layout {
  .wrapper {
    /*-- Set up 3 column layout --*/
    display: grid;
    grid-template-columns: 12px 1fr 12px;

    /*
    > target children 
    * wildcard, or all children 
    */
    >* {
      grid-column: 2;
    }

    >.fullbleed {
      grid-column: 1 / -1;
      /* -1 is the last column, or counting right-to-left */
    }

    @media (width >=calc(700 / 16 * 1rem)) {
      grid-template-columns: 1fr min(100% - 80px, 1110px) 1fr;
    }
  }

  .hide-on-mobile {
    @media (width < calc(700 / 16 * 1rem)) {
      display: none;
    }
  }

  .display-on-mobile {
    @media (width >=calc(700 / 16 * 1rem)) {
      display: none;
    }
  }

  .divider {
    position: relative;
    width: 100%;
    height: 10px;
  }

  .div-transparent:before {
    content: "";
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    width: 90%;
    height: 3px;
    background-image: linear-gradient(to right, transparent, var(--color-medium-gray), transparent);
  }

  .div-dot:after {
    content: "";
    position: absolute;
    z-index: 1;
    top: -5px;
    left: calc(50% - 6px);
    width: 12px;
    height: 12px;
    background-color: var(--color-emissive-blue);
    border: 1px solid var(--color-dark-gray);
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px var(--color-light-gray),
      0 0 0 2px var(--color-medium-gray);
  }
}

@layer header {
  header {
    padding: 1rem;
    text-align: center;
  }

  header h1 {
    margin: 0;
  }

  .nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-bar img {
    width: 64px;
    height: 64px;
  }

  .nav-menu-container {
    display: flex;
    align-items: center;
  }

  .nav-title {
    color: var(--c-emissive-blue);
  }

  nav a {
    margin: 0 1rem;
    color: rgb(28, 183, 255);
    text-decoration: none;
    transition: color 1.0s;
  }

  nav a:hover {
    text-decoration: underline;
    color: var(--c-emissive-blue);
  }

  .menu-toggle {
    display: none;
    font-size: 2rem;
    color: var(--c-emissive-blue);
    cursor: pointer;
  }

  .logo {
    color: var(--c-emissive-blue);
  }

  /*-- Language --*/
  .language-switcher {
    padding: 0.5rem;
  }

  #language-select {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
  }


  /*-- Mobile Hamburger Menu --*/
  @media (max-width: 768px) {
    .menu-toggle {
      display: block;
    }

    .nav-bar nav {
      display: none;
      flex-direction: column;
      background-color: var(--c-bg-dark-gray);
      position: absolute;
      top: 70px;
      right: -300px;
      width: 150px;
      transition: right 0.3s ease;
      padding: 1rem;
      z-index: 10;
    }

    .nav-bar a {
      padding: 16px 0;
      ;
    }

    .nav-bar nav.show {
      display: flex;
      right: 20px;
    }

    .logo {
      display: none;
    }
  }

  /*-- fade-in logo animation --*/
  #splash {
    opacity: 0;
    animation: fadeIn 2s ease-in-out forwards;
  }

  @keyframes fadeIn {
    to {
      opacity: 1;
    }
  }

}

@layer button {
  .button {
    font-weight: 900;
    text-transform: uppercase;
    color: var(--color-white);
    border: 0.5rem outset var(--color-white);
    border-radius: 0.25rem;
    width: fit-content;
    padding: 12px 12px;
    transition-property: color, background-color;
    transition: 250ms ease-in-out;

    &:hover {
      color: var(--color-background-dark);
      background-color: var(--color-white);
    }
  }
}

@layer hero {
  .hero {
    border: none;

    .bg-video {
      z-index: -1;

      /* Prevent bg video from being larger then 420px on mobile */
      @media (width < calc(700 / 16 * 1rem)) {
        width: min(100%, 420px);
      }
    }

    .content {
      margin-block-end: 48px;
    }

    .title {
      padding: 20px 0;
    }

    .description {
      padding-block-end: 24px;
    }
  }
}

@layer about {
  #about {
    background-color: var(--color-background-dark);
    border: none;
    padding-top: 32px;

    h2 {
      margin-bottom: 1rem;
    }

    p {
      margin: 16px 0;
    }

    ul {
      list-style: disc;
      list-style-position: inside;
      padding: 0;
    }


  }

  .about-list {
    margin-top: 24px;
    margin-bottom: 24px;
    background-color: rgb(24, 24, 24);
    border-radius: 6px;
    padding: 12px;
  }
}

@layer code-typing {

  /* Add this to your CSS */
  .code-typing {
    background-color: var(--color-background-dark);
    padding: 3rem 2rem;
    color: #0ff;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    text-align: left;
    margin-bottom: 3rem;
  }

  .glass-panelx {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 2rem;
    max-width: 700px;
    min-height: 100px;
    margin: 2rem auto;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    animation: morphPulse 5s ease-in-out infinite;
    transition: border-radius 0.4s ease, box-shadow 0.4s ease;
  }

  .glass-panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 2rem;
    max-width: 700px;
    min-height: 150px;
    margin: auto;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    animation: neonPulse 3s ease-in-out infinite;
  }

  .glass-panel.show {
    opacity: 1;
    transform: translateY(0);
  }

  @keyframes neonPulse {

    0%,
    100% {
      box-shadow: 0 0 10px rgba(0, 255, 255, 0.2), 0 0 30px rgba(0, 255, 255, 0.3);
    }

    50% {
      box-shadow: 0 0 20px rgba(0, 255, 255, 0.4), 0 0 50px rgba(0, 255, 255, 0.6);
    }
  }

  @keyframes morphPulse {
    0% {
      border-radius: 12px;
      box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    }

    25% {
      border-radius: 16px 24px 12px 20px;
      box-shadow: 0 0 40px rgba(0, 255, 255, 0.35);
    }

    50% {
      border-radius: 20px 12px 24px 16px;
      box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    }

    75% {
      border-radius: 14px 18px 20px 12px;
      box-shadow: 0 0 45px rgba(0, 255, 255, 0.4);
    }

    100% {
      border-radius: 12px;
      box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    }
  }

  .terminal {
    display: block;
    font-size: 1.2rem;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow-x: auto;

    @media (max-width: 480px) {
      font-size: 1rem;
    }
  }

  .cursor {
    display: inline-block;
    animation: blink 0.7s steps(2, start) infinite;
  }

  @keyframes blink {

    0%,
    100% {
      opacity: 1;
    }

    50% {
      opacity: 0;
    }
  }

}

@layer services {
  .services {
    padding: 4rem 2rem;
    background-color: rgb(24, 24, 24);
    text-align: center;
  }

  .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }

  .service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: white;
    text-decoration: none;
  }

  .service-card:hover {
    /* box-shadow: 0 0 15px #00ffff, 0 0 25px #00bcd4; */
    box-shadow: 0 0 15px var(--c-emissive-blue), 0 0 25px #00bcd4;
    transform: translateY(-5px);
  }

  .services h2 {
    margin-bottom: 2rem;
  }

  .service-card h3 {
    color: var(--c-emissive-blue);
    font-size: var(--fs-18);
    margin-bottom: 1rem;
  }

  .service-card p {
    font-size: var(--fs-16);
  }

  .service-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
  }

  .service-card i {
    background-color: transparent;
    color: #00bcd4;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
  }

  @keyframes pulse {

    0%,
    100% {
      transform: scale(1);
      text-shadow: 0 0 5px #00bcd4;
    }

    50% {
      transform: scale(1.1);
      text-shadow: 0 0 20px #00bcd4;
    }
  }

  /*-- modal styling --*/
  .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
  }

  .modal-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    color: #e0e0e0;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);

    >p,
    ul {
      line-height: 1.8;
    }
  }

  .modal-content h2 {
    padding: 24px 0;
  }

  .close-btn {
    float: right;
    font-size: 1.5rem;
    cursor: pointer;
    color: #00ffff;
  }

}

@layer industries {
  .industries {
    justify-items: center;
    align-items: center;
    text-align: center;
    padding-top: 48px;
    padding-bottom: 48px;

    >p,
    ul {
      font-size: var(--fs-18);
    }
  }

  .industry-list {
    text-align: start;
  }

  .industry-list .industry-icon {
    font-size: 36px;
  }

}

@layer image-gallery {
  .image-gallery {
    padding: 4rem 2rem;
    color: #e0e0e0;
    text-align: center;
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.2);
    transition: transform 0.3s ease;
  }

  .gallery-grid img:hover {
    transform: scale(1.05);
  }

  .masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-template-rows: masonry;
    gap: 1.5rem;
  }

  .masonry-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.15);
  }

  .masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
  }

  .masonry-item img:hover {
    transform: scale(1.03);
  }


}

@layer blog {
  #blog {
    margin: 2rem 0;
    padding: 2rem;
  }

  .blog-title {
    padding-bottom: 24px;
  }

  .post {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .post h3 {
    margin-top: 0;
  }

  .post .date {
    font-size: 0.9rem;
    color: #888;
  }

  .post a {
    color: var(--color-emissive-blue);
    text-decoration: none;
    font-weight: bold;
  }

  .post a:hover {
    text-decoration: underline;
  }

  .post p,
  ol {
    line-height: 1.5;
    letter-spacing: 0.05em;
  }

  /* Highlight active blog post on scroll */
  :target {
    outline: 2px solid var(--color-emissive-blue);
    outline-offset: 10px;
    animation: pulse 1s ease-out;
  }

  @keyframes pulse {
    0% {
      background-color: #1a1a1a;
    }

    50% {
      background-color: #222;
    }

    100% {
      background-color: #1a1a1a;
    }
  }

  /* Blog.html Back to Top button */
  #topBtn {
    position: fixed;
    bottom: 40px;
    right: 30px;
    display: none;
    z-index: 100;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: #08f;
    color: white;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 4px;
    transition: background 0.3s;
  }

  #topBtn:hover {
    background-color: #0af;
  }
}

@layer contact {
  .contact {
    margin: 2rem 0;
  }

  .contact h2 {
    margin-bottom: 24px;
  }

  .contact-content {
    margin-bottom: 24px;
  }

  .email-link {
    margin-bottom: 72px;
  }

  .email-link a {
    color: var(--color-emissive-blue);
  }
}

@layer footer {
  .footer {
    p {
      font-size: var(--font-size-footer);
    }
  }
}

/*-- Parallax service section --*/
.parallax {
  background: linear-gradient(rgba(20, 20, 20, 0.467), rgba(18, 18, 18, 0.467)), url('/static/images/cell-conveyor-robot-mobile.jpg') no-repeat center center fixed;
  background-size: cover;
  background-attachment: fixed;
  padding: 6rem 2rem;
  color: #e0e0e0;
  text-align: center;
}