/* Reset + Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* protect against edges on phones */
}

/* Header */
header {
  color: #e0e0e0;
  padding: 30px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  background-color: rgba(44, 62, 80, 0.4);
  backdrop-filter: blur(10px);
  position: relative;
}

header h1 {
  text-align: center;
  font-size: 3.2rem;
  letter-spacing: 2px;
  font-weight: 700;
}

/* Nav */
nav ul {
  list-style: none;
  display: flex;
  flex-direction: row;   /* always horizontal */
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  padding: 0;
  flex-wrap: nowrap;    /* prevent wrapping */
}

nav ul li {
  margin: 0 15px; /* spacing between links */
}

nav ul li a {
  color: #e0e0e0;
  font-size: 1.2rem;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #00bfae;
}

/* Responsive scaling without stacking */
@media (max-width: 1024px) {
  nav ul li {
    margin: 0 12px;
  }
  nav ul li a {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  nav ul li {
    margin: 0 10px;
  }
  nav ul li a {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  nav ul li {
    margin: 0 8px;
  }
  nav ul li a {
    font-size: 0.9rem;
  }
}

/* Sections */
section {
  padding: 20px;
}

section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 20px;
}

/* Text blocks */
p {
  width: 100%;
  max-width: 700px;
  margin: auto;
  padding: 0 10px;
  text-align: center;
}

#aboutME,
#contactME {
  width: 100%;
  max-width: 600px;
  margin: auto;
  padding: 0 15px;
  text-align: center;
}

/* Project cards */
.project {
  padding: 30px;
  margin: 20px auto;
  width: 100%;
  max-width: 600px;
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
  background-color: rgba(44, 62, 80, 0.4);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

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

.project h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #00bfae;
  text-align: center;
}

.project p {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 20px;
  text-align: center;
}

.project a {
  font-weight: bold;
  background-color: #00bfae;
  color: white;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 5px;
  transition: background-color 0.3s, transform 0.3s;
  display: inline-block; /* keep button sizing */
  margin-top: 15px; /* spacing from project content */
}

.project a:hover {
  background-color: #008f8a;
  transform: scale(1.05);
}


/* Footer */
footer {
  color: white;
  text-align: center;
  padding: 35px;
  background-color: rgba(44, 62, 80, 0.4);
  backdrop-filter: blur(10px);
}

footer p {
  font-size: 1.2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 30px;
  background-color: #00bfae;
  color: white;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
  font-size: 1.2rem;
}

.btn:hover {
  background-color: #008f8a;
  transform: scale(1.05);
}

/* Contact section */
#contact ul {
  padding-left: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

#contact li {
  margin: 15px;
  text-align: center;
}

#contact a {
  display: block;
  font-weight: bold;
  background-color: #00bfae;
  color: white;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 5px;
  transition: background-color 0.3s, transform 0.3s;
}

#contact a:hover {
  background-color: #008f8a;
  transform: scale(1.05);
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
  header h1 {
    font-size: 2.5rem;
  }

  section h2 {
    font-size: 2rem;
  }

  .project {
    max-width: 90%;
  }

  #aboutME, #contactME {
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  section h2 {
    font-size: 1.8rem;
  }

  .project h3 {
    font-size: 1.4rem;
  }

  .project p {
    font-size: 1rem;
  }

  .btn,
  .project a,
  #contact a {
    font-size: 1rem;
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.6rem;
    padding: 0 10px;
  }

  section h2 {
    font-size: 1.3rem;
  }

  #aboutME, #contactME {
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0 10px;
  }

  .project {
    padding: 20px;
  }

  .project h3 {
    font-size: 1.2rem;
  }

  .project p {
    font-size: 0.9rem;
  }

  .btn,
  .project a,
  #contact a {
    font-size: 0.85rem;
    padding: 8px 16px;
  }
}
