/*-----------------------------------*\
 * style.css
\*-----------------------------------*/

/**
 * copyright 2024 wnfedi
 */





/*-----------------------------------*\
 * #CUSTOM PROPERTY
\*-----------------------------------*/

:root {

  /**
   * colors
   */

  --new-color: #004E57;
  --sizzling-sunrise: hsl(51, 95%, 54%);
  --scarlet: hsl(13, 96%, 47%);
  --black: hsl(0, 0%, 0%);
  --white: hsl(0, 0%, 100%);
  --gradient-color: #8ea6a8;
  --go-green: hsl(145, 63%, 42%);

  --gradient: linear-gradient(to left top, var(--new-color), var(--gradient-color));

  /**
   * typography
   */

  --ff-saira-stencil-one: "Saira Stencil One", sans-serif; 
  --ff-poppins: 'Poppins', sans-serif;
  --ff-roboto: 'Roboto', sans-serif;

  

  --fs-1: 2rem;
  --fs-2: calc(1.813rem + 1vw);
  --fs-3: calc(1.313rem + 1vw);
  --fs-4: 1.4rem;
  --fs-5: 1rem;
  --fs-6: 0.813rem;
  --fs-7: 0.75rem;

  --fw-400: 400;
  --fw-700: 700;

  /**
   * transition
   */

  --transition-1: 0.25s ease-in-out;

  /**
   * spacing
   */

  --section-padding: 80px;

  /**
   * radius
   */

  --radius-4: 4px;
  --radius-12: 12px;
  --shadow-13: 3px 4px 30px hsla(0, 0%, 53%, 0.1);
  --transition-12: 0.25s ease;
  --transition-22: 0.5s ease;
}

h9 {
  font-family: var(--ff-poppins);
  font-size: 45px;
  color: antiquewhite;
  font-weight: 800;
}

/*-----------------------------------*\
 * #THEME COLORS
\*-----------------------------------*/

body.dark_theme {

  --bg-primary: hsl(0, 0%, 90%);
  --bg-secondary: hsl(0, 0%, 100%);
  --color-primary: hsl(0, 0%, 12%);
  --color-secondary: hsl(0, 0%, 37%);
  --card-shadow: hsla(0, 0%, 0%, 0.1);
  --input-bg: hsl(0, 0%, 93%);

  --shadow-1: 10px 10px 40px var(--card-shadow);

}

body.light_theme {

  --bg-primary: hsl(0, 0%, 90%);
  --bg-secondary: hsl(0, 0%, 100%);
  --color-primary: hsl(0, 0%, 12%);
  --color-secondary: hsl(0, 0%, 37%);
  --card-shadow: hsla(0, 0%, 0%, 0.1);
  --input-bg: hsl(0, 0%, 93%);

  --shadow-1: 10px 10px 40px var(--card-shadow);

}





/*-----------------------------------*\
 * #RESET
\*-----------------------------------*/

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

li { list-style: none; }

a { text-decoration: none; }

a,
img,
time,
span,
input,
label,
select,
button,
textarea,
ion-icon { display: block; }

input,
button,
select,
textarea {
  background: none;
  border: none;
  font: inherit;
}

button,
select { cursor: pointer; }

input,
textarea { width: 100%; }

ion-icon { pointer-events: none; }

:is(a, button, select) {
  outline-color: var(--scarlet);
  outline-offset: 3px;
}

::selection {
  background: var(--color-primary);
  color: var(--bg-primary);
}

html {
  font-family: var(--ff-roboto);
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  transition: var(--transition-1);
}

body.active { overflow: hidden; }





/*-----------------------------------*\
 * #REUSED STYLE
\*-----------------------------------*/

.container { padding-inline: 10px; }
.container45 { padding-inline: 15px;}
.h1 {
  font-size: var(--fs-1);
  line-height: 1.2;
  font-weight: 400;
}

.h2,
.h3,
.h4 {
  color: var(--color-primary);
  font-family: var(--ff-poppins);
  line-height: 1.2;
}

.h2 { font-size: var(--fs-2); }

.h3 { font-size: var(--fs-3); }

.h4 { font-size: var(--fs-5); }

.w-100 { width: 100%; }

.btn {
  max-width: max-content;
  color: var(--color-primary);
  font-weight: var(--fw-700);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 25px;
  border: 1px solid transparent;
  border-radius: var(--radius-4);
  transition: var(--transition-1);
}

