@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap");

:root {
  --primary: #00a651;
  --primary-dark: #008c45;
  --secondary: #f7941d;
  --dark: #001108;
  --light: #f8f9fa;
  --gray: #6c757d;
  --white: #ffffff;
  --secondary-background: #e6f6ee;
  --primary-font-color: #171717;
  --secondary-font-color: #525252;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "DM Sans", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background-color: var(--light);
  overflow-x: hidden;
}

/* Header Styles */
.top-bar {
  background-color: var(--primary-dark);
  color: var(--light);
  padding: 8px 0;
  font-size: 14px;
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.contact-info-top {
  display: flex;
  gap: 20px;
}

.contact-info-top a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.social-icons {
  display: flex;
  gap: 16px;
  justify-content: start;
  align-items: center;
}

.social-icons a {
  text-decoration: none;
}

.social-icons i {
  font-size: 20px;
  margin: 0 8px;
  transition: color 0.3s ease;
}

.fa-facebook-f {
  color: #1877f2;
}
.fa-twitter {
  color: #1da1f2;
}
.fa-instagram {
  color: #e1306c;
}
.fa-linkedin-in {
  color: #0077b5;
}
.fa-whatsapp {
  color: #25d366;
}

.social-icons i:hover {
  opacity: 0.8;
}

.social-icons-top {
  display: flex;
  gap: 16px;
}

.social-icons-top a {
  color: white;
  font-size: 16px;
}

/* Nav main */
.nav-main {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: var(--light);
  box-shadow: 0 0px 4px var(--primary);
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1480px;
  margin: 0 auto;
  padding: 14px;
  position: relative;
}

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

.logo img {
  height: 48px;
  width: 48px;
}

.logo-text {
  font-weight: bold;
  font-size: 22px;
  color: var(--primary);
}

.nav-list {
  display: flex;
  gap: 24px;
  background-color: var(--bg-color);
}

.nav-list li {
  list-style: none;
  margin-left: 24px;
  text-align: center;
}

.nav-list li a {
  color: var(--dark);
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  font-size: 16px;
  font-weight: 600;
}

.nav-list li a:hover {
  color: var(--primary);
}

/* Hamburger icon - hidden by default */
.hamburger {
  display: none;
  flex-direction: column;
  padding: 20px 0;
  cursor: pointer;
}

.hamburger span {
  background-color: var(--primary-font-color);
  width: 24px;
  height: 2px;
  margin-bottom: 6px;
  transform-origin: left;
  transition: all 0.3s ease-in-out;
}

.mobile .hamburger {
  display: flex;
}

.mobile .nav-list {
  background: var(--light);
  position: absolute;
  left: 0;
  top: 92px;
  width: 100%;
  height: calc(100vh - 60px); /* Full height minus nav height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease-in-out;
  padding: 40px 20px;
  margin: 0;
  z-index: 998;
}

.hamburger,
.brand {
  z-index: 9999;
}

/* Show nav-list when open - use !important to override Motion.dev */
.mobile .nav-list.open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

.mobile .nav-list li {
  margin-left: 0;
  text-align: center;
}

.mobile .nav-list li a {
  font-size: 20px;
}

.mobile .dropdown-list {
  position: relative;
  background: transparent;
  text-align: center;
  height: 0;
  overflow-y: hidden;
  transition: opacity 1s ease-in-out;
  padding-top: 0;
}

.mobile .nav-wrapper ul li:hover .dropdown-list {
  height: max-content;
  padding-top: 6px;
}

.mobile .nav-wrapper .dropdown-list li a {
  color: var(--dark) !important;
}

/* Hero Section */
.hero{
  min-height: calc(100vh - 72px);
}


.hero-container{
  max-width: 1440px;
  padding: 0 20px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  justify-content: center;
  align-items: center;
}

/* Hero Left Side Content */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: normal;
  margin-bottom: 8px;
}

.trust-badge::before {
  content: '🏆';
  font-size: 1rem;
  display: inline-block;
  transition: transform 0.3s ease;
  transform-origin: center;
}

.trust-badge:hover::before {
  transform: scale(1.2) rotate(45deg);
}

.hero-title{
  font-size:64px;
  font-weight: bold;
  color: var(--primary-font-color);
  margin-bottom: 16px;
  line-height: 1.2;

  .highlight{
    color: var(--primary);

  }
}

.hero-subtitle{
  font-size: 24px;
  line-height: normal;
  color:var(--secondary-font-color);

  .company-name{
    color: var(--primary);
    font-weight: bold;
    font-size: 32px;
    line-height: 1.2;
  }
}

.hero-buttons {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s;
}

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

.btn-secondary {
  background-color: var(--secondary);
}

.btn-secondary:hover {
  background-color: #e07e0c;
}

/* Hero Right Side Visual */
.visual-container{
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 80vh;
  background: white;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  border-radius: 12px;

  .flag{
    height: 156px;
    width: 156px;
    transition: all 0.3s ease;

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

  .qatar-flag{
   position: absolute;
   top: 0;
   right: 8px;
  }

  .nepal-flag{
    position: absolute;
    top: 108px;
    left: 108px;
  }

  .usa-flag{
    position: absolute;
    top: 400px;
    right: 32px;
  }

  .india-flag{
    position: absolute;
    top: 342px;
    left: 44px;
  }

  .germany-flag{
    position: absolute;
    top: 600px;
    left: 256px;
  }
}

.skyline-bg{
  width: 100%;
  height: 100%;
  background: url('/images/doha-skyline.png') center/cover;
}

/* Flag Tooltip */
.flag-tooltip{
  position: absolute;
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--primary);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  pointer-events: none;
  z-index: 1000;
}

.flag-tooltip.visible{
  opacity: 1;
  transform: translate(-50%, -100%) translateY(-5px);
}

.flag-tooltip::after{
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.1);
}

