/* ----- POPPINS FONT Link ----- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');


/* --------------- VARIABLES --------------- */

:root{

/* --------------- SOLID COLOR ---------------  */

    --body-color: rgb(250, 250, 250);
    --color-white: rgb(255, 255, 255);

    --text-color-second: rgb(68, 68, 68);
    --text-color-third: rgb(30, 159, 171);

    --first-color: rgb(110, 87, 224);
    --first-color-hover: rgb(40, 91, 212);

    --second-color: rgb(110, 87, 224);
    --third-color: rgb(192, 166, 49);
    --first-shadow-color: rgba(0, 0, 0, 0.1);

    --jet: hsl(0, 0%, 22%);
    --onyx: hsl(240, 1%, 17%);
    --eerie-black-1: hsl(240, 2%, 13%);
    --eerie-black-2: hsl(240, 2%, 12%);
    --smoky-black: hsl(0, 0%, 7%);
    --white-1: hsl(0, 0%, 100%);
    --white-2: hsl(0, 0%, 98%);
    --orange-yellow-crayola: hsl(45, 100%, 72%);
    --vegas-gold: rgb(110, 87, 224);
    --light-gray: black;
    --light-gray-70: black;
    --bittersweet-shimmer: hsl(0, 43%, 51%);


    

/* --------------- GRADIENT COLOR ---------------  */

  --bg-gradient-onyx: linear-gradient(
    to bottom right, 
    hsl(240, 1%, 25%) 3%, 
    hsl(0, 0%, 19%) 97%
  );
  --bg-gradient-jet: linear-gradient(
    to bottom right, 
    hsla(240, 1%, 18%, 0.251) 0%, 
    hsla(240, 2%, 11%, 0) 100%
  ), hsl(240, 2%, 13%);
  --bg-gradient-yellow-1: linear-gradient(
    to bottom right, 
    hsl(45, 100%, 71%) 0%, 
    hsla(36, 100%, 69%, 0) 50%
  );
  --bg-gradient-yellow-2: linear-gradient(
    135deg, 
    hsla(45, 100%, 71%, 0.251) 0%, 
    hsla(35, 100%, 68%, 0) 59.86%
  ), hsl(240, 2%, 13%);
  --border-gradient-onyx: linear-gradient(
    to bottom right, 
    hsl(0, 0%, 25%) 0%, 
    hsla(0, 0%, 25%, 0) 50%
  );
  --text-gradient-yellow: linear-gradient(
    to right, 
    rgb(110, 87, 224), 
    rgb(123, 102, 232)
  );
  
/* --------------- TOPOGRAPHY ---------------  */

  /* ----- font-family ----- */
  --ff-poppins: 'Poppins', sans-serif;


  /* ----- font-size ----- */
  --fs-1: 24px;
  --fs-2: 18px;
  --fs-3: 17px;
  --fs-4: 16px;
  --fs-5: 15px;
  --fs-6: 14px;
  --fs-7: 13px;
  --fs-8: 11px;


  /* ----- font-weight ----- */
  --fw-300: 300;
  --fw-400: 400;
  --fw-500: 500;
  --fw-600: 600;


   /* ----- Shadow ----- */
   --shadow-1: -4px 8px 24px hsla(0, 0%, 0%, 0.25);
   --shadow-2: 0 16px 30px hsla(0, 0%, 0%, 0.25);
   --shadow-3: 0 16px 40px hsla(0, 0%, 0%, 0.25);
   --shadow-4: 0 25px 50px hsla(0, 0%, 0%, 0.15);
   --shadow-5: 0 24px 80px hsla(0, 0%, 0%, 0.25);
 

    /* ----- Transition ----- */
   --transition-1: 0.25s ease;
   --transition-2: 0.5s ease-in-out;



}




/* --------------- BASE RESET --------------- */

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

a { text-decoration: none; }

li { list-style: none; margin-left: -25px;}

/* img, ion-icon, a, button, time { display: block; } */

input, textarea {
  display: block;
  width: 100%;
  background: none;
  font: inherit;
}


/* ----- SMOOTH SCROLL ----- */
html{
    scroll-behavior: smooth;
    font-family: var(--ff-poppins);
}

