/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Bai+Jamjuree:wght@400;500;600;700&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  /*========== Colors ==========*/

  /* Core Colors */
  --first-color: hsl(14, 98%, 50%);
  --black-color: #2a2a2a;
  --white-color: hsl(0, 0%, 95%);
  --text-color: hsl(0, 0%, 35%);
  --container-color: hsl(199, 94%, 79%);
  --body-color: hsl(199, 97%, 87%);
  --accent-color: hsl(210, 90%, 80%);
  /* Hover effect brightness */

  /* Gradients & Effects */
  --primary-bg: linear-gradient(135deg, #1b2735, #090a0f);
  --glass-bg: hsl(199, 97%, 87%);
  --glass-border: hsl(199, 97%, 87%);
  --shadow-color: rgba(0, 0, 0, 0.5);
  --highlight-color: hsl(199, 97%, 75%);

  /*========== Font and typography ==========*/
  --body-font: "Bai Jamjuree", sans-serif;

  --h1: clamp(2.5rem, 5vw, 4rem);
  --h2: clamp(1.5rem, 4vw, 2.5rem);
  --body-text: clamp(0.9rem, 2vw, 1.3rem);
  --small-body: clamp(0.7rem, 1.5vw, 0.9rem);

  /*========== Margin Padding ==========*/

  --space-xs: clamp(0.75rem, 1vw, 1rem);
  /* Extra Small */
  --space-sm: clamp(1rem, 2vw, 1.5rem);
  /* Small */
  --space-md: clamp(1.5rem, 3vw, 2rem);
  /* Medium */
  --space-lg: clamp(2rem, 4vw, 3rem);
  /* Large */
  --space-xl: clamp(3rem, 5vw, 4rem);
  /* Extra Large */

  /*========== Font weight ==========*/

  --f-300: 300;
  --f-400: 400;
  --f-500: 500;
  --f-600: 600;
  --f-700: 700;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;

  /*========== Box-Shadow ==========*/
  --box-shadow:
    0px 5px 10px rgba(0, 0, 0, 0.2), 0px 10px 20px rgba(0, 0, 0, 0.15),
    0px 20px 40px rgba(0, 0, 0, 0.1);

  /*========== Link Icon ==========*/
  --icon-size: clamp(1rem, 1.7vw, 2rem);
  /* Icon size scales responsively */
}

#contact_form_container {
  scroll-margin-top: 15vh;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #00112c;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition:
    opacity 0.5s ease-out,
    visibility 0.5s ease-out;
  opacity: 1;
  visibility: visible;
}

.wavy {
  position: relative;
  /* Removed -webkit-box-reflect from here to apply per line */
  text-align: center;
}

.preloader-text-line {
  display: inline-block;
  position: relative;
  -webkit-box-reflect: below -18px
    linear-gradient(transparent, rgba(0, 0, 0, 0.2));
  margin: 0 5px;
  /* Add some spacing between segments on desktop */
}

.wavy span {
  display: inline-block;
  position: relative;
  color: var(--container-color);
  font-size: 35px;
  text-transform: uppercase;
  text-shadow:
    0 0 3px #fff,
    0 0 7px #fff,
    0 0 11px #44c7f4,
    0 0 15px #44c7f4,
    0 0 19px #44c7f4,
    0 0 23px #44c7f4;
  animation: wavy 1s infinite;
  animation-delay: calc(0.1s * var(--index));
}

/* Let's create the bouncing animation */
@keyframes wavy {
  0%,
  40%,
  100% {
    transform: translateY(0);
  }

  20% {
    transform: translateY(-18px);
  }
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 9px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  background-color: var(--primary-bg);
}

::-webkit-scrollbar {
  width: 12px;
  background-color: var(--accent-color);
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: var(--text-color);
}

/*=============== SCROLL UP / BACK TO TOP ===============*/
.backtoTop {
  position: fixed;
  left: 5%;
  margin-bottom: 1.5%;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: clamp(3rem, 5vw, 4rem);
  height: clamp(3rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--glass-bg);
  color: var(--black-color);
  font-size: var(--icon-size);
  border: 3px solid var(--black-color);
  box-shadow: var(--box-shadow);
  cursor: pointer;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
  z-index: var(--z-fixed);
  visibility: hidden;
  opacity: 0;
}

