/* ========== FONT DEFINITIONS ========== */
@font-face {
  font-family: "Hilmar";
  src: url("fonts/Hilmar-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Hilmar";
  src: url("fonts/Hilmar-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Hilmar";
  src: url("fonts/Hilmar-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}

/* ========== GLOBAL STYLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Hilmar", sans-serif;
}

:root {
  --primary-color: #6F63E9;
  --secondary-color: #FFFFFF;
  --background-color: #000000;
  --font-black: #000;
  --accent-color: #85838E;
}

body {
  position: relative;
  background-color: var(--background-color);
  overflow-x: hidden;
}

/* ========== NAVBAR STYLES ========== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  left: 0;
  margin: 2em;
  z-index: 1000;
  transition: background-color 0.5s ease, transform 0.5s ease, opacity 0.5s ease;
}

.logo {
  font-size: 2em;
  font-weight: 700;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.logo .x {
  color: var(--secondary-color);
  position: relative;
  margin: 0 2px;
}

.logo .x::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -20%;
  width: 5px;
  height: 150%;
  background: var(--secondary-color);
  transform: rotate(34deg) translateX(-80%);
}

/* ========== BUTTON STYLES ========== */
.btn-lets-talk {
  font-size: 1.05em;
  font-weight: bold;
  padding: 0.8em 2em;
  border-radius: 50px;
  border: none;
  position: relative;
  overflow: hidden;
  background: var(--secondary-color);
  transition: border-radius 0.4s ease;
  cursor: pointer;
}

.btn-lets-talk::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  transition: bottom 0.4s ease;
  z-index: 0;
}

.btn-lets-talk:hover {
  border-radius: 0;
}

.btn-lets-talk:hover::before {
  bottom: 0;
}

.btn-lets-talk span {
  color: var(--font-black);
  position: relative;
  z-index: 1;
}

/* ========== HERO SECTION STYLES ========== */
.hero {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100vh;
  background: var(--background-color);
}

.hero-left-col {
  width: 45%;
  margin: 2em;
}

.hero-heading {
  position: relative;
  line-height: 0.9em;
  text-transform: uppercase;
  font-size: 4.8em;
  font-weight: 300;
  letter-spacing: -4px;
  color: var(--secondary-color);
}

/* Rolling Text Animation */
.text-roller {
  display: inline-block;
  height: 80px;
  overflow: hidden;
  position: relative;
  vertical-align: top;
  width: 100%;
}

.rolling-text {
  position: absolute;
  animation: roll 6s infinite;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.rolling-text span {
  display: block;
  line-height: 80px;
}

@keyframes roll {

  0%,
  10% {
    top: 0;
  }

  20%,
  30% {
    top: -80px;
  }

  40%,
  70% {
    top: -160px;
  }

  80%,
  100% {
    top: 0;
  }
}

/* Hero Images */
.hero-right-col {
  display: grid;
  width: 50%;
  grid-template-columns: repeat(2, 1.2fr);
  gap: 15px;
}

.hero-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.hero-img:hover {
  transform: scale(1.05);
}

/* ========== OVERLAPPING SECTION STYLES ========== */
.overlaping-section {
  display: flex;
  position: relative;
  z-index: 2;
  margin-top: 50vh;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}

.overlaping-left {
  display: flex;
  flex-direction: column;
  justify-content: end;
  width: 50%;
  background: var(--background-color);
  min-height: 100vh;
  padding: 2em;
}

.overlaping-heading {
  font-weight: 200;
  color: var(--secondary-color);
  font-size: 4.8em;
  letter-spacing: -3px;
  width: 60%;
  text-align: left;
}

.paragraph {
  margin-top: 10px;
  font-size: 1.5em;
  color: var(--secondary-color);
}

.sub-paragraph {
  font-size: 1.5em;
  color: var(--accent-color);
}

.overlaping-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.4em;
  width: 50%;
  background: var(--primary-color);
}

.btn-row {
  margin: 1em;
  display: flex;
  flex-wrap: wrap;
}

.btn-black {
  background-color: var(--background-color);
  color: var(--primary-color);
  font-weight: 400;
  border: none;
  font-size: 2.2em;
  padding: 0.4em 0.6em;
  margin: 5px;
  cursor: pointer;
}

.btn-book-call {
  border: none;
  position: relative;
  cursor: pointer;
  width: 300px;
  padding: 0.8em;
  font-size: 1.2em;
  font-weight: 600;
  border-radius: 50px;
  background: var(--background-color);
  color: var(--secondary-color);
  margin-top: 2em;

  overflow: hidden;
  z-index: 1;
}

.btn-book-call::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--secondary-color);
  transition: left 0.4s ease;
  z-index: -1;
}

.btn-book-call:hover::before {
  left: 0;
}

.btn-book-call:hover {
  color: var(--font-black);
}

span {
  color: var(--primary-color);
}

/* ========== IMAGE STYLES ========== */
.image img {
  width: 100%;
  border-radius: 12px;
}

/* ========== RESPONSIVE STYLES ========== */
/* Large screens (1400px and up) */
@media screen and (min-width: 1400px) {
  .overlaping-heading {
    font-size: 5em;
    width: 70%;
  }

  .paragraph {
    font-size: 2em;
  }

  .sub-paragraph {
    font-size: 1.9em;
  }

  .hero {
    height: 60vh;
    padding: 2em;

  }

  .hero-left-col {
    width: 30%;
  }

  .hero-heading {
    font-size: 5.8em;
    font-weight: 300;
  }

  .overlaping-heading {
    color: var(--secondary-color);
    font-size: 5em;
    font-weight: 300;
    letter-spacing: -3px;
    width: 70%;
  }

  .paragraph {
    font-size: 2em;
    color: var(--secondary-color);
  }

  .sub-paragraph {
    font-size: 1.9em;
    color: var(--accent-color);
  }
}

/* Tablets and smaller desktops (1024px and below) */
@media screen and (max-width: 1024px) {
  .overlaping-section {
    flex-direction: column;
    margin-top: 30vh;
  }

  .overlaping-left,
  .overlaping-right {
    width: 100%;
    min-height: auto;
  }

  .overlaping-heading {
    width: 100%;
    font-size: 3.5em;
  }

  .hero {
    flex-direction: column;
    height: 30vh;
    align-items: flex-start;
    padding: 1em;
  }

  .hero-left-col {
    width: 50%;
  }

  .hero-heading {
    font-size: 4em;
    line-height: 1.1;
    margin-bottom: 1.5em;
  }

  .rolling-text span {
    line-height: 1.2em;
  }

  .text-roller {
    height: 1.2em;
  }

  @keyframes roll {

    0%,
    10% {
      top: 0;
    }

    20%,
    30% {
      top: -1.2em;
    }

    40%,
    70% {
      top: -2.4em;
    }

    80%,
    100% {
      top: 0;
    }
  }

  .hero-right-col {
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 2em;
  }
}

/* Smaller tablets (768px and below) */
@media screen and (max-width: 768px) {
  .overlaping-heading {
    font-size: 3em;
  }

  .paragraph,
  .sub-paragraph {
    font-size: 1.2em;
  }

  .btn-black {
    font-size: 1.5em;
  }

  .btn-book-call {
    width: 100%;
    max-width: 300px;
  }

  .btn-row {
    margin: 0.5em;
  }

  .hero {
    padding: 0;
  }

  .hero-left-col {
    width: 62%;
  }

  .logo {
    font-size: 1.5em;
  }

  .hero-heading {
    font-size: 3.6em;
  }

  .hero-right-col {
    grid-template-columns: repeat(4, 1fr);
  }

  .btn-lets-talk {
    padding: 0.6em 1.5em;
    font-size: 0.9em;
  }
}

/* Mobile devices (480px and below) */
@media screen and (max-width: 480px) {
  .overlaping-heading {
    font-size: 2.5em;
  }

  .btn-black {
    font-size: 1.2em;
    padding: 0.3em 0.5em;
  }

  .hero {
    height: 80vh;
  }

  .hero-heading {
    font-size: 3em;
  }

  .hero-left-col {
    width: 70%;
  }

  .hero-right-col {
    grid-template-columns: repeat(2, 1fr);
  }

  .rolling-text span {
    line-height: 1em;
  }

  .text-roller {
    height: 1em;
  }

  @keyframes roll {

    0%,
    10% {
      top: 0;
    }

    20%,
    30% {
      top: -1em;
    }

    40%,
    70% {
      top: -2em;
    }

    80%,
    100% {
      top: 0;
    }
  }
}

/*Section 3 Work Section*/

/* Work Section */

.section3 {
  background-color: #d1d3dd;
  /* width: 98%; */
  margin: 1em auto;
  padding: 70px 0px 30px 20px;
}

.section3-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 10px;
  margin-bottom: 30px;
}

.work-heading {
  font-size: 70px;
  font-weight: 300;
}

.left-arrow:hover,
.right-arrow:hover {
  cursor: pointer;
}

.section3-showcase {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 20px;
}

.work {
  flex: 0 0 calc((100% / 3) - 10px);
  flex-shrink: 0;
  scroll-snap-align: start;
}

.work img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.section3-showcase::-webkit-scrollbar {
  display: none;
}