/* =========================================================
   01. Global Styles
   ========================================================= */
:root {
  --primary: #0a2d63;
  --secondary: #ff6b21;
  --bg: #f7f8fc;
  --dark: #111827;
  --gray: #6b7280;
  --white: #ffffff;
  --border: rgba(17, 24, 39, 0.08);
  --shadow: 0 20px 45px rgba(10, 45, 99, 0.12);
  --radius: 24px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

section.section {
  padding: 6rem 0;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow {
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--primary);
}

h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 1rem;
}

p {
  color: var(--gray);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(255, 107, 33, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(10, 45, 99, 0.16);
}

/* =========================================================
   02. Header & Navigation
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(247, 248, 252, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(10, 45, 99, 0.06);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 14px 32px rgba(10, 45, 99, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  position: relative;
}

.logo-mark::before,
.logo-mark::after {
  content: '';
  position: absolute;
  background: var(--white);
  border-radius: 999px;
}

.logo-mark::before {
  width: 18px;
  height: 6px;
  top: 14px;
  left: 12px;
}

.logo-mark::after {
  width: 10px;
  height: 10px;
  top: 20px;
  right: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav a {
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--secondary);
}

.nav-cta {
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white) !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
}

/* =========================================================
   03. Hero Section
   ========================================================= */
.hero {
  padding-top: 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero-content .hero-text {
  font-size: 1.05rem;
  max-width: 620px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 4.5s ease-in-out infinite;
}

.hero-visual img {
  width: min(100%, 470px);
  height: 560px;
  object-fit: cover;
  border-radius: 34px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  z-index: 1;
}

.shape-blue {
  width: 260px;
  height: 260px;
  background: rgba(10, 45, 99, 0.18);
  top: 30px;
  left: 30px;
}

.shape-orange {
  width: 190px;
  height: 190px;
  background: rgba(255, 107, 33, 0.24);
  bottom: 50px;
  right: 20px;
}

.stats-card {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -20px;
  width: min(86%, 420px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-radius: 22px;
  padding: 1rem;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.14);
  z-index: 3;
}

.stats-card div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stats-card strong {
  font-size: 1.4rem;
  color: var(--primary);
}

.stats-card span {
  font-size: 0.8rem;
  color: var(--gray);
}

/* =========================================================
   04. About Section
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3rem;
  align-items: center;
}

.about-image img {
  height: 520px;
  object-fit: cover;
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 0.8rem;
  margin: 1.4rem 0 1.8rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 500;
  color: var(--dark);
}

.feature-list span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 107, 33, 0.12);
  color: var(--secondary);
}

/* =========================================================
   05. Services Section
   ========================================================= */
.section-heading {
  max-width: 720px;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 45px rgba(17, 24, 39, 0.12);
}

.service-card img {
  height: 220px;
  object-fit: cover;
}

.service-card .service-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), rgba(10, 45, 99, 0.8));
  color: var(--white);
  font-size: 1.2rem;
  margin: -28px 0 1rem 1.3rem;
  box-shadow: 0 12px 24px rgba(10, 45, 99, 0.2);
}

.service-card h3,
.service-card p,
.service-card a {
  margin-left: 1.3rem;
  margin-right: 1.3rem;
}

.service-card h3 {
  margin-bottom: 0.7rem;
  font-size: 1.15rem;
}

.service-card p {
  margin-bottom: 1rem;
}

.service-card a {
  display: inline-block;
  margin-bottom: 1.3rem;
  font-weight: 600;
  color: var(--secondary);
}

/* =========================================================
   06. Why Choose Us
   ========================================================= */
.choose-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3rem;
  align-items: center;
}

.choose-image img {
  height: 560px;
  object-fit: cover;
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.feature-boxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.1rem;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.05);
}

.feature-box h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

/* =========================================================
   07. Statistics Section
   ========================================================= */
.stats-section {
  background: linear-gradient(135deg, var(--primary), #123b74);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat {
  text-align: center;
  padding: 1rem;
}

.stat strong {
  display: block;
  font-size: clamp(2rem, 3vw, 2.7rem);
  color: var(--white);
  margin-bottom: 0.4rem;
}

.stat span {
  color: rgba(255, 255, 255, 0.82);
}

/* =========================================================
   08. Projects Section
   ========================================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.08);
  min-height: 330px;
}

.project-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.2rem 1.2rem 1.4rem;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 45, 99, 0.88) 100%);
  color: var(--white);
}

.project-info h3 {
  color: var(--white);
  margin-bottom: 0.2rem;
}

.project-info p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.8rem;
}

.project-info a {
  display: inline-flex;
  color: var(--white);
  font-weight: 600;
}

/* =========================================================
   09. Testimonials Section
   ========================================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.08);
}

.testimonial-card img {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.stars {
  color: var(--secondary);
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
}

.testimonial-card h3 {
  margin-top: 1rem;
  font-size: 1rem;
}

.testimonial-card span {
  color: var(--gray);
  font-size: 0.9rem;
}

/* =========================================================
   10. Contact Section
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.contact-info {
  background: var(--white);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-info ul {
  list-style: none;
  display: grid;
  gap: 0.8rem;
  margin-top: 1.2rem;
  color: var(--gray);
}

.contact-form {
  background: var(--white);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--primary);
}

input,
select,
textarea {
  border: 1px solid rgba(10, 45, 99, 0.12);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  background: #fdfefe;
  color: var(--dark);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(255, 107, 33, 0.14);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-message {
  min-height: 1.4rem;
  margin: 0.8rem 0 1rem;
  color: var(--secondary);
  font-weight: 600;
}

/* =========================================================
   11. Footer
   ========================================================= */
.footer {
  background: #071726;
  color: rgba(255, 255, 255, 0.9);
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 0.7fr;
  gap: 1.5rem;
  padding-bottom: 2rem;
}

.footer h3 {
  color: var(--white);
  margin-bottom: 0.85rem;
  font-size: 1rem;
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.75);
}

.footer a:hover {
  color: var(--secondary);
}

.newsletter {
  display: flex;
  gap: 0.6rem;
}

.newsletter input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.12);
}

.newsletter button {
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  background: var(--secondary);
  color: var(--white);
  cursor: pointer;
}

.socials {
  display: flex;
  gap: 0.8rem;
}

.socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0 1.6rem;
  text-align: center;
}

/* =========================================================
   12. Back To Top Button
   ========================================================= */
.back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(255, 107, 33, 0.24);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: all 0.3s ease;
  z-index: 1200;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* =========================================================
   13. Animations
   ========================================================= */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* =========================================================
   14. Responsive Design
   ========================================================= */
@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .choose-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .projects-grid,
  .testimonials-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-visual {
    min-height: 500px;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 74px;
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-16px);
    transition: all 0.3s ease;
  }

  .nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-visual img {
    height: 450px;
  }

  .stats-card {
    grid-template-columns: 1fr;
    width: 86%;
    bottom: -70px;
  }

  .services-grid,
  .projects-grid,
  .testimonials-grid,
  .stats-grid,
  .footer-grid,
  .feature-boxes,
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-info,
  .contact-form {
    padding: 1.4rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 4.5rem 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero-visual img {
    height: 360px;
  }

  .stats-card {
    bottom: -100px;
  }

  .newsletter {
    flex-direction: column;
  }
}