.backtoTop:hover {
  background-color: var(--accent-color);
  box-shadow:
    0 0 10px var(--highlight-color),
    0 0 20px var(--highlight-color);
  transform: translateY(-5px);
}

.backtoTop i {
  pointer-events: none;
}

.backtoTop:active {
  transform: scale(0.95);
}

.backtoTop.show {
  visibility: visible;
  opacity: 1;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--body-font);
  background-color: var(--body-color);
  color: var(--text-color);
  text-transform: capitalize;
  font-size: var(--small-body);
}

main {
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  color: var(--black-color);
  font-weight: var(--f-600);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--text-color);
}

/*========== SCROLL REVEAL ANIMATION ==========*/
[data-reveal] {
  transform: translateY(50px);
  opacity: 0;
  transition: 1s ease;
}

[data-reveal="left"] {
  transform: translate(-50px, 0);
}

[data-reveal="right"] {
  transform: translate(50px, 0);
}

[data-reveal].revealed {
  transform: translate(0, 0);
  opacity: 1;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 95%;
  margin-inline: var(--space-md);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

.sub_title {
  font-weight: var(--f-600);
  margin: 1rem auto;
  font-size: var(--h2);
  text-align: center;
  color: var(--black-color);
}

.section_desc {
  text-align: justify;
}

.text_wrapper {
  display: grid;
  place-content: center;
  /* background-color: var(--body-color); */
  font-size: var(--h1);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--black-color);
}

.text_wrapper > div {
  grid-area: 1/1/-1/-1;
}

.top {
  clip-path: polygon(0% 0%, 100% 0%, 100% 48%, 0% 58%);
}

.bottom {
  clip-path: polygon(0% 60%, 100% 50%, 100% 100%, 0% 100%);
  color: transparent;
  background: -webkit-linear-gradient(177deg, black 53%, var(--text-color) 65%);
  background: linear-gradient(177deg, black 53%, var(--text-color) 65%);
  background-clip: text;
  -webkit-background-clip: text;
  transform: translateX(-0.02em);
}

@keyframes pulse {
  0%,
  100% {
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.2),
      inset 0 5px 8px rgba(255, 255, 255, 0.2);
    transform: scale(1);
  }

  50% {
    box-shadow:
      0 15px 40px rgba(0, 0, 0, 0.4),
      inset 0 8px 12px rgba(255, 255, 255, 0.4);
    transform: scale(1.075);
  }
}

/*=============== BUTTON ===============*/
.new_btn {
  font-weight: var(--f-500);
  background: none;
  border: 4px solid var(--glass-border);
  padding: var(--space-xs) var(--space-md);
  box-sizing: content-box;
  border-radius: 8px;
  letter-spacing: 1px;
  cursor: pointer;
  text-transform: capitalize;
  transition: all 0.5s ease-in-out;
  box-shadow:
    inset 2px 2px 5px rgba(0, 0, 0, 0.3),
    5px 5px 15px rgba(0, 0, 0, 0.4),
    -3px -3px 10px rgba(255, 255, 255, 0.4);
}

.new_btn:is(:hover, :focus) {
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow:
    inset 1px 1px 3px var(--shadow-color),
    8px 8px 20px var(--shadow-color),
    -5px -5px 15px rgba(255, 255, 255, 0.5);
  background-color: var(--highlight-color, rgba(255, 255, 255, 0.8));
}

/*=============== ICON ===============*/
.icns {
  margin-top: var(--space-sm);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
}

.icns a {
  padding: var(--space-xs);
  font-size: var(--icon-size);
  border-radius: 8px;
  font-weight: var(--f-500);
  color: var(--text-color);
  background: var(--glass-bg, transparent);
  text-transform: lowercase;
  transition: all 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 2px 2px 5px rgba(0, 0, 0, 0.3),
    5px 5px 15px rgba(0, 0, 0, 0.4),
    -3px -3px 10px rgba(255, 255, 255, 0.4);
}

