:root {
  --primary: #0056b3;
  --primary-dark: #003d82;
  --dark: #1a1a2e;
  --dark-bar: #2c2c3e;
  --text: #555555;
  --text-dark: #222222;
  --light-bg: #f5f6f8;
  --white: #ffffff;
  --border: #e8e8e8;
  --section-pad: 90px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", sans-serif;
  color: var(--text-dark);
  font-weight: 700;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--primary-dark);
}

.section-padding {
  padding: var(--section-pad) 0;
}

.section-title {
  margin-bottom: 50px;
}

.section-title .subtitle {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.section-title h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.section-title p {
  max-width: 720px;
  margin: 0 auto;
}

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

.bg-dark-custom {
  background-color: var(--dark-bar);
  color: #ccc;
}

.bg-primary-custom {
  background-color: var(--primary);
  color: var(--white);
}

/* Top bar */
.top-bar {
  background: var(--dark-bar);
  color: #bbb;
  font-size: 13px;
  padding: 10px 0;
}

.top-bar a {
  color: #bbb;
}

.top-bar a:hover {
  color: var(--white);
}

.top-bar .social-links a {
  margin-right: 12px;
  font-size: 14px;
}

.btn-primary-custom {
  background: var(--primary);
  border: 2px solid var(--primary);
  color: var(--white);
  padding: 12px 28px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

.btn-outline-custom {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 12px 28px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  border-radius: 4px;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-outline-custom:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-outline-primary-custom {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 10px 22px;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  border-radius: 4px;
  display: inline-block;
}

.btn-outline-primary-custom:hover {
  background: var(--primary);
  color: var(--white);
}

/* Header */
.main-header {
  background: var(--white);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand img {
  height: 48px;
  width: auto;
}

.navbar-nav .nav-link {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  padding: 28px 16px !important;
  letter-spacing: 0.3px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary);
}

/* Hero */
.hero-section {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-section h1 {
  color: var(--white);
  font-size: 52px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-section p {
  font-size: 17px;
  margin-bottom: 30px;
  opacity: 0.95;
}

.page-hero {
  min-height: 280px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  color: var(--white);
  font-size: 42px;
  margin-bottom: 10px;
}

.breadcrumb-custom {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

.breadcrumb-custom a {
  color: var(--white);
}

/* About block */
.about-images {
  position: relative;
}

.about-images .img-main {
  border-radius: 4px;
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.about-images .img-small {
  position: absolute;
  width: 55%;
  height: 180px;
  object-fit: cover;
  border: 4px solid var(--white);
  border-radius: 4px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.about-images .img-small.top {
  bottom: 30px;
  right: -20px;
}

.about-images .img-small.bottom {
  top: 30px;
  right: -20px;
}

/* Feature cards */
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 35px 25px;
  text-align: center;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 86, 179, 0.12);
}

.feature-card .icon {
  width: 70px;
  height: 70px;
  line-height: 70px;
  margin: 0 auto 20px;
  background: rgba(0, 86, 179, 0.08);
  border-radius: 50%;
  color: var(--primary);
  font-size: 28px;
}

.feature-card h4 {
  font-size: 18px;
  margin-bottom: 12px;
}

/* Stats */
.stats-section {
  background-size: cover;
  background-position: center;
  position: relative;
}

.stats-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 46, 0.92);
}

.stats-section .container {
  position: relative;
  z-index: 2;
}

.stat-item {
  text-align: center;
  color: var(--white);
  padding: 20px;
}

.stat-item i {
  font-size: 42px;
  color: var(--primary);
  margin-bottom: 15px;
}

.stat-item h3 {
  color: var(--white);
  font-size: 36px;
  margin-bottom: 5px;
}

.stat-item p {
  color: #aaa;
  margin: 0;
  font-size: 15px;
}

.stats-image img {
  width: 100%;
  border-radius: 4px;
  max-height: 320px;
  object-fit: cover;
}

/* Service cards */
.service-card {
  background: var(--white);
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  height: calc(100% - 30px);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
}

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-card .card-body {
  padding: 25px;
}

.service-card h4 {
  font-size: 20px;
  margin-bottom: 12px;
}

/* Pricing */
.pricing-card {
  background: var(--white);
  text-align: center;
  padding: 0;
  border: 1px solid var(--border);
  height: 100%;
  transition: transform 0.3s ease;
}

.pricing-card.featured {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.03);
  box-shadow: 0 20px 50px rgba(0, 86, 179, 0.35);
  z-index: 2;
}

.pricing-card.featured h3,
.pricing-card.featured h4,
.pricing-card.featured .price {
  color: var(--white);
}

.pricing-header {
  background: var(--primary);
  color: var(--white);
  padding: 25px 20px;
}

.pricing-card.featured .pricing-header {
  background: rgba(0, 0, 0, 0.15);
}

.pricing-body {
  padding: 30px 25px;
}

.pricing-card .price {
  font-size: 42px;
  font-weight: 700;
  color: var(--primary);
  margin: 15px 0;
}

.pricing-card .price span {
  font-size: 16px;
  font-weight: 400;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 25px;
  text-align: left;
}

.pricing-card ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.pricing-card.featured ul li {
  border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card ul li i {
  color: var(--primary);
  margin-right: 8px;
}

.pricing-card.featured ul li i {
  color: var(--white);
}

/* Team */
.team-card {
  text-align: center;
  margin-bottom: 30px;
}

.team-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 4px;
}

.team-card .team-info {
  padding: 20px 10px;
}

.team-card h4 {
  font-size: 20px;
  margin-bottom: 5px;
}

.team-card .role {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 12px;
}

.team-social a {
  display: inline-block;
  width: 34px;
  height: 34px;
  line-height: 34px;
  background: rgba(0, 86, 179, 0.1);
  color: var(--primary);
  border-radius: 50%;
  margin: 0 4px;
  font-size: 14px;
}

.team-social a:hover {
  background: var(--primary);
  color: var(--white);
}

/* Testimonial */
.testimonial-card {
  background: var(--white);
  padding: 35px;
  border: 1px solid var(--border);
  height: 100%;
  position: relative;
}

.testimonial-card .quote-icon {
  font-size: 36px;
  color: var(--primary);
  opacity: 0.3;
  margin-bottom: 15px;
}

.testimonial-card .client {
  display: flex;
  align-items: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.testimonial-card .client img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

/* Project gallery */
.project-item {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  border-radius: 4px;
}

.project-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-item:hover img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 86, 179, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  padding: 20px;
  text-align: center;
}

.project-item:hover .project-overlay {
  opacity: 1;
}

.project-overlay h4 {
  color: var(--white);
  font-size: 20px;
}

.project-overlay p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

/* Video CTA */
.video-cta {
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 80px 0;
}

.video-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 46, 0.88);
}

.video-cta .container {
  position: relative;
  z-index: 2;
}

.play-btn {
  width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 28px;
  margin-right: 25px;
}

.video-cta h3 {
  color: var(--white);
  font-size: 28px;
}

/* Contact */
.contact-info-box {
  padding: 25px;
  background: var(--light-bg);
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
}

.contact-info-box i {
  font-size: 28px;
  color: var(--primary);
  margin-right: 18px;
  margin-top: 4px;
}

.contact-form-wrap {
  background: var(--white);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.form-control-custom {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 15px;
  width: 100%;
  font-size: 15px;
  transition: border-color 0.25s ease;
}

.form-control-custom:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
}

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

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

.form-check-custom {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0;
  padding-left: 0;
}

.form-check-custom .form-check-input {
  width: 20px;
  height: 20px;
  margin: 3px 0 0 0;
  flex-shrink: 0;
  border: 2px solid #ccc;
  cursor: pointer;
}

.form-check-custom .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-check-custom .form-check-label {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  padding-top: 2px;
}

.form-check-custom {
  flex-wrap: wrap;
}

.form-check-custom .invalid-feedback {
  display: none;
  width: 100%;
  margin-left: 0;
  margin-top: 8px;
  flex-basis: 100%;
}

.form-check-custom .form-check-input.is-invalid ~ .invalid-feedback,
.form-check-custom .invalid-feedback.d-block {
  display: block;
}

/* Footer */
.site-footer {
  background: #12121f;
  color: #999;
  font-size: 14px;
}

.footer-widgets {
  padding: 70px 0 50px;
}

.footer-widgets h4 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
}