.btn-primary { border-color: var(--color-primary); }

.btn-primary:is(:hover, :focus) {
  background: var(--color-primary);
  color: var(--bg-primary);
}

.btn-secondary {
  background: var(--new-color);
  border-color: var(--new-color);
  color: var(--black);
}

.btn-secondary:is(:hover, :focus) { --new-color: #004E57; }

.section-subtitle {
  position: relative;
  color: var(--color-secondary);
  text-transform: uppercase;
  padding-bottom: 5px;
  margin-bottom: 20px;
}

.section-subtitle::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--color-secondary);
}

.section-title {
  max-width: 350px;
  margin-bottom: 30px;
}

.section-text {
  color: var(--color-secondary);
  line-height: 2;
  margin-bottom: 30px;
}

.scroll-container {
  position: relative;
  height: 230px; /* Adjust height to suit your content */
  overflow: hidden; /* Hide the text when it moves outside */
}

.section-text2 {
  color: var(--color-secondary);
  line-height: 1.8;
  margin-bottom: 30px;
  display: inline-block; /* Allow the text to scroll */
  animation: scrollUpContinous 15s linear infinite;
  font-family: var(--ff-roboto);
  line-height: 1.2;
  margin-bottom: 30px;

}
@keyframes scrollUpContinous {
  0% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(-100%);
  }
}

.tooltip {
  position: absolute;
  top: -40px;
  background: var(--new-color);
  min-width: max-content;
  color: var(--white);
  font-size: 15px;
  font-weight: var(--fw-700);
  padding: 5px 10px;
  border-radius: var(--radius-4);
  box-shadow: var(--shadow-1);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-1);
  z-index: 1;
}
.service .grid-list { grid-template-columns: 1fr 1fr; }

.service-card { text-align: left; }

.service-card .card-icon { margin-inline: 0; }

.service-card .btn-link { justify-content: flex-start; }







/*-----------------------------------*\
 * #HEADER
\*-----------------------------------*/

.header {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  transition: var(--transition-1);
  z-index: 4;
  padding-left: 30px;
  padding-right: 30px;
}

.header.active {
  background: var(--bg-secondary);
  box-shadow: var(--shadow-1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0px;
}

.logo {
  position: relative;
  min-width: 100px;
  max-width: 100px;
  z-index: 2;
}

.logo a {
  color: var(--color-primary);
  font-family: var(--ff-poppins);
}

.logo span {
  display: inline-block;
  color: var(--new-color);
  margin-left: 2px;
}

.h1.logo {
  display: flex;
  align-items: center; /* Aligns the logo and text vertically */
  justify-content: flex-start; /* Aligns items horizontally */
}

.h1.logo .logo-img {
  width: 65px; /* Adjust width to suit your logo */
  height: auto; /* Keeps the image aspect ratio */
  margin-right: 10%; /* Adds some space between the logo and the text */
  vertical-align: middle; /* Aligns the logo vertically with the text */
  border-radius: 50%; /* Makes the image circular */
  box-shadow: 0px 6px 12px rgba(255, 255, 255, 0.9); /* White shadow */
}

.h1.logo a {
  
  display: flex;
  align-items: center;
  text-decoration: none;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
}

.navbar-actions select {
  color: var(--color-primary);
  width: 45px;
}

.navbar-actions option {
  background: var(--bg-primary);
  color: var(--color-primary);
}

.theme-btn {
  padding: 4px;
  width: 48px;
  background: var(--bg-secondary);
  border-radius: 100px;
  transition: var(--transition-1);
}

.header.active .theme-btn { background: var(--bg-primary); }


.nav-toggle-btn {
  position: relative;
  transition: var(--transition-1);
  z-index: 2;
}

.nav-toggle-btn.active { transform: rotate(0deg); }

.nav-toggle-btn span {
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  margin: 5px;
  transition: var(--transition-1);
}

.nav-toggle-btn :is(.one, .three) { width: 10px; }

.nav-toggle-btn .one {
  margin-left: auto;
  transform-origin: left;
}

.nav-toggle-btn .three { transform-origin: right; }

.nav-toggle-btn.active .one { transform: translateX(0px); }

.nav-toggle-btn.active .three { transform: translateX(0px); }

.navbar {
  position: fixed;
  background: var(--bg-secondary);
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  visibility: hidden;
  transition: 0.75s cubic-bezier(0.71, 0.01, 0.24, 0.99);
  transition-delay: 0.5s;
  z-index: 1;
}

.navbar.active {
  top: 0;
  visibility: visible;
  transition-delay: 0s;
}

.navbar-list > li {
  margin-block: 20px;
  padding-inline: 50px;
  overflow: hidden;
}

.navbar-link {
  position: relative;
  width: max-content;
  margin-inline: auto;
  color: var(--color-primary);
  font-family: var(--ff-poppins);
  font-size: var(--fs-1);
  padding: 10px;
  transform: translateY(50px);
  transition: 0.75s cubic-bezier(0.68, -0.55, 0.27, 2);
}

.navbar.active .navbar-link {
  transform: translateY(0);
  transition-delay: 0.5s;
}

.navbar-link::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  height: 5px;
  width: 0;
  background: var(--new-color);
  transition: var(--transition-1);
}

