@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
}
html, body {
  width: 100%;
  overflow-x: hidden;
}
body {
    font-family: 'DM Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1f1f1f;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main > section {
  margin-bottom: clamp(80px, 8vw, 120px);
}
/* ----------------------------------------------------------------------------------------
Navigation Bar
----------------------------------------------------------------------------------------------  */
nav {
    /* align-items: space-between; */
    display: flex;
    /* width: 100%; */
    margin-bottom: 1rem;
    align-items: center;
    justify-content: space-between;
    /* background-color: blue; */
    padding: 1rem 2rem;
    /* max-width: 100vw; */
}

.brand img {
    width: 160px;
    height: auto;

}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: end;
    /* width: 50%; */
    gap: 2rem;
    transition: right 0.3s ease-in;
}

.hamburger {
    display: none;
}

.nav-links li a {
    text-decoration: none;
    font-size: 1.2rem;
    color: #ffffff;
    /* position: relative; */
}

.header-end {
    display: block;
    height: 1px;
    background-color: grey;
    width: 100%;
    margin: 5px;
    align-items: center;
    justify-content: space-around;
    display: flex;
}
/* ----------------------------------------------------------------------------------------
Heading Section
----------------------------------------------------------------------------------------------  */
.heading {
    /* color:white; */
    flex: 1;
    line-height: 1.2;
    max-width: 1100px;
    font-size: 3.5rem;
    display: flex;
    padding: 60px 40px;
    gap: 20px;
    margin: 20px auto;
    justify-content: space-around;
    /* padding: 120px; */
    font-weight: 800;
    background: linear-gradient(90deg,
            rgb(111, 255, 164),
            rgb(98, 240, 237));
    text-align: left;

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: clamp(90px, 12vw, 90px);

}

/* ----------------------------------------------------------------------------------------
First Section
----------------------------------------------------------------------------------------------  */
.multi-container {
    display: flex;
    /* justify-content: space-around; */
    padding: 0 24px;
    gap: 20px;
    color: white;
    max-width: 1200px;
    margin: 0 auto;
    gap: 80px;
    margin-bottom: clamp(120px, 12vw, 180px);
}

