:root {
  --color-main: #3A72FF;
  --color-main-dark: #4450d6;
  --color-main-light: #56ADFF;
  --color-text: #1a1a2e;
  --color-text-muted: #5a5a72;
  --color-text-light: #ffffff;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f5ff;
  --color-border: #e6e8ff;
  --max-width: 1100px;
  --header-height: 68px;
  --radius: 16px;
  --shadow-sm: 0 2px 8px rgba(30, 30, 80, 0.06);
  --shadow-md: 0 12px 32px rgba(30, 30, 80, 0.12);
  --font-heading: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.25;
}

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

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

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--color-main-dark);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(30, 30, 80, 0.12);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: var(--color-text-light);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
}

.nav-link {
  color: var(--color-text-light);
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.85;
}

.nav-link:hover,
.nav-link.active {
  border-color: var(--color-text-light);
  opacity: 1;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text-light);
  border-radius: 2px;
}

/* Sections */

main {
  padding-top: var(--header-height);
}

.section {
  padding: 5rem 0;
}

.section.alt {
  background: var(--color-bg-alt);
}

.section h2 {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  color: var(--color-text);
}

.section p {
  color: var(--color-text-muted);
  max-width: 720px;
}

/* Hero */

.hero {
  background: linear-gradient(135deg, var(--color-main) 0%, var(--color-main-dark) 100%);
  color: var(--color-text-light);
  padding: 5.5rem 0;
  overflow: hidden;
}

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

.hero-copy {
  flex: 1 1 420px;
}

.hero-image {
  flex: 1 1 380px;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 420px;
  height: auto;
  filter: drop-shadow(var(--shadow-md));
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
}

.hero .hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 520px;
  margin: 0 0 2rem;
}

/* About */

.about-grid {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-photo {
  flex: 0 0 auto;
}

.about-photo img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--color-bg);
}

.about-copy {
  flex: 1 1 420px;
}

.about-copy h2 {
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-block;
  background: var(--color-text-light);
  color: var(--color-main);
  font-weight: 600;
  font-family: var(--font-heading);
  padding: 0.9rem 2.2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card h3 {
  color: var(--color-text);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
}

.section.alt .card {
  background: var(--color-bg);
}

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-bg-alt);
  color: var(--color-main);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.icon-badge svg {
  width: 26px;
  height: 26px;
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-group .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-group .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-group .reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal-group .reveal:nth-child(5) { transition-delay: 0.32s; }

/* Contact */

#contact .btn {
  margin-top: 1rem;
  background: var(--color-main);
  color: var(--color-text-light);
}

#contact .btn:hover {
  background: var(--color-main-dark);
}

/* Footer */

.site-footer {
  background: var(--color-main-dark);
  color: var(--color-text-light);
  text-align: center;
  padding: 1.75rem 0;
}

.site-footer a {
  color: var(--color-text-light);
}

/* Mobile */

@media (max-width: 900px) {
  .hero-grid {
    flex-direction: column;
    text-align: center;
  }

  .hero-copy {
    order: 1;
    flex-basis: auto;
  }

  .hero-image {
    order: 2;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .about-grid {
    flex-direction: column;
    text-align: center;
  }

  .about-photo img {
    width: 180px;
    height: 180px;
  }

  .about-copy p {
    margin-left: auto;
    margin-right: auto;
  }
}

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

  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-main);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .site-nav.open {
    max-height: 320px;
  }

  .nav-link {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .hero-image {
    display: none;
  }

  .hero {
    padding: 3.5rem 0;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    margin-bottom: 1rem;
  }

  .icon-badge svg {
    width: 20px;
    height: 20px;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section h2 {
    font-size: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
