/* === Colors === */
:root {
  --bg-color: #061c1d;
  --highlight-color: #9fffe0;
  --text-color: #e0f7f4;
  --muted-color: #7fb8b5;
}

/* === Global === */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

a {
  color: var(--highlight-color);
  text-decoration: none;
  transition: all 0.3s;
}

a:hover {
  text-decoration: underline;
}

/* === Navbar === */
nav {
  display: flex;
  justify-content: center;
  background-color: rgba(0,0,0,0.3);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav a {
  margin: 0 20px;
  font-weight: bold;
}

/* === Layout === */
main {
  max-width: 800px;
  margin: auto;
  padding: 20px;
}

h1, h2 {
  color: var(--highlight-color);
}

h2 {
  border-bottom: 2px solid var(--highlight-color);
  padding-bottom: 5px;
  margin-bottom: 15px;
}

p, li {
  font-size: 1.05rem;
}

/* === Hero === */
.hero {
  display: flex;
  flex-direction: column;  /* stack children vertically */
  align-items: center;     /* center horizontally */
  gap: 15px;               /* space between items */
  padding: 60px 20px;      /* vertical and horizontal spacing */
  text-align: center;      /* center text */
}

.hero .btn {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--bg-color);      /* same as your page background */
  color: var(--highlight-color);          /* seafoam text */
  text-decoration: none;
  border: 2px solid var(--highlight-color);
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s;
}

.hero .btn:hover {
  background-color: #154e4e;              /* slightly darker than your bg-color */
  color: #a7fff0;                         /* slightly brighter highlight */
  cursor: pointer;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.tagline {
  color: var(--muted-color);
  font-size: 1.2rem;
}

/* === About Page === */
.profile-img {
  display: block;
  max-width: 200px;
  width: 100%;
  margin: 20px auto;
  border-radius: 50%;
  border: 3px solid var(--highlight-color);
}

/* === Contact Form === */
form {
  display: flex;
  flex-direction: column;
}

input, textarea {
  padding: 10px;
  margin-bottom: 15px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
}

button {
  padding: 12px;
  background-color: var(--highlight-color);
  color: var(--bg-color);
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
}

button:hover {
  opacity: 0.9;
}

/* === Footer === */
footer {
  text-align: center;
  padding: 20px;
  color: var(--muted-color);
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
}
/* Portfolio Grid */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.project-card {
  display: flex;
  flex-direction: column;  /* Stack content vertically */
  align-items: center;     /* Center content horizontally */
  margin-bottom: 20px;
  padding: 15px;
  background-color: rgba(0,0,0,0.2);
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Project Image */
.project-card img {
  width: 150px;          /* Adjust size as needed */
  height: 150px;         /* Keep square */
  object-fit: cover;     /* Crop nicely if image isn't square */
  border-radius: 20%;
  border: 3px solid var(--highlight-color);
  margin-bottom: 15px;   /* Space below image */
}

.project-card h3 {
  margin: 10px 0 5px;
}

.project-card p {
  margin: 5px 0;
  color: var(--muted-color);
  text-align: center;
}

.project-card a {
  color: var(--highlight-color);
  font-weight: bold;
}

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