/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #0f172a;
  background: #f8fafc;
  line-height: 1.6;
}

/* UTILITIES */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.btn {
  background: #2563eb;
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  margin-left: 10px;
}

/* NAVBAR */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 22px;
  font-weight: 800;
}

.logo span {
  color: #2563eb;
}

nav a {
  margin-left: 24px;
  text-decoration: none;
  color: #0f172a;
  font-weight: 500;
}

nav a.btn {
  color: white;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: white;
  padding: 120px 0;
  text-align: center;
}

.hero h1 {
  font-size: 44px;
  max-width: 900px;
  margin: auto;
  line-height: 1.2;
}

.hero p {
  margin: 20px auto 35px;
  max-width: 800px;
  font-size: 18px;
  opacity: 0.95;
}

/* TRUST STATS */
.trust {
  background: white;
  padding: 60px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  text-align: center;
}

.trust-grid h3 {
  font-size: 34px;
  color: #2563eb;
}

.trust-grid p {
  font-size: 15px;
  color: #475569;
}

/* SECTION */
section {
  padding: 90px 0;
}

section h2 {
  font-size: 36px;
  margin-bottom: 15px;
  text-align: center;
}

.section-desc {
  text-align: center;
  max-width: 700px;
  margin: auto;
  color: #475569;
}

/* SERVICES */
.service-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: white;
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
  transition: 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-card h4 {
  font-size: 20px;
  margin-bottom: 12px;
}

.service-card ul {
  margin: 15px 0;
  padding-left: 18px;
}

.service-card li {
  font-size: 14px;
  color: #475569;
}

.service-card a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

