html {
  height: 100%;
}

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --muted: #5a6475;
  --ink: #0c1326;
  --accent: #ff7a45;
  --accent-2: #5f6af2;
  --border: rgba(12, 19, 38, 0.08);
  --shadow: 0 20px 40px rgba(12, 19, 38, 0.12);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(900px at 15% 20%, rgba(95, 106, 242, 0.12), transparent 45%),
    radial-gradient(900px at 85% 10%, rgba(255, 122, 69, 0.15), transparent 40%),
    linear-gradient(180deg, #fdfdff 0%, #f2f4fa 100%);
  color: var(--ink);
  text-align: left;
  line-height: 1.6;
}

main {
  width: min(1100px, 95vw);
  margin: 0 auto;
  padding: 40px 0 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  color: var(--ink);
  letter-spacing: -0.03em;
}

h1.page-title,
.section-title {
  text-align: left;
  margin-bottom: 12px;
}

.section-lead {
  margin-top: -8px;
  color: var(--muted);
}

a {
  color: var(--accent);
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(95, 106, 242, 0.15);
}

input[type="submit"] {
  width: auto;
  cursor: pointer;
}

button,
.button {
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--accent), #ff9c66);
  color: #0c1326;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 10px 25px rgba(255, 122, 69, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  line-height: 1.1;
}

button:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(255, 122, 69, 0.35);
}

.link-button {
  background: linear-gradient(135deg, var(--accent-2), #7c86ff);
  color: #fff;
  box-shadow: 0 10px 25px rgba(95, 106, 242, 0.25);
}

.ghost-button {
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(12, 19, 38, 0.03);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ghost-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(12, 19, 38, 0.12);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(12, 19, 38, 0.08);
}

/* Navigation Bar */
.navbar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(12, 19, 38, 0.08);
}

.navbar .logo {
  margin: 0;
  font-size: 1.35rem;
}

.navbar a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, transform 0.2s ease;
}

.navbar a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 18px;
  padding: 0;
  margin: 0;
  align-items: center;
}

.nav-cta {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(12, 19, 38, 0.04);
  color: var(--ink);
  box-shadow: none;
}

/* Hero */
.welcome-section {
  position: relative;
  background: linear-gradient(135deg, rgba(95, 106, 242, 0.12), rgba(255, 122, 69, 0.14));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.welcome-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px at 80% 20%, rgba(255, 255, 255, 0.5), transparent);
  opacity: 0.7;
  pointer-events: none;
}

.welcome-inner {
  position: relative;
  display: grid;
  gap: 18px;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(12, 19, 38, 0.08);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--ink);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(12, 19, 38, 0.06);
  color: var(--muted);
  font-weight: 600;
}

/* About */
.about-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  display: grid;
  gap: 20px;
  box-shadow: var(--shadow);
}

.about-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: center;
}

.about-text p {
  margin-bottom: 14px;
  color: var(--muted);
}

.image-caption {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}

/* Resume Section */
.resumes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.resume-entry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.pdf {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

/* Portfolio Section */
.portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.project {
  display: grid;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  align-content: start;
}

.project:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(12, 19, 38, 0.18);
}

.project img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: none;
}

.project-details {
  display: grid;
  gap: 10px;
}

.project-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.project-description {
  color: var(--muted);
  margin: 0;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.tag {
  background: rgba(95, 106, 242, 0.12);
  color: var(--ink);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

.hidden {
  display: none;
}

.project-more-info {
  padding: 10px;
  background-color: #fff;
}

/* Footer */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0c1326;
  color: white;
  position: relative;
  bottom: 0;
  width: 100%;
  height: 2.5rem;
  padding: 12px 0;
  margin-top: 32px;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.2);
}

.footer-placeholder {
  width: 100%;
}

footer p {
  margin: 0;
  font-size: 0.95rem;
}

/* Media query (will apply for screens with a certain width) */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-list {
    width: 100%;
    justify-content: flex-start;
  }

  main {
    padding: 24px 0 60px;
  }

  .portfolio {
    grid-template-columns: 1fr;
  }
}
