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

:root {
  --blue-dark: #1e2d5a;
  --blue-mid: #2d4ea0;
  --blue-main: #3b6bdb;
  --blue-light: #e8eef8;
  --text-dark: #1a2540;
  --text-mid: #3d4f72;
  --text-muted: #6b7a9e;
  --white: #ffffff;
  --gray-bg: #f5f7fc;
  --border: #d0d8ec;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* Navigation styles */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #ffffffed;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand-icon {
  width: 40px;
  height: 40px;
  /* border-radius: 50%; */
  /* background: var(--blue-main); */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.nav-brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-mid);
  transition: color 0.2s;
}

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

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: 0.3s;
}

/* Section styles */
#home {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(to bottom right, #3b6bdb, #2346a8);
  padding-top: 68px;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 80px 24px;
}

.hero-logo {
  width: 200px;
  height: 200px;
  /* border-radius: 50%; */
  /* background: #ffffff1f; */
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  font-size: 32px;
  font-weight: 700;
}

.hero-content h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-content p {
  font-size: clamp(16px, 2.5vw, 20px);
  color: #ffffffe0;
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.btn-primary {
  display: inline-block;
  background: #fff;
  color: var(--blue-main);
  font-weight: 600;
  font-size: 16px;
  padding: 12px 36px;
  border-radius: 999px;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* General sections and container */
section {
  padding: 80px 24px;
}

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

/* Heading styles */
.section-heading {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* About section */
#about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.about-text p {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-image {
  border-radius: 10px;
  overflow: hidden;
  height: 384px;
  box-shadow: 0 25px 50px -12px #00000038;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Products section */
#products {
  background: var(--white);
  border-top: 1px solid var(--border);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 8px 24px #00000017;
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

.card p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.65;
  flex: 1;
}

.badge {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue-mid);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  align-self: flex-start;
}

/* Team section */
#team {
  background: var(--gray-bg);
}

.team-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.team-card:hover {
  box-shadow: 0 8px 24px #00000017;
  transform: translateY(-2px);
}

.team-card-img {
  display: block;
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: top;
}

.team-card-body {
  padding: 20px;
}

.team-card-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.team-card-role {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-main);
  margin-bottom: 10px;
}

.team-card-body p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.65;
}

/* Contact section */
#contact {
  background: var(--gray-bg);
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.contact-item-value {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.6;
}

.contact-form-wrap {
  background: var(--white);
  border-radius: 10px;
  padding: 32px;
  box-shadow: 0 10px 15px -3px #00000014, 0 4px 6px -4px #00000014;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--text-dark);
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue-main);
  box-shadow: 0 0 0 3px #3b6bdb26;
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  background: var(--blue-main);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 13px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-submit:hover {
  background: var(--blue-mid);
  transform: translateY(-1px);
}

/* Footer styles */
footer {
  background: var(--text-dark);
  color: #ffffffd9;
  padding: 48px 24px 0;
}

.footer-inner {
  max-width: 1152px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  padding-bottom: 40px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.7;
  color: #ffffffa6;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul a {
  font-size: 14px;
  color: #ffffffa6;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: #ffffff73;
}

/* Responsive styles */
@media(max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
  }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fffffff7;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
  }
  .nav-links.open li a {
    display: block;
    padding: 12px 24px;
    font-size: 16px;
  }
  .nav-toggle {
    display: flex;
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .cards-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-image {
    height: 260px;
  }
}

@media(max-width: 520px) {
  .cards-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