/* PROCESS */
.process-steps {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.process-steps div {
  background: #f1f5f9;
  padding: 30px;
  border-radius: 14px;
}

.process-steps span {
  font-size: 28px;
  font-weight: 800;
  color: #2563eb;
}

/* TECH */
.tech-grid {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.tech-grid span {
  background: #e0e7ff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
}

/* CTA */
.cta {
  background: #0f172a;
  color: white;
  text-align: center;
}

.cta h2 {
  margin-bottom: 20px;
}

/* FOOTER */
footer {
  background: #020617;
  color: #cbd5f5;
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

footer a {
  display: block;
  margin-top: 8px;
  color: #cbd5f5;
  text-decoration: none;
}

footer a:hover {
  color: white;
}

footer p {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
}

/* WHY CHOOSE US */
.why-choose {
  background: linear-gradient(180deg, #f8fafc, #eef2ff);
}

.why-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.why-card {
  background: white;
  padding: 35px 30px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.06);
  transition: 0.35s ease;
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  opacity: 0;
  transition: 0.35s;
}

.why-card:hover::before {
  opacity: 0.05;
}

.why-card:hover {
  transform: translateY(-12px);
}

.why-icon {
  font-size: 40px;
  margin-bottom: 18px;
}

.why-card h4 {
  font-size: 20px;
  margin-bottom: 10px;
}

.why-card p {
  font-size: 15px;
  color: #475569;
}

/* ============================= */
/* GLOBAL CARD HOVER ANIMATIONS */
/* ============================= */

.service-card,
.why-card,
.process-steps div,
.card {
  position: relative;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  border: 1px solid transparent;
}

/* Lift + shadow */
.service-card:hover,
.why-card:hover,
.process-steps div:hover,
.card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(37, 99, 235, 0.15);
  border-color: #c7d2fe;
}
.service-card::after,
.why-card::after,
.process-steps div::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.15),
    rgba(30, 64, 175, 0.15)
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.service-card:hover::after,
.why-card:hover::after,
.process-steps div:hover::after {
  opacity: 1;
}
.why-icon {
  transition: transform 0.35s ease;
}

.why-card:hover .why-icon {
  transform: scale(1.15) rotate(3deg);
}
.process-steps span {
  display: inline-block;
  transition: transform 0.35s ease;
}

.process-steps div:hover span {
  transform: scale(1.2);
}
.service-card h4,
.why-card h4 {
  transition: color 0.3s ease;
}

.service-card:hover h4,
.why-card:hover h4 {
  color: #2563eb;
}
.service-card,
.why-card,
.process-steps div {
  cursor: pointer;
}
/* ============================= */
/* MULTI-ROW TECH STACK MARQUEE */
/* ============================= */

.tech {
  padding: 90px 0;
  background: #f8fafc;
  overflow: hidden;
}

.tech-marquee {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Each row */
.tech-row {
  width: 100%;
  overflow: hidden;
}

/* Track */
.tech-track {
  display: flex;
  width: max-content;
  animation: scroll-left 35s linear infinite;
}

/* Reverse direction */
.tech-track.reverse {
  animation: scroll-right 40s linear infinite;
}

/* Tech item */
.tech-track span {
  margin-right: 16px;
  padding: 12px 22px;
  background: #e0e7ff;
  color: #1e3a8a;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

/* Hover effect */
.tech-track span:hover {
  background: #2563eb;
  color: white;
  transform: scale(1.15);
}

/* Pause on hover */
.tech-row:hover .tech-track {
  animation-play-state: paused;
}

/* Animations */
@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes scroll-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}
/* ============================= */
/* FOOTER */
/* ============================= */

.site-footer {
  background: #020617;
  color: #cbd5f5;
  padding-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  padding-bottom: 50px;
}

.footer-logo {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 15px;
}

.footer-logo span {
  color: #2563eb;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-contact p {
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #fff;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: #cbd5f5;
  text-decoration: none;
  margin-bottom: 10px;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.footer-col a:hover {
  color: #ffffff;
  transform: translateX(5px);
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}
/* ============================= */
/* SERVICE FLIP CARDS */
/* ============================= */

.service-flip {
  perspective: 1200px;
}

.service-inner {
  position: relative;
  width: 100%;
  height: 260px;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.service-flip:hover .service-inner {
  transform: rotateY(180deg);
}

.service-front,
.service-back {
  position: absolute;
  inset: 0;
  background: white;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-front h4 {
  font-size: 20px;
  margin-bottom: 12px;
}

.service-front p {
  color: #475569;
}

.service-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
}

.service-back ul {
  margin: 15px 0;
  padding-left: 18px;
}

.service-back li {
  font-size: 14px;
  margin-bottom: 6px;
}

.service-back a {
  margin-top: auto;
  color: white;
  font-weight: 600;
  text-decoration: none;
}
/* ============================= */
/* ABOUT PAGE CARD STYLES */
/* ============================= */

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.about-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.about-info-card {
  background: #ffffff;
  padding: 35px;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.about-info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 35px 70px rgba(37, 99, 235, 0.15);
}

.about-info-card h3 {
  margin-bottom: 15px;
  font-size: 22px;
}

.about-info-card p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.about-info-card ul {
  padding-left: 18px;
}

.about-info-card li {
  margin-bottom: 8px;
}

/* Highlight card */
.about-info-card.highlight {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
}

.about-info-card.highlight li {
  color: #e0e7ff;
}

/* Mission & Vision */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.mv-card {
  background: #f8fafc;
  padding: 35px;
  border-radius: 20px;
  border-left: 6px solid #2563eb;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.mv-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.mv-card.accent {
  border-left-color: #1e40af;
}
/* ============================= */
/* CONTACT PAGE */
/* ============================= */

.contact-info {
  padding: 70px 0;
  background: #f8fafc;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.contact-card {
  background: white;
  padding: 30px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 35px 70px rgba(37, 99, 235, 0.15);
}

.contact-card h4 {
  margin-bottom: 10px;
}

.contact-section {
  padding: 90px 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 50px;
  align-items: center;
}

.contact-text p {
  margin-bottom: 12px;
}

.contact-form-wrapper {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #2563eb;
}

.contact-form button {
  width: 100%;
}
/* ============================= */
/* FAQ PAGE */
/* ============================= */

.faq-section {
  padding: 90px 0;
}

.faq-item {
  border-radius: 16px;
  background: #ffffff;
  margin-bottom: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 26px;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.faq-question span {
  font-size: 22px;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 26px;
}

.faq-answer p {
  padding-bottom: 22px;
  color: #475569;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-item.active .faq-question span {
  transform: rotate(45deg);
}
/* ============================= */
/* RESPONSIVE FIXES */
/* ============================= */

/* Tablets */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 36px;
  }

  nav a {
    margin-left: 16px;
  }

  section {
    padding: 70px 0;
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* NAVBAR */
  .navbar .container {
    flex-direction: column;
    height: auto;
    padding: 15px 0;
  }

  nav {
    margin-top: 12px;
  }

  nav a {
    margin: 0 10px;
    display: inline-block;
  }

  /* HERO */
  .hero {
    padding: 90px 0;
  }

  .hero h1 {
    font-size: 28px;
    line-height: 1.3;
  }

  .hero p {
    font-size: 16px;
  }

  /* SECTIONS */
  section {
    padding: 60px 0;
  }

  .section-desc {
    font-size: 15px;
  }

  /* FOOTER */
  .footer-grid {
    text-align: center;
  }

  .footer-col a {
    justify-content: center;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 24px;
  }

  .btn {
    padding: 10px 18px;
    font-size: 14px;
  }

  .service-card,
  .why-card,
  .about-info-card,
  .mv-card,
  .contact-card {
    padding: 25px;
  }
}

/* ============================= */
/* HAMBURGER MENU (FIXED) */
/* ============================= */

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Hide hamburger on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #0f172a;
  border-radius: 3px;
  transition: all 0.35s ease;
}

/* Desktop menu */
.nav-menu {
  display: flex;
  align-items: center;
}

/* ============================= */
/* MOBILE */
/* ============================= */
@media (max-width: 768px) {

  /* Show hamburger */
  .hamburger {
    display: flex;
  }

  /* Hide menu by default */
  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 30px 0;
    display: none; /* KEY FIX */
    box-shadow: 0 25px 60px rgba(0,0,0,0.1);
    z-index: 999;
  }

  /* Show menu when active */
  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    margin: 0;
    font-size: 16px;
  }
}

/* ============================= */
/* HAMBURGER ANIMATION */
/* ============================= */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}
/* ============================= */
/* HAMBURGER RIGHT ALIGN FIX */
/* ============================= */

