/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', 'Times New Roman', Times, serif;
  font-size: 1rem;
  background: whitesmoke;
  color: #111;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 120%;
  margin: auto;
}

/* Header */
header {
  background: #e8491d;
  padding: 1rem 0;
  color: #fff;
  font-size: medium;
}
.logo {
  font-size: 20px;
  font-weight: 25px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: left;
  width: 35px;
  height: 30px;
  padding: 0.5rem;
  border-radius: 50%;
  border: white 3px solid;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  text-align: center;
}

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

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.3rem;
  font-size: 0.9rem;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: medium;
  align-items: center;

}

.btn-small {
  background: #06b6d4;
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  list-style: none;
  justify-items: center;
}

.theme-btn {
  background: none;
  border: 2px solid white;
  padding: 0.5rem;
  color: white;
  cursor: pointer;
  border-radius: 5px;
  justify-content: center;
}

/* Hero Section */
#hero {
  padding: 5rem 2rem;
  text-align: center;
  background: goldenrod;
  color: #fff;
  font-size: 30px;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero-text {
  text-align: center;
  font-size: 1.2rem;
}

.hero-img img {
  width: 300px;
  height: 30%;
  object-fit: cover;
  border-radius: 50%;
  background:#35424a;
  border: 4px solid ;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

@media (min-width: 768px) {
  .hero-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

/* Pop-up Name Animation */
.pop-up-name {
  animation: popUp 1.5s ease-out forwards;
}

@keyframes popUp {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  60% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

/* About */
#about {
  padding: 4rem 0;
  text-align: center;
  font-size: medium;
}

.skills {
  margin-top: 3rem;
  display: grid;
  justify-content: center;
  gap: 1rem;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;

}

.skills img {
  width: 70px;
  height: 65px;
  border-radius: 60%;
}

/* Projects */
#projects {
  padding: 4rem 0;
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.project-card img {
  width: 45px;
  height: 40px;
  object-fit: cover;
  margin-top: 19px;
}

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

/* Filters */
.filters {
  margin: 1rem 0;
}

.filter-btn {
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  border: none;
  background: #6366f1;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

/* Testimonials */
#testimonials {
  padding: 4rem 0;
  background: #e0e7ff;
  text-align: center;
  color: #000;
  font-size: medium;
}

.testimonial {
  margin-top: 2rem;
}
.testimonial img {
  width: 50%;
  height: 50%;
}

/* Contact */
#contact {
  padding: 4rem 0;
  text-align: center;
  font-size: 15px;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  width: 75%;/* Match the width of the input fields */
  margin: 0 auto;
  font-size: medium;
  background-color: white;
}
input[type="text"],
input[type="email"], 
textarea {
  width: 100%;
  padding: 0.5rem;
  height: 40%;
}

.social-links a {
  margin: 0 0.5rem;
  color: #4f46e5;
  text-decoration: none;
  font-size: 1rem;
}
.social-links img {
  width: 35px;
  height: 30px;
  padding: 0.5rem;
  border-radius: 50%;
  background: #e0e7ff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin-top: 3rem;
}
.social-links a:hover {
  color: green;
  transition: transform 0.3s ease;

}
.social-links img:hover {
  transform: scale(1.2);
  transition: transform 0.3s ease;
}
/* Footer */
footer {
  padding: 2rem 0;
  text-align: center;
  background: #111827;
  color: #ccc;
  font-size: 0.9rem;
}

/* Fade-in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dark Theme */
.dark-theme {
  background: #111827;
  color: #eee;
}

.dark-theme header {
  background: #1f2937;
}

.dark-theme #hero {
  background: #1f2937;
}

.dark-theme .project-card {
  background: black;
  color: #eee;
}
.dark-theme .social-links a {
  color: #e0e7ff;
}