/* ----- CHANGE THE SCROLL BAR DESIGN ----- */
::-webkit-scrollbar{
    width: 10px;
    border-radius: 25px;
}
::-webkit-scrollbar-track{
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb{
    background: #ccc;
    border-radius: 30px;
}
::-webkit-scrollbar-thumb:hover{
    background: #bbb;
}



/* --------------- REUSABLE CSS --------------- */

/* ----- BUTTON DESIGN ----- */
.btn{
    font-weight: 500;
    padding: 12px 20px;
    background: #efefef;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: .4s;
}
.btn>i{
    margin-left: 10px;
}
.btn:hover{
    background: var(--second-color);
    color: var(--color-white);
}

.blue-btn{
    background: var(--vegas-gold);
    color: white;
    transition: .3s;
}

.blue-btn:hover{
    background: transparent;
    border: 2px solid var(--vegas-gold);
    color: #000;
}

/* ----- GLOBAL ICONS DESIGN ----- */
i{
    font-size: 16px;
}

/* ------- BASE -------- */
body{
    background: var(--body-color);
}


.container{
    width: 100%;
    position: relative;
}  

.heading{
    padding: 7rem 0 0 0;
    text-align: center;
    font-size: 1.5rem;
}

main{
    padding-inline: 10vw;

}

.h5{
    font-size: 1rem;
    padding: 3px;
}

/* --------------- NAVIGATION BAR --------------- */

nav{
    position: fixed;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 90px;
    line-height: 90px;
    background: var(--body-color);
    padding-inline: 9vw;
    transition: .3s;
    z-index: 100;
   
}

.nav-logo{
    display: none;
    justify-content: center;
    align-items: center;
}

.nav-logo img{
   padding: 15px;
}

.nav-menu, .nav_menu_list{
    display: flex;

}
.nav-menu .nav_list{
    list-style: none;
    position: relative;
}
.nav-link{
    text-decoration: none;
    color: var(--text-color-second);
    font-weight: 500;
    padding-inline: 15px;
    margin-inline: 20px;
}
.nav-menu-btn{
    display: none;
    margin-left: auto;
}
.nav-menu-btn i{
    font-size: 28px;
    cursor: pointer;
}

.nav_list a:hover {
    color: var(--vegas-gold);
}


/* ----- WRAPPER DESIGN ----- */
.wrapper{
    padding-inline: 10vw;
}

/* ----- FEATURED BOX ----- */
.featured-box{
    position: relative;
    display: flex;
    height: 100vh;
    min-height: 700px;
}

/* ----- FEATURED TEXT BOX ----- */
.featured-text{
    position: relative;
    display: flex;
    justify-content: center;
    align-content: center;
    min-height: 80vh;
    flex-direction: column;
    width: 50%;
    padding-left: 20px;
}
.featured-text-card span{
    background: var(--third-color);
    color: var(--color-white);
    padding: 4px 9px;
    font-size: 12px;
    border-radius: 5px;
}
.featured-name{
    font-size: 50px;
    font-weight: 600;
    color: var(--text-color-second);
    margin-block: 20px;
}
.typedText{
    text-transform: capitalize;
    color: var(--text-color-third);
}
.featured-text-info{
    font-size: 15px;
    margin-bottom: 30px;
    color: var(--text-color-second);
}
.featured-text-btn{
    display: flex;
    gap: 20px;
}
.featured-text-btn>.blue-btn{
    background: var(--first-color);
    color: var(--color-white);
}
.featured-text-btn>.blue-btn:hover{
    background: var(--first-color-hover);
}
.social_icons{
    display: flex;
    margin-top: 4em;
    gap: 30px;
}
.icon{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.icon i{
color: black;
}

.icon i:hover{
    color: var(--vegas-gold);
}

/* ----- FEATURED IMAGE BOX ----- */
.featured-image{
    display: flex;
    justify-content: right;
    align-content: center;
    min-height: 80vh;
    width: 50%;
}
.image{
    margin: auto 0;
    width: 380px;
    height: 380px;
    border-radius: 55% 45% 55% 45%;
    overflow: hidden;
    animation: imgFloat 7s ease-in-out infinite;
}
.image img{
    width: 380px;
    height: 380px;
    object-fit: cover;
}
@keyframes imgFloat {
    50%{
        transform: translateY(10px);
        border-radius: 45% 55% 45% 55%;
    }
}
.scroll-btn{
   position: absolute;
   bottom: 20px;
   left: 50%;
   translate: -50%;
   display: flex;
   justify-content: center;
   align-items: center;
   width: 150px;
   height: 50px;
   gap: 5px;
   text-decoration: none;
   color: var(--text-color-second);
   background: var(--color-white);
   border-radius: 30px;
   box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);
}
.scroll-btn i{
    font-size: 20px;
}





/* ---------------  ABOUT SECTION --------------- */
#about {
    position: relative;
    top: 4rem;
    margin-bottom: 1.5rem;
  }

  .about-btn .btn{
    background: var(--vegas-gold);
    color: white;
  }

  .title{
    margin-bottom: 5rem;
  }

  
  .about-containers {
    gap: 2rem;
    margin-bottom: 2rem;
   
  }
  
  .about-details-container {
    justify-content: center;
    background: #f5f5f5;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    justify-content: center;
    align-items: center;
    max-height: fit-content;
  }

  .text-container p{
    font-size: 1.2rem;
    display: block;
  }
  
  .about-containers,
  .about-details-container, .section-container {
    display: flex;

  }
  
  .about-pic {
    border-radius: 2rem;
    margin: auto;
  }
  
  .arrow {
    position: absolute;
    right: -5rem;
    bottom: 2.5rem;
  }
  
  .details-container {
    padding: 1.5rem;
    flex: 1;
    background: white;
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
    border-color: rgb(163, 163, 163);
    text-align: center;
    justify-content: center;
    align-items: center;
    
    
  }
  
  .section-container {
    gap: 4rem;
    height: 80%;
    
  }
  
  .section__pic-container img{
    max-inline-size: 100%;
    block-size: auto;
    margin: 0 auto;
  }


