/*
=============== 
Fonts
===============
*/
/* see html*/
/*
=============== 
Variables
===============
*/

:root {
  /* dark shades of primary color*/
  --clr-primary-1: #273128;
  --clr-primary-2: #455847;
  --clr-primary-3: #647e66;
  --clr-primary-4: #82a586;
  /* primary/main color */
  --clr-primary-5: #a1cca5;
  /* lighter shades of primary color */
  --clr-primary-6: #b3d6b6;
  --clr-primary-7: #c5dfc7;
  --clr-primary-8: #d7e9d8;
  --clr-primary-9: #e8f3e9;
  --clr-primary-10: #fafcfb;
  /* darkest grey - used for headings */
  --clr-grey-1: #171210;
  --clr-grey-2: #2a211c;
  --clr-grey-3: #3c3029;
  --clr-grey-4: #4f3e35;
  /* grey used for paragraphs */
  --clr-grey-5: #614d42;
  --clr-grey-6: #7f6f66;
  --clr-grey-7: #9d918a;
  --clr-grey-8: #bbb2ae;
  --clr-grey-9: #d9d4d2;
  --clr-grey-10: #f7f6f6;
  --clr-white: #fff;

  /* warning colours */
  --red-light: #f8d7da;
  --red-dark: #842029;
  --green-light: #d1e7dd;
  --green-dark: #0f5132;

  /* fonts */
  --ff-primary: "Alegreya", sans-serif;
  --ff-secondary: "Lexend", sans-serif;

  /* others */
  --transition: all 0.3s linear;
  --spacing: 0.095rem;
  --radius: 0.4rem;
  --light-shadow: 0 5px 15px rgba(22, 36, 64, 0.1);
  --dark-shadow: 0 5px 15px rgba(22, 36, 64, 0.2);
  --max-width: 1170px;
}

/*
=============== 
Global Styles
===============
*/

*,
::after,
::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--ff-secondary);
  background: var(--clr-white);
  color: var(--clr-grey-5);
  line-height: 1.5;
  font-size: 0.875rem;
}

a {
  text-decoration: none;
  color: var(--clr-primary-2);
}
img:not(.nav-logo) {
  width: 100%;
  display: block;
}

h1,
h2,
h3,
h4 {
  /* letter-spacing: var(--spacing); */
  text-transform: capitalize;
  line-height: 1.75;
  margin-bottom: 1rem;
  font-family: var(--ff-primary);
}
h1 {
  font-size: 3rem;
  text-transform: uppercase;
}
h2 {
  font-size: 2.441rem;
}
h3 {
  font-size: 1.953rem;
}
h4 {
  font-size: 1.563rem;
}
p {
  margin-bottom: 1.25rem;
  color: var(--clr-grey-5);
  font-size: 1rem;
  font-weight: 300;
  /* text-wrap: pretty; */
}
@media screen and (min-width: 800px) {
  h1 {
    font-size: 4rem;
  }
  h2 {
    font-size: 2.5rem;
  }
  h3 {
    font-size: 1.953rem;
  }
  h4 {
    font-size: 1.563rem;
  }
  body {
    font-size: 1rem;
  }
  h1,
  h2,
  h3,
  h4 {
    line-height: 1;
  }
}
/*  global classes */

.btn {
  text-transform: uppercase;
  background: var(--clr-primary-5);
  color: var(--clr-primary-1);
  padding: 0.375rem 0.75rem;
  letter-spacing: var(--spacing);
  display: inline-block;
  font-weight: 500;
  -webkit-transition: var(--transition);
  transition: var(--transition);
  font-size: 0.875rem;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
}
.btn:hover {
  color: var(--clr-primary-1);
  background: var(--clr-primary-7);
}
/* section */
.section {
  padding: 1rem 0rem 2rem 0rem;
}

