/* Custom Propeties */

:root {
    /* Color  */
  
    --international-orange-engineering: hsl(1, 91%, 37%);
    --cadet-blue-creyola: hsl(222, 14%, 69%);
    --oxford-blue-1: hsl(222, 47%, 15%);
    --oxford-blue-2: hsl(222, 44%, 14%);
    --oxford-blue-3: hsl(222, 50%, 11%);
    --sonic-silver: hsl(0, 0%, 44%);
    --space-cadet: hsl(222, 44%, 18%);
    --pastel-pink: hsl(1, 53%, 75%);
    --eerie-black: hsl(0, 0%, 15%);
    --light-gray: hsl(0, 0%, 80%);
    --white: hsl(0, 0%, 100%);
  
    /* typography */
  
    --ff-chakra-petch: "Chakra Petch", sans-serif;
    --ff-mulish: "Mulish", sans-serif;
  
    --fs-1: 3.5rem;
    --fs-2: 3rem;
    --fs-3: 2.4rem;
    --fs-4: 1.8rem;
    --fs-5: 1.4rem;
    --fs-6: 1.2rem;
  
    --fw-400: 400;
    --fw-600: 600;
    --fw-700: 700;
  
    /* spacing */
    --section-padding: 60px;
  
    /* box shadow */
    --shadow: 0px 0px 100px 0px hsl(216, 9%, 90%);
  
    /* border radius */
    --radius-pill: 100px;
    --radius-circle: 50%;
  
    /* trasnsition */
    --transition: 0.25s ease;
    --cubic-out: cubic-bezier(0.05, 0.83, 0.52, 0.97);
  }
  
  /* Reset  */
  
  *,
  *::before,
  *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  li {
    list-style: none;
  }
  
  a,
  img,
  span,
  button {
    display: block;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  img {
    height: auto;
  }
  
  button {
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
  }
  
  address {
    font-style: normal;
  }
  
  html {
    font-family: var(--ff-mulish);
    font-size: 10px;
    scroll-behavior: smooth;
  }
  
  body {
    background-color: var(--white);
    color: var(--sonic-silver);
    font-size: 1.6rem;
    line-height: 1.5;
  }
  
  :focus-visible {
    outline-offset: 4px;
  }
  
  ::-webkit-scrollbar {
    width: 10px;
  }
  
  ::-webkit-scrollbar-track {
    background-color: hsl(0, 0%, 98%);
  }
  
  ::-webkit-scrollbar-thumb {
    background-color: hsl(0, 0%, 80%);
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background-color: hsl(0, 0%, 70%);
  }
  
  /*  */
  
  .container {
    padding-inline: 16px;
  }
  
  .material-symbols-rounded {
    --fs: 1em;
    font-variation-settings: "FILL" 0, "wght" 600, "GRAD" 0, "opsz" 40;
    font-size: var(--fs);
    width: 1em;
    overflow: hidden;
  }
  
  .has-bg-image {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left;
  }
  
  .section-subtitle {
    max-width: max-content;
    font-family: var(--ff-chakra-petch);
    font-size: var(--fs-5);
    font-weight: var(--fw-600);
    text-transform: uppercase;
    margin-block-end: 12px;
    margin-inline: auto;
  }
  
  .section-subtitle::before {
    content: "";
    display: inline-block;
    height: 15px;
    width: 30px;
    margin-block-end: -2px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
  }
  
  .section-subtitle.\:dark {
    color: var(--white);
  }
  
  .section-subtitle.\:dark::before {
    background-image: url("./text-bar.png");
  }
  
  .section-subtitle.\:light {
    color: var(--international-orange-engineering);
  }
  
  .section-subtitle.\:light::before {
    background-image: url("./text-bar.png");
  }
  
  .section-title {
    text-align: center;
  }
  
  .h1,
  .h2,
  .h3,
  .display-1 {
    font-family: var(--ff-chakra-petch);
    font-weight: var(--fw-700);
    text-transform: uppercase;
  }
  
  .display-1 {
    font-size: var(--fs-1);
  }
  
  .h1 {
    color: var(--white);
    font-size: var(--fs-2);
    line-height: 1.1;
    letter-spacing: 1px;
  }
  
  .h2,
  .h3 {
    color: var(--eerie-black);
    font-weight: var(--fw-600);
    line-height: 1.2;
  }
  
  .h2 {
    font-size: var(--fs-3);
  }
  
  .h3 {
    font-size: var(--fs-4);
  }
  
  .btn {
    background-color: var(--international-orange-engineering);
    color: var(--white);
    max-width: max-content;
    font-family: var(--ff-chakra-petch);
    font-weight: var(--fw-600);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    transition: var(--transition);
    will-change: transform;
  }
  
  .btn:is(:hover, :focus-visible) {
    transform: translate(-5px);
    background-color: var(--oxford-blue-3);
    border-color: var(--white);
  }
  
  .move-anim {
    animation: moving 2s ease-in-out infinite alternate;
  }
  
  @keyframes moving {
    0% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(10px);
    }
  }
  
  .section {
    padding-block: var(--section-padding);
  }
  
  .btn-link {
    font-family: var(--ff-chakra-petch);
    text-transform: uppercase;
    color: var(--international-orange-engineering);
    font-weight: var(--fw-700);
  }
  
  .w-100 {
    width: 100%;
  }
  
  .img-holder {
    aspect-ratio: var(--width) / var(--height);
    background-color: var(--light-gray);
    overflow: hidden;
  }
  
  .img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .has-scrollbar {
    display: flex;
    align-items: center;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
    padding-block-end: 20px;
  }
  
  .scrollbar-item {
    min-width: 100%;
    scroll-snap-align: start;
  }
  
  .has-scrollbar::-webkit-scrollbar {
    height: 16px;
  }
  
  .has-scrollbar::-webkit-scrollbar-track {
    background-color: var(--pastel-pink);
    border-radius: 20px;
  }
  
  .has-scrollbar::-webkit-scrollbar-thumb {
    background-color: var(--international-orange-engineering);
    border-radius: 20px;
    border: 3px solid var(--pastel-pink);
  }
  
  .has-scrollbar::-webkit-scrollbar-button {
    width: 15%;
  }
  
  /* Header */
  
  .header .btn {
    display: none;
  }
  
  .header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 40px 15px;
    padding-inline-start: 40px;
    z-index: 4;
  }
  
  .header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo img {
    width: 100px;
  }
  
  .nav-toggle-icon {
    width: 30px;
    height: 2px;
    background-color: var(--white);
    transition: var(--transition);
  }
  
  .nav-toggle-icon:not(:last-child) {
    margin-block-end: 7px;
  }
  
  .nav-toggle-btn.active .icon-2 {
    opacity: 0;
    transform: translateX(-10px);
  }
  
  .nav-toggle-btn.active .icon-1 {
    transform: rotate(45deg) translate(8px, 8px);
  }
  
  .nav-toggle-btn.active .icon-3 {
    transform: rotate(-45deg) translate(4px, -4px);
  }
  
  .navbar {
    position: absolute;
    top: 100px;
    right: 30px;
    background-color: var(--space-cadet);
    min-width: max-content;
    width: 30%;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s var(--cubic-out);
    z-index: 2;
  }
  
  .navbar.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition-duration: 0.5s;
  }
  
  .navbar-link {
    font-family: var(--ff-chakra-petch);
    font-size: var(--fs-5);
    text-transform: uppercase;
    color: var(--white);
    padding: 10px 20px;
    transition: var(--transition);
  }
  
  .navbar-link:is(:hover, :focus-visible) {
    background-color: var(--white);
    color: var(--international-orange-engineering);
  }
  
  /* Main */
  
  .teras {
    position: relative;
    padding-block-start: calc(var(--section-padding) + 70px);
    text-align: center;
    z-index: 1;
    overflow: hidden;
  }
  
  .teras .container {
    display: grid;
    gap: 30px;
  }
  
  .teras .section-subtitle {
    text-transform: unset;
  }
  
  .teras .section-text {
    color: var(--white);
    margin-block: 14px 18px;
  }
  
  .teras .btn {
    margin-inline: auto;
  }
  
  .teras-banner {
    aspect-ratio: var(--width) / var(--height);
  }
  
  .teras-banner img {
    position: relative;
    bottom: 0;
    left: 300px;
    right: 0;
    width: 80% !important;
    z-index: -1;
  }
  
  /* media quaries */
  
  /* 575px */
  
  @media (min-width: 575px) {
    :root {
      --fs-2: 4rem;
      --fs-3: 2.8rem;
      --fs-4: 2rem;
    }
    .container {
      max-width: 540px;
      width: 100%;
      margin-inline: auto;
    }
  
    .section-subtitle {
      --fs-5: 1.6rem;
    }
  
    .h2 {
      font-weight: var(--fw-700);
    }
    .teras .container {
      max-width: unset;
    }
  
    .teras-content {
      max-width: 520px;
      margin-inline: auto;
    }
  
    .teras .section-text {
      font-size: 1.8rem;
    }
  }
  
  /* 768px */
  
  @media (min-width: 768px) {
    :root {
      --fs-1: 4rem;
      --fs-2: 5rem;
      --fs-3: 3.4rem;
    }
  
    .container,
    .teras-content {
      max-width: 720px;
    }
  
    .btn {
      padding: 16px 32px;
    }
  
    .section-subtitle {
      --fs-5: 1.8rem;
    }
  
    .section-title:not(.h1) {
      max-width: 500px;
      margin-inline: auto;
    }
  
    .teras {
      --section-padding: 120px;
    }
  
    .teras .section-text {
      margin-block-end: 30px;
    }
  }
  
  @media (max-width: 768px) { 
    #newsletter {
      padding: 20px !important; 
    }
    
    #newsletter .button {
        margin-top: 20px; 
        text-align: center;
        padding-left: 50px;
    }
  
  
    #newsletter .btn {
        padding: 12px 24px; 
        display: inline-flex;
        align-items: center;
        justify-content: center;
        
    }
  }
  
  /* 992px */
  
  @media (min-width: 992px) {
    :root {
      --fs-2: 4.4rem;
      --fs-3: 3.8rem;
      --fs-4: 2.2rem;
      --section-padding: 100px;
    }
  
    .container {
      max-width: 960px;
    }
  
    .section-text,
    .card-text {
      font-size: 1.8rem;
    }
  
    .nav-toggle-btn {
      display: none;
    }
  
    .header .container {
      gap: 30px;
    }
  
    .navbar,
    .navbar.active {
      all: unset;
      display: block;
      margin-inline-start: auto;
    }
  
    .navbar-list {
      display: flex;
    }
  
    .navbar-link {
      position: relative;
      font-size: unset;
    }
  
    .navbar-link:is(:hover, :focus-visible) {
      background: none;
      color: var(--white);
    }
  
    .navbar-link::after {
      content: url("./Assets/nav-before-img.png");
      position: absolute;
      bottom: -8px;
      left: 50%;
      transform: translateX(-50%);
      opacity: 0;
    }
  
    .navbar-link:is(:hover, :focus-visible)::after {
      opacity: 1;
    }
  
    .header .btn {
      display: flex;
      padding: 12px 24px;
      font-size: var(--fs-5);
    }
  
    .teras {
      text-align: left;
      padding-block-end: 130px;
    }
  
    .teras .container {
      max-width: 1000px;
      grid-template-columns: 1fr 1fr;
    }
  
    .teras :is(.section-subtitle, .btn) {
      margin-inline: 0;
    }
  
    .teras .section-title {
      text-align: left;
    }
  }
  
  /* 1200px */
  
  @media (min-width: 1200px) {
    :root {
      --fs-2: 5rem;
      --fs-3: 4.6rem;
    }
  
    .container,
    .teras .container {
      max-width: 1140px;
    }
  
    .btn {
      padding: 18px 36px;
    }
  
    .btn .material-symbols-rounded {
      --fs: 1.3em;
    }
  
    .header {
      padding-block: 25px;
    }
  
    .logo img {
      width: 128px;
    }
  
    .header .btn {
      font-size: unset;
      padding-block: 15px;
    }
  
    .teras {
      padding-block: 250px 180px;
    }
  
    .teras .container {
      grid-template-columns: 1fr 0.9fr;
    }
  
    .teras .section-text {
      font-size: 2rem;
      padding-inline-end: 120px;
    }
  }
  
  /* 1400px */
  
  @media (min-width: 1400px) {
    :root {
      --fs-2: 6rem;
      --section-padding: 140px;
    }
  
    :is(.header, .teras) .container {
      max-width: 1280px;
    }
  
    .section-subtitle::before {
      height: 20px;
      margin-inline-end: 5px;
    }
  
    .header .btn {
      padding: 18px 36px;
    }
  
    .teras {
      padding-block: 280px;
    }
  
    .teras .section-text {
      padding-inline-end: 90px;
    }
  }

  @media (max-width: 1000px) {
    .teras-banner img {
      display: none !important;
    }
  }
  
  
  