.icns a:hover {
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow:
    inset 1px 1px 3px var(--shadow-color),
    8px 8px 20px var(--shadow-color),
    -5px -5px 15px rgba(255, 255, 255, 0.5);
  background: var(--glass-bg, transparent);
  border-radius: 50%;
}

/*=============== HEADER & NAV ===============*/
.header {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  border: 3px solid var(--glass-border);
  align-items: center;
  justify-content: space-around;
  height: clamp(70px, 10vw, 100px);
  background: var(--glass-bg);
  text-align: center;
  padding: 2px 1px;
  box-shadow:
    0 10px 30px var(--shadow-color),
    inset 0 5px 8px var(--highlight-color);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 9;
  clip-path: none;
}

.head_name h3 {
  font-size: var(--h2);
  font-weight: bold;
  text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.684);
}

.head_name p {
  font-size: var(--small-body);
  font-style: italic;
  font-weight: var(--f-700);
}

.contactChat_head {
  display: none;
  margin-top: 0;
}

.contactChat_head a {
  font-size: var(--small-body);
  font-weight: var(--f-700);
  padding: var(--space-xs);
  box-shadow: none;
}

.contactChat_head a:hover {
  border-radius: 12px;
}

.menu {
  position: fixed;
  bottom: 8%;
  right: 5%;
  width: clamp(3rem, 5vw, 4rem);
  height: clamp(3rem, 5vw, 4rem);
  background: var(--glass-bg);
  border-radius: 50%;
  border: 2px solid var(--glass-border);
  box-shadow:
    0 10px 30px var(--shadow-color),
    inset 0 5px 8px var(--highlight-color);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  animation: pulse 2s infinite;
  -webkit-animation: pulse 2s infinite;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 100;
  transition: all 0.3s ease;
}

.menu:hover {
  box-shadow: var(--box-shadow);
}

.menu_icon {
  width: 50%;
  height: 3px;
  background: var(--text-color);
  position: relative;
  border-radius: 3px;
  transition: all 0.4s ease;
}

.menu_icon::before,
.menu_icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--text-color);
  border-radius: 3px;
  transition: all 0.4s ease;
}

.menu_icon::before {
  top: -7px;
}

.menu_icon::after {
  top: 7px;
}

.menu.active .menu_icon {
  background: transparent;
}

.menu.active .menu_icon::before {
  transform: rotate(45deg);
  top: 0;
}

.menu.active .menu_icon::after {
  transform: rotate(-45deg);
  top: 0;
}

.menu_links {
  position: fixed;
  z-index: 999;
  bottom: 25%;
  right: 50px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
  transition: all 0.4s ease;
}

.menu_links a {
  padding: var(--space-xs) var(--space-md);
  background: var(--glass-bg);
  font-weight: var(--f-500);
  color: var(--text-color);
  text-align: center;
  border-radius: 15px;
  border: 2px solid var(--glass-border);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow:
    0 6px 20px var(--shadow-color),
    inset 0 2px 4px var(--highlight-color);
  transition: all 0.3s ease;
}

.menu_links a:hover {
  color: var(--black-color);
  background: var(--highlight-color);
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.4),
    inset 0 3px 6px rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
}

.menu.active + .menu_links {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/*=============== SECTION ===============*/
section {
  padding: clamp(2rem, 5vw, 6rem) clamp(1rem, 5vw, 4rem);
  min-height: 100vh;
}

/*=============== HOME ===============*/
.home_section {
  max-width: 900px;
  display: flex;
  gap: 2rem;
  justify-content: space-around;
  flex-wrap: wrap;
  align-items: center;
  margin: var(--space-lg) auto;
}

.icons {
  order: 2;
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.image_container {
  position: relative;
  order: -1;
  margin-top: 1.5rem;
  border-radius: 20px;
  max-width: clamp(250px, 50%, 300px);
  aspect-ratio: 1;
  animation: hanging ease-in-out 1s infinite alternate;
  -webkit-animation: hanging ease-in-out 1s infinite alternate;
  transform-origin: center -20px;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.3);
}

.image_container img {
  max-width: 100%;
  margin: 0 auto;
  background-size: cover;
  border: 15px solid var(--container-color);
  border-radius: 20px;
  display: block;
}

.image_container::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  top: -19px;
  left: 47%;
  background: var(--black-color);
  border-radius: 50% 50%;
  z-index: 5;
}

