:root {
  --blue: #1e88e5;
  --green: #43a047;
  --light-blue: #e3f2fd;
  --light-green: #e8f5e9;
  --text-dark: #222;
  --text-light: #555;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background: #fafafa;
  color: var(--text-dark);
}

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: white;
}

header img {
  border-radius: 50%;
  width: 180px;
  height: auto;
  border: 4px solid white;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 0.3rem;
}

/* Header links → high contrast */
header a {
  color: white;
  font-weight: 600;
  text-decoration: none;
}

header a:hover {
  text-decoration: underline;
  color: #f0f0f0; /* softer hover, still visible */
}

/* Resume button styled for dark background */
.btn {
  display: inline-block;
  margin-top: 0.7rem;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  color: var(--blue);
  background: white;
  border: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: #f0f0f0;
  color: var(--blue);
  transform: translateY(-2px);
}

h2 {
  margin-top: 2.5rem;
  color: var(--blue);
  border-bottom: 2px solid var(--light-blue);
  padding-bottom: 0.3rem;
}

p, li {
  color: var(--text-light);
}

ul {
  padding-left: 1.2rem;
}

.skills-grid, .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.card {
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: white;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-color: var(--green);
}

footer {
  text-align: center;
  margin: 3rem 0 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

a {
  color: var(--green);
  font-weight: 500;
  text-decoration: none;
}

a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.back-btn {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  color: white;
  background: var(--blue);
  transition: background 0.2s ease, transform 0.2s ease;
}
.back-btn:hover {
  background: var(--green);
  transform: translateY(-2px);
  color: white;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.project-header img {
  max-width: 260px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.project-links a {
  display: inline-block;
  margin-right: 1rem;
  margin-top: 0.5rem;
}

.content {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-top: 2rem;
}

.featured-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.featured-projects .card {
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.featured-projects .card h3 {
  margin: 0.8rem 0 0.4rem;
}

.featured-projects .card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