.navbar-link:is(:hover, :focus)::before { background: var(--new-color);
  color: var(--white);}
  
  
  @media (max-width: 768px) {
    .header {
      border-bottom-width: 5px; /* Adjust the border thickness */
    }
  }
  
 
/*-----------------------------------*\
 * #HERO
\*-----------------------------------*/

.home-section {
  position: flex;
  height: 65vh;
  background: url('hoem.gif') no-repeat center center/cover;
  display: flex;
  justify-content: left;
  align-items: center;
  text-align: left;
  padding-left: 40px;
  border-bottom: 7px solid transparent;
  border-top: 7px solid transparent;
  border-image-source: url('kitenge2.jpg');
  border-image-slice: 1;
  border-image-repeat: repeat-x;
}
.home-content {
  width: 50%;
}

.home-section h1 {
  color: white;
  font-size: 2.2rem;
}

@media (max-width: 768px) {
  .home-section h1 {
      font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .home-section h1 {
      font-size: 1.2rem;
  }
}

/*-----------------------------------*\
 * #mycard
\*-----------------------------------*/

.word-boxes-section {

  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 equal-width boxes */
  gap: 1rem; /* Space between boxes */
  margin: 6rem 0; /* Space around the section */
  font-family: 'Fira Sans', sans-serif;
}

.word-box {
  display: flex;
  justify-content: center; /* Center text horizontally */
  align-items: center; /* Center text vertically */
  border-radius: 30px; /* Rounded corners */
  color: white; /* Text color */
  font-size: 1.6rem; /* Font size */
  font-weight: bold;
  height: 120px; /* Height of the boxes */
  text-align: center;
  padding: 12px;
  padding-top: 20px;
  padding-bottom: 20px;
  font-family: 'Fira Sans', sans-serif;
}


/* Responsive adjustments */
@media (max-width: 768px) {
  .word-boxes-section {
    grid-template-columns: repeat(2, 1fr); /* 2 boxes per row for tablets */
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .word-boxes-section {
    grid-template-columns: 1fr; /* 1 box per row for mobile */
    gap: 0.8rem; /* Reduce gap for smaller screens */
    align-items: center;
    text-align: center;
  }
}

/*-----------------------------------*\
 * #ABOUT
\*-----------------------------------*/

.about { padding-block: var(--section-padding); }

.about-banner {
  max-width: 400px;
  margin-inline: auto;
  margin-bottom: 20px;
}

.about .btn {
  max-width: unset;
  width: 100%;
}

.about .btn-secondary { margin-bottom: 10px; }

@media (max-width: 768px) {
  .about {
    background-size: cover; /* Adjust background image size on small screens */
    background-attachment: scroll; /* Make background scroll with the content */
  }
}

@media (max-width: 480px) {
  .about {
    background-size: cover; /* Ensure it remains fully visible on small screens */
    background-position: center center; /* Adjust positioning for better appearance */
  }
}





/*-----------------------------------*\
 * #SKILLS
\*-----------------------------------*/

.skills { padding-block: var(--section-padding); }

.skills-content { 
  text-align: center;
  margin-bottom: 50px;
width: 100%; }

.skills-toggle {
  background: var(--bg-secondary);
  position: relative;
  width: max-content;
  margin-inline: auto;
  display: flex;
  align-items: center;
  padding: 5px;
  border-radius: 100px;
  box-shadow: var(--shadow-1);
  z-index: 1;
}

.skills-toggle::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  bottom: 5px;
  width: 93px;
  background: var(--new-color);
  border-radius: 100px;
  transition: var(--transition-1);
  z-index: -1;
}

.skills-toggle.active::before {
  left: 98px;
  width: 94px;
}

.toggle-btn {
  color: var(--color-primary);
  font-family: var(--ff-poppins);
  padding: 5px 25px;
  transition: var(--transition-1);
}

.toggle-btn.active { color: var(--white); }

.skills-box.active .skills-list,
.skills-box .tools-list { display: none; }

.skills-box .skills-list,
.skills-box.active .tools-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 15px;
  animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {

  0% { opacity: 0; }
  100% { opacity: 1; }

}

.skill-card {
  position: relative;
  background: var(--bg-secondary);
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-12);
  box-shadow: var(--shadow-1);
  cursor: help;
  margin-top: 30px;
  margin-right: 10px;
}

