:root {
  --bg: #020617;
  --bg-elevated: #020617;
  --bg-soft: #0b1120;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.15);
  --accent-strong: #0ea5e9;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --danger: #f97373;
  --border: #1f2937;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.8);
  --transition-fast: 0.18s ease-out;
  --transition: 0.24s ease;
  --nav-height: 72px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #0b1120 0, #020617 40%, #000 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* narrow centered column like hero */
.section-inner {
  max-width: 780px;
  margin: 0 auto;
}

section {
  padding-block: 4.5rem;
}

@media (min-width: 768px) {
  section {
    padding-block: 5.5rem;
  }
}

.card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.8));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

/* NAVBAR – only centered pill */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.92), transparent);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.nav-inner {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  padding: 0.25rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.96));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  overflow-x: auto;
  max-width: 100%;
}

.nav-link {
  position: relative;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--transition-fast);
  background: none;
  border: none;
  font: inherit;
  padding: 0.3rem 0.4rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: width var(--transition);
} */

.nav-link:hover {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* BUTTONS */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: radial-gradient(circle at top left, var(--accent-soft), rgba(15, 23, 42, 0.98));
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  overflow: hidden;
  transform-origin: center;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.25);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.2), transparent 55%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn span.icon {
  font-size: 1rem;
  transform: translateX(0);
  transition: transform var(--transition-fast);
}

.btn:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 14px 40px rgba(56, 189, 248, 0.32);
  border-color: var(--accent-strong);
  background: radial-gradient(circle at top, var(--accent-soft), #020617);
}

.btn:hover span.icon {
  transform: translateX(2px);
}

.btn:hover::before {
  opacity: 1;
}

.btn:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.8);
}

.btn-secondary {
  border-color: rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.9);
}

.btn-secondary:hover {
  border-color: rgba(148, 163, 184, 1);
  background: rgba(15, 23, 42, 1);
}

.btn-mini {
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
}

.tag-pill {
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.95);
  color: var(--muted);
  font-size: 0.8rem;
}

/* HERO */

.hero {
  padding-top: 4.2rem;
  padding-bottom: 4.8rem;
  text-align: center;
}

.hero-center {
  max-width: 780px;
  margin: 0 auto;
}

.hero-photo-wrapper {
  width: 170px;
  height: 170px;
  border-radius: 999px;
  margin: 0 auto 1.2rem;
  position: relative;
  padding: 4px;
  background: radial-gradient(circle at top, #e5e7eb, #4b5563, #020617);
  box-shadow:
    0 0 0 4px #020617,
    0 24px 60px rgba(0, 0, 0, 0.9);
}

.hero-photo-inner {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  overflow: hidden;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
}

.hero-availability-row {
  display: flex;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.26rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.7);
  background: rgba(21, 128, 61, 0.16);
  box-shadow: 0 0 20px rgba(22, 163, 74, 0.35);
  font-size: 0.78rem;
  color: #bbf7d0;
}

.availability-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, #22c55e, #16a34a);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.95);
}

