@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --primaryClr: #B2F043 ;
  --secondaryClr: #1E1E1E ;
  --backgroundClr: #FFFFFF ;

}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: auto;
}

h1{
  font-size: 2.2em;
  font-weight: 600;
}

section{
  padding: 40px 24px;
}

.section-title{
  text-align: center;
  margin-bottom: 60px;

}

header {
  margin-top: 40px;
  padding: 0 12px;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  padding: 0 20px;
}

nav ul a {
  text-decoration: none;
  color: var(--secondaryClr);
  font-weight: 500;
  position: relative;
}

nav ul a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 4px;
  background-color: var(--primaryClr);
  left: 0;
  bottom: -5px; 
  transition: width 0.3s ease; 
}

nav ul a:hover::after {
  width: 100%; 
}

.hire-me-btn {
  background: var(--primaryClr);
  color: var(--secondaryClr);
  font-weight: 600;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease; 
}

.hire-me-btn:hover {
  background-color: var(--secondaryClr);
  color: var(--backgroundClr);
}

.hero {
  display: flex;
  background: var(--secondaryClr);
  color: var(--backgroundClr);
  padding: 80px 40px;
  border-radius: 24px;
  justify-content: space-between;
}

.hero-content, .hero-image {
  padding: 0 40px;
}

.hero h1 {
  font-size: 3em;
  color: var(--primaryClr);
}

.hero h2 {
  font-size: 2em;
  color: var(--primaryClr);
}

.hero h3 {
  font-size: 1.5em;
  font-weight: 500;
  margin: 20px 0;
}

.hero-btn {
  margin-top: 40px;
}

/* Base Button Styles */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  margin-right: 10px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden; /* Ensures the sliding effect stays within the button */
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Sliding Effect Pseudo Element */
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%; /* Initially hidden on the left side */
  width: 100%;
  height: 100%;
  background-color: var(--primaryClr); /* Sliding background color */
  transition: all 0.4s ease-in-out; /* Smooth sliding transition */
  z-index: 1; /* Ensure the slide effect appears below the text */
}

.btn-primary::before{
  background-color: var(--backgroundClr);
}

.btn-secondary::before{
  background-color: var(--backgroundClr);
}

.btn:hover::before {
  left: 0; /* Slide in on hover */
}

.btn:hover {
  color: var(--secondaryClr); /* Change text color on hover */
  border: solid 2px var(--backgroundClr);
}

.btn span {
  position: relative;
  z-index: 2; /* Ensures text stays above the sliding effect */
}

/* Primary Button Styling */
.btn-primary {
  background: var(--primaryClr);
  color: var(--secondaryClr);
  border: solid 2px var(--primaryClr);
}

/* Secondary Button Styling */
.btn-secondary {
  color: var(--backgroundClr);
  border: solid 2px var(--backgroundClr);
}


.about {
  display: flex;
  justify-content: space-between;
}

.left-about {
  max-width: 60%;
  background-color: var(--primaryClr);
  padding: 40px 80px 40px 80px;
  border-radius: 24px;
}

.left-about img{
  padding: 20px 0;
  height: 40%;
}

.left-about p {
  text-align: justify;
}

.right-about {
  display: flex;
  flex-direction: column;
  width: 50%;
  padding: 40px 0 0 40px;
}

/* Skill List */
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-end;
  padding-top: 20px;
}

/* Individual Skill Card */
.skill {
  text-align: center;
  padding: 24px;
  border: 2px solid var(--secondaryClr);
  border-radius: 12px;
  flex-basis: 47%;
  transition: transform 0.4s ease, background-color 0.1s ease; /* Smooth zoom and background transition */
}

/* Zoom effect on hover */
.skill:hover {
  transform: scale(1.05); /* Zoom the card to 110% of its original size */
  background-color: var(--primaryClr); /* Optional: change background color on hover */

}

/* Skill Icon */
.icon {
  width: 40%;
  padding-bottom: 18px;
  font-size: 3em;
}

/* Services Section */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 24px;
}

.service {
  background-color: var(--primaryClr); /* Adjust color as needed */
  padding: 36px;
  border-radius: 12px;
  text-align: left;
  transition: background-color 0.2s ease, transform 0.4s ease;
}

.service:hover {
  background-color: var(--secondaryClr);
  color: var(--backgroundClr);
  transform: translateY(-10px); 
}

.service h2{
  padding-bottom: 20px;
}


/*Featured Projects Section */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.project-card {
  background-color: var(--secondaryClr);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-content {
  padding: 20px;
  color: var(--backgroundClr);
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--primaryClr);
}