/* ---------------  SKILL SECTION --------------- */
  .skill-box{
    display: flex;
    gap: 2rem;
  }
  
  .skills-title { margin-bottom: 10px; 
  }
  
  .skills-list {
    padding: 3rem; 
    width: 50%; 
    background: #f5f5f5;
    border: none;
    border-radius: 10px; }
  
  
  .skills-item:not(:last-child) { margin-bottom: 15px; }
  
  .skill .title-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
  }
  
  .skill .title-wrapper data {
    color: black;
    font-size: var(--fs-7);
    font-weight: var(--fw-300);
  }
  
  .skill-progress-bg {
    width: 100%;
    height: 10px;
    border: 1px solid var(--first-color);
    border-radius: 10px;
  }
  
  .skill-progress-fill {
    background: var(--text-gradient-yellow);
    height: 100%;
    border-radius: inherit;
  }



/* ------------------ RESUME SECTION ---------------- */
  .icon-box{
    padding: 5px;
  }

 .expedu-box{
    display: flex;
   justify-content: center;
   gap: 2rem;
 }

 

  .article-title { margin-bottom: 30px; }

  .timeline { margin-bottom: 30px; 
    width: 50%;
    padding: 2rem; 
    background: #f5f5f5;
    border: none;
    border-radius: 10px; 
  }
  
  .timeline .title-wrapper {
    display: flex;
    align-items: center;
    
    margin-bottom: 25px;
  }
  .h3{
    font-size: 1.5rem;
    text-align: center;
  }
  
  .timeline-list {
    font-size: var(--fs-6);
    
  }

  .timeline-item{
    padding: 0.8rem;
  }
  
  /* .timeline-item { position: relative;} */
  
  /* .timeline-item:not(:last-child) { margin-bottom: 20px; } */
  
  .timeline-item-title {
    font-size: var(--fs-6);
    line-height: 1.3;
    margin-bottom: 7px;
  }
  
  .timeline-list span {
    color: var(--vegas-gold);
    font-weight: var(--fw-400);
    line-height: 1.6;
  }
  
  .timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;
    top: -25px;
    left: -30px;
    width: 1px;
    height: calc(100% + 50px);
    background: var(--jet);
  }
  
  .timeline-item::after {
    content: "";
    position: absolute;
    top: 5px;
    left: -33px;
    height: 6px;
    width: 6px;
    background: var(--text-gradient-yellow);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--jet);
  }
  
  .timeline-text {
    color: var(--light-gray);
    font-weight: var(--fw-300);
    line-height: 1.6;
  }



