:root {
  --ink: #111;
  --muted: #5c5c5c;
  --border: #e6e6e6;
  --bg-soft: #f7f7f7;
  --bg-page: #f4f0fb;
  --card: #fff;
  --shadow: 0 12px 30px rgba(17, 17, 17, 0.06);
  --accent-primary: #5b21b6;
  --accent-secondary: #a78bfa;
  --accent-tertiary: #6366f1;
  --accent-gold: #f59e0b;
  --accent-teal: #a855f7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background-color: var(--bg-page);
  color: var(--ink);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text > * {
  animation: fadeInUp 0.6s ease-out backwards;
}

.hero-text > *:nth-child(1) {
  animation-delay: 0.1s;
}

.hero-text > *:nth-child(2) {
  animation-delay: 0.2s;
}

.hero-text > *:nth-child(3) {
  animation-delay: 0.3s;
}

.hero-text > *:nth-child(4) {
  animation-delay: 0.4s;
}

/* Navbar */
.navbar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  overflow: visible;
}

.logo-lockup {
  width: auto;
  max-width: 1140px;
  height: 80px;
  display: block;
  transition: opacity 0.2s ease;
  transform: scale(3, 1.5);
  transform-origin: left center;
}

.logo a:hover .logo-lockup {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.nav-links a {
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.nav-links a:hover {
  border-bottom-color: var(--ink);
}

.menu-icon {
  width: 30px;
  cursor: pointer;
  display: none;
}

.menu-icon span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 6px 0;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  margin: 56px 0 84px;
  background: var(--card);
  border: none;
  border-radius: 28px;
  padding: 40px;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.08), transparent 50%),
    linear-gradient(135deg, rgba(168, 85, 247, 0.04), transparent 60%);
  pointer-events: none;
}

.hero-text,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-visual:hover img {
  transform: scale(1.02);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 600;
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-teal));
}

.hero p {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 18px 0 28px;
  max-width: none;
}

@media (min-width: 900px) {
  .hero-text p {
    font-size: 1rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }
}
.hero-text h1 {
  font-size: 2.9rem;
  line-height: 1.1;
  margin: 0 0 12px;
  max-width: 14ch;
}


.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.button.primary {
  background: #32174d !important;
  color: #fff !important;
  border: 2px solid #32174d !important;
  box-shadow: 0 6px 18px rgba(91, 33, 182, 0.25);
  font-weight: 600;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.button.primary:hover {
  background: #32174d !important;
  border-color: #32174d !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(91, 33, 182, 0.35);
}

.button:focus-visible {
  outline: 3px solid rgba(91, 33, 182, 0.35);
  outline-offset: 3px;
}

.button.ghost {
  background: transparent !important;
  color: var(--ink) !important;
  border: 2px solid var(--ink) !important;
}

.button.ghost:hover {
  background: var(--ink) !important;
  color: #fff !important;
  border-color: var(--ink) !important;
}

.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 0;
  box-shadow: none;
  transition: transform 0.3s ease;
  object-fit: cover;
  min-height: 400px;
}

/* About Grid Layout */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 32px;
  padding-bottom: 80px;
}

.label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.content h1 {
  font-size: 2.7rem;
  margin-top: 0;
  font-weight: 500;
  line-height: 1.15;
  max-width: 20ch;
  background: linear-gradient(135deg, var(--ink) 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.content h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 18px 0;
  color: var(--muted);
  max-width: 48ch;
}

.content p {
  font-size: 1.05rem;
  max-width: 60ch;
  color: var(--muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.stat {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.stat-number {
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  padding-bottom: 80px;
}

.skills-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.skill-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  background: var(--card);
}

.skill-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.skill-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.98rem;
}

.proficiency {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  padding-bottom: 80px;
}

.project-list {
  display: grid;
  gap: 20px;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  background: var(--card);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.1);
  border-color: var(--accent-teal);
}

.project-meta {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}

.project-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.project-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

.project-outcomes {
  margin: 0 0 12px;
  padding-left: 18px;
  color: var(--muted);
}

.project-footer {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  padding-bottom: 80px;
}

.contact-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-info {
  font-size: 1.05rem;
  color: var(--muted);
}

.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.contact-link {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  color: var(--ink);
  background: var(--card);
  transition: all 0.3s ease;
}

.contact-link:hover {
  transform: translateY(-2px);
  border-color: var(--accent-teal);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.1);
}

.contact-link span {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 1rem;
  background: var(--card);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.section-surface {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.section-surface::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-teal), var(--accent-tertiary));
}

.form-status {
  margin: 6px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.form-status.is-error {
  color: #b42318;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.footer-links a {
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: border-color 0.2s ease;
}

.footer-links a:hover {
  border-bottom-color: var(--ink);
}

/* Portfolio Page */
.page-hero {
  margin: 40px 0 60px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 40px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(17, 17, 17, 0.06), transparent 45%),
    linear-gradient(135deg, rgba(17, 17, 17, 0.04), transparent 55%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.page-hero h1 {
  font-size: 3rem;
  margin: 0 0 12px;
  font-weight: 500;
  line-height: 1.1;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0;
}

.page-hero .badge::before {
  background: var(--ink);
}

/* Responsive for Mobile */
@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .nav-links.is-open {
    max-height: 400px;
    opacity: 1;
    padding: 20px 24px;
  }

  .menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    z-index: 101;
  }

  .menu-icon.is-open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-icon.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-icon.is-open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .menu-icon span {
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .navbar {
    padding: 8px 0;
  }

  .logo-lockup {
    height: 38px;
  }

  .hero {
    margin: 32px 0 60px;
    padding: 28px 20px;
    border-radius: 20px;
    gap: 28px;
  }

  .hero-text {
    text-align: center;
  }

  .hero-text .badge {
    justify-content: center;
  }

  .hero-text h1 {
    font-size: 2.3rem;
    margin-bottom: 12px;
  }

  .hero-text p {
    font-size: 0.95rem;
    margin: 12px 0 20px;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
    gap: 12px;
  }

  .button {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    font-size: 0.9rem;
    padding: 11px 20px;
  }

  .hero-visual {
    margin-top: 24px;
  }

  .hero-visual img {
    min-height: 240px;
    border-radius: 16px;
  }

  .about-grid,
  .skills-grid,
  .projects-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .skills-cards {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

  .section-surface {
    padding: 24px 20px;
  }

  .content h1 {
    font-size: 2.2rem;
  }

  .content p {
    font-size: 0.95rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .nav-links {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
  }

  .hero {
    padding: 24px 18px;
  }

  .hero-text h1 {
    font-size: 2.1rem;
  }
}
