/*
main color palette: https://colorhunt.co/palette/343a407952b3ffc107e1e8eb => https://yeun.github.io/open-color/#ye llow
gray color : ??

    SPACING SYSTEM (px)
    2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128
    
    FONT SIZE SYSTEM (px)
    10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98
*/

:root {
  --main-color: #7952B3;
  --accent-color: #FFC107;
  --bg-color: #E1E8EB;
  --text-color: #343A40;
  --dark-text-color: #080808;
  --main-color-p2: #8F43EE;
  --accent-color-p2: #F0EB8D;
  --heavy-gray-color-p2: #413543;
  --dark-color-p2: #2D2727;
  --bg-lighter-color-p3: #F5F5F5;
  --bg-light-color-p3: #E8E2E2;
  --bg-white-color: #FFFFFF;
  --bg-black-color: #000000;
  --bg-white-transparent: #ffffffe1;
  --dark-black-transparent-box-shadow: #00000026;
  --light-main-transparent-box-shadow: #6a37b74f;
  --text-main-color-dark: #6700ff;
}

/* Example scaling formula: clamp(min, ideal, max) */
:root {
  --fs-small: clamp(0.75rem, 1vw + 0.5rem, 1rem);
  /* e.g. for footer, small buttons */
  --fs-medium: clamp(.75rem, 1vw + 0.1rem, 2rem);
  /* base text, paragraphs */
  --fs-large: clamp(1.5rem, 2vw + 0.33rem, 1.60rem);
  /* h2, h3 */
  --fs-xlarge: clamp(2.5rem, 4vw + 1rem, 3rem);
  /* h1 */
}

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

a {
  text-decoration: none;
  color: #4b6cff;
}

::selection {
  background-color: var(--main-color);
  color: var(--bg-lighter-color-p3);
}

body {
  font-family: "Inter", sans-serif;
  /*font-family: "Righteous", sans-serif;
  font-family: 'Playfair Display', serif;*/
  color: var(--dark-text-color);
  background: conic-gradient(from 90deg at 2px 2px, rgba(0, 0, 0, 0) 90deg, #dfe0e879 0) 0 0 / 64px 64px;
  line-height: 1;
}

.container {
  width: 70vw;
  margin: 0 auto;
}

.header,
.hero-container,
.full-container,
.clear-full-container {
  width: 85vw;
  margin: 0 auto;
}

.hero-container {
  margin: 0 auto;
  border: 1px solid var(--dark-color-p2);
  margin-top: 100px;
  margin-bottom: 48px;
  padding: 48px 0;
  border-radius: 16px;
}

/*********************************/
/* Navigation */
/*********************************/

.full-header {
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-white-color);
  height: 4.8rem;
  border-bottom: solid 1px var(--heavy-gray-color-p2);
  transition: all 0.3s ease-in-out;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  height: inherit;
}

.sticky .full-header {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 100%;
  background-color: var(--bg-white-transparent);
  z-index: 99;
  height: 8rem;
  padding-top: 0;
  padding-bottom: 0;
}

#header-logo {
  flex: 0 0 15%;
}

.main-nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.8rem;
}

.main-nav-link:link,
.main-nav-link:visited {
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.33s;
}

.main-nav-link:hover,
.main-nav-link:active {
  color: var(--main-color);

}

.main-nav-link.nav-cta:link,
.main-nav-link.nav-cta:visited {
  padding: 1.2rem 2.4rem;
  border-radius: 50px;
  background-color: var(--main-color);
  color: var(--bg-white-color);
}

.main-nav-link.nav-cta:hover,
.main-nav-link.nav-cta:active {
  background-color: var(--heavy-gray-color-p2);
  color: var(--accent-color-p2);
}

/* Hidden when scrolling down */
.full-header:not(.sticky):not(.small) {
  transform: translateY(-100%);
}

/* Small sticky header when scrolling up */
.full-header.small {
  height: 4.8rem;
  /*box-shadow: 0 2px 10px var(--dark-black-transparent-box-shadow);*/
}

/* Full normal header */
.full-header.sticky {
  height: 4.8rem;
  box-shadow: 0 4px 10px var(--dark-black-transparent-box-shadow);
  transform: translateY(0);
}

