/* Base Styles */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0d1117;
  color: #fff;
}

/* Header Styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #161b22;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header img {
  width: 10%;
  display: block;
}

/* Logo Section */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
  padding: 0;
}

.logo figcaption {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

/* Nav Menu */
nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}

nav a:hover {
  color: #e00707;
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: white;
  z-index: 1100;
}

/* Hero Section */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  flex-wrap: wrap;
}

.hero-text {
  max-width: 500px;
}

.hero-img {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.hero-img img {
  max-width: 300px;
  border-radius: 50px;
  border: 3px solid #ba0101;
}

/* Typography */
h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

h2 {
  text-align: center;
}

.section p {
  text-align: justify;
}

.section {
  padding: 2rem;
}

/* Skills Section */
#skills {
  background-color: #161b22;
  padding: 10px;
}

.skills-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 0;
  margin: 0;
  text-shadow: 0 0 1px #c8102e, 0 0 1px #ba0101;
}

.skills-list li {
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 500;
}

/* Projects Section */
.project {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.project img {
  max-width: 200px;
  border-radius: 10px;
}

/* Contact Form */
form {
  background-color: #161b22;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input, textarea {
  padding: 0.75rem;
  border: none;
  border-radius: 5px;
  width: 93%;
  font-size: 1rem;
}

button {
  padding: 0.75rem 1.5rem;
  background-color: #ba0101;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #e00707;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #161b22;
  color: white;
}

.social-icons a {
  margin: 0 0.5rem;
  color: white;
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 1rem;
    right: -270px;
    width: 200px;
    background-color: #161b22;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 1rem;
    border-radius: 10px 0 0 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease-in-out;
  }

  nav.active {
    right: 1rem;
  }

  .hamburger {
    display: block;
  }

  nav a {
    width: 100%;
    padding: 0.5rem 0;
  }

  form {
    margin: 2rem 1rem;
    padding: 1.5rem;
  }

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

  .hero-img {
    width: 100%;
    margin-top: 1rem;
  }

  .hero-img img {
    margin: 0 auto;
  }

  .project {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .project img {
    margin: 0 auto;
    display: block;
  }

  .project div {
    width: 100%;
  }
}