.skill-card:hover .tooltip {
  transform: translateY(0);
  opacity: 1;
}

.card-icon img {
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
  border-radius: 50%;
}

/*-----------------------------------*\
 * #gallery
\*-----------------------------------*/
.marquee {
  display: flex;
  block-size: var(--marquee-item-height);
  margin-block: var(--marquee-item-height);
  position: relative;
  overflow-x: hidden;
  mask-image: linear-gradient(
    to right,
    hsl(0 0% 0% / 0),
    hsl(0 0% 0% / 1) 20%,
    hsl(0 0% 0% / 1) 80%,
    hsl(0 0% 0% / 0)
  );
}

.marquee--3 {
  --marquee-item-width: 190px;
  --marquee-item-height: 150px;
  --marquee-duration: 24s;
  --marquee-items: 11;
}

.marquee--omega {
  --marquee-max-width: min(600px, 90vw);
  max-inline-size: var(--marquee-max-width);
  margin-inline: auto;
  mask-image: linear-gradient(
    to right,
    hsl(0 0% 0% / 0),
    hsl(0 0% 0% / 1) 10%,
    hsl(0 0% 0% / 1) 90%,
    hsl(0 0% 0% / 0)
  );
}

.marquee__item {
  --marquee-item-offset: max(
    calc(var(--marquee-item-width) * var(--marquee-items)),
    calc(100% + var(--marquee-item-width))
  );
  --marquee-delay: calc(var(--marquee-duration) / var(--marquee-items) * (var(--marquee-items) - var(--marquee-item-index)) * -1);
  position: absolute;
  inset-inline-start: var(--marquee-item-offset);
  transform: translateX(-50%);
  animation: go linear var(--marquee-duration) var(--marquee-delay, 0s) infinite;
}

.marquee__item:nth-child(3n) {
  border-top-right-radius: 1rem;
}

.marquee__item:nth-child(3n + 1) {
  border-bottom-right-radius: 1rem;
}

.marquee__item:nth-child(3n + 2) {
  border-bottom-left-radius: 1rem;
}
.marquee__item:nth-child(3n + 3) {
  border-bottom-right-radius: 1rem;
}

.marquee__item:nth-child(3n + 4) {
  border-bottom-left-radius: 1rem;
}
.marquee__item:nth-child(3n + 5) {
  border-bottom-right-radius: 1rem;
}

.marquee__item:nth-child(3n + 6) {
  border-bottom-left-radius: 1rem;
}
.marquee__item:nth-child(3n + 7) {
  border-bottom-left-radius: 1rem;
}
.marquee__item:nth-child(3n + 8) {
  border-bottom-left-radius: 1rem;
}
.marquee__item:nth-child(3n + 9) {
  border-bottom-left-radius: 1rem;
}
.marquee__item:nth-child(3n + 10) {
  border-bottom-left-radius: 1rem;
}


.marquee--3 .marquee__item:nth-of-type(1) {
  --marquee-item-index: 1;
}

.marquee--3 .marquee__item:nth-of-type(2) {
  --marquee-item-index: 2;
}

.marquee--3 .marquee__item:nth-of-type(3) {
  --marquee-item-index: 3;
}
.marquee--3 .marquee__item:nth-of-type(4) {
  --marquee-item-index: 4;
}

.marquee--3 .marquee__item:nth-of-type(5) {
  --marquee-item-index: 5;
}

