/* --- Global Styles --- */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  padding-top: 0; /* offset for fixed navbar */
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  color: #000;
}

/* --- Header / Hero Fix --- */
#hero {
  padding-top: 100px; /* extra padding so navbar doesn't cover */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#hero img {
  /* max-width: 200px;
  height: auto; */
  margin-bottom: 20px;
}


html {
  scroll-padding-top: 70px; /* smooth scroll offset for navbar */
}

h2 {
  color: #0a3d91;
  margin-top: 15px;
  font-size: 1.8rem;
  text-align: center;
}

p {
  text-align: center;
  max-width: 700px;
  margin: 10px auto 20px;
  line-height: 1.5;
  color: #333;
}

/* img {
  margin-top: 20px;
  max-width: 180px;
  height: auto;
} */

/* --- Sections --- */
section {
  width: 100%;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

section ul {
  list-style: none;
  padding: 0;
}

section ul li {
  margin: 8px 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Portfolio Cards --- */
.portfolio-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.portfolio-card {
  width: 250px;
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.portfolio-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* --- Contact Form --- */
form {
  background: #fff;
  padding: 25px 50px;
  margin: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: #000;
}

input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border 0.3s, box-shadow 0.3s;
}

input:focus {
  border-color: #0a3d91;
  outline: none;
  box-shadow: 0 0 6px rgba(10, 61, 145, 0.3);
}

button {
  width: 100%;
  padding: 14px;
  font-size: 1.1rem;
  font-weight: bold;
  background: #0a3d91;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

button:hover {
  background: #072c6e;
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
}

/* --- Footer --- */
footer {
  margin: 30px 0;
  text-align: center;
  color: #555;
}

/* --- Navbar Styles --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 150px;
  background: #0a3d91;
  color: white;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
}

.nav-logo {
  font-weight: bold;
  font-size: 1.2rem;
  color: white;
  text-decoration: none;
}

.nav-container img {
  width: 100px;
  margin-bottom: 10px;
  margin-left: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #ffcc00;
}

/* --- Hamburger Button --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger active state transforms into X */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Mobile Navbar --- */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    background: #0a3d91;
    flex-direction: column;
    width: 200px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0;
    border-radius: 0 0 8px 8px;
  }

  .nav-links.active {
    max-height: 500px;
    padding: 10px 0;
  }

  .nav-links li {
    text-align: center;
    margin: 10px 0;
  }

  .nav-toggle {
    display: flex;
  }
}

/* --- Section Scroll Animation --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .portfolio-container {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 600px) {
  h2 { font-size: 1.5rem; }
  form { padding: 20px; margin: 15px; }
  input, button { font-size: 1rem; padding: 12px; width: 310px;}
  img { max-width: 450px; }
  section { padding: 30px 15px; }
}

@media (max-width: 400px) {
  h2 { font-size: 1.3rem; }
  form { padding: 15px; }
  input, button { font-size: 0.95rem; padding: 10px; }
}
