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

/* ----- VARIABLES ----- */
:root{
    --primary-color: rgb(250, 250, 250);
    --color-white: rgb(255, 255, 255);

   --secondary-color: 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);

}


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

/* ----- SMOOTH SCROLL ----- */
html{
    scroll-behavior: smooth;
}

/* ----- 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 --##--- */

/* ----- GLOBAL 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);
}

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

/* ------- BASE -------- */
body{
    background: var(--primary-color);
}
.container{
    width: 100%;
    position: relative;
    overflow-x: hidden; /* not mandatory */
}

/* ----- NAVIGATION BAR ----- */
nav{
    position: fixed;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 30px;
    line-height: 80px;
    background: var(--primary-color);
    padding-inline: 9vw;
    transition: .3s;
    z-index: 100;
}
.nav-logo{
   position: relative;
}
.nav-name{
    font-size: 30px;
    font-weight: 600;
    color: var(--text-color-third);
}
.nav-logo span{
    position: absolute;
    top: -15px;
    right: -20px;
    font-size: 5em;
    color: var(--text-color-second);
}
.nav-menu, .nav_menu_list{
    display: flex;
}
.nav-menu .nav_list{
    list-style: none;
    position: relative;
}
/* Navigation Link */
.nav-link {
    text-decoration: none;
    color: var(--text-color-second);
    font-weight: 500;
    padding-inline: 15px;
    margin-inline: 20px;
    position: relative; 
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--first-color); 
    transition: width 0.3s ease;
}

/* Hover effect */
.nav-link:hover::after {
    width: 100%; /* Expand the underline to full width on hover */
}


.nav-menu-btn{
    display: none;
}
.nav-menu-btn i{
    font-size: 28px;
    cursor: pointer;
}
.active-link{
    position: relative;
    color: var(--first-color);
    transition: .3;
}
.active-link::after{
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    background: var(--first-color);
    border-radius: 50%;
}
#icon{
    width: 30px;
    height: 30px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 50px;
}

/* ----- 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: 100vh;
    flex-direction: column;
    width: 50%;
    padding-left: 20px;
   
   
}


.featured-text-card span{
    background: var(--third-color);
    color: var(--color-white);
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 5px;
}
.featured-name{
    font-size: 30px;
    font-weight: 600;
    color: var(--text-color-second);
    margin-block: 20px;
    font-family: 'CustomFont', Roboto condensed;
    animation: tracking-in-contract 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

@keyframes tracking-in-contract {
  0% {
    letter-spacing: 1em;
    opacity: 0;
  }
  40% {
    opacity: 0.6;
  }
  100% {
    letter-spacing: normal;
    opacity: 1;
  }
}
.typedText{
    text-transform: capitalize;
    color: var(--text-color-third);
}
.featured-text-info{
    animation: slide-in-left 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    font-family: 'Gill Sans';
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--text-color-second);
}

 @keyframes slide-in-left {
    0% {
      transform: translateX(-1000px);
      opacity: 0;
    }
    100% {
      transform: translateX(0);
      opacity: 1;
    }
  }
  
  
.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: 5em;
    gap: 30px;
}



.featured-image {
    display: flex;
    justify-content: center; /* Align to the right end */
    align-items: center; /* Align vertically center */
    min-height: 80vh;
    width: 50%;
    margin-left: auto; /* Align to the right end */
    animation: imgFloat;
}

.image {
    width: 450px;
    height: 480px;
  
    
}


.image img {
    border-radius: 50px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes imgFloat {
    50% {
        transform: translateY(10px);
    }
}

.scroll-btn{
   position: absolute;
   bottom: 0;
   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;
}

/* ----- MAIN BOX ----- */
.section{
    padding-block: 5em;
}
.row{
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}
.col{
    display: flex;
    width: 50%;
}

/* -- ## --- RESUABLE CSS -- ## -- */
.top-header{
    text-align: center;
    margin-bottom: 5em;
    margin-top: 0;
}
.top-header h1{
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 10px;
}
.top-header span{
    color: #999;
}
h3{
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 15px;
}

/* /* --- ABOUT SECTION --- */
.section {
  padding: 80px 20px;
  background: #f9f9f9; /* subtle background */
}

.top-header h1 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 40px;
}

.e-card {
  margin: 0 auto;
  background: #fff;
  position: relative;
  width: 90%;
  max-width: 1000px;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.e-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.infotop {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: left;
}

.name h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 15px;
}

.aboutme {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 10px;
}

.heading {
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
  margin-top: 25px;
  margin-bottom: 10px;
}

