/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #1a1a1a; /* Charcoal */
  color: #f3f4f6; /* Soft white */
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Container ===== */
main {
  flex: 1;
  max-width: 900px;
  margin: 3rem auto 4rem;
  padding: 2rem;
  background: #222831;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ===== Header ===== */
header {
  background: linear-gradient(135deg, #2dd4bf, #0ea5e9); /* Softer mint-blue gradient */
  padding: 4rem 1rem 3rem;
  text-align: center;
  border-bottom: 2px solid #0ea5e9;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

header h1 {
  font-weight: 700;
  font-size: 3.2rem;
  margin-bottom: 0.5rem;
  color: #ffffff; /* White text for contrast */
  font-family: 'Roboto Mono', monospace;
  letter-spacing: 1.5px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

header h1:hover {
  transform: scale(1.03);
}

header p {
  font-size: 1.3rem;
  color: #f0fdfa; /* Soft white-blue */
  margin-top: 0;
  opacity: 0.95;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

header h1 {
  font-weight: 700;
  font-size: 3rem;
  margin-bottom: 0.2rem;
  color: #1a1a1a;
  font-family: 'Roboto Mono', monospace;
  letter-spacing: 1.5px;
}

header p {
  font-size: 1.3rem;
  color: #1a1a1a;
  margin-top: 0;
}

/* ===== Navigation ===== */
nav {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  font-weight: 600;
  font-size: 1rem;
}

nav a {
  color: #e5e7eb;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: 0;
  background: #0ea5e9;
  transition: width 0.3s ease;
}

nav a:hover,
nav a:focus {
  color: #2dd4bf;
}

nav a:hover::after,
nav a:focus::after {
  width: 100%;
}

/* ===== Sections ===== */
section {
  margin-bottom: 3rem;
}

section h2 {
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  font-size: 1.8rem;
  color: #2dd4bf;
  margin-bottom: 1rem;
  border-bottom: 2px solid #0ea5e9;
  padding-bottom: 0.3rem;
}

/* ===== About Section ===== */
#about p {
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
  color: #d1d5db;
  line-height: 1.7;
}

/* ===== Projects ===== */
.project {
  background: #2b2d42;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
  transition: transform 0.3s ease;
}

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

.project h3 {
  margin: 0 0 0.5rem;
  color: #2dd4bf;
  font-family: 'Roboto Mono', monospace;
}

.project p {
  margin: 0 0 0.8rem;
  color: #d1d5db;
}

.project a {
  color: #0ea5e9;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.project a:hover {
  color: #2dd4bf;
  text-decoration: underline;
}

/* ===== Resume Button ===== */
#resume a {
  display: inline-block;
  background: #2dd4bf;
  color: #1a1a1a;
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(45, 212, 191, 0.3);
  text-decoration: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#resume a:hover,
#resume a:focus {
  background: #0ea5e9;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

/* ===== Contact Section ===== */
#contact a {
  color: #0ea5e9;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

#contact a:hover,
#contact a:focus {
  color: #2dd4bf;
  text-decoration: underline;
}

/* ===== Footer (Optional) ===== */
footer {
  text-align: center;
  padding: 2rem 1rem;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 650px) {
  nav {
    flex-direction: column;
    gap: 1rem;
  }
  header h1 {
    font-size: 2.5rem;
  }
  main {
    margin: 2rem 1rem 3rem;
    padding: 1.5rem;
  }
}