.hero-location {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-size: clamp(2.1rem, 1.4rem + 2.7vw, 3.1rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
}

.hero-title span.accent {
  background: linear-gradient(120deg, #f97373, #e11d48, #fb7185);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-role {
  font-size: 1.02rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 0.96rem;
  margin: 0 auto 1.7rem;
  max-width: 38rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.6rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

/* SECTION HEADERS – centered */

.section-header {
  margin-bottom: 2.4rem;
  text-align: center;
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.section-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 34rem;
  margin: 0 auto;
}

/* ABOUT */

.about-text {
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
}

.about-text p + p {
  margin-top: 0.8rem;
}

.about-list {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.7rem;
  font-size: 0.9rem;
  text-align: left;
}

.about-item-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.about-item-value {
  font-size: 0.95rem;
}

.about-side {
  padding: 1.4rem 1.3rem 1.5rem;
  margin-top: 1.6rem;
}

.about-side-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.about-side-row span.label {
  color: var(--muted);
}

.about-side-row span.value {
  font-weight: 500;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.8rem;
  font-size: 0.8rem;
}

.tag {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  color: var(--muted);
}

/* SKILLS STRIP ABOVE EXPERIENCE */

.skills-strip {
  padding-bottom: 3rem;
}

.skills-strip-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.2rem;
}

.skill-circle {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
}

.skill-circle span {
  pointer-events: none;
}

/* EXPERIENCE – single column, centered */

.experience-list {
  display: grid;
  gap: 1.05rem;
  max-width: 780px;
  margin: 0 auto;
}

.experience-item {
  padding: 1.1rem 1.2rem 1.15rem;
}

.exp-company {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.exp-role {
  font-size: 0.98rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.exp-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.exp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.exp-badge {
  font-size: 0.72rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--muted);
}

.exp-desc {
  font-size: 0.85rem;
  color: var(--muted);
}

/* PROJECTS – single column, centered */

.projects-grid {
  display: grid;
  gap: 1.2rem;
  max-width: 780px;
  margin: 0 auto;
}

.project-card {
  padding: 1.05rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.project-title {
  font-size: 0.95rem;
  font-weight: 500;
}

.project-tag {
  font-size: 0.72rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--muted);
}

.project-desc {
  font-size: 0.82rem;
  color: var(--muted);
  flex-grow: 1;
}

.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.project-techs span {
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

/* TESTIMONIALS – single column, centered */

.testimonials-grid {
  display: grid;
  gap: 1.1rem;
  max-width: 780px;
  margin: 0 auto;
}

.testimonial-card {
  padding: 1.1rem 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.testimonial-rating {
  font-size: 0.78rem;
  color: var(--muted);
}

.testimonial-text {
  font-size: 0.85rem;
  color: var(--muted);
  flex-grow: 1;
}

.testimonial-person {
  margin-top: 0.3rem;
  font-size: 0.85rem;
}

.testimonial-name {
  font-weight: 500;
}

.testimonial-role {
  font-size: 0.78rem;
  color: var(--muted);
}

/* FAQ – centered column */

.faq-grid {
  display: grid;
  gap: 1rem;
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.96);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--text);
  font: inherit;
}

.faq-question-text {
  font-size: 0.9rem;
  text-align: left;
}

.faq-icon {
  font-size: 1rem;
  transition: transform var(--transition-fast);
}

.faq-item.open .faq-icon {
  transform: rotate(90deg);
}

.faq-answer {
  padding: 0 1rem 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* CONTACT – single column, centered */

.contact-grid {
  display: grid;
  gap: 1.8rem;
  max-width: 780px;
  margin: 0 auto;
}

.contact-card {
  padding: 1.4rem 1.35rem 1.5rem;
}

.contact-row {
  margin-bottom: 1.1rem;
}

.contact-row h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.contact-row p {
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-info {
  display: grid;
  gap: 0.4rem;
  font-size: 0.86rem;
  margin-top: 0.6rem;
}

.contact-info-item span.label {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.contact-info-item span.value {
  font-size: 0.9rem;
}

.social-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.social-pill {
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.95);
  color: var(--muted);
  transition: border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.social-pill:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}

.contact-form {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.7rem;
}

.field {
  display: grid;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.field label {
  color: var(--muted);
}

.input,
.textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.95);
  color: var(--text);
  font-family: inherit;
  font-size: 0.86rem;
  resize: vertical;
  min-height: 42px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.input:focus,
.textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.5);
  background: rgba(15, 23, 42, 1);
}

.field-helper {
  font-size: 0.75rem;
  color: var(--muted);
}

.error {
  color: var(--danger);
  font-size: 0.76rem;
}

/* FOOTER & UTILITIES */

.footer {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  padding-block: 1.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-inner {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: center;
}

@media (min-width: 700px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}


.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
/* Helper for hiding elements */
.hidden {
  display: none !important;
}

/* Wrapper to center the View More Projects button */
.more-projects-btn-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
.success {
  color: #4ade80; /* light green */
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: block;
}
/* ===== Submit Button Loading Spinner ===== */
.submit-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

.submit-btn.loading .spinner {
  display: inline-block;
}

.submit-btn.loading .btn-text {
  opacity: 0.7;
}

.submit-btn.loading {
  pointer-events: none;
  opacity: 0.8;
  cursor: not-allowed;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
