@import url("../fonts/fonts.css");

:root {
  interpolate-size: allow-keywords;
  /* primary color  */
  --clr-deep-navy: #0b1f6e;
  --clr-dark-blue: #0d3bae;
  --clr-royal-blue: #1565d8;
  --clr-vivid-blue: #2e8df0;
  --clr-bright-cyan: #00cfff;
  --clr-light-cyan: #66dfff;

  /* neutral colors  */
  --white: #fff;
  --black: #000;

  /* gradient  */
  --bg-gradient:
    linear-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff-karla);
  /* background-color: var(--white); */

  /* background-image: var(--bg-gradient); */
  background: linear-gradient(
    45deg,
    var(--clr-deep-navy) 0%,
    var(--clr-royal-blue) 50%,
    var(--clr-dark-blue) 100%
  );
  /* background-size: 20px 20px; */

  line-height: 1.2;
  text-wrap: balance;
  font-size: 20px;
  height: 100%;
  color: var(--white);
}

h1,
h2,
h3,
h4 {
  font-family: var(--ff-wix);
  font-weight: 900;
}

h1 {
  font-size: clamp(1rem, 7vw + 1rem, 5.5rem);
}

h2 {
  font-size: clamp(1rem, 7vw + 1rem, 2.6rem);
  color: var(--clr-light-cyan);
}

h3 {
  font-size: clamp(1rem, 4vw + 1rem, 1.5rem);
}

h4 {
  color: var(--white);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* header section  */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  /* overflow: hidden; */

  margin-inline: auto;
  margin-block-start: 1rem;
  padding-inline: 0.7rem;
  padding-block: 0.254rem;
  border-radius: 50vw;
  background-color: var(--white);

  box-shadow: 0px 8px 20px -10px rgba(0, 0, 0, 0.25);
}

header .logo {
  width: 40px;
  aspect-ratio: 1;
}

header nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

header ul {
  list-style: none;
  display: flex;
  gap: 30px;
  width: 100%;
}

header nav a {
  text-decoration: none;
  color: var(--clr-deep-navy);
  text-align: center;
  display: inline-block;
  width: 100%;
  font-weight: 600;
  padding-block: 0.7rem;
  border-bottom: 3px solid var(--white);
  transition: border 0.3s;
}

header nav a:hover {
  border-bottom-color: var(--clr-dark-blue);
}

.active {
  border-bottom: 3px solid var(--clr-deep-navy);
}

@media (width >= 48em) {
  #menu,
  .menu {
    display: none;
  }

  header {
    width: 60%;
    overflow: clip;
  }

  header nav a {
    padding-block: 0.2rem;
  }
}

/* mobile navigation  */
@media (width < 48em) {
  header {
    margin-block-start: 0;
    width: 100%;
    border-radius: 0;

    position: sticky;
    top: 0;
    left: 0;

    z-index: 999;
  }
  header ul {
    flex-direction: column;
    gap: 10px;
  }

  header li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
  }

  header li:nth-child(5) {
    border: none;
    /* background-color: var(--clr-deep-navy); */
  }

  #navLinks {
    opacity: 0;
    visibility: hidden;
    height: 0;

    position: fixed;
    top: 2.42em;
    left: 0;
    width: 100%;
    background-color: var(--white);
    border-radius: 0 0 6px 6px;
    overflow: hidden;
    z-index: 999;

    border-top: 1px solid rgba(0, 0, 0, 0.1);

    box-shadow: 0px 20px 30px -10px rgba(0, 0, 0, 0.2);
    transition:
      opacity 0.1s,
      height 0.1s,
      visibility 0.1s;
  }

  #navLinks.open {
    opacity: 1;
    visibility: visible;
    height: auto;
  }

  #menu {
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--clr-dark-blue);
    cursor: pointer;
  }
}
@media (width <= 998px) {
  header {
    width: 80%;
  }
}

@media (width < 768px) {
  header {
    width: 100%;
  }
}

/* sections  */
section {
  margin-block: 6rem;
}

/* hero section start  */

.hero {
  margin-block-start: 2rem;
  text-align: center;

  @media (width <= 460px) {
    margin-block-start: 0;
  }
}

.sub-text {
  @media (width >= 60em) {
    padding-inline: 10em;
  }
}

