:root {
  --bg: #0b0b0f;
  --surface: #121217;
  --muted: #bfc3c8;
  --accent: #00ff99;
  --glass: rgba(255, 255, 255, 0.03);
  --radius: 12px;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  color: #eaeef0;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Header */
header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5%;
  background: rgba(18, 18, 22, 0.52);
  backdrop-filter: blur(8px);
  z-index: 40;
}
.logo {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.15rem;
}
nav ul {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
nav a:hover {
  color: var(--accent);
}

/* Hero */
.hero {
  height: 86vh;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;
}
.hero h1 {
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.hero p {
  font-size: 1.1rem;
  color: #ddd;
  font-weight: 400;
  line-height: 1.6;
  max-width: 700px;
}

/* Section styling */
section {
  padding: 3rem 5%;
  max-width: var(--max-width);
  margin: 0 auto;
}
section h2 {
  font-size: 2.2rem;
  color: var(--accent);
  text-align: center;
  margin-bottom: 0.5rem;
}
section p {
  font-size: 1.1rem;
  color: #ddd;
  line-height: 1.6;
  text-align: center;
  max-width: 700px;
  margin: 0.5rem auto 2rem;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
  margin-top: 1rem;
  padding: 0 0.6rem;
}
.project-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: 0 6px 22px rgba(2, 6, 23, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.project-card img {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: top center;
  filter: brightness(0.85);
  transition: transform 0.4s ease, filter 0.4s ease;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6);
}
.project-card:hover img {
  transform: scale(1.05);
  filter: brightness(1);
}
.project-card figcaption {
  padding: 0.9rem;
}
.project-card h3 {
  font-size: 1.03rem;
  margin-bottom: 0.25rem;
}
.project-card p {
  color: var(--muted);
  font-size: 0.94rem;
}

/* Skills */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  list-style: none;
  margin-top: 1rem;
}
.skills-list li {
  background: var(--glass);
  padding: 0.52rem 0.9rem;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
}

/* Contact */
.contact-form {
  max-width: 680px;
  margin: 0 auto 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 0.8rem;
  border-radius: 10px;
  color: inherit;
}
.contact-form button {
  width: fit-content;
  padding: 0.68rem 1.15rem;
  border-radius: 10px;
  border: 0;
  background: var(--accent);
  color: #071017;
  font-weight: 700;
  cursor: pointer;
}
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
  text-align: center;
}

.socials h3 {
  width: 100%;
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.socials .btn {
  background: var(--accent);
  color: #071017;
  font-weight: 700;
  text-decoration: none;
  padding: 0.68rem 1.4rem;
  border-radius: 10px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.socials .btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 191, 166, 0.12);
}

/* Global Button Style (for project buttons and other CTAs) */
.btn {
  display: inline-block;
  padding: 0.68rem 1.4rem;
  border-radius: 10px;
  background: var(--accent);
  color: #071017;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 191, 166, 0.12);
}

/* Footer */
footer {
  text-align: center;
  padding: 1.2rem 0;
  color: #9aa0a6;
  font-size: 0.9rem;
  background: transparent;
}