.footer-widgets h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
}

.footer-about img,
.footer-about .footer-logo {
  height: 52px;
  width: auto;
  max-width: 240px;
  margin-bottom: 18px;
  display: block;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #999;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-social a {
  display: inline-block;
  width: 38px;
  height: 38px;
  line-height: 38px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-radius: 50%;
  margin-right: 8px;
  font-size: 15px;
}

.footer-social a:hover {
  background: var(--primary);
}

.footer-post {
  display: flex;
  margin-bottom: 15px;
}

.footer-post img {
  width: 70px;
  height: 55px;
  object-fit: cover;
  margin-right: 12px;
  border-radius: 3px;
}

.footer-post a {
  color: #bbb;
  font-size: 13px;
  line-height: 1.4;
}

.footer-newsletter input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  padding: 12px 15px;
  width: 100%;
  margin-bottom: 12px;
  border-radius: 4px;
}

.footer-newsletter input::placeholder {
  color: #777;
}

.footer-bottom {
  background: #0a0a12;
  padding: 18px 0;
  font-size: 13px;
}

.footer-bottom a {
  color: #aaa;
}

.footer-legal a {
  margin-left: 18px;
}

.legal-content {
  max-width: 900px;
}

.legal-content h2 {
  font-size: 24px;
  margin-top: 35px;
  margin-bottom: 15px;
}

.legal-content h3 {
  font-size: 18px;
  margin-top: 25px;
  margin-bottom: 10px;
}

.legal-content p,
.legal-content li {
  font-size: 15px;
  margin-bottom: 12px;
}

@media (max-width: 991px) {
  .hero-section h1 {
    font-size: 36px;
  }

  .about-images .img-small {
    display: none;
  }

  .pricing-card.featured {
    transform: none;
  }

  .navbar-nav .nav-link {
    padding: 12px 16px !important;
  }
}

@media (max-width: 767px) {
  :root {
    --section-pad: 60px;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .contact-form-wrap {
    padding: 25px;
  }

  .footer-legal a {
    display: block;
    margin: 8px 0 0 0;
  }
}