.profile {
    width: 160px;
    height: 160px;
    padding: 0.2px;
    /* thickness of ring */
    border-radius: 50%;
    background: linear-gradient(90deg,
            rgb(111, 255, 164),
            rgb(98, 240, 237));
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.multi-container .description {
    flex: 1;
    font-size: 1.2rem;
    line-height: 2rem;
    font-weight: 300;
}

.multi-container a {
    color: white;
    font-size: 1.5rem;
    margin-right: 10px;
    text-decoration: none;

}



.freelance-offer {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    color: white;
    padding: 0 24px;
    /* mobile-friendly default */
    gap: 10px;
    margin-bottom: clamp(50px, 12vw, 50px);
}

.freelance-offer>* {
    flex: 1;
}

.content {
    /* align-items: center;
    justify-content: center;
    padding: auto; */
    /* margin: 20px 0;*/
    /* min-width: 50%; */
    flex: 0 0 350px;
    border-radius: 10px;
    /* width: 420px; */
}

.cards {
    display: flex;
    gap: 50px;
    transition: transform 0.5s ease;
}

.card {
     position: relative;
    flex: 0 0 450px;
    /* fixed visible card size */
    background-color: #2a2a2a;
    color: white;
    padding: 60px 30px 30px; 
    border-radius: 10px;
    text-align: center;
    height: 250px;
}

.carousel-container {
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.carousel {
    padding: 30px;
    width: 100%;
    overflow: hidden;
    display: flex;
}

.freelance-offer button {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    opacity: 0.2;
}

/* ----------------------------------------------------------------------------------------
projects Section
----------------------------------------------------------------------------------------------  */
.projects {
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    /* padding: 0 24px; */
    margin: 0 auto;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
    /* margin-top: 20px; */

}

.project-item {
    display: flex;
    flex-direction: row;
    background-color: #2a2a2a;
    color: white;
    padding: 20px;
    border-radius: 10px;
}

.project-item img {
    width: 450px;
    height: 250px;
    padding: 0 24px;
}

.see-more {
    width: 1200px;
    margin: 0 auto;
    padding: 10px 24px;
    margin-bottom: clamp(120px, 12vw, 180px);

}

.see-more button {
    border-radius: 5px;
    color: #2a2a2a;
    width: 120px;
    padding: 10px;
}

/* ----------------------------------------------------------------------------------------
heading Section
----------------------------------------------------------------------------------------------  */
.description-top {
    font-size: 2rem;
    font-weight: 700;
    padding: 30px 0 30px 0;
    color: white;
}
.para{
    font-size: 1rem;
    width: 90%;
    height: 150px;
    line-height: 1.5rem;
    flex: 0 0 350px;
}

/* ----------------------------------------------------------------------------------------
card Section
----------------------------------------------------------------------------------------------  */
.card-content h3 ,.project-content h3 {
    font-size: 1.5rem;
}
.card-content p {
    font-size: 1.2rem;
    list-style: 1.2rem;
    padding: 20px;
}
.project-content p{
    padding: 30px;
    font-size: 1rem;
    line-height: 1.5rem;

}

.circle {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);

  width: 58px;
  height: 58px;
  padding: 4px;          /* ⬅ ring thickness */
  border-radius: 50%;

  background: linear-gradient(
    90deg,
    rgb(111, 255, 164),
    rgb(98, 240, 237)
  );

  display: flex;
  align-items: center;
  justify-content: center;
}

.circle::before {
  content: "";
  position: absolute;
  inset: 4px;            /* ⬅ SAME as padding */
  /* background-color: #1f1f1f; */
  border-radius: 50%;
}

.circle i {
  position: relative;
  font-size: 16px;
  color: #1f1f1f;
  padding:1px;
}
/* ----------------------------------------------------------------------------------------
mobile 800 Section
----------------------------------------------------------------------------------------------  */
@media (max-width: 800px) {
    .freelance-offer {
        flex-direction: column;
    }

    .content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .freelance-offer {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .carousel {
        overflow-x: hidden;
  overflow-y: visible;
    }

    .card {
        padding: 30px;
        width: 90%;
    }

    .multi-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 999;
    }

    .line {
        width: 25px;
        height: 3px;
        background-color: #ffffff;
        margin: 5px;
    }
    
    .nav-links {
        background-color: #1f1f1f;
        flex-direction: column;
        height: 100vh;
        width: 100%;
        max-width: 450px;
        position: fixed;
        top: 0;
        right: -100%;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: 80px;
        padding-left: 20px;
        gap: 20px;
        transition: right 0.3s ease-in;
        box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
        list-style: none;
        z-index: 998;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        font-size: 1.5rem;
        color: #ffffff;
        text-decoration: none;
        display: block;
        padding: 10px 0;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .line:nth-child(1) {
        transform: rotate(-45deg) translate(-6px, 6px);
    }

    .hamburger.active .line:nth-child(3) {
        transform: rotate(45deg) translate(-6px, -6px);
    }

}



/* ----------------------------------------------------------------------------------------
FormSection
----------------------------------------------------------------------------------------------  */

.contact-form {
  max-width: 520px;
  margin: 0 auto;
  padding: 32px;
  background-color: #2a2a2a;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: white;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  color: #b5b5b5;
}

.contact-form input,
.contact-form textarea {
  background-color: #1f1f1f;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 1rem;
  color: white;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #777;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgb(98, 240, 237);
  box-shadow: 0 0 0 2px rgba(98, 240, 237, 0.15);
}

.submit-btn {
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: #1f1f1f;

  background: linear-gradient(
    90deg,
    rgb(111, 255, 164),
    rgb(98, 240, 237)
  );

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(98, 240, 237, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}


/* ----------------------------------------------------------------------------------------
mobile 600 Section
----------------------------------------------------------------------------------------------  */
@media (max-width: 600px) {
  

    .brand{
        width: 60px;
    height: auto;
    }
    .content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .freelance-offer {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .carousel-container {
    
    width: 100%;
    position: relative;
    }

    .carousel {
    width: 100%;
    overflow: hidden;
    padding: 0;
    }

    .cards {
    display: flex;
    /* gap: 24px; */
    transition: transform 0.4s ease;
    padding: 0 16px;      /* controlled padding */
    box-sizing: border-box;
    }
    .card {
         position: relative;
  flex: 0 0 55vw; 
  background-color: #2a2a2a;
  color: white;
   padding: 56px 20px 24px;
  border-radius: 12px;
  text-align: center;
  max-width: 320px;
  height: 300px;

    }
    .card-content h3{
        font-size: 1rem;
    }
    .card-content p{
        font-size: 1rem;
    }

    .carousel {
        width: 100%;
    }
    .circle {
  display: none;
}

    .reach {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: start;
        gap: 15px;
        margin-top: 10px;
    }

    .profile img {
        width: 140px;
        height: auto;
        border-radius: 150px;
    }

    .multi-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: left;

        color: white;
    }
  
    .heading {
        font-size: 2rem;
        padding: 30px;
        text-align: left;
        max-width: 1200px;
        margin: 0 auto;
        word-break: break-word;
  overflow-wrap: break-word;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 999;
    }

    .line {
        width: 25px;
        height: 3px;
        background-color: #ffffff;
        margin: 5px;
    }

    .nav-links {
        background-color: #1f1f1f;
        flex-direction: column;
        height: 100vh;
        width: 100%;
        max-width: 450px;
        position: fixed;
        top: 0;
        right: -100%;
        display: flex;
        align-items: start;
        justify-content: start;
        padding-top: 50%;
        transition: .1s ease-in;
        box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
    }
     .nav-links li{

        padding: 20px;
     }
    .nav {
    background: none;
    border: none;
    font-size: 3rem;
    color: white;
    opacity: 0.25;
    cursor: pointer;
   
    }

    .nav:hover {
    opacity: 0.6;
    }
    .nav-links.active {
        right: 0;
    }

    .hamburger.active .line:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .line:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
  }

  .hamburger.active .line:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
  }
  

  .projects {
    padding: 0 16px;
  }

  .project-item {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .project-img img {
    width: 90%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 14px;
  }

  .project-content {
    text-align: left;
  }

  .project-content h3 {
    font-size: 1.25rem;
  }

  .project-content p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}