/* Reset */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
/* reuse css */
.text-center{
  text-align: center;
}

/* Responsive */
@media (max-width: 768px){

  .hero-wrapper{
    flex-direction: column;
    text-align: center;
  }

  .hero-content h1{
    font-size: 32px;
  }

  nav ul{
    gap: 15px;
  }
  

  .about-wrapper{
    flex-direction: column;
    text-align: center;
  }

  .cta-section {
    flex-direction: column;
    align-items: flex-start;
  }
}
body{
  font-family: 'Poppins', sans-serif;
}

/* Container */
.container{
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* Navbar */

.navbar{
  padding: 15px 0;
  background: linear-gradient(to right, #f8f9fa, #e9ecef);
}

nav{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h2{
  background: #06e777;
  color: white;
  padding: 4px 14px;
  border-radius: 5px;
   cursor: pointer;
}
.logo h2:hover{
  transform: scale(1.1);
  background-color: #f2f5f3;
}

/* Menu */
nav ul{
  list-style: none;
  display: flex;
  gap: 30px;
}

nav ul li a{
  text-decoration: none;
  font-weight: 600;
  color: #333;
  transition: 0.3s;
}

nav ul li a:hover{
  color: #06e777;
}
/* Hamburger hidden in desktop */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* Mobile Version */
@media (max-width: 768px) {

  .hamburger {
    display: block;
  }

  nav ul {
    position: absolute;
    top: 70px;
    right: 0;
    background: white;
    width: 200px;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    display: none; /* Hidden by default */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }

  nav ul.active {
    display: flex; /* Show when active */
  }
}

/* Hero Section */
.hero{
    padding: 80px 0;
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
  }

.hero-content{
  flex: 1;
}

.hero-content h1{
  font-size: 48px;
  margin-bottom: 15px;
}

#subtitle{
  font-size: 20px;
  color: #666;
  margin-bottom: 20px;
}

.description{
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.hero-wrapper{
  display: flex;
  align-items: center;
  gap: 50px;
}

.hero-image{
  flex: 1;
  text-align: center;
}

.hero-image img{
  width: 80%;
  max-width:  500px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Button */
.btn{
  background: #06e777;
  color: white;
  border: none;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 25px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover{
  background: #05b666;
  transform: translateY(-3px);
}
/* about section */
.about{
  padding: 80px 0;
  background: linear-gradient(to right, #f8f9fa, #e9ecef);
  gap: 50px;
}

.about-img{
  text-align: center;
  margin-bottom: 30px;
  
}

.about-img img{
  width: 80%;
  max-width: 350px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.about-title{
  width: 100%;
  text-align: center;
  margin: auto;
}

.about h2{
  font-size: 32px;
  margin-bottom: 15px;
  text-align: center;
}

.about p{
  line-height: 1.8;
  color: #555;
}
 
.about-wrapper{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.about-description{
  margin: auto;
  max-width: 800px;
  text-align: justify;
   margin-left: 20px;
}
/* CTA Section */
.cta-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

/* Buttons */
.cta-buttons {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 10px 22px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s ease;
  border: none;
}

.primary {
  background-color: #06e777;
  color: white;
}

.primary:hover {
  background-color: #05b666;
  transform: translateY(-3px);
}

.secondary {
  background-color: transparent;
  border: 2px solid #06e777;
  color: #06e777;
}

.secondary:hover {
  background-color: #06e777;
  color: white;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 18px;
}

.social-icons a {
  font-size: 20px;
  color: #333;
  transition: 0.3s ease;
}

.social-icons a:hover {
  color: #06e777;
  transform: scale(1.2);
}


/* skill section css */
/* Section */
.services {
  padding: 80px 0;
  background: #f9f9f9;
  text-align: center;
}

.section-title {
  font-size: 36px;
  margin-bottom: 50px;
  font-weight: 600;
}

/* Card Wrapper */
.card-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

/* Card Style */
.card {
  background: white;
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: 0.3s ease;
  cursor: pointer;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.card p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.card .icon {
  font-size: 40px;
  color: #06e777;
  margin-bottom: 15px;
  cursor: pointer;
}
/* skill section *//* Skills Section */
.skills {
  padding: 80px 0;
  background: #ffffff;
}

.skills .section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
}

/* Skill Item */
.skill {
  margin-bottom: 25px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 600;
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 10px;
  background: #e0e0e0;
  border-radius: 50px;
  overflow: hidden;
}

.progress {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, #06e777, #05b666);
  width: 0;
  animation: load 2s forwards;
}

/* Individual Skill Width */
.progress.html { width: 95%; }
.progress.css { width: 90%; }
.progress.js { width: 85%; }
.progress.react { width: 80%; }
.progress.git { width: 85%; }

/* Animation */
@keyframes load {
  from { width: 0; }
}
/* project section css */
/* Projects Section */
.projects {
  padding: 80px 0;
  background: #f9f9f9;
}

.projects .section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
}

/* Grid */
.project-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Card */
.project-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: 0.3s ease;
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-content {
  padding: 20px;
}

.project-content h3 {
  margin-bottom: 10px;
}

.project-content p {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}

/* Buttons */
.project-buttons {
  display: flex;
  gap: 10px;
}

.btn.small {
  padding: 6px 14px;
  font-size: 14px;
}

.btn-outline {
  padding: 6px 14px;
  font-size: 14px;
  border: 2px solid #06e777;
  color: #06e777;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s;
}

.btn-outline:hover {
  background: #06e777;
  color: white;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
/* contract section css */
/* Contact Section */
.contact {
  padding: 80px 0;
  background: #f9f9f9;
}

.contact .section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
}

/* Layout */
.contact-wrapper {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1;
  min-width: 280px;
}

.contact-info h3 {
  margin-bottom: 15px;
  font-size: 22px;
}

.contact-info p {
  margin-bottom: 10px;
  color: #555;
}

/* Form */
.contact-form {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #06e777;
  box-shadow: 0 0 5px rgba(6, 231, 119, 0.3);
}

.contact-form .btn {
  width: fit-content;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
  }
}
/* fotter section */
/* Footer */
.footer {
  background: #111;
  color: #fff;
  padding: 60px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 30px;
}

.footer h2 {
  color: #06e777;
  margin-bottom: 10px;
}

.footer h4 {
  margin-bottom: 15px;
  font-size: 18px;
}

.footer p {
  color: #bbb;
  font-size: 14px;
}

/* Links */
.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  text-decoration: none;
  color: #bbb;
  transition: 0.3s;
}

.footer-links ul li a:hover {
  color: #06e777;
}

/* Social */
.footer-social .social-icons {
  display: flex;
  gap: 15px;
}

.footer-social a {
  color: #bbb;
  font-size: 18px;
  transition: 0.3s;
}

.footer-social a:hover {
  color: #06e777;
  transform: scale(1.2);
}

/* Bottom */
.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 15px;
  font-size: 13px;
  color: #777;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
  }
}

/* bac to home button */
/* Back To Top Button */
#topBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #06e777;
  color: white;
  border: none;
  padding: 12px 15px;
  font-size: 18px;
  border-radius: 20%;
  cursor: pointer;
  display: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: 0.3s ease;
  z-index: 999;
}

#topBtn:hover {
  background: #05b666;
  transform: translateY(-5px);
}