html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
  color: #fff;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 15px 30px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.branding {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.branding h1 {
  font-size: 1.5rem;
  color: #222;
  margin: 0;
}

.navbar {
  display: flex;
  gap: 20px;
}

.navbar a {
  color: #080808aa;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #000;
}

.main-container {
  background-image: url('background.png'); 
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding-top: 80px;
  box-sizing: border-box;
  min-height: 100vh;
}

main section {
  min-height: 100vh;
  padding: 40px 30px;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.6);
  max-width: 1000px;
  margin: 20px auto;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
}

.intro {
  flex-direction: row;
  align-items: center;
  gap: 40px;
  padding-top: 100px;
}

.intro-text {
  flex: 1;
  max-width: 500px;
}

.intro-text h2 {
  margin-top: 0;
  font-size: 2rem;
}

.intro-text p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.intro-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: none;
  background: transparent;
  padding: 0;
  margin: 0;
}

.intro-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.about {
  flex-direction: column;
  text-align: center;
}

.education article {
  margin-bottom: 15px;
  color: #ddd;
}

.skills-achievements {
  flex-direction: column;
  text-align: center;
}

.skills-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100px;
  color: white;
}

.skill img {
  width: 48px;
  height: 48px;
  filter: invert(100%);
}

.skill span {
  margin-top: 8px;
  font-weight: bold;
}

.achievements-list {
  list-style: none; 
  padding: 0;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.5;
  color: white;
  max-width: 700px;
}

.contact {
  flex-direction: column;
  text-align: center;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.contact-icons li a {
  display: inline-block;
  color: white;
  transition: color 0.3s ease;
}

.contact-icons li a:hover {
  color: #ddd;
}

.contact-icons img.icon {
  width: 32px;
  height: 32px;
  filter: invert(100%);
}

form {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}

form label {
  font-weight: bold;
  display: block;
  margin-top: 15px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  box-sizing: border-box;
  resize: none; /* ✅ No manual resize */
}

textarea {
  height: 120px;
}

button {
  margin-top: 15px;
  padding: 12px 28px;
  background-color: #222;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: block;
  width: 100%;
}

button:hover {
  background-color: #555;
}

footer {
  text-align: center;
  padding: 12px 0;
  background-color: rgba(241, 240, 240, 0.18);
  color: rgb(10, 10, 10);
  font-size: 14px;
  margin-top: 40px;
}

@media (max-width: 900px) {
  .intro {
    flex-direction: column;
    padding-top: 120px;
  }

  .intro-text,
  .intro-image {
    max-width: 100%;
  }

  .navbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  form {
    width: 100%;
  }
}