.marquee--3 .marquee__item:nth-of-type(6) {
  --marquee-item-index: 6;
}
.marquee--3 .marquee__item:nth-of-type(7) {
  --marquee-item-index: 7;
}

.marquee--3 .marquee__item:nth-of-type(8) {
  --marquee-item-index: 8;
}
.marquee--3 .marquee__item:nth-of-type(9) {
  --marquee-item-index: 9;
}
.marquee--3 .marquee__item:nth-of-type(10) {
  --marquee-item-index: 10;
}
.marquee--3 .marquee__item:nth-of-type(11) {
  --marquee-item-index: 11;
}


@keyframes go {
  to {  
    inset-inline-start: calc(var(--marquee-item-width) * -1);
  }
}
/*-----------------------------------*\
 * #PROJECT
\*-----------------------------------*/

.project { padding-block: var(--section-padding); }

.project-list > li { margin-bottom: 25px; }

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-12);
  box-shadow: 2px 4px 6px hsla(0, 0%, 0%, 0.2);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transition: var(--transition-1);
}

.project-card:is(:hover, :focus)::after {
  background: hsla(0, 0%, 100%, 0.1);
  backdrop-filter: blur(0.5px);
}

.project-card .card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
}

.project-card .card-title { margin-bottom: 10px; }

.project-card :is(.card-title, .publish-date) {
  background: var(--bg-primary);
  padding: 6px 12px;
  width: max-content;
  box-shadow: var(--shadow-1);
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition-1);
}

.project-card .publish-date {
  font-size: var(--fs-6);
  color: var(--color-primary);
  transition-delay: 0s;
}

.project-card:is(:hover, :focus) :is(.card-title, .publish-date) {
  transform: translateY(0);
  opacity: 1;
}

.project-card:is(:hover, :focus) .publish-date { transition-delay: 0.1s; }

.load-more {
  font-size: var(--fs-4);
  color: var(--new-color);
  text-decoration: underline;
  margin-inline: auto;
}
/*-----------------------------------*\
 * #services 2
\*-----------------------------------*/

/*** 
/*-----------------------------------*\
 * #services 2
\*-----------------------------------*/

.service { padding-block: var(--section-padding); }

.dcontainer {
  display: flex; /* Enables flexbox layout */
  justify-content: space-between; /* Evenly distributes items, with space between */
  align-items: flex-start; /* Aligns items vertically (optional) */
  width: 100%; /* Ensures the container spans the full screen width */
  padding: 10px; /* Optional padding for spacing */
  box-sizing: border-box;
  gap: 20px;
}
.dcontainer .item {
  flex-basis: 30%; /* Makes each item occupy 30% of the container width */
  text-align: center; /* Centers text inside the item */
  background-color: #f0f0f0; /* Optional background for visibility */
  padding: 20px; /* Optional padding for spacing */
  border: 1px solid #ddd; /* Optional border for styling */
  box-sizing: border-box; /* Ensures padding is included in width calculation */
}
@media (max-width: 768px) {
  .dcontainer {
    flex-direction: column; /* Stacks items vertically */
    justify-content: flex-start; /* Aligns items to the top */
  }
  .dcontainer .item {
    width: 100%; /* Makes items take up the full width */
  }
}
.service .grid-list {
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* Two cards per row */
  gap: 20px; /* Space between cards */
  
}

.service-card {
  height: 100%;
  padding: 30px 25px;
  text-align: center;
  background-color: #f9f9f9; /* Gray-white background */
  border-radius: var(--radius-12);
  border: 1px solid #e0e0e0; /* Light gray border for cleaner look */
  position: relative;
  overflow: hidden;
  animation: slideIn 0.5s ease-out forwards; /* Slide in with a 0.5s duration */
  animation-delay: 0.3s; /* Add a slight delay if needed */
}

.service-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--go-green);
  transition: width var(--transition-22);
}

.service-card:is(:hover, :focus-within)::after {
  width: 100%;
}

.service-card .card-icon {
  max-width: max-content;
  margin-inline: auto;
  margin-block-end: 10px;
}

.service-card .img {
  max-width: 100%;
  height: auto;
  transition: transform var(--transition-12);
}

.service-card:is(:hover, :focus-within) .img {
  transform: scale(1.1);
}

.service-card .card-title {
  margin-block: 10px;
  font-weight: bold;
  color: var(--color-primary);
}

