/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  background: #0f0f0f;
  color: #ffffff;
  line-height: 1.6;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 40px;
  position: relative;
}

.nav-name {
  font-weight: 600;
  font-size: 18px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.navbar nav {
  position: absolute;
  right: 40px;
}

.navbar nav a {
  margin-left: 20px;
  color: #ccc;
  text-decoration: none;
}

.navbar nav a:hover {
  color: #fff;
}

/* HERO SECTION */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-container {
  width: 90%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-left img {
  width: 100%;
  max-width: 600px;
  border-radius: 25px;
  object-fit: cover;
}

.main-title {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.2;
}

.main-title .engineer {
  display: block;
  font-size: 52px;
  font-weight: 700;
  margin-top: 10px;
}

.main-title .concentration {
  display: block;
  font-size: 24px;
  font-weight: 400;
  margin-top: 10px;
}

.socials {
  margin-top: 30px;
}

.socials a {
  margin: 0 12px;
  text-decoration: none;
  color: #ffffff;
  border-bottom: 1px solid transparent;
}

.socials a:hover {
  border-bottom: 1px solid #fff;
}

/* PROJECTS GRID - FIXED FOR 2 PER LINE */
.projects {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.projects h3 {
  font-size: 32px;
  margin-bottom: 40px;
}

.project-grid {
  display: grid;
  /* minmax(450px, 1fr) ensures that only two columns fit on most desktops */
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 30px;
}

.project-card {
  background: #161616;
  padding: 25px;
  border-radius: 8px;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  width: 100%;
  height: 250px; /* Forces a consistent height for the 2-per-row look */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block; /* Ensures images are treated as block elements */
}

.project-card h4 {
  margin-bottom: 10px;
  font-size: 18px;
}

.project-card h4 a {
  color: #ffffff;
  text-decoration: none;
}

.project-card h4 a:hover {
  text-decoration: underline;
}

.project-card p {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 15px;
}

.project-card span {
  display: block;
  margin-top: auto;
  font-size: 12px;
  color: #888;
}

.section-title {
  font-size: 2em;
  margin-bottom: 20px;
  font-weight: bold;
}

/* ABOUT SECTION */
.about {
  padding: 80px 40px;
  background: #141414;
  max-width: 1200px;
  margin: 0 auto;
}

.about h3 {
  font-size: 32px;
  margin-bottom: 20px;
}

.about p {
  margin-bottom: 20px;
  color: #ccc;
  line-height: 1.6;
  font-size: 18px;
}

/* CONTACT SECTION */
.contact {
  padding: 80px 40px;
}

.contact h3 {
  font-size: 32px;
  margin-bottom: 20px;
}

.contact p {
  color: #ccc;
}

/* FOOTER */
footer {
  padding: 30px;
  text-align: center;
  color: #666;
  font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 950px) {
  .project-grid {
    /* Switches to 1 per row on smaller tablets/landscape mobile */
    grid-template-columns: 1fr;
  }
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .navbar nav {
    position: static;
    margin-top: 15px;
  }
  .nav-name {
    position: static;
    transform: none;
  }
}