.image_container::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid var(--black-color);
  top: -10px;
  left: 45%;
  z-index: 0;
  border-bottom: none;
  border-right: none;
  transform: rotate(45deg);
}

@keyframes hanging {
  0% {
    transform: rotate(3deg);
  }

  100% {
    transform: rotate(-3deg);
  }
}

.image_container .new_btn a {
  color: var(--accent-color);
}

.image_container .new_btn:hover {
  background: var(--glass-bg, transparent);
  border: 3px solid var(--accent-color);
}

.image_container .new_btn:hover i {
  transform: translateX(0.25rem);
}

.drop {
  width: clamp(270px, 20vw, 400px);
  height: clamp(270px, 20vw, 400px);
  background: var(--glass-bg);
  border-radius: 51% 49% 48% 52% / 62% 44% 56% 38%;
  opacity: 0.8;
  border: 2px solid var(--glass-border);
  animation: moveBlob 6s infinite ease-in-out;
  -webkit-animation: moveBlob 6s infinite ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

.drop::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  background: var(--container-color);
  border-radius: 51% 49% 48% 52% / 62% 44% 56% 38%;
  box-shadow:
    -20px 30px 16px var(--container-color),
    -40px 60px 32px var(--container-color),
    inset -6px 6px 10px var(--highlight-color),
    inset 2px 6px 10px var(--highlight-color),
    inset 20px -20px 22px var(--accent-color),
    inset 40px -40px 44px var(--highlight-color);
}

@keyframes moveBlob {
  0%,
  100% {
    border-radius: 51% 49% 48% 52% / 62% 44% 56% 38%;
    transform: translate(0, 0) scale(1);
  }

  25% {
    border-radius: 48% 52% 58% 52% / 62% 44% 56% 38%;
    transform: translate(-20px, 30px) scale(1.05);
    -webkit-border-radius: 48% 52% 58% 52% / 62% 44% 56% 38%;
    -moz-border-radius: 48% 52% 58% 52% / 62% 44% 56% 38%;
    -ms-border-radius: 48% 52% 58% 52% / 62% 44% 56% 38%;
    -o-border-radius: 48% 52% 58% 52% / 62% 44% 56% 38%;
  }

  50% {
    border-radius: 55% 45% 45% 55% / 45% 55% 65% 35%;
    transform: translate(20px, -20px) scale(1.1);
  }

  75% {
    border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
    transform: translate(-15px, -25px) scale(0.95);
  }
}

.home_text {
  position: relative;
  z-index: 10;
  max-width: 80%;
  margin: 0 auto;
  text-align: center;
}

.home_text h3 {
  font-size: var(--body-text);
  padding: var(--space-xs);
}

.home_section .new_btn {
  z-index: 6;
  position: absolute;
  bottom: 1rem;
  width: 40%;
  left: 50%;
  transform: translate(-50%, -50px);
  color: var(--accent-color);
}

/*=============== ABOUT ===============*/
#about {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

.abtImg_profile {
  position: relative;
  padding: 40px;
  max-width: 400px;
  margin-bottom: 10px;
}

.abtImg_border {
  position: absolute;
  border: 2px solid var(--text-color);
  transition: 0.3s ease-in-out;
  pointer-events: none;
}

.abtImg_border.one {
  inset: 0 20px;
}

.abtImg_border.two {
  inset: 20px 0;
}

.img_box {
  margin-bottom: 30px;
  max-width: fit-content;
}

.abtImg_profile p {
  text-align: center;
  font-size: var(--small-body);
  margin-bottom: 10px;
}

