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

:root {
  --navy: #1a2a4a;
  --blue: #2c5f8a;
  --accent: #e8a838;
  --light: #f7f9fc;
  --text: #333;
  --text-light: #666;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 36px;
  width: auto;
}

nav a {
  text-decoration: none;
  color: var(--text);
  margin-left: 1.8rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover,
nav a:focus-visible {
  color: var(--blue);
}

a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 8rem 1.5rem 5rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: 1px;
}

.hero .tagline {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.hero p {
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.05rem;
  opacity: 0.85;
  line-height: 1.7;
}

/* Sections */
section {
  padding: 4.5rem 1.5rem;
  scroll-margin-top: 4rem;
}

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

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

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

.bg-light {
  background: var(--light);
}

/* About */
.about-content {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: var(--navy);
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
}

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

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.8rem;
}

.portfolio-item {
  background: var(--white);
  border-radius: 10px;
  padding: 1.8rem;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  border-left: 4px solid var(--accent);
}

.portfolio-item h3 {
  color: var(--navy);
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.portfolio-item .type {
  font-size: 0.8rem;
  color: var(--blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.portfolio-item p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
}

.portfolio-item a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.portfolio-item a:hover {
  text-decoration: underline;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.contact-block {
  text-align: center;
}

.contact-block h3 {
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.contact-block p,
.contact-block a {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.contact-block a {
  color: var(--blue);
  text-decoration: none;
}

.contact-block a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
  line-height: 1.8;
}

footer strong {
  color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 7rem 1.2rem 3.5rem;
  }

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

  .hero .tagline {
    font-size: 1.05rem;
  }

  nav {
    display: none;
  }

  section {
    padding: 3rem 1.2rem;
  }

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

  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

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