/* --- RESPONSIVENESS --- */
@media (min-width: 768px) {
  .infotop {
    flex-direction: row;
    justify-content: space-between;
  }

  .name {
    flex: 1;
    padding: 0 20px;
  }
}


/* ----- ABOUT / SKILLS BOX ----- */
.skills-box{
    margin: 10px;
}
.skills-header{
    margin-bottom: 30px;
}
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
  }
  
  .card {
    width: 195px ;
    height: 180px;
    background:  rgb(214, 213, 213);
    border-radius: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    transition: 0.2s ease-in-out;
  }

  .img {
    height: 80%;
    width: 80%;
    position: absolute;
    transition: 0.2s ease-in-out;
    z-index: 1;
  }
  
  .textBox {
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: 0.2s ease-in-out;
    z-index: 2;
  }
  
  .textBox > .text {
    font-weight: bold;
  }
  
  .textBox > .head {
    font-size: 20px;
  }
  
  .textBox > .price {
    font-size: 17px;
  }
  
  .textBox > span {
    font-size: 12px;
    color: lightgrey;
  }
  
  .card:hover > .textBox {
    opacity: 1;
  }
  
  .card:hover > .img {
    height: 65%;
    filter: blur(7px);
    animation: anim 3s infinite;
  }
  
  @keyframes anim {
    0% {
      transform: translateY(0);
    }
  
    50% {
      transform: translateY(-20px);
    }
  
    100% {
      transform: translateY(0);
    }
  }
  
  .card:hover {
    transform: scale(1.04) rotate(-1deg);
  }
  
  
/* Section Layout */
.projects {
  min-height: 100vh;
  padding: 40px 20px;
  background: #fafafa;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #323232;
}

/* Project Container */
.pro {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

/* Card Styling */
.card1 {
  --font-color: #323232;
  --bg-color: #e0e0e0;
  width: 280px;
  min-height: 450px;
  border-radius: 20px;
  background: var(--bg-color);
  box-shadow: -9px 9px 18px #5a5a5a,
              9px -9px 18px #ffffff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: .3s;
}

.card1:hover {
  transform: scale(1.03);
  box-shadow: 0px 0px 15px rgba(0,0,0,0.25);
}

.card1__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* Content area */
.card1__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 15px;
}

.card1__title {
  color: var(--font-color);
  text-align: center;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 18px;
}

.card1__descr {
  color: var(--font-color);
  font-size: 14px;
  line-height: 1.4;
  flex: 1;
}

/* GitHub link pinned bottom */
.card1__links {
  margin-top: auto; /* Push to bottom */
  text-align: right;
}

.card1__links .link {
  color: var(--font-color);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: 0.3s;
}

.card1__links .link:hover {
  text-decoration: underline;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .pro {
    gap: 30px;
  }
  .card1 {
    width: 260px;
  }
}

@media (max-width: 768px) {
  .pro {
    flex-direction: row;
    justify-content: center;
  }
  .card1 {
    width: 80%;
    max-width: 400px;
  }
}

@media (max-width: 480px) {
  .pro {
    flex-direction: column;
    align-items: center;
  }
  .card1 {
    width: 100%;
    max-width: 350px;
  }
}
/* ===== CONTACT SECTION ===== */
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  padding: 20px;
  align-items: start;
}

/* ===== CONTACT INFO CARD ===== */
.card2 {
  --border-radius: 0.75rem;
  --primary-color: #505052;
  --secondary-color: #3c3852;

  background: #f1f1f3;
  width: 100%;
  max-width: 400px;
  height: auto;
  padding: 1rem;
  border-radius: var(--border-radius);
  box-shadow: 0px 8px 16px 0px rgb(0 0 0 / 3%);
  font-family: "Arial", sans-serif;
}

.card2__title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.card2__content {
  color: var(--secondary-color);
  font-size: 1.1rem;
  line-height: 1.5;
}

/* ===== CONTACT FORM ===== */
.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 400px;
  background-color: #646668;
  padding: 20px;
  border-radius: 10px;
}

.flex {
  display: flex;
  gap: 10px;
  width: 100%;
}

.form label {
  position: relative;
  width: 100%;
}

/* Input fields */
.form .input,
.input01 {
  width: 100%;
  padding: 10px 10px 20px 10px;
  border: 1px solid #3e3e3f;
  border-radius: 5px;
  outline: none;
  background: #fff;
}

.input01 {
  border: 1px solid #4e4f50;
  resize: none;
}

/* Floating labels */
.form label span {
  position: absolute;
  left: 10px;
  top: 15px;
  font-size: 0.9em;
  color: #3e3f3f;
  transition: 0.3s ease;
  pointer-events: none;
}

