/* Skills Section */
.skills {
  text-align: center;
  padding: 60px 20px;
}

.skills h2 {
  margin-bottom: 25px;
}

.skill-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.skill-container span {
  background-color: #2f4a8a;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
}

/* Portfolio Section */
.portfolio {
  background-color: #cfd8e6;
  padding: 60px 20px;
  text-align: center;
}

.portfolio-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.card {
  background: white;
  padding: 20px;
  width: 200px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Contact Section */
.contact {
  text-align: center;
  padding: 60px 20px;
}

/* Footer */
footer {
  background-color: #2f4a8a;
  color: white;
  text-align: center;
  padding: 15px;
}
/* Contact Section */
.contact {
  background-color: #f4f4f4;
  padding: 60px 20px;
  text-align: center;
}

.contact h2 {
  margin-bottom: 30px;
  font-size: 26px;
}

/* Form */
.contact-form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #2f4a8a;
}

/* Button */
.contact-form button {
  background-color: #2f4a8a;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background-color: #1e3570;
}
/* Portfolio Section */
.portfolio {
  background-color: #cfd8e6;
  padding: 60px 20px;
  text-align: center;
}

.portfolio-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Card */
.card {
  background: white;
  width: 250px;
  border-radius: 12px;
  overflow: hidden; /* important for image */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: left;
}

/* Image */
.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

/* Text inside card */
.card h3 {
  margin: 15px;
}

.card p {
  margin: 0 15px 15px;
  color: #555;
}
html {
  scroll-behavior: smooth;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px; /* Adjust this to match your header's height */
}
/* Portfolio Section Layout */
.portfolio-container {
  display: flex;            /* This aligns items horizontally */
  justify-content: center;  /* This centers the cards in the middle of the page */
  gap: 20px;               /* This adds space between the cards */
  flex-wrap: wrap;          /* This allows cards to wrap if the screen is narrow */
  padding: 20px;
}

/* Individual Card Styling */
.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Adds a nice subtle shadow */
  padding: 15px;
  width: 300px;             /* Sets a fixed width for each card */
  text-align: center;
}

.card img {
  width: 100%;              /* Makes the image fit inside the card */
  height: 200px;            /* Optional: keeps all images the same height */
  object-fit: cover;        /* Prevents images from looking stretched */
  border-radius: 5px;
}
.contact-form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;   /* 🔥 THIS FIXES IT */
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;              /* 🔥 makes inputs full width */
}