@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  background: #000;
}

.overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(5, 15, 25, 0.75), rgba(5, 15, 25, 0.75)),
              url('https://images.unsplash.com/photo-1494526585095-c41746248156?auto=format&fit=crop&w=1470&q=80') no-repeat center center/cover;
  z-index: 0;
}

body > *:not(.overlay) {
  position: relative;
  z-index: 1;
}

header.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 57, 115, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.main-header .logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #f39c12;
  text-shadow: 0 0 6px #f39c12;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 25px;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #f39c12;
}

.hero {
  padding: 120px 20px 60px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.hero-text {
  flex: 1 1 55%;
  text-align: left;
  padding-right: 10px;
}

.hero-image {
  flex: 1 1 40%;
  text-align: center;
}

.hero-image img {
  max-width: 150%;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: scale(1.03);
}

h1, h2 {
  font-weight: 700;
  margin-bottom: 20px;
}

p {
  color: #ddd;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.btn {
  background: #f39c12;
  border: none;
  padding: 14px 35px;
  border-radius: 40px;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(243, 156, 18, 0.7);
  transition: background 0.3s ease;
}

.btn:hover {
  background: #d78a0a;
}

section {
  padding: 60px 20px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  margin-bottom: 40px;
}

.projects {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.project-box {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  flex: 1 1 250px;
  min-width: 250px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.project-box h3 {
  color: #f39c12;
  margin-bottom: 10px;
}

form input[type="email"] {
  width: 100%;
  padding: 14px 20px;
  border-radius: 40px;
  border: 2px solid #f39c12;
  outline: none;
  font-size: 1rem;
  color: #222;
  background-color: #fff;
  margin-bottom: 20px;
}

form input:focus {
  border-color: #d78a0a;
}

footer {
  background-color: rgba(0, 57, 115, 0.95);
  font-size: 0.9rem;
  color: #fff;
  padding: 30px 10px;
  text-align: center;
}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #25D366;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 9999;
  overflow: hidden;
  transition: width 0.3s ease, background-color 0.3s ease;
animation: bounce 1.5s infinite;

}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}



.whatsapp-float img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.whatsapp-float span {
  display: none;
  color: white;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  margin-left: 10px;
}

.whatsapp-float:hover {
  width: 140px;
  background-color: #1eb851;
  border-radius: 25px;
  justify-content: flex-start;
  padding-left: 12px;
}

.whatsapp-float:hover span {
  display: inline;
}


/* Responsive Styles */
@media (max-width: 768px) {
  header.main-header {
    flex-direction: column;
    align-items: center;
  }

  .menu-toggle {
    display: block;
    margin-top: 10px;
  }

  nav#main-nav {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-color: rgba(0, 57, 115, 0.95);
    padding: 10px 0;
  }

  nav#main-nav.active {
    display: flex;
    animation: slideDown 0.3s ease forwards;
  }

  nav#main-nav a {
    margin: 10px 0;
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-text {
    text-align: center;
    padding-right: 0;
  }

  .hero-image {
    width: 100%;
    margin-top: 20px;
  }

  .hero-image img {
    max-width: 90%;
  }

  .logo {
    font-size: 1.5rem;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 100px;
  }

  .hero-image img {
    max-width: 90%;
  }
}

/* ===== ABOUT US PAGE STYLES ===== */
.overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(5, 15, 25, 0.75), rgba(5, 15, 25, 0.75)),
              url('https://images.unsplash.com/photo-1494526585095-c41746248156?auto=format&fit=crop&w=1470&q=80')
              no-repeat center center / cover;
  z-index: 0;
}

body > *:not(.overlay) {
  position: relative;
  z-index: 1;
}

.card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  margin-top: 140px; /* was 120px – bumped up to clear fixed header */
  margin-bottom: 40px;
  text-align: center;
}

.card h2 {
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.card p {
  color: #ddd;
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Keep background black and font white for About page */
body.about-page {
  background: #000;
  color: #fff;
}