section,
summary {
  margin: 98px 0;
  /*good / bad practice 48px 0;*/
}

h2 {
  margin-bottom: 48px;
  letter-spacing: 0;
  text-shadow: 2px 22px 18px var(--dark-black-transparent-box-shadow);
  text-align: center;
}

h3 {
  letter-spacing: 0;
}

.hero-words-color {
  background-color: var(--accent-color-p2);
}

.name-color {
  color: var(--bg-lighter-color-p3);
  background-color: var(--main-color);
}

.image {
  display: block;
  border-radius: 0px;
  border-bottom-left-radius: 65px;
  border-top-right-radius: 65px;
  box-shadow: 5px 5px 40px 30px var(--light-main-transparent-box-shadow);
}

.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .5s ease;
  background-color: var(--main-color);
  border-radius: 0px;
  border-bottom-left-radius: 65px;
  border-top-right-radius: 65px;
}

.background-grid {
  background-blend-mode: lighten;
  background-repeat: repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container-img {
  position: relative;
  width: 75%;
}

.container-img:hover .overlay {
  opacity: .85;
}

.text {
  color: var(--bg-lighter-color-p3);
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
  line-height: 1.50;
}

.red {
  color: var(--heavy-gray-color-p2);
}

mark {
  background-color: var(--bg-light-color-p3);
}

.grid-2-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 10px;
}

.grid-3-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 40px;
  justify-content: center;
}

.full-container {
  margin: 0 auto;
  border: 1px solid var(--dark-color-p2);
  border-radius: 16px;
}

/* for carousal */
.btn-carousel {
  background-color: var(--bg-light-color-p3);
  border: none;
  height: 40px;
  width: 40px;
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-icon {
  height: 24px;
  width: 24px;
  stroke: var(--accent-color-p2);
}

.btn--left {
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 12px 24px var(--dark-black-transparent-box-shadow);
}

.btn--right {
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  box-shadow: 0 12px 24px var(--dark-black-transparent-box-shadow);
}

/* ********* btn carousal ends *********** */

a.btn.textsmall:nth-child(2) {
  background-color: var(--bg-light-color-p3);
  color: var(--main-color);
  border: 1px solid var(--dark-black-transparent-box-shadow);
  line-height: 1.25;
}

a.btn.textsmall:nth-child(2):hover {
  line-height: 1.25;
  background-color: var(--heavy-gray-color-p2);
  color: var(--accent-color-p2);
  border: 1px solid var(--dark-black-transparent-box-shadow);
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 40px;
}

.header-text-box {
  align-self: center;
}

h1 {
  text-shadow: 2px 22px 22px var(--dark-black-transparent-box-shadow);
  margin-bottom: 32px;
  line-height: 1.2;
  letter-spacing: -2px;
  text-align: center;
}

.header-text {
  margin-bottom: 24px;
  line-height: 1.5;
}

.btn:link,
.btn:visited {
  background-color: var(--main-color);
  color: var(--accent-color-p2);
  text-decoration: none;
  text-transform: uppercase;
  display: inline-block;
  font-weight: 700;
  align-content: center;
}

.btn:hover,
.btn:active {
  color: var(--main-color);
  background-color: var(--bg-light-color-p3);
}

#cv-btn {
  border: 1px solid var(--dark-black-transparent-box-shadow);
}

.btn--big {
  padding: 16px;
  margin: 10px 0;
  text-align: center;
  border-radius: 50px;
  min-width: max-content;
  line-height: 1.25;
}

.grid-1-cols.soical {
  text-align: center;
}

.btn--small {
  padding: 8px 12px;
  border-radius: 16px;
  min-width: max-content;
}

.textsmall {
  padding: 12px;
  margin: 10px;
  text-align: center;
  border-radius: 50px;
}

.logo {
  border-radius: 0;
}

img {
  width: 100%;
  border-radius: 16px;
}

.carousel {
  width: 800px;
  margin: 100px auto;
  background-color: var(--accent-color-p2);
  border-radius: 8px;
  padding: 32px;
  padding-left: 86px;
  display: flex;
  gap: 80px;
  position: relative;
  align-items: center;
}

.features-icon {
  stroke: var(--main-color);
  width: 50px;
  height: 50px;
  margin-bottom: 24px;
}

