/* Base styling */
body, html {
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  background: #111;
}
.navbar-brand {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: #fff;
  white-space: normal;
  word-break: break-word;
}
.navbar-nav .nav-link {
  color: #f3ebeb;
  margin-right: 1rem;
  transition: color 0.3s ease;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 0.1em;
}
.navbar-nav .nav-link:hover {
  color: #fff;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.close-icon {
  font-size: 2.4rem;
  color: white;
}

/* Hero section */
#home {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #000;
  text-align: center;
  padding: 0 1rem;
}
#home h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  word-break: break-word;
}
#home p {
  font-size: 1.25rem;
  color: #bbbbbb;
  max-width: 650px;
  margin: 0 auto 1.5rem;
}
#home .btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
#home .btn {
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: background 0.3s ease;
}
#btn-hire, #btn-resume {
  background-color: #fff;
  color: #000;
}
#btn-hire:hover, #btn-resume:hover {
  background-color: #ccc;
}

/* Section Titles */
.section-title {
  font-size: 2.25rem;
  color: #fff;
  text-align: center;
  margin-top: 4rem;
  margin-bottom: 2rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  border-bottom: 3px solid #fff;
  padding-bottom: 6px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
#about {
  max-width: 1000px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about-content-wrapper {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}
#about img {
  width: 450px;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  border: 4px solid #fff;
  flex-shrink: 0;
}
.about-text {
  flex: 1;
  color: #dddddd;
  font-size: 1.15rem;
  line-height: 1.6;
  min-width: 280px;
  max-width: 700px;
  text-align: justify;
}

/* Skills Section */
.skill-list {
  display: grid;
  gap: 2rem 1.5rem;
  margin-top: 1rem;
  justify-items: center;
}
.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  width: 90px;
  text-align: center;
}
.skill-icon {
  font-size: 3rem;
  transition: transform 0.3s ease;
}
.skill-icon:hover {
  transform: scale(1.2);
}

/* Responsive skill columns */
@media (max-width: 767px) {
  .skill-list {
    grid-template-columns: repeat(2, 1fr);
  }
  #home h1 {
  font-size: 2rem;
  letter-spacing: 2px;
  }
}
@media (min-width: 768px) {
  .skill-list {
    grid-template-columns: repeat(7, 1fr);
    max-width: 1000px;
    margin: 0 auto;
  }
  #home h1 {
  font-size: 4rem;
  letter-spacing: 4px;
  }
}

/* Projects Section */
#projects {
  max-width: 960px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.project-item {
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.project-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}
.project-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.project-content {
  padding: 1rem 1.25rem 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.project-content h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.project-content p {
  font-size: 1rem;
  color: #cfcfcf;
  margin-bottom: 1rem;
}
.btn-project {
  background: #fff;
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s ease;
}
.btn-project:hover {
  background: #bbb;
}

/* Contact Section */
#contact {
  max-width: 600px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
  text-align: center;
}
#contact form {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
#contact input, #contact textarea {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: none;
  outline: none;
  font-size: 1rem;
  background: #222;
  color: #eee;
  transition: background 0.3s ease;
}
#contact input:focus, #contact textarea:focus {
  background: #333;
}
#contact button {
  background: #fff;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  color: #000;
  transition: background 0.3s ease;
}
#contact button:hover {
  background: #ccc;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem 1rem;
  background: #111;
  color: #888;
  font-size: 0.9rem;
}

/* Responsive: About Image */
@media (max-width: 768px) {
  #about {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    padding: 0 1rem;
  }
  #about img {
    width: 250px;
    height: 250px;
  }
  .about-text {
    max-width: none;
  }
}
