html {
scroll-behavior: smooth;
scroll-padding-top: 200px; /* Increased to stop scrolling sooner */
}

body{
font-family: poppins, sans-serif;
margin: 0;
padding : 0;
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#logo{
  width: 150px;
  height: auto;
  animation: spinAndFade 1.5s ease-out forwards;
}

@keyframes spinAndFade {
  0% {
    scale: .1;
    transform: rotate(0deg);
    opacity: 0;
  }
  50%{
    scale: 3;
    transform: rotate(360deg);
    opacity: 1;
  }
  100% {
    scale: 3;
    transform: rotate(360deg);
    opacity: 1;
  }
}
#content {
display: none;
}

/*----------------------------------------------HEADER--------------------------------------*/
header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-size:cover;
  background: rgba(255,255,255,0);
  transition: background 0s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.1); 
    z-index: 0;
}

/* Container */
.header-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position:relative;
  padding: 10px;
  margin: 0px;
  z-index:1;
  flex-wrap: wrap;
}

/* Logo */
.logo {
  max-width: 150px;
  height: auto;
  margin: 0px;
  padding: 10px;
  animation: fadedLogo .5s ease-in;
}

@keyframes fadedLogo {
  0% {
    opacity: 0;
    scale:.25;
  }
  100% {
    opacity: 1;
    scale: 1;
  }
}

.main-navigation {
  padding: 10px;
  z-index: 1000;
}

/* Hamburger Menu Button - Mobile Only */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.menu-toggle i {
  font-size: 1.5rem;
  color: rgb(0,113,189);
}

/* Nav styling */
.nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  font-weight: bold;
  z-index: 1000;
  flex-wrap: wrap;
}

.nav-list a {
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
  text-wrap: nowrap;
  font-weight: bolder;
  color: rgb(0,113,189);
  font-size: 0.9rem;
  padding: 5px;
}

.nav-list a:hover {
  transform: translateY(-5px);
  color: rgb(58,181,74);
}

.nav-link.quote-btn{
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
  text-wrap: nowrap;
  color: #FF8C00;
  font-weight: bolder;
}

.nav-link.quote-btn:hover {
  transform: translateY(-6px);
  color: rgb(58,181,74);
}

/* Mobile Menu Styles */
@media (max-width: 767px) {
  html {
    scroll-padding-top: 170px; /* Increased for mobile header height */
  }

  .menu-toggle {
    display: block;
  }

  .main-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: rgba(230, 240, 250, 0.98);
    padding: 80px 20px 20px;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  }

  .main-navigation.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .nav-list a {
    font-size: 1.1rem;
    width: 100%;
    padding: 10px;
  }
}

/*----------------------------------------------BANNER--------------------------------------*/
.banner-section {
  min-height: 400px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 180px 20px 20px 20px;
  z-index: 1000;
  background-image: url('../assets/GridStructureBackground.jpg');
  background-size: cover;
  background-color: #e6f0fa;
}

.banner-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255,255,255,0.5); 
  z-index: 0;
}

.banner-section h1 {
  font-size: clamp(1.5rem, 5vw, 3rem);
  text-align: center;
  font-weight: bold;
  font-style: italic;
  color: rgb(0,113,189);
  z-index: 1;
  padding: 10px;
  margin-top: 0;
}

.banner-section p {
  font-size: clamp(1rem, 3vw, 1.5rem);
  line-height: 1.6;
  max-width: 90%;
  text-align: center;
  font-weight: bold;
  color: black;
  margin-bottom: 50px;
  z-index: 1;
  padding: 10px;
}

.gap-section{
  background-color: #2E2E2E;
  padding: 20px;
  width: 100%;
  height: 20px;
}

/*----------------------------------------------INTRO--------------------------------------*/
.intro-section {
  background-color: #2E2E2E;
  color: black;
  scroll-padding-top: 20px;
  padding: 10px;
}

.intro-text{
  scroll-margin-top: 200px; /* Increased to stop scrolling sooner */
  background: white;
  color: black;
  margin-top: 10px;
  padding: 15px;
  border-radius: 5px;
}

.intro-text h2 {
  scroll-margin-top: 200px; /* Increased to stop scrolling sooner */
  display: inline-block;
  vertical-align: top;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: bold;
  font-style: italic;
  color: rgb(0,113,189);
  margin-bottom: 10px;
  padding: 5px;
}

.intro-text i{
  vertical-align: top;
  display: inline;  
  padding-top: 15px;
  color: rgb(58,181,74);
}

.intro-section p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.6;
  margin: 10px;
  border-radius: 5px;
}

.reveal-hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: all 2s ease;
}

.reveal-show {
  opacity: 1;
  transform: translateY(0);
}

