/* ============================================
   NextG Solutions Landing Page - Styles
   Matched to live nextgsolutions.com layout
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Muli:wght@400;700;800&display=swap');

/* CSS Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #1b2755;
  --navy-dark: #111d45;
  --orange: #f38120;
  --orange-hover: #e06e00;
  --light-bg: #eef1f8;
  --card-bg: #f5f5f5;
  --text-dark: #333;
  --text-gray: #777;
  --text-light: #fff;
  --font-main: 'Muli', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--text-gray);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}

.header.scrolled {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: 60px;
}

.header .container {
  max-width: 1280px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo img {
  height: 50px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-menu a {
  color: var(--text-light);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
  position: relative;
}

.header.scrolled .nav-menu a {
  color: var(--text-dark);
}

.header.scrolled .nav-menu a:hover {
  color: var(--orange);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a:hover {
  color: var(--orange);
}

.flag-icon {
  width: 20px;
  height: 14px;
  border-radius: 2px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: all 0.3s;
}

.header.scrolled .hamburger span {
  background: var(--text-dark);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: var(--navy);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.hero-content {
  flex: 0 0 45%;
  max-width: 45%;
  z-index: 2;
}

.hero-content h1 {
  font-size: 44px;
  font-weight: 800;
  color: var(--text-light);
  line-height: 1.3;
  margin-bottom: 30px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--text-light);
  padding: 12px 25px;
  border-radius: 45px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(243, 129, 32, 0.4);
}

.btn-cta:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 129, 32, 0.5);
}

.btn-cta .arrow {
  font-size: 16px;
  transition: transform 0.3s;
}

.btn-cta:hover .arrow {
  transform: translateX(5px);
}

.hero-image {
  flex: 0 0 55%;
  max-width: 55%;
  display: flex;
  justify-content: flex-end;
  z-index: 2;
}

.hero-image img {
  max-width: 100%;
  width: 100%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

/* ============================================
   WAVE DIVIDERS
   ============================================ */
.wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -1px;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

.wave-divider .shape-fill {
  fill: var(--light-bg);
}

/* Wave transition between offer and whyus */
.wave-divider-bottom {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  background: var(--light-bg);
}

.wave-divider-bottom svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 100px;
}

.wave-divider-bottom .shape-fill {
  fill: #fff;
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section-title {
  text-align: center;
  margin-bottom: 15px;
}

.section-title h2 {
  color: var(--orange);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
}

.section-subtitle {
  text-align: center;
  color: var(--text-gray);
  font-size: 15px;
  font-weight: 400;
  max-width: 750px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ============================================
   ABOUT US SECTION
   ============================================ */
.about-section {
  background: var(--light-bg);
  padding: 60px 0 30px;
  position: relative;
}

/* About decorative circle */
.about-section .decor-circle {
  position: absolute;
  top: 100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.service-card {
  background: var(--card-bg);
  border-radius: 6px;
  padding: 50px 35px 60px;
  position: relative;
  transition: all 0.4s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--orange);
  transition: height 0.4s ease;
}

.service-card:hover::before {
  height: 100%;
}

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

.service-card .icon-box {
  width: 50px;
  height: 50px;
  background: var(--orange);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
}

.service-card .icon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.service-card .icon-box svg {
  width: 26px;
  height: 26px;
  fill: white;
}

.service-card h3 {
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.5;
}

.service-card p {
  color: var(--text-gray);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
}

/* ============================================
   WHAT WE OFFER SECTION (continuous with About)
   ============================================ */
.offer-section {
  background: var(--light-bg);
  padding: 30px 0 80px;
  position: relative;
}

/* ============================================
   WHY US SECTION
   ============================================ */
.whyus-section {
  background: #fff;
  padding: 80px 0 100px;
}

.whyus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 40px;
  max-width: 850px;
  margin: 0 auto;
}

.whyus-item {
  text-align: center;
  transition: transform 0.3s;
}

.whyus-item:hover {
  transform: translateY(-5px);
}

.whyus-item .icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whyus-item .icon img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
}

.whyus-item .icon svg {
  width: 48px;
  height: 48px;
  fill: var(--orange);
}

