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

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --dark: #0f172a;
  --light: #f8fafc;
  --white: #ffffff;
  --text: #334155;
  --border: #e2e8f0;
  --shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  --radius: 16px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

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

a {
  text-decoration: none;
}

.container {
  width: 90%;
  max-width: 1150px;
  margin: 0 auto;
}

.narrow {
  max-width: 800px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
}

.logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 22px;
}

.navbar a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #93c5fd;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
}

.menu-toggle span + span {
  margin-top: 6px;
}

.hero {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.25), transparent 30%),
    linear-gradient(135deg, #0f172a 0%, #111827 55%, #1e3a8a 100%);
  color: var(--white);
  padding: 110px 0 90px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  color: #93c5fd;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.hero h1 {
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 700px;
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 620px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-contact p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 6px;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 13px 24px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero-stat + .hero-stat {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.hero-stat p {
  color: rgba(255, 255, 255, 0.8);
}

.section {
  padding: 90px 0;
}

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

.section h2 {
  text-align: center;
  color: var(--dark);
  font-size: 2.2rem;
  margin-bottom: 18px;
}

.section-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 40px;
}

.card,
.testimonial,
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.services-with-images .service-card {
  padding: 0;
  overflow: hidden;
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  will-change: transform;
}

.services-with-images .service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.16);
  border-color: #c7d2fe;
}

.card-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.service-card:hover .card-image {
  transform: scale(1.08);
  filter: brightness(0.92);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(37, 99, 235, 0.08), transparent 45%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 1;
}

.service-card:hover::before {
  opacity: 1;
}

.card-body {
  padding: 22px;
  position: relative;
  z-index: 2;
  background: var(--white);
  transition: background 0.35s ease;
}

.service-card:hover .card-body {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.service-card h3 {
  color: var(--dark);
  margin-bottom: 12px;
  font-size: 1.3rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: var(--primary);
}

.service-card p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.portfolio-item {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  will-change: transform;
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.14);
  border-color: #cbd5e1;
}

.portfolio-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(37, 99, 235, 0.06), transparent 50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 1;
}

.portfolio-item:hover::before {
  opacity: 1;
}

.portfolio-image-wrap {
  overflow: hidden;
}

.portfolio-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.portfolio-item:hover .portfolio-image {
  transform: scale(1.06);
  filter: brightness(0.95);
}

.portfolio-content {
  padding: 24px;
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  transition: background 0.35s ease;
}

.portfolio-item:hover .portfolio-content {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.portfolio-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 10px;
  background: #dbeafe;
  color: #1d4ed8;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.portfolio-item:hover .portfolio-tag {
  transform: translateY(-2px);
  background: #bfdbfe;
  color: #1e40af;
}

.portfolio-item h3 {
  color: var(--dark);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.portfolio-item:hover h3 {
  color: var(--primary);
}

.portfolio-item p {
  color: var(--text);
  transition: color 0.3s ease;
}

.portfolio-item:hover p {
  color: #475569;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 40px;
}

.testimonial,
.contact-form {
  padding: 28px;
}

.testimonial p {
  margin-bottom: 18px;
  font-style: italic;
}

.testimonial h4 {
  color: var(--dark);
  font-size: 1rem;
  margin-bottom: 4px;
}

.testimonial span {
  color: #64748b;
  font-size: 0.95rem;
}

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

.contact-text h2 {
  text-align: left;
}

.contact-text p {
  margin-bottom: 14px;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.footer {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 22px 0;
}

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

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 900px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .menu-toggle {
    display: block;
  }

  .navbar {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .navbar.active {
    display: flex;
  }
}

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

  .card-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  .hero {
    padding: 90px 0 70px;
  }

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