/* ===== Reset & Basics ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #fafafa;
  color: #333;
  line-height: 1.6;
}

/* ===== Hero ===== */
.hero {
  width: 100%;
  background: linear-gradient(135deg, #0077cc 0%, #004080 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  text-align: center;
}

.hero-inner {
  max-width: 1200px;
  padding: 0 20px;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 0.5em;
}

.hero-text .lead {
  font-size: 1.2rem;
  margin-bottom: 1em;
  opacity: 0.95;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.6em 1.4em;
  border-radius: 4px;
  background-color: #0077cc;
  color: white;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-right: 10px;
  text-decoration: none;
}
.btn:hover {
  background-color: #005fa3;
}
.btn-outline {
  background-color: transparent;
  border: 2px solid #0077cc;
  color: #0077cc;
}
.btn-outline:hover {
  background-color: #0077cc;
  color: white;
}

/* ===== Navigation ===== */
.nav {
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 20px 0;
  z-index: 1000;
}

.nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 64px;
}

.nav a {
  color: #0077cc;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.2rem;
  transition: color 0.3s ease;
  padding: 8px 12px;
}
.nav a:hover {
  color: #004080;
}

/* ===== Main container ===== */
.container {
  max-width: 1500px;
  margin: 48px auto;
  padding: 0 20px;
}

/* ===== Projects ===== */
.projects .project-card {
  display: flex;
  flex-wrap: wrap;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0px 1px 8px rgba(0,0,0,0.1);
  margin-bottom: 40px;
}

/* Project Info */
.project-info {
  flex: 1 1 400px;  /* allow info to grow/shrink */
  padding: 20px;
}

.project-info h3 {
  margin-bottom: 10px;
}

.project-details {
  margin-top: 10px;
  list-style: disc;
  padding-left: 20px;
}

/* Project Images */
.project-image {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Single image large */
.project-image.single {
  flex: 1 1 80%;   /* full width */
}

.project-image.single img {
  max-width: 80%;

}

/* Double images side by side */
.project-image.double {
  flex: 1 1 50%;   /* takes 60% of card width */
}

.project-image.double img {
  max-width: 25%;   /* two images side by side with gap */
  height: auto;
  display: block;
  border-radius: 8px;
}

/* ===== Skills ===== */
.skills {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0px 1px 8px rgba(0,0,0,0.1);
  margin-bottom: 40px;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 10px;
}

.skill-list li {
  background-color: #e8f1fb;
  color: #0077cc;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.95em;
}

/* ===== Contact ===== */
.contact {
  text-align: center;
  margin-bottom: 40px;
}

.social-links a {
  margin: 0 10px;
  font-weight: bold;
  color: #0077cc;
  text-decoration: none;
}

.social-links a:hover {
  text-decoration: underline;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 20px 0;
  background-color: #ffffff;
  color: #777;
  font-size: 0.85em;
  border-top: 1px solid #e1e1e1;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-text h1 { font-size: 2.2rem; }
  .nav ul { flex-direction: column; gap: 16px; }
}

@media (max-width: 768px) {
  .project-card {
    flex-direction: column;   /* stack project info & images */
  }
  .project-image.double img {
    max-width: 10%;          /* stack double images vertically */
  }
}