.hero .wrapper {
  max-inline-size: 1400px;
}

.hero .wrapper > * {
  margin-block: 1rem;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: center;

  @media (width > 58em) {
    & .btn {
      width: 20%;
    }
  }
}

/* hero section end  */

/* about section start  */
.about {
  position: relative;
  background: url("../images/about.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--white);
  z-index: 1;

  font-weight: 600;
}

.about::before {
  content: "";
  height: 100%;
  width: 100%;
  position: absolute;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}
.about-content {
  padding-block: 2rem;
}

.about h2 {
  color: var(--clr-light-cyan);
}

/* about section end  */

/* services section start  */
.service-card {
  display: grid;
  gap: 50px;
  grid-template-columns: 1fr 1fr;
  background: linear-gradient(
    360deg,
    var(--white) 50%,
    var(--clr-deep-navy) 50%
  );

  padding: 2rem;
  border-radius: 12px;

  box-shadow: 0 0 20px -5px rgba(0, 0, 0, 0.4);
  transition: all 0.2s linear;
}

.service-card:hover {
  transform: translateY(-8px);
}

.service-card img {
  border-radius: 12px;
}

.service-card-content {
  margin-block: auto;
  color: var(--white);
}

.service-card-content h3 {
  margin-block: 0.6rem;
  color: var(--white);
}

@media (width < 48em) {
  .service-card {
    grid-template-columns: 1fr;
    gap: calc(50px / 2);
  }
}

/* services section end  */

/* goal section start  */

.goal {
  background-color: var(--white);
  color: var(--clr-deep-navy);
  text-align: center;
  font-weight: 700;
}
.goal h2 {
  color: var(--clr-dark-blue);
}

/* goal section end  */

/* why us start */

.why-us-column {
  display: grid;
  gap: 2rem;

  grid-template-columns: 1fr;

  @media (width >= 48em) {
    grid-template-columns: repeat(3, 1fr);
  }
}
.why-us-card {
  padding: 2rem;
  border-radius: 12px;

  background: var(--clr-deep-navy);
}
/* why us end  */

/* contact section start  */

.contact-card {
  margin-block: 0.8rem;
  border-radius: 12px;
}

.contact-card a {
  color: var(--white);
  display: inline-block;
  width: 100%;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--clr-dark-blue);
  border: 2px solid var(--clr-dark-blue);
  border-radius: 12px;
  font-weight: 600;
  transition: all 350ms;
}

.contact-card a:hover {
  background: var(--white);
  color: var(--clr-dark-blue);
}

/* testimonial section start  */
.testimonials-grid {
  display: grid;
  gap: 1rem;
  grid-auto-flow: column;
  grid-auto-columns: 300px;
  overflow-x: scroll;

  scroll-snap-type: x mandatory;
  padding-top: 3rem;
  padding-inline: 1rem;

  /* select the children */
  > * {
    scroll-snap-align: center;
    animation: scroller linear both;
    animation-timeline: view(x);
  }
}

@keyframes scroller {
  0%,
  100% {
    opacity: 0.5;
    scale: 0.5;
  }

  35%,
  65% {
    opacity: 1;
    scale: 1;
  }
}

.testimonials-grid::-webkit-scrollbar {
  display: none;
}

.testimonials {
  border-radius: 12px;
  padding: 1rem;

  background: var(--clr-deep-navy);

  display: grid;
  align-content: center;
  justify-items: center;
}

.testimonials > * {
  margin-block: 1rem;
}

.testimonials strong {
  margin-inline-start: 1rem;
  font-style: italic;
}

/* footer start  */
footer {
  background-color: var(--clr-deep-navy);
  padding-block: 10px;
  color: var(--white);
}

footer > * {
  margin-block: 2rem;
}

.footer-head-content {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}

.footer-head-content > * {
  margin-block: 1rem;
  flex: 1;
}

.last-company-quote {
  display: flex;
  gap: 10px;
  flex-direction: column;
  flex-wrap: wrap;
}

footer ul {
  list-style: none;
}

footer li {
  padding-block: 0.6rem;
}

footer a {
  color: var(--white);
  text-decoration: none;
  transition: text-decoration 0.2s;
}

footer a:hover {
  text-decoration: underline;
  color: var(--clr-royal-blue);
}