.nav-wrapper {
  position: relative;
}

/* Mobile alignment */
@media (max-width: 768px) {

  .nav-wrapper {
    flex-direction: row;
  }

  .logo {
    z-index: 1001;
  }

  .hamburger {
    margin-left: auto; /* KEY FIX */
    z-index: 1001;
  }
}
/* ============================= */
/* LOGO + NAME */
/* ============================= */

.logo-wrap {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo {
  height: 72px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.site-name {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.5px;
}

.site-name span {
  color: #2563eb;
}

/* Hover polish */
.logo-link:hover .site-logo {
  transform: scale(1.05);
}

/* Tablet */
@media (max-width: 992px) {
  .site-logo {
    height: 72px;
  }
  .site-name {
    font-size: 20px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .site-logo {
    height: 72px;
  }
  .site-name {
    font-size: 18px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .site-logo {
    height: 38px;
  }
  .site-name {
    font-size: 16px;
  }
}
/* ============================= */
/* MOBILE HEADER ALIGN FIX */
/* ============================= */

@media (max-width: 768px) {

  .nav-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  /* Logo + name stay LEFT */
  .logo-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .site-name {
    white-space: nowrap;
  }

  /* Prevent logo block from centering */
  .logo-wrap,
  .logo-link {
    margin: 0;
    text-align: left;
  }
}
@media (max-width: 480px) {
  .site-logo {
    height: 38px;
  }

  .site-name {
    font-size: 15px;
  }
}
/* ============================= */
/* FORCE HEADER LAYOUT (FINAL FIX) */
/* ============================= */

.navbar .container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

/* Logo group ALWAYS left */
.logo-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex: 0 0 auto !important;
}

/* Logo link inline */
.logo-link {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px;
}

/* Prevent any centering */
.logo-wrap,
.logo-link {
  text-align: left !important;
  margin: 0 !important;
}

/* Hamburger ALWAYS right */
.hamburger {
  margin-left: auto !important;
  flex: 0 0 auto !important;
}

/* ============================= */
/* MOBILE OVERRIDES */
/* ============================= */
@media (max-width: 768px) {

  .nav-wrapper {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .nav-menu {
    left: 0;
    right: 0;
  }

  .site-name {
    white-space: nowrap;
  }
}

/* Extra small phones */
@media (max-width: 480px) {
  .site-logo {
    height: 38px;
  }
  .site-name {
    font-size: 15px;
  }
}