.project-description {
  font-size: 1rem;
  margin-bottom: 20px;
}

.project-link {
  color: var(--backgroundClr);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.project-link:hover {
  color: var(--primaryClr);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .project-title {
    font-size: 1.25rem;
  }

  .project-description {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

#testimonials{
  background-color: var(--primaryClr);
}


.client-profile {
  display: flex;
  flex-direction: row;
  padding-bottom: 20px;
}

.client-profile img {
  margin-right: 20px;
  border-radius: 50%;
  height: 80px;
  width: 80px;
  object-fit: cover;
}

.testimonials-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.testimonial {
  background-color: var(--backgroundClr);
  text-align: left;
  padding: 24px;
  border-radius: 12px;
  flex-basis: 32%;
  transition: transform 0.3s ease;
}

.testimonial:hover{
  transform: translateY(-10px);
}


.contact {
  display: flex;
  justify-content: space-between;
  padding: 50px;
}

.contact-details p {
  padding-top: 24px;
  font-size: 1.2rem;
  font-weight: 500;
}

.contact-details i {
  margin-right: 18px;
}

.contact-form {
  flex-basis: 50%;
  transition: transform 0.3s ease;
}

.contact-form form {
  display: flex;
  gap: 24px;
  flex-direction: column;
  padding: 24px;
  border: 2px solid var(--secondaryClr);
  border-radius: 12px;
}

.contact-form:hover{
  transform: translateY(-10px); 
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--secondaryClr);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--secondaryClr);
  border-radius: 6px;
  font-size: 1rem;
}

.form-group textarea {
  resize: vertical;
}

.btn-form{
  background: var(--primaryClr);
  color: var(--secondaryClr);
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;  /* Smooth transition */
}

.btn-form:hover{
  background-color: var(--secondaryClr);
  color: var(--primaryClr);
}


footer {
  text-align: center;
  padding: 50px;
  background: var(--secondaryClr);
  color: var(--primaryClr);
}

footer nav {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 20px 0;
}

footer nav ul li a{
  margin: 0 15px;
  color: var(--backgroundClr);
}

footer p{
  padding: 40px 0;
}


/* Mobile Responsive Styling */
@media screen and (max-width: 768px) {

  .container{
    margin: auto;
    padding: 0;
  }

  section{
    padding: 20px 12px;
  }

  /* Header and Navigation */

  header{
    margin-top: 20px;
  }

  nav {
    display: flex;
    justify-content: flex-end;
  }

  header nav ul {
    display: none;
  }

  nav ul li {
    padding: 10px 0;
  }

  nav ul a {
    font-size: 1.2em;
  }

  .hire-me-btn {
    padding: 10px 20px;
    margin-top: 10px;
  }

  /* Hero Section */
  .hero {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
    align-items: center;
  }

  .hero-content, .hero-image {
    padding: 0;
  }

  .hero h1 {
    font-size: 2.2em;
  }

  .hero h2 {
    font-size: 1.8em;
  }

  .hero h3 {
    font-size: 1.2em;
  }

  .hero-btn {
    display: flex;
    flex-direction: column;
    padding: 0 24px;
  }

  .hero-image{
    display: none;
  }

  .btn{
    margin: 12px 0;
  }

  /* About Section */
  .about {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .left-about {
    max-width: 100%;
    padding: 24px;
  }

  .left-about p {
    text-align: center;
  }

  .right-about {
    padding: 20px;
    width: 100%;
  }

  .skill{
    padding: 12px;
  }

  .skill-list {
    display: flex;
    justify-content: center;
    gap: 18px;
  }

  /* Services Section */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Featured Projects */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    margin-bottom: 20px;
  }

  /* Testimonials Section */
  .testimonials-grid {
    display: flex;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .testimonial {
    margin-bottom: 20px;
  }

  /* Contact Section */
  .contact {
    flex-direction: column;
    text-align: center;
  }

  .contact-form {
    margin-top: 20px;
  }

  .form-group {
    text-align: left;
  }

  /* Footer */
  footer nav ul {
    flex-direction: column;
    text-align: center;
  }
}

/* Smaller mobile devices (max-width: 480px) */
@media screen and (max-width: 420px) {
  /* Header */
  nav ul a {
    font-size: 1em;
  }

  .hire-me-btn {
    font-size: 1em;
    padding: 8px 16px;
  }

  /* Hero Section */
  .hero h1 {
    font-size: 2em;
  }

  .hero h2 {
    font-size: 1.5em;
  }

  .hero h3 {
    font-size: 1em;
  }

  .skill-list {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .contact-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 2px;
  }

}