.service-card .card-text {
  margin-block: 10px;
  font-size: 0.9rem;
  color: var(--color-secondary);
}

.service-card .btn-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--go-green);
  text-decoration: none;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .service .grid-list {
    grid-template-columns: 1fr; /* One card per row on smaller screens */
  }
}

.section-subtitle2::before {
  content: "";
  position: absolute;
  top: 30%;
  left: -60px;  /* Adjust distance from the text */
  width: 50px;  /* Line width */
  height: 2px;  /* Line thickness */
  background-color: var(--color-secondary);  /* Line color */
  transform: translateY(-50%);  /* Vertically center the line */
}

.section-subtitle2 {
  position: relative;
  color: var(--color-secondary);
  text-transform: uppercase;
  padding-bottom: 5px;
  margin-bottom: 20px;
}

.section-subtitle2 {
  position: absolute;
  transform: rotate(0.75turn) translateX(-100%);
  transform-origin: left top;
  margin-bottom: 0;
}

.section-subtitle2::after {
  top: 8px;
  left: auto;
  right: calc(100% + 20px);
}

.full-width-card {
  width: 100%;
  background-color: #f9f9f9; /* Gray background */
  border: 1px solid #e0e0e0; /* Light border for separation */
  border-radius: 12px;
  padding: 20px;
  margin-top: 50px;
  text-align: center;
  overflow: hidden;
  margin-bottom: 30px;
}

.images-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.full-card-img {
  flex: 1;
  max-width: 15%; /* Images occupy 30% of the available width each */
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.full-card-img:hover {
  transform: scale(1.05); /* Slight zoom on hover */
}

.text-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.text-item {
  flex: 1;
  text-align: center;
}

.text-item h3 {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.text-item p {
  font-size: 0.9rem;
  color: var(--color-secondary);
}

@keyframes slideIn {
  0% {
    transform: translateX(100%); /* Start from off-screen to the right */
    opacity: 0;
  }
  100% {
    transform: translateX(0); /* End at the normal position */
    opacity: 1;
  }
}
.dcontainer .grid-list li:nth-child(1) .service-card {
  animation-delay: 0.3s;
}

.dcontainer .grid-list li:nth-child(2) .service-card {
  animation-delay: 0.5s;
}

.dcontainer .grid-list li:nth-child(3) .service-card {
  animation-delay: 0.8s;
}

.dcontainer .grid-list li:nth-child(4) .service-card {
  animation-delay: 1.0s;
}


/*-----------------------------------*\
 * #CONTACT
\*-----------------------------------*/

.contact { padding-block: var(--section-padding); }

.contact-content { margin-bottom: 50px; }

.contact-list-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-item-icon {
  font-size: 25px;
  color: var(--color-primary);
}

.contact-item-icon ion-icon { --ionicon-stroke-width: 40px; }

.contact-item-title { margin-bottom: 10px; }

.contact-list-item .contact-info {
  color: var(--color-secondary);
  font-style: normal;
  line-height: 1.6;
  transition: var(--transition-1);
}

.contact-info:not(address):is(:hover, :focus) { color: var(--color-primary); }

.contac-social-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
  padding-inline: 40px;
}

.contact-social-link {
  position: relative;
  background: var(--color-primary);
  color: var(--bg-primary);
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: var(--transition-1);
}

.contact-social-link:is(:hover, :focus) {
  background: var(--new-color);
  color: var(--white);
}

.contact-social-link:is(:hover, :focus) .tooltip {
  transform: translateY(0);
  opacity: 1;
}

.contact-form {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: var(--radius-12);
  box-shadow: var(--shadow-1);
}

.form-wrapper { margin-bottom: 25px; }

.form-label {
  color: var(--color-primary);
  font-size: var(--fs-7);
  font-family: var(--ff-poppins);
  margin-bottom: 8px;
  margin-left: 5px;
}

.input-wrapper { position: relative; }

.input-field {
  background: var(--input-bg);
  color: var(--new-color);
  padding: 10px;
  padding-left: 40px;
  border-radius: var(--radius-12);
  transition: var(--transition-1);
}

.input-wrapper ion-icon {
  position: absolute;
  top: 10px;
  left: 10px;
  color: var(--color-secondary);
  font-size: 20px;
  transition: var(--transition-1);
}

textarea.input-field {
  min-height: 60px;
  height: 120px;
  max-height: 200px;
  resize: vertical;
}

.input-field:focus { outline: 1px solid; }

.input-field:focus + ion-icon { color: var(--new-color); }

.contact .btn-primary {
  max-width: unset;
  width: 100%;
  background: var(--color-primary);
  color: var(--bg-primary);
}


/*-----------------------------------*\
 * #CTA
\*-----------------------------------*/

.cta {
  position: relative;
  background-repeat: no-repeat;
  background-position: center;
  padding: 50px 0;
  background-size: cover;
  background-attachment: fixed;
  text-align: center; /* Align text horizontally to the middle */
  z-index: 1;
  
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--gradient);
  background: rgba(0, 0, 0.4, 0); /* Overlay color */
  opacity: 0.95;
  z-index: -1;
}