/*----------------------------------------------TEST SECTION--------------------------------------*/
.test-section{
  background-color: #2E2E2E;
  padding: 10px;
  scroll-margin-top: 200px; /* Increased to stop scrolling sooner */
}

.test-title-section {
  display: flex; 
  align-items: flex-end;  
  justify-content: center;  
  background: #2E2E2E;
  padding: 25px 10px;
  text-align: center;
  flex-wrap: wrap;
  gap: 10px;
  scroll-margin-top: 200px; /* Increased to stop scrolling sooner */
}

.test-title-section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: bold;
  font-style: italic;
  color: white;
}

.test-title-section i{
  color: rgb(0,113,189);
}

.test-subtitle-section{
  padding: 20px;
  background-color: white;
  border-radius: 5px;
  margin: 10px;
  scroll-margin-top: 200px; /* Increased to stop scrolling sooner */
}

.test-subtitle-section h2 {
  display: inline-block;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: bold;
  color: rgb(0,113,189);
}

.test-subtitle-section i{
  color: rgb(58,181,74);
  display: inline;  
  padding-top: 10px;
}

.test-subtitle-section p{
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.6;
  margin-top: 10px;  
}

.test-content-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px;
}

.test-content-container {
  padding: 20px;
  background-color: whitesmoke;
  border-radius: 5px;
}

.test-content-container h3 {
  display: inline-block;
  font-size: clamp(1.1rem, 2.5vw, 1.2rem);
  font-weight: bold;
  color: rgb(58,181,74);
}

.test-content-container i{
  color: rgb(0,113,189);
  vertical-align: top;
  display: inline;  
  padding-top: 10px;
} 

.test-content-container p{
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.6;
  margin-top: 10px;  
  margin-bottom: 20px;
}

.test-content-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  padding-top: 20px;
}

.test-content-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
} 

.test-content-list li i {
  flex-shrink: 0;  
  color: rgb(0,113,189);
  font-size: 1.2em;
  line-height: 1.2;
  margin-top: 2px;
  padding: 0;
} 

.test-content-container span {
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

/*----------------------------------------------COVERAGE MAP--------------------------------------*/
.map-section{
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 10px;
  background-color: #2E2E2E;
  scroll-margin-top: 200px; /* Increased to stop scrolling sooner */
}

.map-text-container{
  padding: 20px;
  background-color: whitesmoke;
  border-radius: 5px;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.6;
}

.map-text-container p{
  margin-top: 20px;
  margin-bottom: 20px;
}

.map-container{
  padding: 20px;
  background-color: white;
  border-radius: 5px;
  text-align: center;
}

.coverage-map{
  width: 100%;
  max-width: 500px;
  height: auto;
}

/*----------------------------------------------FOOTER--------------------------------------*/
footer {
  width: 100%;
  background-image: url('../assets/GridStructureBackground.jpg');
  background-size: cover;
  background-color: #e6f0fa;
  border-top: black 2px solid;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 200px;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255,255,255,0.5);
  z-index: 0;
}

.footer-container {   
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 20px;
  gap: 20px;
  text-align: center;
}

.address {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: bold;
  color: rgb(0,113,189);
}

.privacy{
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  color: rgb(0,113,189);
}

.social-icons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.social-icons a {
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
  padding: 5px;
  text-decoration: none;
  color: rgb(0,113,189);
  font-weight: bold;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.social-icons a:hover {
  transform: translateY(-6px);
  color: rgb(58,181,74);
}

.container{
  padding-top: 220px;
  flex-direction: column;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: whitesmoke;
  padding: 20px;
}

.container h1{
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: bold;
  color: rgb(0,113,189);
  margin-bottom: 10px;
  text-align: center;
}

.container h2{
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: bold;
  color: rgb(0,113,189);
  margin: 20px 0 10px 0;
}

.container p{
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 800px;
}

.container ul {
  max-width: 800px;
  margin-bottom: 20px;
  padding-left: 20px;
}

.container li {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Desktop layouts */
@media (min-width: 768px) {
  html {
    scroll-padding-top: 220px; /* Increased for desktop */
  }

  .header-container {
    flex-wrap: nowrap;
  }
  
  .logo {
    max-width: 200px;
  }
  
  .banner-section {
    min-height: 565px;
    padding: 20px;
  }
  
  .test-content-section {
    flex-direction: row;
    align-items: stretch;
  }
  
  .test-content-container {
    flex: 1;
  }
  
  .map-section {
    flex-direction: row;
    align-items: stretch;
  }
  
  .map-text-container {
    flex: 1;
  }
  
  .map-container {
    flex: 2;
  }
  
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  
  .privacy {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
  }

  .intro-text,
  .intro-text h2,
  .test-section,
  .test-title-section,
  .test-subtitle-section,
  .map-section {
    scroll-margin-top: 220px; /* Increased for desktop */
  }
}
