*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden; /* Stops elements from breaking the screen layout edge */
  width: 100%;
}
body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #0340f9, #11cb81, #25bbfc);
  margin: 0;
  padding-top: 80px;
}

header {
  background: linear-gradient(135deg, #0340f9, #11cb81);
  color: white;
  position: fixed;       /* Keeps it locked in place when scrolling */
  top: 0;                /* Forces it to the absolute top edge */
  left: 0;
  width: 100%;           /* Full viewport width */
  z-index: 2000;         /* High index ensures it stays above ALL content */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 20px;  
  box-sizing: border-box; /* Prevents padding from breaking width calculations */
}

.logo {
  display: flex;
  align-items: center;
  margin-left: -15px;
  gap: 8px; /* space between logo and text */
}

.logo img {
  width: 120px;   /* adjust size */
  height: auto;  /* keeps aspect ratio */
  background: transparent;
}

nav a {
  background: linear-gradient(90deg, #fde37c, #f0c238, #fcdb4d, #f7e98e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;   /* Firefox */
  text-decoration: none;
  margin: 0 15px;
  font-size: 25px;
  font-weight: bold;
}

nav ul {
  text-decoration: none;
  list-style: none;
  display: flex;
  gap: 1em;
  margin: 0;
  padding: 0;
}

nav ul li {
  position: relative;
}

nav ul li ul.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #0d7bbf; /* FIXED: Changed transparent to solid background so links are readable */
  padding: 0.5em;
  font-size: 0.85rem;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

nav ul li:hover ul.dropdown {
  display: block;
} 

nav ul li ul.dropdown li a {
  padding: 4px 8px;     
  font-size: 1.2rem;   
  white-space: nowrap;
  display: block;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #FFD700; /* golden icon */
  cursor: pointer;
}

/* --- Hero Section Styles --- */
.hero {
  text-align: center;
  padding: 5em 2em 2em 2em;
  color: white;
}

.hero-text h1 {
  animation: fadeInDown 1s ease;
}

.hero-text h1 span {
  font-size: clamp(1.7rem, 5vw, 3rem);
  font-weight: bold;
  background: linear-gradient(45deg, #f7d841,#FDD017, #f4d02f, #FFDF00, #f1f17b, #DFB722, #eeee15, #f6f639, #f3ea86);
  background-size: 400% 400%;
  -webkit-background-clip: text;   
  -webkit-text-fill-color: transparent;
  background-clip: text;           
  color: transparent; 
  text-shadow: 1px 1px 2px rgba(244, 191, 58, 0.303);
  animation: shine 5s linear infinite;     
}

.hero-text p span {
  font-size: clamp(1.1rem, 1.3em, 2rem);
  font-weight: bold;
  margin-bottom: 1.5em;
  opacity: 0.9;
  background: linear-gradient(45deg, #f7d841,#FDD017, #fafa05e8, #FFDF00, #fbfbce, #f6c103, #f58c5f, #888804, #f94c02);
  background-size: 400% 400%;
  -webkit-background-clip: text;   
  -webkit-text-fill-color: transparent;
  background-clip: text;           
  color: transparent; 
  text-shadow: 1px 1px 2px rgba(244, 191, 58, 0.303);
  animation: shine 5s linear infinite;     
}

.hero-text button {
  background: linear-gradient(135deg, #2575fc, #00c853);       
  color: white;                    
  border: 2px solid #FFD700;       
  padding: 12px 24px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 15px;
}

.hero-text button:hover {
  transform: translateY(-3px) scale(1.05); 
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);  
}

.hero-slider {
  margin-top: 50px;   
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  width: 100%;        
  max-height: 400px;  
  object-fit: cover;  
  border-radius: 12px;
}

/* --- Promise & Cards Section --- */
section {
  padding: 2em 1em;
}

.promise h2 span {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: bold;
  background: conic-gradient(from 0deg, #f5e106, #f1e28c, #f1e04ae9);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 2s infinite linear;
}

.promise-section {
  text-align: center;
  padding: 60px 20px;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));  
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}

.card {
  background: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.card:hover {
  transform: translateY(-8px);
  border-color: #FFD700;
  box-shadow: 0 6px 25px rgba(255, 215, 0, 0.3);
}

.card h3 {
  color: #09013a;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.card p {
  color: #3a0404;
  font-size: 1rem;
}

/* --- Workflow Section --- */
.workflow {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.workflow-card {
  flex: 1 1 calc(10% - 20px);
  background: linear-gradient(135deg, #acf7fb, #b1fcdd);
  color: #353030;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.workflow-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

.workflow-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
  color: #140253;
}

.workflow-card p {
  font-size: 16px;
  color: #2a2929;
}

/* Mobile view */
/* @media (max-width: 768px) {
  .workflow-card {
    flex: 1 1 100%;
  } 
}*/


/* --- Footer --- */
footer {
  background-color: transparent;
  color: #fff;
  padding: 40px 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  margin: 20px;
}

.footer-section h3 {
  color: #fae56a; 
  margin-bottom: 15px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin: 8px 0;
}

.footer-section ul li a {
  color: #fff;
  text-decoration: none;
}

.footer-section ul li a:hover {
  color: #Edc967;
}

.footer-section .logo img {
  width: 100px;
  height: auto;
  margin-right: 10px;
}

.footer-section .logo h2 {
  display: inline-block;
  color: #edc967;
  font-size: 20px;
  margin: 0;
}

.social-icons {
  position: fixed;
  bottom: 20px;          
  right: 20px;           
  display: flex;
  flex-direction: column;
  gap: 10px;             
  z-index: 2000; /* Keeps sticky social widgets safely on top layers */
}

.social-icons a {
  color: #FFD700;        
  font-size: 18px;
  text-decoration: none;
}

.social-icons img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.social-icons img:hover {
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  padding-top: 10px;
  font-size: 20px;
}

/* --- Keyframe Declarations (FIXED: Moved to root level) --- */
@keyframes shine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Mobile View Media Queries --- */
@media (max-width: 768px) {
  header {
    position: fixed;     /* FIXED: Changed from relative/absolute to fixed */
    top: 0;              /* FIXED: Forces it to stick to the absolute top */
    left: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
  }


  .menu-toggle {
    display: block; 
    cursor: pointer;
    font-size: 1.5em;
    background: none;
    border: none;
    color:#FFD700;;
  }

  nav {
    display: none; 
    position: absolute;
    top: 100%; 
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #0340f9, #11cb81, #25bbfc);
    padding: 1em;
    z-index: 1000;
    box-sizing: border-box;
  }

  nav.active {
    display: block; 
  }

  nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
  }

  nav ul li ul.dropdown {
    display: none; 
    position: static; 
    flex-direction: column;
    background: rgba(255, 255, 255, 0.1); 
    padding: 0.5em 1em;
    margin-top: 0.5em;
  }

  nav ul li.open > ul.dropdown {
    display: flex; 
  }
  @media (max-width: 768px) {
    /* 1. Reduce the header container's height and padding */
  header {
    padding: 10px 15px !important;  /* Tighter vertical padding shrinks the header bar */
    min-height: auto !important;   /* Prevents any minimum heights from locking it open */
  }

  /* 2. Shrink the logo image itself */
  .logo img {
    width:100px !important;        /* Scales the width down from 110px/150px */
    max-height: 80px !important;   /* Hard ceiling to keep the image from pushing the header down */
    object-fit: contain;           /* Keeps the logo from distorting */
  }
  body {
    padding-top: 60px !important; /* Matches your newly shortened mobile header */
  }
  /* Forces the hero layout container to stay within screen boundaries */
  .hero {
    padding: 50px 20px 30px 20px !important; /* Extra top padding so fixed header doesn't cover it */
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-text {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* FIXED: Forces the parent tags to wrap text normally */
  .hero-text h1, 
  .hero-text p {
    white-space: normal !important; 
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    display: block !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  

  /* Scaled font sizes for compact 360px mobile viewports */
  .hero-text h1 span {
    font-size: 1.8rem !important; /* Shrinks the massive H1 text */
    line-height: 1.2;
  }

  .hero-text p span {
    font-size: 1.1rem !important; /* Shrinks the subtitle description text */
    line-height:1;
  }
/* 
  .hero-text button {
    width: 100%;
    max-width: 280px;
    margin: 20px auto 0 auto;
  } */
  .hero-text button {
    margin-top: 5px !important;    /* Decreases top margin to snap it upward */
    position: relative;            /* Ensures it handles z-indexing context correctly */
    z-index: 10;                   /* Keeps it clickable above backgrounds */
  }
}
  .card-container {
    grid-template-columns: repeat(2, 1fr); /* FIXED: Targeted container element instead of individual .card elements */
  }

  .workflow-card {
    flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  .card-container {
    grid-template-columns: 1fr; /* FIXED: Targeted container element instead of individual .card elements */
  }
  .card h3 {
    font-size: 1.2rem;
  }
  .card p {
    font-size: 0.85rem;
  }
}