/* ------------------ PORTFOLIO SECTION ---------------- */


.article-title {
  padding-bottom: 20px;
}

.project-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 10px;
  list-style: none;
  padding: 0;
}

.projects{
  display: flex;
  justify-content: center;
}

.project-item {
  display: none;
  width: 100%;
  max-width: 300px; /* Set max-width for better control */
}

.project-item.active {
  display: block;
  animation: scaleUp 0.25s ease forwards;
  margin: auto;
}

@keyframes scaleUp {
  0% { transform: scale(0.5); }
  100% { transform: scale(1); }
}

.project-item > a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-img {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 15px;
}

.project-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 1;
  transition: background 0.3s ease;
}

.project-item > a:hover .project-img::before {
  background: hsla(0, 0%, 0%, 0.5);
}

.project-item-icon-box {
  --scale: 0.8;
  background: var(--jet);
  color: var(--orange-yellow-crayola);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(var(--scale));
  font-size: 20px;
  padding: 12px;
  border-radius: 15px;
  opacity: 0;
  z-index: 1;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.project-item > a:hover .project-item-icon-box {
  --scale: 1;
  opacity: 1;
}

.project-item-icon-box ion-icon {
  --ionicon-stroke-width: 50px;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-item > a:hover img {
  transform: scale(1.1);
}

.project-title,
.project-category {
  margin-left: 10px;
}

.project-title {
  color: black;
  font-size: var(--fs-5);
  font-weight: var(--fw-400);
  text-transform: capitalize;
  line-height: 1.3;
  padding: 5px 0;
}

.project-category {
  color: black;
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
}





/* ------------------ CONTACT SECTION ---------------- */
.contact-box{
    display: flex;
    gap: 4rem;
    justify-content: center;
    margin-bottom: 5rem;
}



  .mapbox {
    position: relative;
    height: 60vh;
    width: 60%;
    border-radius: 16px;
    overflow: hidden;
  }
  
  .mapbox figure { height: 100%; }
  
  .mapbox iframe {
    width: 100%;
    max-height: 100%;
    border: none;
  }
  
  .contact-form { margin-bottom: 10px; width: 40%; }
  
  .form-title { margin-bottom: 20px; }
    
  .input-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 25px;
  }
    
  .form-input {
    color: black;
    font-size: var(--fs-6);
    font-weight: var(--fw-400);
    padding: 13px 20px;
    border: 1px solid var(--jet);
    border-radius: 14px;
    outline: none;
  }
    
  .form-input::placeholder { font-weight: var(--fw-500); }
    
  .form-input:focus { border-color: var(--orange-yellow-crayola); }
    
  textarea.form-input {
    min-height: 100px;
    height: 120px;
    width: 100%;
    max-height: 200px;
    resize: vertical;
    margin-bottom: 25px;
  }
    
  textarea.form-input::-webkit-resizer { display: none; }
    
  .form-input:focus:invalid { border-color: var(--bittersweet-shimmer); }
    
  .form-btn {
    position: relative;
    width: 100%;
    background: var(--vegas-gold);
    color: rgb(255, 255, 255);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    border-radius: 14px;
    font-size: var(--fs-6);
    text-transform: capitalize;
    box-shadow: var(--shadow-3);
    z-index: 1;
    transition: var(--transition-1);
    cursor: pointer;
  }
  
  .form-btn ion-icon { font-size: 16px; }
    
  .form-btn:hover { background: transparent; border: 2px solid var(--vegas-gold); color: #000;}
    
  .form-btn:hover::before { background: var(--bg-gradient-yellow-2); }
    
  .form-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
  }
    
  .form-btn:disabled:hover { background: var(--border-gradient-onyx); }
    
  .form-btn:disabled:hover::before { background: var(--bg-gradient-jet); }
  

/* ------------------ FOOTER SECTION ---------------- */
   footer{
    display: flex;
    justify-content: center;
    padding: 10px;
   }
  




  



/* ----- MEDIA QUERY == 1024px / RESPONSIVE ----- */
@media screen and (max-width: 1024px){
    .featured-text{
        padding: 0;
    }
    .image, .image img{
        width: 320px;
        height: 320px;
    }
    
    
}

/* ----- MEDIA QUERY == 900px / RESPONSIVE ----- */
@media screen and (max-width: 900px) {

    .wrapper{
        padding-inline: 5vw;
        overflow: hidden;
    }

    .about-pic {
      display: flex;
      justify-content: center;
      align-items: center;
    }
    

    .nav-button{
        display: none;
    }
    .nav-menu.responsive{
        left: 0;
    }
    .nav-menu{
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(20px);
        width: 100%;
        min-height: 450px;
        height: 90vh;
        transition: .3s;
        overflow: hidden;
    }
    .nav_menu_list{
        flex-direction: column;
    }
    .nav-menu-btn{
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .featured-box{
        flex-direction: column;
        justify-content: center;
        height: 100vh;
    }
    .featured-text{
        width: 100%;
        order: 2;
        justify-content: center;
        align-content: flex-start;
        min-height: 60vh;
    }
    .social_icons{
        margin-top: 2em;
    }
    .featured-image{
        order: 1;
        justify-content: center;
        min-height: 150px;
        width: 100%;
        margin-top: 65px;
    }
    .image, .image img{
        width: 180px;
        height: 180px;
    }


    .about-containers,
    .about-details-container, .section-container {
      display: flex;
      flex-direction: column;
    }

    .skill-box{
        flex-direction: column;
    }

    .skills-list {
        padding: 2rem; 
        width: 100%; 
    }

    .second-para{
      display: none;
  }

  .btn , .about-btn{
    display: flex;
  }

  .contact-box{
    margin-bottom: 2rem;
  }

  .timeline{
    width: 100%;
    padding: 1.5rem;
}


.expedu-box{
  flex-direction: column;
}

.nav-logo{
  visibility: hidden;    }


  .section__pic-container img{
    max-width: 80%;
  }

  .nav-menu-btn{
    align-items: end;
  }

}

/* ----- MEDIA QUERY == 540px / RESPONSIVE ----- */

@media screen and (max-width: 540px){

    .wrapper{
        padding-inline: 5vw;
        overflow: hidden;
    }

    .project-list {
      gap: 2rem; /* Reduce gap for smaller screens */
    }

    .nav-menu{
        overflow: hidden;
    }

    .nav-menu-btn{
      align-items: end;
    }
  
    .featured-name{
        font-size: 40px;
    }

    .project-item {
      max-width: 80%; /* Full width on smaller screens */
    }

    .about-containers,
    .about-details-container, .section-container {
      display: flex;
      flex-direction: column;
    }

    .skill-box{
        flex-direction: column;
    }

    .skills-list {
        padding: 2rem; 
        width: 100%; 
    }


    .nav-logo img{
    max-inline-size: 100%;
    block-size: auto;
    }

    .nav-logo{
   visibility: hidden;    }

  #nav-about{
      padding: 0;
  }

  .btn , .about-btn{
    display: flex;
  }

  .text-container .second-para{
    display: none;
  }
  
    .expedu-box{
        flex-direction: column;
    }
    
    .timeline{
        width: 100%;
        padding: 1.5rem;
    }

    .scroll-btn{
      bottom: -20px;   
     }


    .contact-box{
        flex-direction: column;
    }

    .mapbox{
        width: 100%;
        height: 40vh;
    }

    .contact-form { width: 100%; }

   .bottom-footer{
    font-size: 0.7rem;
    padding: 5px;
   }

   .project-img{
    height: 220px;
   }
   
   .image, .image img{
    width: 180px;
    height: 180px;
}


 
}
