/* Base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
  background-color: #f9fafb;
  line-height: 1.6;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 160px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.main-nav a {
  text-decoration: none;
  color: #4b5563;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  color: #111827;
  border-bottom-color: #2563eb;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #f9fafb;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.btn-outline {
  background: transparent;
  color: #1d4ed8;
  border-color: #cbd5f5;
}

.btn-outline:hover {
  border-color: #1d4ed8;
  background-color: #eff6ff;
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  background: radial-gradient(circle at top left, #eff6ff, #f9fafb);
  border-bottom: 1px solid #e5e7eb;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hero-kicker {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  color: #0f172a;
}

.hero-subtitle {
  font-size: 1rem;
  max-width: 36rem;
  color: #4b5563;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.95rem;
  color: #6b7280;
}

.hero-links a {
  color: #1d4ed8;
  text-decoration: none;
}

.hero-links a:hover {
  text-decoration: underline;
}

.hero-tags {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hero-tags span {
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background-color: #e0f2fe;
  color: #075985;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-muted {
  background-color: #f3f4f6;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header-left {
  text-align: left;
}

.section-header h2 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  color: #111827;
}

.section-header p {
  margin: 0;
  color: #6b7280;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.project-card {
  background-color: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
}

.project-card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #111827;
}

.project-tagline {
  margin: 0;
  font-size: 0.92rem;
  color: #4b5563;
}

.project-body {
  font-size: 0.9rem;
  color: #4b5563;
}

.project-problem {
  margin: 0.5rem 0;
}

.project-arch {
  margin: 0.5rem 0;
  padding-left: 1.1rem;
}

.project-arch li {
  margin-bottom: 0.2rem;
}

.project-responsibilities {
  margin: 0.5rem 0 0;
}

.project-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.project-link {
  text-decoration: none;
  color: #1d4ed8;
}

.project-link:hover {
  text-decoration: underline;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.skills-group {
  background-color: #ffffff;
  border-radius: 0.9rem;
  border: 1px solid #e5e7eb;
  padding: 1.25rem 1.2rem;
}

.skills-group h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1rem;
  color: #111827;
}

.skills-group ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

.skills-group li + li {
  margin-top: 0.25rem;
}

/* About */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 2rem;
}

.about-text p {
  margin: 0 0 0.85rem;
  color: #4b5563;
}

.about-highlight {
  background-color: #111827;
  color: #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem 1.4rem;
}

.about-highlight h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.about-highlight ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 0.9rem;
}

.about-highlight li + li {
  margin-top: 0.4rem;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-form {
  background-color: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  padding: 1.5rem 1.4rem;
}

.form-field {
  margin-bottom: 0.9rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  color: #374151;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-note {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.contact-details {
  font-size: 0.9rem;
}

.contact-details h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.contact-details ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1rem;
}

.contact-details li + li {
  margin-top: 0.25rem;
}

.contact-details a {
  color: #1d4ed8;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  border-top: 1px solid #e5e7eb;
  background-color: #f9fafb;
  padding: 1rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    gap: 0.75rem;
  }

  .main-nav {
    display: none;
  }

  .hero {
    padding-top: 3rem;
  }

  .about-layout,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 3rem 0;
  }
}