footer img {
  width: 70px;
  border-radius: 10px;
  aspect-ratio: 1 / 1;
}

footer form {
  display: flex;
  margin-block: 0.7rem;
  flex-wrap: wrap;
}

footer form input {
  padding: 0.334rem;
}

footer input[type="submit"] {
  background-color: var(--clr-royal-blue);
  color: var(--white);
  font-family: var(--ff-karla);
  border: none;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 20px;
}

.social-links li {
  padding-block: 1rem;
}

.copyright {
  color: var(--white);
  border-block-start: 3px solid var(--clr-dark-blue);
  padding-inline-end: 10px;
  padding-block-start: 10px;
  text-align: center;
}

/* utility classes  */
.wrapper {
  max-inline-size: 900px;
  margin-inline: auto;
  padding: 18px;
}

.founder-info-details {
  margin-block: 0.7rem;
  display: grid;
  place-items: center;

  img {
    border-radius: 12px 12px 0 0;
    width: min(250px, 100%);
  }
}

.ol-stuffs {
  padding-inline: 2rem;
  padding-block: 2rem;
  background: var(--clr-deep-navy);
  border-radius: 12px;
  corner-shape: notch;
  border: 2px solid var(--clr-vivid-blue);
}

.sustainability-plans,
.partnership-strats {
  display: grid;
  /* gap: 30px; */
  place-items: center;
  /* padding-inline-start: 1rem; */

  li {
    margin-block-end: 1rem;
  }

  & > li::marker {
    font-size: 2rem;
    color: var(--clr-vivid-blue);
    font-weight: 700;
  }

  li:last-child {
    margin-block-end: 0;
  }
}

.founder-info {
  background: var(--clr-deep-navy);
  color: var(--white);
  h2 {
    padding-block-end: 2rem;
  }
}

.founder-info-name {
  margin-block-end: 2rem;
  background-color: var(--clr-dark-blue);
  padding-block: 1rem;
  color: var(--white);
  border-radius: 0 0 12px 12px;
  padding-inline: 1rem;
  font-weight: 700;
  width: min(250px, 100%);
}

.company-portfolio {
  margin-block-start: 1rem;
}

.column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;

  place-items: center;

  @media (width < 48em) {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.btn {
  padding: 0.6rem;
  background-color: var(--clr-dark-blue);
  color: var(--white);
  text-decoration: none;

  font-weight: 600;
  border-radius: 50vw;
  text-align: center;
  border: 2px solid var(--white);
  transition: all 0.2s;
  width: 80%;
}

.btn:nth-child(2) {
  background-color: var(--white);
  color: var(--clr-dark-blue);
  border: 2px solid var(--clr-dark-blue);
  transition: all 0.2s;
}

.btn:hover {
  background-color: var(--white);
  color: var(--clr-dark-blue);
  border: 2px solid var(--white);

  transform: translateY(-5px);
}

.btn:nth-child(2):hover {
  color: var(--white);
  background-color: var(--clr-dark-blue);
  transform: translateY(-5px);
}

.text-center {
  text-align: center;
}

.inline-color-blue {
  color: var(--clr-light-cyan);
}

.margin-block {
  margin-block: 3rem;
}

.hero-eyebrow {
  background-color: var(--clr-deep-navy);
  color: var(--white);
  display: inline-block;
  padding-block: 0.8rem;
  padding-inline: 0.8rem;
  border-radius: 50vw;
  font-weight: 700;
  margin-block-end: 0;
  font-size: 18px;

  border: 1px solid var(--clr-deep-navy);
}

.columns {
  display: grid;
  gap: 45px;

  grid-template-columns: 1fr;
}

/* hero media queries  */

@media (width >= 48em) {
  .hero-cta {
    flex-direction: row;
  }
  .btn {
    width: 30%;
  }

  .service-card {
    background: linear-gradient(
      270deg,
      var(--white) 50%,
      var(--clr-deep-navy) 50%
    );
  }

  /* .columns {
    grid-template-columns: repeat(3, 1fr);
  } */
}

@media (width < 48em) {
  .footer-head-content {
    flex-direction: column;
    gap: 10px;
  }
}

@media (width = 768px) {
  header img {
    width: 80px;
  }
}