.whyus-item h4 {
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.5;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  background: var(--light-bg);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

/* Decorative elements */
.contact-section .cloud-decor {
  position: absolute;
  left: 30px;
  top: 50px;
  width: 150px;
  opacity: 0.3;
}

.contact-section .plane-decor {
  position: absolute;
  right: 50px;
  top: 40%;
  width: 200px;
  opacity: 0.4;
  transform: rotate(-20deg);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--text-dark);
  background: white;
  margin-bottom: 12px;
  transition: border-color 0.3s;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--orange);
}

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

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
}

.recaptcha-placeholder {
  display: flex;
  justify-content: center;
  margin: 15px 0;
}

.contact-form .btn-submit {
  display: block;
  margin: 0 auto;
  background: var(--orange);
  color: white;
  padding: 12px 30px;
  border-radius: 45px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(243, 129, 32, 0.4);
}

.contact-form .btn-submit:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 129, 32, 0.5);
}

/* ============================================
   DECORATIVE LANDSCAPE (between contact & footer)
   ============================================ */
.landscape-decor {
  width: 100%;
  height: 200px;
  background: linear-gradient(180deg, var(--light-bg) 0%, #c5cfe0 100%);
  position: relative;
  overflow: hidden;
}

.landscape-decor::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(180deg, transparent 0%, rgba(197, 207, 224, 0.5) 100%);
}

/* ============================================
   MAP SECTION
   ============================================ */
.map-section {
  width: 100%;
  height: 400px;
  position: relative;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   CONTACT BAR
   ============================================ */
.contact-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.contact-bar-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 40px;
  color: white;
  font-size: 14px;
}

.contact-bar-item:first-child {
  background: #4a5568;
}

.contact-bar-item:last-child {
  background: var(--orange);
}

.contact-bar-item .bar-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-bar-item .bar-icon svg {
  width: 30px;
  height: 30px;
  fill: white;
}

.contact-bar-item .bar-label {
  font-size: 12px;
  opacity: 0.8;
}

.contact-bar-item .bar-value {
  font-size: 16px;
  font-weight: 700;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy);
  padding: 50px 0 20px;
  color: white;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  align-items: flex-start;
  gap: 40px;
}

.footer-logo {
  display: flex;
  align-items: flex-start;
}

.footer-logo img {
  height: 50px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 15px;
  position: relative;
}

.footer-nav-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--orange);
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--orange);
}

.footer-contact h3 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
}

.footer-contact h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--orange);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--orange);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.copyright span {
  font-weight: 700;
  color: white;
}

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

.social-icons a {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.social-icons a:hover {
  background: var(--orange);
  transform: translateY(-3px);
}

.social-icons a svg {
  width: 14px;
  height: 14px;
  fill: white;
}

/* ============================================
   FLOATING PHONE BUTTON
   ============================================ */
.floating-phone {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: white;
  padding: 10px 20px 10px 12px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(243, 129, 32, 0.5);
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s;
  text-decoration: none;
}

.floating-phone:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(243, 129, 32, 0.6);
}

.floating-phone .phone-icon {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: phone-ring 1.5s ease-in-out infinite;
}

.floating-phone .phone-icon svg {
  width: 16px;
  height: 16px;
  fill: white;
}

@keyframes phone-ring {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(15deg); }
  20% { transform: rotate(-15deg); }
  30% { transform: rotate(10deg); }
  40% { transform: rotate(-10deg); }
  50% { transform: rotate(0deg); }
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  border: none;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--orange);
  transform: translateY(-3px);
}

.scroll-top svg {
  width: 18px;
  height: 18px;
  fill: white;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    flex: 1;
    max-width: 100%;
  }

  .hero-image {
    flex: 1;
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-image img {
    max-width: 400px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
  }

  .whyus-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-contact h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-nav-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu a {
    color: white !important;
  }

  .hamburger {
    display: flex;
  }

  .hero-content h1 {
    font-size: 30px;
  }

  .hero-image img {
    max-width: 300px;
  }

  .whyus-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .contact-bar {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

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

  .hero-content h1 {
    font-size: 26px;
  }

  .floating-phone {
    bottom: 15px;
    left: 15px;
    font-size: 12px;
    padding: 8px 15px 8px 10px;
  }
}
