/*   NOW THAT YOU GOT THE CODE, YOU SUBSCRIBE TO MY CHANNEL NERDYCODECRAFTER PLEASE! I REALLY NEED YOUR HELP THERE:
https://www.youtube.com/@NerdyCodeCrafter?sub_confirmation=1  */

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

/*=============== VARIABLES CSS ===============*/
:root {
  --primary: #fa0f0f;
  --secondary: #fa0f0f;
  --background: #bbbbbb83;
  --input-bg: #acacac88;
  --s-glass-border: #fa0f0f;
  /*========== Colors ==========*/

  /* Core Colors */
  --first-color: hsl(14, 98%, 50%);
  --black-color: #2a2a2a;
  --white-color: hsl(0, 0%, 95%);
  --text-color: hsl(0, 0%, 3%);
  --container-color: hsl(0, 0%, 83%);
  --body-color: hsl(0, 0%, 87%);
  --accent-color: rgba(255, 255, 255, 0.9); /* Hover effect brightness */

  /* Gradients & Effects */
  --glass: rgba(255, 255, 255, 0.08);
  --primary-bg: linear-gradient(135deg, #1b2735, #090a0f);
  --glass-bg: rgba(255, 255, 255, 0.2);
  --glass-border: rgba(255, 255, 255, 0.4);
  --shadow-color: rgba(0, 0, 0, 0.3);
  --s-shadow-color: rgba(255, 0, 0, 0.432);
  --highlight-color: rgba(255, 255, 255, 0.6);
    
  /*========== 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(.9rem, 2vw, 1.3rem);
  --small-body: clamp(0.7rem, 1.5vw, .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 */       
}

[data-theme="dark"] {
  --primary: #fa0f0f;
  --secondary: #fa0f0f;
  --background: #5c5c5cb2;
  --input-bg: #7c7c7c91;
  --s-glass-border: #fa0f0f;
  /*========== Colors ==========*/

  /* Core Colors */
  --first-color: hsl(14, 98%, 50%);
  --black-color: #ffffff;
  --white-color: hsl(0, 0%, 95%);
  --text-color: hsl(0, 0%, 100%);
  --container-color: hsl(0, 1%, 29%);
  --body-color: hsl(0, 0%, 20%);
  --accent-color: rgba(105, 105, 105, 0.9); /* Hover effect brightness */

  /* Gradients & Effects */
  --glass: rgba(0, 0, 0, 0.05);
  --primary-bg: linear-gradient(135deg, #1b2735, #0f0909);
  --glass-bg: rgba(48, 48, 48, 0.2);
  --glass-border: rgba(160, 160, 160, 0.4);
  --shadow-color: rgba(51, 51, 51, 0.3);
  --s-shadow-color: rgba(247, 0, 0, 0.3);
  --highlight-color: rgba(63, 63, 63, 0.6);
    }
/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar-track{
  -webkit-box-shadow: inset 0 0 9px rgba(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,.3);
  background-color: var(--text-color);
}
/*=============== SCROLL UP / BACK TO TOP ===============*/
.backtoTop{
  position: fixed;
  left: 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 .3s ease, background-color .3s ease, box-shadow .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(.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);
}
.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(-.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: var(--glass-bg, transparent);
  border: 4px solid var(--glass-border);
  padding: var(--space-xs) var(--space-md);
  box-sizing: content-box;
  color: var(--text-color);
  border-radius: 8px;
  letter-spacing: 1px;
  cursor: pointer;
  text-transform: capitalize;
  transition: all .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(--s-shadow-color),
              8px 8px 20px var(--s-shadow-color),
              -5px -5px 15px rgba(255, 255, 255, 0.5);
  background-color: var(--highlight-color, rgba(255,255,255,.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 .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(117, 29, 29, 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(--highlight-color, rgba(255,255,255,.8));
  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);
  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;
  color: #ff0000;
  text-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
  animation: logoFloat 4s ease-in-out infinite;
}


        @keyframes logoFloat {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-5px); }
        }


.head_name p{
  font-size: var(--small-body);
  font-style: italic;
  color: #ff0000;
  font-weight: var(--f-700);
}
.contactChat_head{
  display: none;
  margin-top: 0;
}
.contactChat_head a{
  font-size: var(--small-body);
  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 .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 .4s ease;
}
.menu_icon::before,
.menu_icon::after{
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--text-color);
  border-radius: 3px;
  transition: all .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 .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 .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(380px, 60%, 600px);
  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);
}
.image_container_hh h1{
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
            line-height: 1.2;
            opacity: 0;
            transform: translateY(30px);
            animation: textAppear 0.9s forwards;
            text-align: center;
}
.image_container_hh p{
font-size: 0.9rem;
            margin-bottom: 3rem;
            opacity: 0;
            transform: translateY(30px);
            animation: textAppear 0.9s 0.4s forwards;
            text-align: center;
}

        @keyframes textAppear {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

@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: none;
  border: 3px solid var(--accent-color);
}
.image_container .new_btn:hover i{
  transform: translateX(.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: .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(.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: .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: var(--container-color);
  border-radius: 15px;
  transition: transform .3s ease, 
              box-shadow .3s ease, 
              background-color .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 .3s ease, 
              text-shadow .3s ease, 
              color .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: .5rem;
  margin: 0 auto;
  max-width: 800px;
  padding: var(--space-xs);
}
.services_content{
  position: relative;
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  padding: var(--space-lg);
  border-radius: 1.25rem;
}
.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: .25rem;
  cursor: pointer;
}
.service_btn_icon{
  transition: .3s;
  font-size: var(--icon-size);
}
.service_btn_icon:hover{
  transform: translateX(.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 .3s ease-in-out, 
              opacity .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 .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 .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 .3s ease;
}
.timeline_item{
  display: flex;
  align-items: center;
  gap: 20px;
  opacity: 1;
  transform: scale(1);
  visibility: visible;
  transition: opacity .5s ease,              
              transform .5s ease,              
              background .3s ease,              
              box-shadow .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: .3;
  transform: scale(.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 .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: 60px;
  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: .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(--s-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(--text-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 h3{
  margin-bottom: 1rem;
  font-size: var(--body-text);
}
.footer_section p,
.footer_section ul{
  line-height: 1.6;
}
.footer_section ul{
  list-style: none;
  padding: 0;
}
.footer_section ul li{
  margin-bottom: .5rem;
  font-weight: var(--f-600);
}
.footer_section ul li:hover a{
  color: var(--body-text);
}
.social_icons{
  display: flex;
  justify-content: center;
  gap: .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){
  .timeline{
    padding: 20px;
  }
  .timeline_item{
    flex-direction: column;
  }
}
@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%;
  }
}

       
        /* Theme Toggle */
        .theme-toggle {
            position: fixed;
            left: 5%;
            margin-bottom: 70px;
            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);
            transition: transform .3s ease, background-color .3s ease, box-shadow .3s ease;
            z-index: var(--z-fixed);
        }

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

        .theme-toggle i {
            font-size: 1.4rem;
            background: linear-gradient(45deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        
        .s-cta-buttons {
            display: flex;
            gap: 1.5rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .s-btn {
            padding: 15px 40px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
            overflow: hidden;
            border: none;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .s-btn-primary {
            background: linear-gradient(45deg, var(--primary), var(--secondary));
            color: white;
            transform: scale(1);
        }

        .s-btn-primary:hover {
            transform: scale(1.05);
            box-shadow: 0 10px 30px rgba(211, 52, 52, 0.4);
        }

        .s-btn-secondary {
            background: var(--glass);
            border: 1px solid rgba(255,255,255,0.1);
            color: var(--text-color);
            backdrop-filter: blur(8px);
        }

        .s-btn-secondary:hover {
            background: rgba(255,255,255,0.1);
        }

        /* Comment */
.comment-section {
      margin: 40px auto;
      padding: 20px;
      max-width: 700px;
      background: var(--glass);
      border: 1px solid #e50914;
      border-radius: 10px;
      box-shadow: 0 0 10px rgba(229, 9, 20, 0.4);
    }

.comment-box {
    background: var(--input-bg);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.3);
  }
  input.glow-input,
  textarea.glow-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 12px;
    border: none;
    background-color: var(--background);
    color: var(--text-color);
    font-size: 1rem;
    box-shadow: inset 0 0 8px rgba(255, 255, 255, 0);
    transition: box-shadow 0.3s ease;
    resize: vertical;
  }

  input.glow-input:focus,
  textarea.glow-input:focus {
    outline: none;
    box-shadow: none;
  }

  button.glow-button {
    background-color: #e50914;
      border: none;
      color: #fff;
      padding: 10px;
      font-size: 14px;
      border-radius: 6px;
      cursor: pointer;
  }

  #commentList {
    margin-top: 25px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
  }

  #commentList::-webkit-scrollbar {
    width: 8px;
  }

  #commentList::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
  }

  #commentList::-webkit-scrollbar-track {
    background: transparent;
  }

  .comment-entry {
    background: #222;
    padding: 12px 15px;
    margin-bottom: 12px;
    border-left: 5px solid var(--primary);
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
    animation: fadeInUp 0.7s ease forwards;
    color: white;
    word-wrap: break-word;
  }

  .comment-entry strong {
    color: var(--secondary);
    font-weight: 700;
  }

  @keyframes fadeInUp {
    0% {
      opacity: 0;
      transform: translateY(20px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .delete-btn {
    background-color: #dc2626;
    color: white;
    border: none;
    padding: 6px 12px;
    margin-top: 8px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .delete-btn:hover {
    background-color: #b91c1c;
  }

  .like-btn {
    background-color: #4ade80;
    color: white;
    border: none;
    padding: 6px 12px;
    margin-top: 8px;
    margin-right: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .like-btn:hover {
    background-color: #22c55e;
  }