.section-center {
  width: 90vw;
  margin: 0 auto;
  max-width: 1170px;
}
@media screen and (min-width: 992px) {
  .section-center {
    width: 95vw;
  }
}
/* added during recording */
.underline {
  width: 5rem;
  height: 0.25rem;
  margin-bottom: 1rem;
  background: var(--clr-primary-5);
  margin-left: auto;
  margin-right: auto;
}

.home-photo {
  max-width: 25rem;
  max-height: 25rem;
  -o-object-fit: cover;
  object-fit: cover;
  position: relative;
  border-radius: var(--radius);
  /* border-radius:100%; */
}

.section-title {
  margin-bottom: 4rem;
  text-align: center;
}

a:hover {
  color: var(--clr-primary-1);
}

/* animations */
@-webkit-keyframes slidefromLeft {
  0% {
    opacity: 0;
    -webkit-transform: translateX(-100px);
    transform: translateX(-100px);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}
@keyframes slidefromLeft {
  0% {
    opacity: 0;
    -webkit-transform: translateX(-100px);
    transform: translateX(-100px);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}
@-webkit-keyframes slidefromRight {
  0% {
    opacity: 0;
    -webkit-transform: translateX(100px);
    transform: translateX(100px);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}
@keyframes slidefromRight {
  0% {
    opacity: 0;
    -webkit-transform: translateX(100px);
    transform: translateX(100px);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

@keyframes bouncefromAbove {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  60% {
    opacity: 0.5;
    transform: translateY(0);
  }
  75% {
    opacity: 1;
    transform: translateY(10px);
  }
  80% {
    opacity: 1;
    transform: translateY(0);
  }
  85% {
    opacity: 1;
    transform: translateY(10px);
  }
  90% {
    opacity: 1;
    transform: translateY(0);
  }
  95% {
    opacity: 1;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/*
=============== 
Navbar
===============
*/

.nav-logo {
  width: 10rem;
}

.nav-links {
  display: none;
}

.nav {
  height: 8rem;
  padding: 1rem;
  display: grid;
  -webkit-box-align: center;
  align-items: center;
  -webkit-transition: var(--transition);
  transition: var(--transition);
  overflow-x: hidden;
}

.nav-center {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  -webkit-box-align: center;
  align-items: center;
}

.nav-btn {
  background: transparent;
  border-color: transparent;
  color: var(--clr-primary-3);
  font-size: 2rem;
  cursor: pointer;
  justify-self: right;
}

@media screen and (min-width: 800px) {
  .nav-btn {
    display: none;
  }
  .nav-links {
    display: flex;
    justify-content: space-between; /* or space-around */
    align-items: center;
    gap: 2rem;
    justify-self: end;
  }

  .nav-links a {
    flex: 1;
    text-align: center;
  }
  .nav-links a {
    text-transform: uppercase;
    color: var(--clr-grey-2);
    letter-spacing: var(--spacing);
    /* font-weight:bold; */
    -webkit-transition: var(--transition);
    transition: var(--transition);
  }
  .nav-links a:hover {
    color: var(--clr-primary-5);
    text-decoration: underline;
  }
  .nav-center {
    display: grid;
    grid-template-columns: auto 1fr;
    -webkit-box-align: center;
    align-items: center;
  }

  .nav ul {
    list-style-type: none;
  }
}

.subheader {
  font-size: 0.8rem;
  color: var(--clr-grey-5);
  text-transform: uppercase;
  letter-spacing: var(--spacing);
  text-align: left;
  margin: 0.3rem 0 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--clr-primary-3);
  font-weight: 700;
}

/* fixed navbar */
.navbar-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--clr-primary-9);
  z-index: 2;
  box-shadow: var(--light-shadow);
}

/*
=============== 
Sidebar
===============
*/

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--clr-primary-9);
  z-index: 4;
  display: grid;
  place-items: center;
  -webkit-transition: var(--transition);
  transition: var(--transition);
  -webkit-transform: translateX(-100%);
  transform: translateX(-100%);
}

.show-sidebar {
  -webkit-transform: translateX(0);
  transform: translateX(0);
  transition: --var(transition);
}

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

.sidebar-links a {
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: var(--spacing);
  color: var(--clr-grey4);
  transition: --var(transition);
  letter-spacing: --spacing;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.sidebar-links a:hover {
  color: var(--clr-primary-3);
}

.sidebar-contact {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.sidebar-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--clr-grey-4);
  font-size: 1.1rem;
  text-align: center;
}

.sidebar-contact-item i {
  width: 1.5rem;
  text-align: center;
  color: var(--clr-primary-3);
  font-size: 1.2rem;
}

.sidebar-contact-item a {
  color: var(--clr-grey-4);
  text-decoration: none;
  transition: var(--transition);
}

.sidebar-contact-item a:hover {
  color: var(--clr-primary-3);
}

.social-icons {
  display: grid;
  margin-top: 2rem;
  width: 20rem;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
}

.social-icon {
  font-size: 2rem;
  color: var(--clr-grey-4);
  transition: var(--transition);
}

.social-icon:hover {
  color: var(--clr-primary-3);
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 3rem;
  background: transparent;
  border: transparent;
  -webkit-transition: var(--transition);
  transition: var(--transition);
  color: var(--red-dark);
}

.close-btn:hover {
  color: var(--clr-primary-5);
}

.sidebar-links,
.social-icons {
  list-style-type: none;
}

/*
=============== 
Hero
===============
*/

.headline_visualisation {
  color: var(--clr-primary-5);
}

/* underline added to globals */
.hero .underline {
  margin-bottom: 0;
  margin-left: 0;
}

.hero-img {
  -webkit-animation: slidefromRight 3s ease-in-out 1;
  animation: slidefromRight 3s ease-in-out 1;
}

.hero-center {
  /* min-height: calc(100vh - 5rem); */
  display: grid;
  place-items: center;
  gap: 2rem;
  margin-top: 7rem;
}

.hero-info {
  color: var(--clr-grey-5);
  -webkit-animation: slidefromLeft 3s ease-in-out 1;
  animation: slidefromLeft 3s ease-in-out 1;
}

.hero-text {
  margin-top: 1.25rem;
  justify-items: start;
}

/* mobile responsiveness */
@media screen and (min-width: 800px) {
  .hero-img {
    display: block;
    position: relative;
  }
  .hero-center {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "a b"
      "c c";
  }

  .hero-info {
    grid-area: a;
  }

  .hero-img {
    grid-area: b;
  }

  .hero-arrow {
    grid-area: c;
  }

  /* home-photo added to globals */
  .about-img::before {
    content: "";
    position: absolute;
    /* width:105%;
    height:105%;  */
    width: 100%;
    height: 100%;
    border: 0.25rem solid var(--clr-primary-5);
    /* border-bottom:0.25rem solid var(--clr-primary-5);
    border-right:0.25rem solid var(--clr-primary-5); */
    /* top:0;
    left:0; */
    top: 1rem;
    right: -1rem;
    border-radius: var(--radius);
    /* border-radius:100%; */
    /* transform:translate(-2.5%,-2.5%) ; */
  }
}

@media screen and (min-width: 992px) {
  .hero-text {
    padding-right: 0;
  }
}

html {
  scroll-behavior: smooth;
}

#services {
  scroll-margin-top: 16rem; /* or match your .nav height */
}
/*
=============== 
About section
===============
*/
/* section-title added to globals */

.about-title {
  text-align: left;
  margin-bottom: 2rem;
}
.about-title .underline {
  margin-left: 0;
}

.about-center {
  display: grid;
  gap: 3rem 2rem;
  place-items: center;
}

.about-img {
  display: block;
  position: relative;
  /* justify-self: center; */
}

@media screen and (min-width: 800px) {
  .about-center {
    grid-template-columns: 1fr 1fr;
  }
}
.about-img::before {
  right: 1rem;
}

.about-info {
  align-self: center;
}

/*

/*
=============== 
Projects
===============
*/

.project {
  position: relative;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  -webkit-border-radius: var(--radius);
  -moz-border-radius: var(--radius);
  -ms-border-radius: var(--radius);
  -o-border-radius: var(--radius);
}

.project-info h4 {
  margin: 1rem 0 0 0;
  color: var(--clr-primary-2);
  text-transform: uppercase;
}

.project-img {
  -webkit-transition: var(--transition);
  transition: var(--transition);
  border-radius: var(--radius);
  height: 22rem;
  -o-object-fit: cover;
  object-fit: cover;
}

@media screen and (min-width: 676px) {
  .projects-center {
    display: grid;
    grid-template-columns: 1fr 1fr;
    -webkit-column-gap: 2rem;
    -moz-column-gap: 2rem;
    column-gap: 2rem;
  }
}

.projects-center {
  background-color: var(--clr-primary-9);
  padding: 2rem;
  border-radius: var(--radius);
  margin-bottom: 3rem;
}

/*
=============== 
Footer
===============
*/

.footer {
  min-height: 12rem;
  padding: 2rem 1rem;
  background-color: var(--clr-primary-1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  /* width: 100%; */
  max-width: var(--max-width);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--clr-primary-5);
  font-size: 0.9rem;
}

.contact-item i {
  width: 1.2rem;
  text-align: center;
  color: var(--clr-primary-6);
}

.contact-item a {
  color: var(--clr-primary-5);
  text-decoration: none;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--clr-primary-7);
}

