/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #1a2332;
  --navy-light: #243044;
  --teal: #2b8a8a;
  --teal-light: #34a5a5;
  --teal-dark: #1f6e6e;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f0f2f5;
  --gray-200: #e2e6ea;
  --gray-400: #8b95a5;
  --gray-600: #5a6475;
  --gray-800: #2d3748;
  --success: #2b8a5e;
  --error: #c0392b;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1120px;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(26, 35, 50, 0.08);
  --shadow-lg: 0 8px 32px rgba(26, 35, 50, 0.12);
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--teal-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  text-align: center;
  margin-bottom: 3rem;
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.nav-brand:hover {
  color: var(--teal-light);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--gray-200);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 10rem 0 6rem;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-text {
  flex: 1;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--gray-200);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-image {
  flex: 0 0 45%;
  max-width: 45%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  aspect-ratio: 3 / 2;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
}

.btn-disabled {
  background: var(--gray-100);
  color: var(--gray-400);
  border-color: var(--gray-200);
  cursor: default;
  pointer-events: none;
}

/* ===== Projects ===== */
.projects {
  background: var(--gray-50);
}

.projects-banner {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.projects-banner img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.project-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  width: fit-content;
  margin-bottom: 1rem;
}

.project-status--live {
  background: #e8f5e9;
  color: var(--success);
}

.project-status--dev {
  background: #fff3e0;
  color: #e67e22;
}

.project-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.project-desc {
  color: var(--gray-600);
  font-size: 0.9375rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.5rem;
}

/* ===== About ===== */
.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-image {
  flex: 0 0 42%;
  max-width: 42%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 2;
}

.about-text-wrap {
  flex: 1;
}

.about-text p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--gray-600);
}

.about-board {
  margin-top: 2rem;
}

.about-board h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
}

.board-list {
  list-style: none;
}

.board-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.board-list li:last-child {
  border-bottom: none;
}

.board-name {
  font-weight: 500;
  color: var(--gray-800);
}

.board-role {
  font-size: 0.875rem;
  color: var(--gray-400);
}

/* ===== Contact ===== */
.contact {
  background: var(--gray-50);
}

.contact-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-800);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
}

.form-group textarea {
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
}

.form-success {
  color: var(--success);
  font-weight: 500;
  margin-top: 1rem;
}

.form-error {
  color: var(--error);
  font-weight: 500;
  margin-top: 1rem;
}

.contact-info {
  padding-top: 1rem;
}

.contact-info p {
  color: var(--gray-600);
  margin-bottom: 0.75rem;
}

.contact-email {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--teal);
}

/* ===== Footer ===== */
.footer {
  background: var(--navy);
  color: var(--gray-400);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.875rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    border-top: 1px solid var(--navy-light);
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
  }

  .hero {
    padding: 8rem 0 4rem;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-image {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .section {
    padding: 3.5rem 0;
  }

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

  .projects-banner img {
    height: 200px;
  }

  .about-content {
    flex-direction: column;
    gap: 2rem;
  }

  .about-image {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}