.form .input:focus + span,
.form .input:valid + span {
  top: 30px;
  font-size: 0.7em;
  font-weight: 600;
  color: green;
}

.form .input01:focus + span,
.form .input01:valid + span {
  top: 50px;
  font-size: 0.7em;
  font-weight: 600;
  color: green;
}

/* ===== SUBMIT BUTTON ===== */
.fancy {
  position: relative;
  padding: 8px 30px;
  font-size: 13px;
  font-weight: 400;
  color: #434344;
  background: #fff;
  border: 2px solid #434344;
  cursor: pointer;
  letter-spacing: 2px;
  text-transform: lowercase;
  transition: all 0.3s ease-in-out;
}

.fancy .text {
  display: block;
  font-size: 1.125em;
  padding-left: 2em;
  text-align: left;
  color: #545557;
  transition: all 0.3s ease-in-out;
}

/* Button decoration */
.fancy::before {
  content: "";
  width: 1.7rem;
  height: 2px;
  background: #5b5b5c;
  position: absolute;
  top: 50%;
  left: 1.5em;
  transform: translateY(-50%) translateX(230%);
  transition: width 0.3s linear, background 0.3s linear;
}

.fancy .top-key,
.fancy .bottom-key-1,
.fancy .bottom-key-2 {
  position: absolute;
  height: 2px;
  background: #545455;
}

.fancy .top-key {
  top: -2px;
  left: 0.625rem;
  width: 1.5625rem;
}

.fancy .bottom-key-1 {
  bottom: -2px;
  right: 1.875rem;
  width: 1.5625rem;
}

.fancy .bottom-key-2 {
  bottom: -2px;
  right: 0.625rem;
  width: 0.625rem;
}

/* Hover state */
.fancy:hover {
  background: #6f6f70;
  color: #fff;
}

.fancy:hover::before {
  width: 1.5rem;
  background: #fff;
}

.fancy:hover .text {
  color: #fff;
  padding-left: 1.5em;
}

.fancy:hover .top-key,
.fancy:hover .bottom-key-1,
.fancy:hover .bottom-key-2 {
  width: 0;
}

/* ===== PROFILE CARD ===== */
.card-client {
  background: #f3f2f2;
  width: 100%;
  max-width: 400px;
  padding: 25px 20px;
  border: 4px solid #323232;
  border-radius: 10px;
  box-shadow: 0 6px 10px #212121;
  text-align: center;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
}

.card-client:hover {
  transform: translateY(-10px);
}

.user-picture {
  width: 5rem;
  height: 5rem;
  margin: auto;
  border: 4px solid #323232;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  color: #323232;
}

.user-picture svg {
  width: 2.5rem;
  fill: currentColor;
}

.name-client {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 600;
  color: #323232;
}

.name-client span {
  display: block;
  font-size: 16px;
  font-weight: 200;
  color: #323232;
}

.Socials {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 900px) {
  .contact {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .contact {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .flex {
    flex-direction: column;
    gap: 10px;
  }

  .Socials {
    justify-content: center;
  }
}

  
/* ----- FOOTER BOX ----- */
footer{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    row-gap: 30px;
    background: #F8F8F8;
    padding-block: 40px 60px;
}
.top-footer p{
    font-size: 25px;
    font-weight: 600;
}
.middle-footer .footer-menu{
    display: flex;
}
.footer_menu_list{
    list-style: none;
}
.footer_menu_list a{
    text-decoration: none;
    color: var(--text-color-second);
    font-weight: 500;
    margin-inline: 20px;
}
.footer-social-icons{
    display: flex;
    gap: 30px;
}
.bottom-footer{
    font-size: 14px;
    margin-top: 10px;
}


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

/* ----- MEDIA QUERY == 900px / RESPONSIVE ----- */
@media only screen and (max-width: 900px) {
    .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;
    }
    .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: 150px;
        height: 150px;
    }
    .row{
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 50px;
    }
    .col{
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .about-info, .contact-info{
        width: 100%;
    }
    .project-container{
        justify-content: center;
    }
    .project-box{
        width: 80%;
    }

}

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

@media only screen and (max-width: 540px){
    .featured-name{
        font-size: 40px;
    }
    .project-box{
        width: 100%;
    }
    .form-inputs{
        flex-direction: column;
    }
    .input-field{
        width: 100%;
    }
}
.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;
    background-color: #787b7e; /* Vibrant blue */
    color:#131212; /* White */
}

.icon:hover {
    color: #ffffff; /* Adjust hover color here */
}