.container3 {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center; /* Align all text in the middle */
  
}

.cta-subtitle {
  font-size: 18px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 32px;
  margin-bottom: 30px;
}

.btn-get-in-touch {
  background-color: #004E57;
  color: white;
  padding: 10px 25px;
  border: none;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 21px;
  transition: background-color 0.3s, color 0.3s;
  left: 75%; /* Center horizontally */
}

.btn-get-in-touch:hover,
.btn-get-in-touch:focus {
  background-color: white;
  color: #004E57;
}

@media (max-width: 768px) {
  .cta {
  background-image: none;
  background-color: #004E57;
  font-size: 1rem;
}
}

/*-----------------------------------*\
 * #FOOTER
\*-----------------------------------*/

.footer {
  background: var(--bg-secondary);
  text-align: center;
  box-shadow: var(--shadow-1);
  padding-block: 10px;
}

.footer .logo { margin-bottom: 15px; }

.copyright {
  color: var(--color-secondary);
  line-height: 1.6;
}

.copyright a {
  display: inline-block;
  color: var(--new-color);
}





/*-----------------------------------*\
 * #GO TO TOP
\*-----------------------------------*/

.go-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: var(--transition-1);
  z-index: 2;
}

.go-top.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}





/*-----------------------------------*\
 * #MEDIA QUERIES
\*-----------------------------------*/

/**
 * responsive for larger than 550px screen
 */

@media (min-width: 550px) {

  /**
   * REUSED STYLE
   */

  .container {
    max-width: 550px;
    margin-inline: auto;
  }

  .section-title { max-width: 380px; }


  /**
   * PROJECT
   */

  .project-list {
    column-count: 2;
    column-gap: 25px;
  }

  .project-list > li:first-child { column-span: all; }

}





/**
 * responsive for larger than 768px screen
 */

@media (min-width: 768px) {

  /**
   * REUSED STYLE
   */

  .container { max-width: 720px; }

  .section-title { max-width: 430px; }



  /**
   * STATS
   */

  .stats-list { grid-template-columns: 1fr 1fr; }



  /**
   * ABOUT
   */

  .btn-group {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
  }

  .about .btn { max-width: max-content; }

  .about .btn-secondary { margin-bottom: 0; }



  /**
   * CONTACT
   */

  .contact-form {
    max-width: 450px;
    margin-inline: auto;
  }

}





/**
 * responsive for larger than 992px screen
 */

