/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: #bd8361;
    color: #333;
    scroll-behavior: smooth;
}
/* Hero h1 typing with disappearing cursor */
.hero h1 {
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid rgb(31, 55, 111); /* typing cursor */
  width: 0;
  font-size: 2.5rem;
  animation:
    typing 3s steps(30, end) forwards,
    hideCursor 0.5s step-end 3s forwards;
}

/* Fade-in animation for hero p */
.hero p {
  opacity: 0;
  animation: fadeIn 2s ease 3.2s forwards;
}

/* Keyframes */
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes hideCursor {
  from { border-right: 3px solid rgb(188, 198, 227); }
  to { border-right: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


header {
  position: relative;
  height: 100vh;
  background: linear-gradient(to right, #85a6c8, #3b6c8e);
  color: rgb(224, 230, 235);
  overflow: hidden;
  z-index: 1;
}
.background-video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: 0;
    }


/* Navbar Styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #27344e, #bad5f6);
    padding: 10px 10px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

    .logo {
      display: flex;
      align-items: center;
      color: white;
      font-size: 1.4rem;
      font-weight: bold;
    }

    .logo img {
      height: 60px;
      width: 60px;
      margin-right: 10px;
    }

    .nav-links {
      list-style: none;
      display: flex;
      gap: 20px;
    }

    .nav-links li a {
      text-decoration: none;
      color: #fff;
      font-weight: 500;
      transition: color 0.3s ease;
    }

    .nav-links li a:hover {
      color: #ffcc00;
    }



    /* nav bar dropdown css*/
    /* Dropdown styles */
.nav-links li {
  position: relative;
}

.nav-links li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #27344e;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 150px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-links li:hover ul {
  display: block;
}

.nav-links li ul li a {
  display: block;
  padding: px 15px;
  color: #fff;
  white-space: nowrap;
}

.nav-links li ul li a:hover {
  background-color: #1d2a3a;
  color: #ffcc00;
}


/* Hero Section */
.hero {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 600px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-btn {
    background: #ffcc00;
    color: #000;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 25px;
    transition: background 0.3s ease;
}

.cta-btn:hover {
    background: #d9d0aa;
}
/* SMJ Burst */
.smj-burst {
    position: absolute;
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 20px #f7f3e4, 0 0 40px #f6f1df;
    opacity: 0; /* Start hidden */
    animation: moveText 4s forwards, disappearText 2s forwards, appearText 1s 4s forwards;
    z-index: 2;
    left: 50%; /* Start at center horizontally */
    transform: translateX(-50%); /* Center text */
    white-space: nowrap; /* Ensure the text does not wrap to the next line */
    top: 180px; /* Add top padding (adjust as necessary) */
}

/* Keyframes for Burst Text Animation */
@keyframes moveText {
    0% {
        left: -100%;
        opacity: 1;
        transform: translateX(-50%);
    }
    100% {
        left: 50%;
        opacity: 1;
        transform: translateX(-50%);
    }
}

@keyframes disappearText {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes appearText {
    0% {
        opacity: 1;
        transform: translateX(-50%);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%);
    }
}



/* Footer Styling */
.footer {
    background: linear-gradient(to right, #2d5e8f, #23476e);
    color: #d7e1f0;
    padding: 40px 20px;
    text-align: center;
   
}
.stats-overview {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 60px 20px;
  
  text-align: center;
}

.stat-card {
  background: linear-gradient(to right, #cedae7, #e9eff6);
  border-radius: 10px;
  padding: 30px 20px;
  margin: 15px;
  flex: 1 1 200px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card h3 {
  font-size: 1.2rem;
  color: #3498db;
  margin-bottom: 10px;
}

.stat-card p {
  font-size: 1.5rem;
  font-weight: bold;
  color: #232a32;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}
.stats-wrapper {
 background: linear-gradient(to right, #cedae7, #b2cde9);
  padding: 60px 20px 30px;
}

.stats-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  color: #4797ed;
}



.footer-content h2 {
    margin-bottom: 10px;
}



/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .cta-btn {
        padding: 10px 25px;
        font-size: 0.95rem;
    }

    .navbar {
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .hero {
        max-width: 90%;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .navbar {
        padding: 10px 15px;
    }

    .footer-content h2 {
        font-size: 1.5rem;
    }

    .feedback-form {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.7rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .cta-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .smj-burst {
        font-size: 2rem;
    }

    .nav-links li a {
        font-size: 0.9rem;
    }

    .footer-content h2 {
        font-size: 1.2rem;
    }

    .footer p {
        font-size: 0.8rem;
    }

    .feedback-form input {
        font-size: 0.9rem;
    }

    .feedback-form button {
        font-size: 0.9rem;
    }
}
/* Full-width background */
.why-choose-us {
  background: linear-gradient(to right, #cedae7, #b2cde9);
  padding: 40px 20px;
  border-radius: 0; /* Optional: remove rounding at edges */
}

/* Centered content inside the background */
.why-choose-us-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.why-choose-us-container h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #333;
  font-weight: bold;
  text-align: center;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.benefit {
  background-color: white;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.benefit h3 {
  color: #1067daf9;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.benefit p {
  font-size: 1rem;
  color: #151414;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-choose-us-container {
    text-align: left;
    padding: 0 20px;
  }
}

/* working*/
.stat-card {
  position: relative;
  background: linear-gradient(to right, #e4e5e7, #eff0f1);
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
  overflow: hidden; /* Important for clipping */
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 50px 50px 0 0; /* size of triangle */
  border-color: #0d52ad transparent transparent transparent; /* color of triangle */
}





.page-title {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #4797ed;
}







.about-us-section {
  padding: 40px 20px;
  background-color: #e8ebf2; /* light gray background */
}

.about-us-container {
  
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  column-gap: 60px; /* Wider space between columns */
  row-gap: 40px; /* Also adds spacing if stacked on small screens */
}


.about-us-left,
.about-us-right {
  min-width: 300px;
}

.about-us-left {
  flex: 1 1 40%; /* 40% width */
}

.about-us-right {
  flex: 1 1 55%; /* 55% width, more space than left side */
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-us-left h2,
.about-us-right h3 {
  margin-bottom: 16px;
  color: #0c1c3efc; /* dark text */
}

.about-us-left p,
.about-us-right .promise-item p {
  font-size: 16px;
  color: #4b5563; /* muted gray text */
  line-height: 1.6;
  text-align: justify;
}

.promise-item {
  padding: 15px;
  background-color: #c4dbe3;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 80%; /* Limit width to prevent too much horizontal stretch */
}

.promise-item p {
  margin: 0;
}

.promise-item:hover {
  background-color: #f3faf9;
  border-color: #10b981;
}

.promise-item p::before {
  content: '✔';
  color: #42a4ea; /* green checkmark */
  margin-right: 10px;
}









.mission-vision {
    display: flex;
    justify-content: space-between;
   
    gap: 30px;
    background: linear-gradient(to right, #c0d7f9, #a2e1e6);
    
    
}




.mission-vision {
  display: flex;
  justify-content: center;
  gap:80px;
  flex-wrap: wrap;
  padding: 60px;
}

.flip-card {
  background-color: transparent;
  width: 400px;
  height: 350px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-card-back {
  background-color: rgb(193, 221, 239);
  color: #124360;
  padding: 30px;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  size: 30px;
}

.flip-card-back h2 {
  color: #007BFF;
  margin-top: 0;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}







/* Force desktop-like appearance on all screen sizes */
@media (max-width: 1024px) {
  html, body {
    min-width: 1200px;
    overflow-x: auto;
    font-size: 18px;
  }

  .container,
  .stats,
  .customers,
  .company-info,
  .feedback-form {
    padding: 40px;
    max-width: 1200px;
    margin: auto;
  }

  .stats {
    display: flex;
    flex-wrap: nowrap; /* Prevent wrapping */
    justify-content: space-between;
    gap: 40px;
  }

  .stats-box {
    flex: 1;
    min-width: 200px;
  }

  .customers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .feedback-form form {
    max-width: 600px;
    margin: auto;
  }

  h1, h2, p, label, input, textarea, button {
    font-size: inherit;
  }
}

















/* Modal base */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s ease-in-out;
}

/* Modal content styled like a card */
.modal-content {
  background-color: #e4f0f5;
  margin: auto;
  padding: 30px 25px;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  animation: slideUp 0.3s ease-out;
}

/* Close button */
.modal-content .close {
  color: #666666;
  position: absolute;
  right: 20px;
  top: 16px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}
.modal-content .close:hover {
  color: #000;
}

/* Header */
.modal-content h3 {
  margin-top: 0;
  font-size: 22px;
  margin-bottom: 16px;
  text-align: center;
  color: #333;
}

/* Customer list */
#customerList {
  list-style: none;
  padding: 0;
  margin: 0;
}
#customerList li {
  background-color: #e8c0c0;
  margin-bottom: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: background-color 0.2s ease;
}
#customerList li:hover {
  background-color: #e0f7fa;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; } 
  to { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}



.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}



/* SCOLL VISIBLE
/* Hide initially */
.stat-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Visible state */
.stat-card.visible {
  opacity: 1;
  transform: translateY(0);
}






.customers-section {
  background-color: #c9dcef;
  padding: 40px 20px;
  text-align: center;
  font-family: Arial, sans-serif;
}

.page-title {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 30px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.customers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  justify-content: center;
  padding: 0 10px;
}

.customer-card {
  background-color: #f2f2f3;
  border: 1px solid #f4ebeb;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.customer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.customer-card h2 {
  color: #2980b9;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.customer-card p {
  margin: 5px 0;
  color: #333;
  font-size: 0.95rem;
}

.customer-card strong {
  color: #000;
}


