:root {
  --bg: #ffffff;
  --bg-card: #f7f8fc;
  --bg-elevated: #eef0f7;
  --navy: #0f1b3d;
  --navy-light: #1a2d5a;
  --text: #0f1b3d;
  --text-muted: #5a6380;
  --silver: #b0b8c9;
  --silver-gradient: linear-gradient(135deg, #8e99af, #c5cdd9, #a8b2c4);
  --accent: #c0c8d8;
  --border: #dfe3ec;
  --radius: 12px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 600;
  font-size: 1.3rem;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  background: var(--silver-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s;
}

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

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

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: 0.2s;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: var(--font);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
}

/* Hero */
.hero {
  position: relative;
  padding: 180px 0 120px;
  text-align: center;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(176, 184, 201, 0.15), transparent);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  position: relative;
}

.highlight {
  background: var(--silver-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: clamp(3rem, 7vw, 5rem);
  display: block;
  margin-top: 8px;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.7;
  position: relative;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.hero .btn-primary {
  background: #fff;
  color: var(--navy);
}

.hero .btn-primary:hover {
  background: var(--accent);
}

/* Section styling */
.section-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

section h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
  color: var(--navy);
}

section h2 em {
  font-style: italic;
  background: var(--silver-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* About */
.about {
  padding: 100px 0;
}

.about-content {
  max-width: 700px;
  margin-bottom: 60px;
}

.about-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.team-preview {
  display: flex;
  gap: 40px;
  justify-content: center;
}

.team-card {
  text-align: center;
  text-decoration: none;
  color: var(--text);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.3s;
  flex: 0 1 280px;
}

.team-card:hover {
  border-color: var(--silver);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(15, 27, 61, 0.08);
}

.team-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 3px solid var(--border);
  margin: 0 auto 20px;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--navy);
}

.team-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Services */
.services {
  padding: 100px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: border-color 0.3s, transform 0.2s;
}

.card:hover {
  border-color: var(--silver);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(15, 27, 61, 0.06);
}

.card-icon {
  color: var(--navy-light);
  margin-bottom: 16px;
  opacity: 0.7;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--navy);
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.services-cta {
  text-align: center;
  margin-top: 48px;
}

.services-cta p {
  color: var(--text-muted);
  font-size: 1rem;
}

.services-cta a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--silver);
  transition: border-color 0.2s;
}

.services-cta a:hover {
  border-color: var(--navy);
}

/* Contact */
.contact {
  padding: 100px 0;
}

.contact-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-box h2 {
  margin-bottom: 12px;
}

.contact-box > p {
  color: var(--text-muted);
  margin-bottom: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--navy-light);
}

.contact-form .btn {
  align-self: flex-start;
}

.contact-emails {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.contact-emails p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.contact-emails a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  display: inline-block;
  margin: 0 12px;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s;
}

.contact-emails a:hover {
  border-color: var(--navy);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--navy);
}

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

.footer p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.footer .logo {
  background: var(--silver-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- Personal Pages ---- */

.page-hero {
  padding: 140px 0 60px;
  background: var(--navy);
  color: #fff;
}

.page-hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.page-hero-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(176, 184, 201, 0.3);
  flex-shrink: 0;
}

.page-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-text h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.page-hero-text .role {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
}

.page-hero-text .tagline {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 500px;
  line-height: 1.6;
}

.page-hero-text .links {
  margin-top: 20px;
  display: flex;
  gap: 16px;
}

.page-hero-text .links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s;
}

.page-hero-text .links a:hover {
  color: #fff;
  border-color: #fff;
}

.page-section {
  padding: 80px 0;
}

.page-section + .page-section {
  border-top: 1px solid var(--border);
}

.page-section h2 {
  font-size: 1.6rem;
  margin-bottom: 24px;
  color: var(--navy);
}

.page-section p,
.page-section li {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.page-section ul {
  list-style: none;
  padding: 0;
}

.page-section ul li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.page-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--silver);
}

.page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s;
}

.project-card:hover {
  transform: translateY(-2px);
}

.project-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.project-card .project-role {
  font-size: 0.85rem;
  color: var(--silver);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

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

  .mobile-toggle {
    display: flex;
  }

  .hero {
    padding: 140px 0 80px;
  }

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

  .team-preview {
    flex-direction: column;
    align-items: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

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

  .page-hero-text .links {
    justify-content: center;
  }

  .page-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-emails a {
    display: block;
    margin: 8px 0;
  }
}
