/* Header and logo */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding:10px 10px;
  background: rgb(3, 3, 73);
  border-radius: 10px;
  position: fixed;    /* Make header fixed */
  top: 0;             /* Stick to top */
  left: 0;
  width: 100%;
  z-index: 1200;      /* Stay above other content */
  height: 35px;
}
.logo {
  width: 100px;
  height: auto;
}

/* Add top padding to body so content isn't hidden under header */
body {
  padding-top: 120px;
}

/* Desktop navigation */
nav {
  display: flex;
  gap: 5px;
}
nav a {
  text-decoration: none;
  color: rgb(249, 248, 251);
  font-weight: bold;
  font-size: 16px;
  padding: 20px;
}

/* Hamburger hidden by default */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.menu-toggle:focus {
  outline: none;
}
.menu-toggle span {
  display: block;
  width: 30px;
  height: 3px;
  margin: 5px 0;
  background: #fff;
  border-radius: 2px;
  transition: 0.4s;
}

/* Hamburger animation to X */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}
/* Mobile styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    position: absolute;
    top: 10px;
    right: 35px;
    z-index: 1100;
  }

  nav {
    flex-direction: column;
    position: absolute;
    top: 50px; /* below header */
    right: 20px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 1000;
    background-color: black;
    width: 150px;

    /* Hidden state */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);

    /* split transitions so VS Code doesn't complain */
    transition: max-height 0.4s ease;
    transition: opacity 0.3s ease;
    transition: transform 0.3s ease;
  }

  nav.show {
    max-height: 500px; /* enough for all links */
    opacity: 1;
    transform: translateY(0);
  }

  nav a {
    color: darkgoldenrod;
    padding: 10px 0;
    transition: color 0.2s;
  }

  nav a:hover {
    color: rgb(255, 238, 1);
  }
}


/* Hide hamburger on desktop */
@media (min-width: 769px) {
  .menu-toggle {
    display: none !important;
  }
  nav {
    display: flex !important;
    position: static;
    background: none;
    box-shadow: none;
    padding: 0;
    width: auto;   
  }
}

/* Section styles */
.content-section, .company-profile, .our-services, .contact-us {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 40px 60px;
  gap: 40px;
  margin: 40px auto;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  background-color: rgb(241, 244, 247);
}
.content-section img, .company-profile img, .our-services img {
  flex: 0 0 40%;
  max-width: 1200px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  opacity: 1;
  transform: translateX(0);
  animation: fadeInLeft 0.8s ease forwards;
}
.section-text, .pac, .os, .om {
  flex: 1;
  max-width: 600px;
  opacity: 1;
  transform: translateX(0);
  animation: fadeInRight 0.8s ease forwards;
  animation-delay: 0.3s;
}
.section-text h1, .pac h1 {
  margin-bottom: 15px;
  font-size: 2.5rem;
  color: rgb(189, 190, 188);
}
.section-text p, .pac p {
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Animations */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(50px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile layout for sections */
@media (max-width: 768px) {
  .content-section,
  .company-profile,
  .our-services {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    min-height: 0;
    max-width: 100%;
    margin: 20px 0;
  }
  .content-section img,
  .company-profile img,
  .our-services img {
    max-width: 100%;
    animation: fadeInDown 0.8s ease forwards;
  }
  .section-text, .pac, .os, .om {
    max-width: 100%;
    text-align: left;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.5s;
  }  
}

/* Laptop layout */
@media (max-width: 1440px) {
  .content-section,
  .company-profile,
  .our-services,
  .contact-us {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    min-height: 0;
    max-width: 100%;
    margin: 20px 0;
  }
  .content-section img,
  .company-profile img,
  .our-services img {
    max-width: 100%;
    animation: fadeInDown 0.8s ease forwards;
  }
  .section-text, .pac, .os, .om {
    max-width: 100%;
    text-align: left;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.5s;
  }
}

/* Big screen */
@media (max-width: 3000px) {
  .content-section,
  .company-profile,
  .our-services,
  .contact-us {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    min-height: 0;
    max-width: 100%;
    margin: 20px 0;
  }
  .content-section img,
  .company-profile img,
  .our-services img {
    max-width: 100%;
    animation: fadeInDown 0.8s ease forwards;
  }
  .section-text, .pac, .os, .om {
    max-width: 100%;
    text-align: left;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.5s;
  }
}

footer {
  text-align: center;
  background: rgb(3, 3, 73);
  color: white;
  padding: 10px;
  font-size: 10px;
  margin-top: 20px;
}
footer p {
  margin: 0;
  line-height: 1.5;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 15px;
  right: 10px;
  z-index: 1300;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s;  
}
.whatsapp-float img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.whatsapp-float:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.om li {
  list-style-type: none;
  padding: 0;
  margin: 0;
  line-height: 1.6;
}