.footer-social {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer .social-icon {
  color: var(--clr-primary-5);
  font-size: 1.5rem;
  transition: var(--transition);
}

.footer .social-icon:hover {
  color: var(--clr-primary-7);
  transform: scale(1.1);
}

.footer-copyright {
  font-size: 0.9rem;
  text-transform: capitalize;
  color: var(--clr-primary-4);
  text-align: center;
  margin-top: 1rem;
}

/* Responsive footer layout */
@media screen and (min-width: 768px) {
  .footer-contact {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
  }

  .contact-item {
    white-space: nowrap;
  }
}

@media screen and (min-width: 992px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer-contact {
    gap: 3rem;
  }
}

.timeline-item h4 {
  text-transform: none;
}

/*
=============== 
Contact Page
===============
*/

.page-info {
  text-align: left;
  width: 90vw;
  margin: 0 auto;
  max-width: 500px;
}
@media screen and (min-width: 992px) {
  .page-info {
    width: 95vw;
  }
}

.contact-row {
  display: flex;
}

.contact-icon {
  margin-right: 1rem;
  font-size: 1.5em; /* adjust as needed */
}

/*
===============
Testimonials section 
===============
*/

.reasons-list {
  padding-inline-start: 4.2rem;
  list-style-type: circle;
  font-size: 1.3rem;
  margin: 0 auto;
}

.reasons-list ::marker {
  color: var(--clr-primary-2);
  content: "⏍  "; /* Custom marker content */
}
.reasons li {
  margin-bottom: 0.5rem;
}

.testimonials-section {
  width: 60vw;
  text-align: left;
  margin: 3rem auto 0 auto;
}
.signature {
  margin-top: -1rem;
  font-style: italic;
  color: var(--clr-primary-2);
  font-weight: bold;
}

/* 
===============
Carousel
===============
*/
/* Slideshow container */
.slideshow-container {
  max-width: 500px;
  position: relative;
  margin: auto;
  overflow: hidden;
  border-radius: 10px;
}

/* Slides wrapper for horizontal layout */
.slides-wrapper {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 500%; /* 5 slides = 500% */
}

/* Individual slides */
.mySlides {
  flex: 0 0 20%; /* Each slide takes 20% of wrapper (1/5) */
  position: relative;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.3s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 3;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 12px 12px 12px 12px;
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 0 0 10px 10px;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 0 0 10px 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 5px;
  background-color: var(--clr-grey-6);
  border-radius: 50%;
  display: inline-block;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.active,
.dot:hover {
  background-color: var(--clr-primary-5);
  transform: scale(1.2);
}

.mySlides img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.slideshow-contact-circle {
  margin-bottom: 3rem;
}