.profile_name {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.profile_name span {
  font-size: var(--h2);
  font-weight: var(--f-500);
}

.abt_contactLink {
  display: flex;
  justify-content: center;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.abt_contactLink .circle {
  background-color: var(--black-color);
  padding: 8px;
  border-radius: 50%;
  animation: pulse 3s infinite;
  -webkit-animation: pulse 3s infinite;
}

.abt_contactLink span {
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.abt_content {
  max-width: 400px;
}

.about_table {
  width: 100%;
  border-collapse: separate;
  text-align: left;
  margin-top: 25px;
  margin-bottom: 25px;
}

.about_table tr {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.about_table tr:not(:last-child) {
  margin-bottom: 20px;
}

.about_table th {
  text-transform: uppercase;
}

.download_cv {
  border: 3px solid var(--glass-border);
  width: 100%;
  text-transform: uppercase;
  padding: 40px 0;
  display: flex;
  box-shadow: var(--box-shadow);
  backdrop-filter: blur(15px);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: hsl(199, 97%, 87%);
  border-radius: 15px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.download_cv:hover {
  background: transparent;
  box-shadow:
    0 0 15px var(--highlight-color),
    0 0 30px var(--highlight-color),
    inset 5px 5px 15px rgba(0, 0, 0, 0.3),
    inset -5px -5px 15px rgba(255, 255, 255, 0.2);
}

.download_cv i {
  font-size: var(--h2);
}

.download_cv span {
  font-size: var(--body-text);
}

.download_cv i,
.download_cv span {
  color: var(--black-color);
  transition:
    transform 0.3s ease,
    text-shadow 0.3s ease,
    color 0.3s ease;
}

.download_cv:hover i {
  transform: scale(1.2) rotate(15deg);
  text-shadow: 0 0 10px var(--highlight-color) 0 0 20px var(--highlight-color);
}

.download_cv:hover span {
  transform: translateY(-5px);
  text-shadow: 0 0 5px var(--shadow-color);
}

/*=============== SERVICES ===============*/
.services_container {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  justify-content: center;
  column-gap: 0.5rem;
  margin: 0 auto;
  max-width: 800px;
  padding: var(--space-xs);
}

.services_content {
  position: relative;
  background: hsl(199, 97%, 87%);
  border: 2px solid var(--glass-border);
  padding: var(--space-lg);
  border-radius: 1.25rem;
  box-shadow: var(--box-shadow);
}

.services_content:hover {
  background: transparent;
  box-shadow:
    0 0 15px var(--highlight-color),
    0 0 30px var(--highlight-color),
    inset 5px 5px 15px rgba(0, 0, 0, 0.3),
    inset -5px -5px 15px rgba(255, 255, 255, 0.2);
}

.services_content div .sub_title {
  text-align: left;
  font-size: var(--body-text);
}

.service_icon {
  display: block;
  font-size: var(--icon-size);
  color: var(--black-color);
  font-weight: var(--f-700);
  margin-bottom: 1rem;
}

.service_btn {
  display: flex;
  align-items: center;
  column-gap: 0.25rem;
  cursor: pointer;
}

.service_btn_icon {
  transition: 0.3s;
  font-size: var(--icon-size);
}

.service_btn_icon:hover {
  transform: translateX(0.25rem);
}

.service_modal {
  position: fixed;
  color: var(--black-color);
  border: 4px solid var(--accent-color);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 90%;
  max-width: 600px;
  background: var(--body-color);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  z-index: 10;
  transition:
    transform 0.3s ease-in-out,
    opacity 0.3s ease-in-out;
  opacity: 0;
}

.service_modal.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.service_modal_content {
  padding: var(--space-xs);
  position: relative;
}

.service_modal_close {
  font-size: var(--icon-size);
  color: var(--text-color);
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
  transition: color 0.3s;
}

.service_modal_close:hover {
  color: var(--black-color);
}

.serviceModal_title {
  font-size: var(--body-text);
  margin-bottom: 20px;
  text-align: center;
}

.serviceModal_description {
  font-size: var(--small-body);
  margin-bottom: 20px;
  text-align: center;
}

.servicesModal_server {
  display: grid;
  grid-auto-rows: auto;
  row-gap: 10px;
  padding: 0;
}

.serviceModal_points {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.serviceModalIcon {
  font-size: var(--icon-size);
  color: var(--black-color);
}

.serviceModal_info {
  font-size: var(--small-body);
}

.modal_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out;
}

.modal_overlay.active {
  opacity: 1;
  visibility: visible;
}

/*=============== PROJECTS ===============*/
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 20px;
}

.timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.timeline_item {
  display: flex;
  align-items: center;
  gap: 20px;
  opacity: 1;
  transform: scale(1);
  visibility: visible;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 20px;
  background-color: var(--glass-bg);
  border: 4px solid var(--glass-border);
}

.timeline_item:hover {
  background: var(--container-color);
  box-shadow: inset 0 6px 18px rgba(0, 0, 0, 0.15);
}

.timeline_item:nth-child(even) {
  margin-left: 5rem;
}

.timeline_item.inactive {
  opacity: 0.3;
  transform: scale(0.9);
  pointer-events: none;
}

.timeline_item.active {
  opacity: 1;
  transform: scale(1);
}

.timeline_item img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 3px solid var(--glass-border);
}

.timeline_item.active img {
  transform: scale(1.1);
}

.timeline_year {
  font-size: var(--h2);
  font-weight: var(--f-700);
}

.project_info {
  background-color: var(--glass-bg);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  flex-grow: 1;
  border: 2px solid var(--glass-border);
}

/*=============== CONTACT ===============*/
.wrapper h3 {
  text-align: center;
  margin-bottom: 20px;
}

.contactContain {
  position: relative;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  align-items: center;
  max-width: 850px;
  margin: 0 auto;
}

.con_title {
  font-size: var(--body-text);
  font-weight: var(--f-600);
  text-transform: uppercase;
}

.contact_details {
  display: flex;
  flex-direction: column;
  row-gap: 15px;
  margin-bottom: 50px;
}

.contact_item {
  display: flex;
  align-items: center;
  column-gap: 25px;
}

.contact_icon {
  color: var(--black-color);
  font-size: var(--icon-size);
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
}

.contact_method {
  display: flex;
  flex-direction: column;
  row-gap: 7px;
}

.contact_method span {
  font-weight: var(--f-500);
  text-transform: uppercase;
}

.contact_method div {
  color: var(--black-color);
  text-transform: lowercase;
  font-weight: var(--f-600);
}

.contact_method a {
  text-transform: uppercase;
  padding: 0.5rem 0;
  text-decoration: none;
}

.contact_method a:hover {
  color: var(--black-color);
  box-shadow: none;
}

.contact_method a span {
  font-size: var(--small-body);
}

.contact_social_links {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 10px;
}

.contactForm_container {
  position: relative;
  background: var(--glass-bg);
  border: 3px solid var(--glass-border);
  margin-top: 3rem;
  padding: 30px;
  border-radius: 35px;
}

.contactForm_container h2 {
  text-transform: uppercase;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.contactForm_container h2 span {
  color: var(--black-color);
}

.contactForm_container p {
  font-size: var(--small-body);
  margin-bottom: 30px;
}

form {
  display: flex;
  flex-direction: column;
  row-gap: 15px;
}

.contactForm_container form .input_group input,
.contactForm_container form .input_group textarea {
  color: var(--black-color);
  font-size: var(--small-body);
  background: var(--glass-bg);
  width: 100%;
  border: none;
  outline: none;
  padding: 17px 20px;
  border-radius: 10px;
  box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contactForm_container form .input_group textarea {
  height: 180px;
  resize: none;
}

/*=============== FOOTER ===============*/
.footer {
  position: relative;
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  color: var(--black-color);
  padding: var(--space-xs);
  text-align: center;
  overflow: hidden;
}

.footer_container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer_section {
  flex: 1 1 169px;
}

.footer_section.links,
.footer_section.contact {
  text-align: left;
}

.footer_section ul {
  margin-left: 7.8rem;
}
/* .footer_section.links .sub_title,
.footer_section.contact .sub_title {
  text-align: left;
} */

.footer_section h3 {
  margin-bottom: 1rem;
  font-size: var(--body-text);
  font-weight: bold;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.684);
}

.footer_section p,
.footer_section ul {
  line-height: 1.6;
}

.footer_section ul {
  list-style: none;
  padding: 0;
}

.footer_section ul li {
  margin-bottom: 0.5rem;
  font-weight: var(--f-600);
}

.footer_section ul li:hover a {
  color: var(--body-text);
}

.social_icons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.footer_bottom {
  text-align: center;
  position: relative;
  width: 100vw;
  padding: var(--space-sm);
  color: var(--accent-color);
  background: var(--primary-bg);
}

/*=============== MEDIA QUERIES ===============*/
@media (max-width: 768px) {
  .timeline_item:nth-child(even) {
    margin-left: 0rem;
  }
}

@media (max-width: 500px) {
  .new_btn {
    font-weight: var(--f-500);
    background: none;
    border: 4px solid var(--glass-border);
    padding: var(--space-xs) var(--space-md);
    box-sizing: content-box;
    border-radius: 8px;
    letter-spacing: 1px;
    cursor: pointer;
    text-transform: capitalize;
    transition: all 0.5s ease-in-out;
    box-shadow:
      inset 2px 2px 5px rgba(0, 0, 0, 0.3),
      5px 5px 15px rgba(0, 0, 0, 0.4),
      -3px -3px 10px rgba(255, 255, 255, 0.4);
    /* margin-top: 80px; */
  }

  .new_btn a {
    font-size: 0.5rem;
    color: var(--black-color);
  }

  /* Reposition Button on Mobile */
  .home_section .new_btn {
    bottom: -15px;
    /* Move to bottom edge */
    transform: translateX(-50%);
    /* Center horizontally, remove vertical offset */
  }

  .timeline {
    padding: 20px;
  }

  .timeline_item {
    flex-direction: column;
  }

  .wavy span {
    font-size: 20px;
  }

  .preloader-text-line {
    display: block;
    margin-bottom: 25px;
  }

  /* Home Section Mobile Adjustments */
  section {
    padding: 6rem 1rem 2rem 1rem;
    /* Increased top padding to clear fixed header */
    min-height: auto;
    /* Allow section to shrink if content is small, though 100vh is usually desired for hero */
  }

  .home_section {
    gap: 1rem;
    /* Reduce gap between elements */
    margin-top: 1rem;
    flex-direction: column;
    /* Stack elements: Image (top) -> Text -> Icons (bottom) */
  }

  .image_container {
    max-width: 180px;
    /* Force image smaller */
    margin-top: 0.1rem;
    margin-bottom: 3rem;
    /* Increase gap between image and drop */
  }

  .drop {
    width: 170px;
    height: 170px;
  }

  .home_text h3 {
    font-size: 0.9rem;
    /* Even smaller text */
  }

  .home_text p {
    font-size: 0.7rem;
  }

  .icons {
    gap: 0.5rem;
    order: 3;
    /* Ensure icons are at the bottom of the column */
    flex-direction: row;
    /* Keep icons in a row */
    margin-top: 1.5rem;
    /* Push icons further to the bottom */
  }

  .new_btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  /* About Section Mobile Adjustments */
  #about {
    gap: 2rem;
    /* Maintain gap between image and content */
  }

  .abtImg_profile {
    padding: 10px;
    /* Reduce padding around image */
    max-width: 250px;
    /* Make image container smaller */
    margin: 0 auto;
    /* Center alignment */
  }

  .abt_content {
    width: 100%;
    /* Ensure content takes full width */
    max-width: 100%;
    padding: 0 10px;
    /* Add slight side padding for text */
  }
}

@media (min-width: 768px) {
  .header {
    padding: 30px 90px;
    margin: 0 auto;
    clip-path: polygon(0% 0%, 10% 0%, 15% 100%, 85% 100%, 90% 0%, 100% 0%);
  }

  .contactChat_head {
    display: flex;
  }

  .icons {
    order: -1;
    flex-direction: column;
  }

  .contactForm_container {
    width: 65%;
  }
}