.greeting{
  font-size: 16px;
  margin-bottom: 4px;
}

.country-name{
  font-size: 12px;
  opacity: 0.8;
}

.hero-right .hero-inner {
  will-change: transform, opacity;
}


/* Services Section */
.section {
  max-width: 1440px;
  padding: 40px 20px;
  margin: 40px auto;
  scroll-margin-top: 40px;
}

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

.section-title h2 {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-title p {
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(316px, 1fr));
  gap: 48px;
  /* position: relative; for absolute positioning children on mobile */
}

.service-card {
  min-height: 420px;
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transform: translateY(80px);
  will-change: opacity, transform;

}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

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

.service-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--primary);
}

.service-card p {
  color: var(--gray);
  margin-bottom: 20px;
}

.service-card ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.service-card li {
  margin-bottom: 8px;
  color: var(--gray);
}

/* About Section */
.about-section {
  background-color: var(--secondary-background);
  scroll-margin-top: 80px;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-content {
  flex: 1;
}

.about-content h2 {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-content p {
  margin-bottom: 15px;
  color: var(--gray);
}

.vision {
  margin-top: 24px;
}

.vision h3,.mission h3 {
  font-size: 24px;
  color: var(--primary);
}

.vision p,.mission p {
  margin-bottom: 16px;
  color: var(--gray);
}

/* Contact Section */
.contact-section {
  height: fit-content;
}

.contact-container {
  display: flex;
  gap: 40px;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 20px;
}

.contact-details {
  margin-bottom: 30px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-detail i {
  color: var(--primary);
  font-size: 20px;
  margin-top: 3px;
}

.contact-form {
  flex: 1;
  background-color: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  background-color: #fff;
  color: var(--secondary-font-color);
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(0, 255, 128, 0.1);
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
  border-color: #bbb;
}

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

/* Select specific styling */
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.form-group select option {
  padding: 8px;
  font-size: 16px;
}

.contact-section form button {
  font-weight: semibold;
  margin-top: 20px;
  border: none;
  font-size: 16px;
  padding: 16px 32px;
}

.map-container {
  margin-top: 32px;
  position: relative;
  width: 100%;
  padding-bottom: 40.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px; /* optional rounded corners */
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 456px;
  border: 0;
}


[data-contact] {
  opacity: 0;
  will-change: transform, opacity;
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: white;
  padding: 60px 0 20px;
}

.footer-container {
  max-width: 1440px;
  margin: 0 auto;
  /* padding: 0 20px; */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-col {
  opacity: 0;
  transform: translateY(80px);
  will-change: opacity, transform;
}

.footer-bottom {
  opacity: 0;
}

.footer-col h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--white);
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary);
}

.footer-col p {
  margin-bottom: 15px;
  color: #bbb;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s;
}

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

.footer-bottom {
  max-width: 1440px;
  margin: 0 auto;
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid #444;
  color: #bbb;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .footer-container {
    grid-template-columns: repeat(auto-fit, minmax(400px, 2fr));
    padding: 0 24px;
  }

  .footer-bottom {
    padding: 24px 24px 0 24px;
  }
}

@media (max-width: 992px) {
  .about-container {
    flex-direction: column;
  }

  .contact-container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .top-bar-container {
    gap: 16px;
  }

  .contact-info-top {
    flex-direction: column;
    gap: 4px;
  }

  .header-container {
    gap: 12px;
  }

  .logo img {
    height: 32px;
    width: 32px;
  }

  .hamburger {
    display: flex;
    padding: 0;
  }
  
  .nav-list {
    display: none;
  }

  .main-nav {
    display: none;
    width: 100%;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
  }

  .hero-container{
    max-height: calc(100vh - 60px);
    max-width: 100%;
    padding:0px;
    grid-template-columns: 1fr;
    justify-content: center;
    place-items: center;
    background-image: url(/images/doha-skyline-bg.png);
  }

  .hero-inner {
    place-items: center;
    text-align: center;
  
    .hero-subtitle {
      font-size: 16px;
      line-height: normal;
      color: var(--secondary-font-color);
  
      .company-name {
        color: var(--primary);
        font-weight: bold;
        font-size: 16px;
      }
    }
  }
  

  .hero-subtitle{
    font-size: 16px;
    line-height: normal;
    color:var(--secondary-font-color);

    .company-name{
      color: var(--primary);
      font-weight: bold;
      font-size: 16px;
    }
  }

  .hero-right{
   display: none;
  }


  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .footer-container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    padding: 0 24px;
  }
}

@media (max-width: 425px) {
  .hero-buttons {
    flex-direction: column;
  }

  .top-bar-container {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .social-icons-top {
    padding: 0;
    margin: 0;
  }

  .section {
    padding: 2px;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(296px, 1fr));
    padding: 0px;
  }

  /* About Section */
  .about-section {
    padding: 24px 8px;
  }

  /* Contact Section */
  .contact-section {
    width: 100%;
    padding: 32px 8px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 2;
  }
}