.features-title {
  margin-bottom: 16px;
  line-height: 1.5;
}

.features-text {
  line-height: 1.7;
}

.testimonial-section {
  background-color: var(--main-color);
  padding: 25px;
  border-radius: 16px;
}

.testimonial-box {
  grid-column: 1/ -2;
  align-self: center;
}

.testimonial-img {
  align-self: center;
  filter: grayscale(100%);
}

.testimonial-box h2 {
  margin-bottom: 24px;
}

.testimonial-box>h3,
.testimonial-box>blockquote,
.testimonial-box>p {
  color: var(--bg-lighter-color-p3);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.5;
  padding: 30px;
}

.testimonial-author {
  margin-bottom: 4px;
  padding-top: 15px;
}

.latest-work-section {
  padding: 60px 0;
}

.latest-work {
  margin-top: 20px;
  margin-bottom: 20px;
  box-shadow: 0px 20px 20px 0px var(--light-main-transparent-box-shadow);
  border-radius: 16px;
  background-color: var(--heavy-gray-color-p2);
  color: var(--bg-white-color);
  border: 1px solid var(--main-color-p2);
  ;
  /* for slider */
  max-width: calc(50% - 20px);
  /* Display 2 slides at a time - the gaps */
}

.latest-work img {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.latest-work-box {
  padding: 24px;
}

.latest-work-box>div>.btn.btn--small {
  border: 1px solid var(--bg-color);
}

h3 {
  margin-bottom: 32px;
  line-height: 1.5;
  text-shadow: 5px 5px 50px var(--accent-color);
  color: var(--bg-lighter-color-p3);
}

.work-details {
  list-style: none;
  margin-bottom: 36px;
}

.work-details li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.work-details li:last-child {
  margin-bottom: 0;
}

.latest-work-icon {
  stroke: var(--bg-light-color-p3);
  width: 24px;
  height: 24px;
}

.latest-work-icon:hover {
  stroke: var(--accent-color-p2);
}

footer {
  text-shadow: 3px 3px 3px var(--dark-black-transparent-box-shadow);
  text-transform: capitalize;
  color: var(--bg-lighter-color-p3);
  background-color: var(--main-color);
  position: absolute;
  left: 0px;
  right: 0px;
}

.footmz {
  padding: 48px 0;
  height: 40px;
  text-align: center;
}

/* **************** */
/* Projects sliders */
/* **************** */

.slider-wrapper {
  display: flex;
  flex-direction: column;
  position: relative;
  align-items: center;
  justify-content: center;
}

.slider-container {
  overflow: hidden;
  width: 100%;
  position: relative;
  /*flex: 1;*/
  max-width: 70vw;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  cursor: grab;
  /*align-items: center;*/
  gap: 40px;

}

.slide {
  min-width: calc(50% - 20px);
  /* Two slides per view, considering gap */
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  position: relative;
  max-width: 70vw;
  /* Ensure the full width */
  justify-content: center;
}

button {
  background: var(--accent-color-p2);
  color: var(--main-color);
  border: 1px solid var(--main-color);
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.prev {
  left: -50px;
  /* Move outside the container */
}

.next {
  right: -50px;
  /* Move outside the container */
}

.dots {
  display: flex;
  justify-content: center;
  margin-top: 25px;
}

.dot {
  width: 10px;
  height: 10px;
  margin: 5px;
  border-radius: 50%;
  cursor: pointer;
  background-color: var(--bg-lighter-color-p3);
  border: 1px solid var(--main-color);
  border-radius: 50%;

}

.dot.active {
  background: var(--accent-color-p2);
}

.dots-carousel {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0);
  bottom: 0;
  transform: translate(-50%, 32px);
  display: flex;
  gap: 12px;
}

.dot--fill {
  background-color: var(--main-color);
}

/* making js SliderLatest Work works for testimaonals section*/
/* Adjust slide width dynamically */
.slider-section[data-slides-to-show="1"] .slide {
  min-width: 100%;
}

.slider-section[data-slides-to-show="2"] .slide {
  min-width: calc(50% - 20px);
}

.slider-section[data-slides-to-show="3"] .slide {
  min-width: calc(33.33% - 20px);
}

/* Prevent text selection and image dragging in all sliders */
.slider-section .slide,
.slider-section .slide * {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
}

.slider-section .slide img {
  -webkit-user-drag: none;
  pointer-events: none;
}

.doodle-card-wrapper {
  background: var(--bg-lighter-color-p3);
  border-radius: 12px;
  box-shadow: 0 4px 10px var(--light-main-transparent-box-shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 300px;
  margin: 1rem;
  cursor: pointer;
}

.doodle-card-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px var(--light-main-transparent-box-shadow);
}

.doodle-card-img img {
  width: 100%;
  height: auto;
  display: block;
}

.doodle-card-content {
  padding: 1rem;
  background: var(--bg-lighter-color-p3);
}

.doodle-card-content__date {
  color: var(--heavy-gray-color-p2);
  margin-bottom: 1rem;
}

.doodle-card-content__event {
  font-weight: 600;
  color: var(--dark-text-color);
  line-height: initial;
  margin-bottom: 1rem;
}

.doodle-card-content__desc {
  color: var(--text-color);
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* Prevent user from selecting slider cards text and dragging images */
.doodle-card-wrapper,
.doodle-card-wrapper * {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
}

.doodle-card-wrapper img {
  -webkit-user-drag: none;
  pointer-events: none;
}

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

/* === Responsive Font Size === */
h1 {
  font-size: var(--fs-xlarge);
}

h2,
.testimonial-box h2 {
  font-size: var(--fs-large);
}

h3,
.features-title {
  font-size: var(--fs-large);
}

.text,
.header-text,
.features-text,
.doodle-card-content__event,
.testimonial-text {
  font-size: var(--fs-medium);
}

.main-nav-link,
.btn--small,
.textsmall,
.btn--big {
  font-size: var(--fs-medium);
}

.testimonial-author,
.testimonial-job,
footer,
.doodle-card-content__date,
.doodle-card-content__desc {
  font-size: var(--fs-small);
}


/* === New Testimonials === */

.testimonial-carousel {
  position: relative;
  text-align: center;
  padding: 60px 0;
  overflow: hidden;
}

.carousel-wrapper {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
  cursor: grab;
}

.testimonial {
  flex: 0 0 50%;
  margin: 0 10px;
  background: #eee;
  border-radius: 8px;
  padding: 30px 20px;
  box-sizing: border-box;
  opacity: 0.7;
  transform: scale(0.9);
  transition: all 0.5s ease;
  cursor: pointer;
  line-height: 1.5;
}

.testimonial.active {
  background: var(--bg-light-color-p3);
  opacity: 1;
  transform: scale(1);
  cursor: default;
  line-height: 1.5;
}

.testimonial .author {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-top: 20px;
}

.testimonial-person {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 12px;
}

.testimonial .author-info {
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial .author-info strong {
  display: block;
}

.testimonial .author-info span {
  font-size: var(--fs-small);
  color: var(--heavy-gray-color-p2);
}

.carousel-dots {
  margin-top: 20px;
}

.dot {
  display: inline-block;
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: var(--bg-light-color-p3);
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background-color: var(--main-color-p2);
  border: 1px solid var(--dark-text-color)
}

.testimonial-review {
  filter: grayscale(100%);
  width: 50%;
  height: auto;
  border-radius: 0;
  margin-right: 0;
}

/* === moving bar -/ like the news Bar idea === */

.moving-bar {
  margin-top: 45px;
  padding: 30px 0;
}

.main-trackers-container {
  background: var(--bg-light-color-p3);
  color: var(--bg-black-color);
  overflow: hidden;
  white-space: nowrap;
  padding: 30px 0;
  z-index: 10;
  position: relative;
}

.marquee {
  display: flex;
  overflow: hidden;
  position: relative;
}

.track,
.clone {
  gap: 20px;
  display: flex;
  flex-shrink: 0;
  animation-name: scroll-marquee;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
  padding-right: 10px;
}

.track-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--main-color-p2);
  border-radius: 18px;
  padding: 10px;
  color: var(--text-main-color-dark);
  background-color: var(--light-main-transparent-box-shadow);
  white-space: nowrap;
}

@keyframes scroll-marquee {
  from {
    transform: translateX(0%);
  }

  to {
    transform: translateX(-100%);
  }
}