@media (min-width: 992px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-2: 3rem;

    /**
     * spacing
     */

    --section-padding: 100px;

  }



  /**
   * REUSED STYLE
   */

  .container { max-width: 980px; }

  .section-content {
    position: relative;
    padding-left: 40px;
  }

  .section-subtitle {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(0.75turn) translateX(-100%);
    transform-origin: left top;
    margin-bottom: 0;
  }

  .section-subtitle::after {
    top: 8px;
    left: auto;
    right: calc(100% + 20px);
  }



  /**
   * HEADER
   */

  .header { padding-block: 20px; }

  .header.active { padding-block: 10px; }

  .navbar-actions {
    order: 1;
    margin-left: 0;
  }

  .nav-toggle-btn { display: none; }

  .navbar { all: unset; }

  .navbar-link {
    transform: translateY(0);
    font-size: unset;
    padding-inline: 5px;
  }

  .navbar-list > li {
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .navbar-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }

  .navbar-link::before { height: 2px; }



  /**
   * HERO
   */

  .hero {
    position: relative;
    padding-top: 0;
    height: 100vh;
  }

  .hero-banner {
    max-width: unset;
    height: 100%;
    margin-bottom: 0;
  }

  .hero img {
    height: 100%;
    width: auto;
    margin-inline: auto;
  }

  .hero-content {
    --color-primary: var(--white);

    position: absolute;
    top: 50%;
    filter: drop-shadow(2px 4px 10px var(--black));
  }

  .hero .btn-primary:is(:hover, :focus) { color: hsl(0, 0%, 12%); }

  .hero-social-list {
    display: block;
    position: absolute;
    bottom: 92px;
    left: -30px;
  }

  .hero-social-list::after {
    content: "";
    position: absolute;
    bottom: -40px;
    left: 13px;
    width: 2px;
    height: 30px;
    background: var(--color-secondary);
  }

  .hero-social-link {
    position: relative;
    color: var(--color-secondary);
    margin-block: 5px;
    padding: 5px;
    font-size: 18px;
    transition: var(--transition-1);
  }

  .hero-social-link:is(:hover, :focus) { color: var(--color-primary); }

  .hero-social-link .tooltip {
    --trans-x: 10px;

    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(var(--trans-x));
  }

  .hero-social-link:is(:hover, :focus) .tooltip {
    --trans-x: 0;
    opacity: 1;
  }

  .scroll-down {
    display: block;
    position: absolute;
    bottom: 80px;
    right: -30px;
    color: var(--color-secondary);
    font-size: 1.125rem;
    text-transform: uppercase;
    transform: rotate(90deg);
    transform-origin: top right;
  }

  .scroll-down::after {
    content: "";
    position: absolute;
    top: 8px;
    right: -50px;
    width: 30px;
    height: 2px;
    background: var(--color-secondary);
  }
 



  /**
   * STATS
   */

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

  .stats-card { height: 75%; }




  /**
   * ABOUT
   */

  .about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 30px;
  }

  .about-banner { margin-bottom: 0; }




  /**
   * SKILLS
   */

  .skills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
  }

  .skills-content { margin-bottom: 0; }

  .skills-toggle { margin-inline: 0; }



  /**
   * PROJECT
   */

  .project-list { column-count: 3; }

  .project-list > li:first-child {
    column-span: unset;
    margin: 25px;
    margin-left: 0;
  }



  /**
   * CONTACT
   */

  .contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .contact-content { margin-bottom: 0; }

  .contact-form { width: 100%; }

  .contact-list { margin-left: -40px; }



  /**
   * FOOTER
   */

  .footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .footer .logo { margin-bottom: 0; }

}





/**
 * responsive for larger than 1200px screen
 */

@media (min-width: 1200px) {

  /**
   * REUSED STYLE
   */

  .container { max-width: 1150px; }

  .section-title { max-width: 460px; }




  /**
   * HERO
   */

  .hero-social-list { left: -80px; }

  .scroll-down { right: -80px; }


  /**
   * ABOUT
   */

  .about-banner { max-width: 450px; }

 

}

/* Keyframes for fade-in animation */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Base fade-in class */
.fade-in {
  opacity: 0; /* Start invisible */
  animation: fadeIn 6s ease-out forwards; /* Animation */
}

/* Delayed animations for different text parts */
.delay-1 {
  animation-delay: 6s;
}

.delay-2 {
  animation-delay: 8.8s;
}

.delay-3 {
  animation-delay: 9s;
}


.container32 {
  color: #e5e5e5;
  font-size: 1.5rem;
  text-transform: uppercase;
  height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.animation {
  height: 55px;
  overflow: hidden;
  margin-left: 2rem;
  line-height: 1.8;
}

.animation > div > div {
  padding: 0.00rem 1rem;
  height: 2.81rem;
  margin-bottom: 2.81rem;
  display: inline-block;
  border-radius: 12px;
  text-align: center;
}

.animation div:first-child {
  animation: text-animation 10s infinite;
}

.first div {
  background-color: #20a7d8;
  
}

.second div {
  background-color: #CD921E;
}

.third div {
  background-color: #c10528;
}

@keyframes text-animation {
  0% { margin-top: 0; }
  10% { margin-top: 0; }
  20% { margin-top: -5.62rem; }
  30% { margin-top: -5.62rem; }
  40% { margin-top: -11.24rem; }
  60% { margin-top: -11.24rem; }
  70% { margin-top: -5.62rem; }
  80% { margin-top: -5.62rem; }
  90% { margin-top: 0; }
  100% { margin-top: 0; }
}
