/* === Reset & Base === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.animate-link {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideIn 1.2s ease-out forwards;
  animation-delay: 0.9s;
  color: #0a84ff;
}

@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f9;
  line-height: 1.6;
}

/* === Layout Containers === */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* === Header === */
header {
  background: #cfc5be;
  padding: 20px 0;
  color: #333;
}

.logo {
  display: flex;
  align-items: left;
}

.logo-img {
  width: auto;
  height: auto;
  margin-right: 10px;
}



.logo p {
  font-size: 14px;
  color: #666;
  margin-left: 5px;
}

/* === Navigation === */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  justify-content: center; /* or space-between or flex-end */
  align-items: center;
  padding: 0;
  margin: 0;
}

nav ul li {
  /* optional spacing or styling */
}

nav ul li a {
  color: #0a84ff;
  text-decoration: none;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a:hover {
  background-color: #0a84ff;
  color: #fff;
}
/* === Hero Section === */
.hero {
  text-align: left;
  padding: 20px 5%;
  background-color: #f4f4f9;
}

.hero h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.hero h2 {
  color: #0a84ff;
}

.hero .btn {
  background-color: #0a84ff;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 20px;
  display: inline-block;
  transition: background-color 0.3s;
}

.hero .btn:hover {
  background-color: #007bff;
}

/* === Animated Box Paragraph === */
.animated-box {
  display: inline-block;
  padding: 20px;
  margin: 20px 0;
  border: none;
  background-color: #f7f4f2;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  opacity: 0;
  transform: scale(0.8);
  animation: boxIn 3s ease forwards;
}

@keyframes boxIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
    border-color: transparent;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
  60% {
    opacity: 0.8;
    transform: scale(1.05);
    border-color: #0a84ff;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.4);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    border-color: #f7f4f2;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.2);
  }
}

/* === General Section === */
.section {
  padding: 2rem;
  background-color: #f4f4f9;
}

.section h2 {
  text-align: center;
  font-size: 2rem;
  color: #0a84ff;
  margin-bottom: 2rem;
}

/* === Services & Products === */
.services-container,
.products-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

.service-item,
.product-item {
  background: #f0f8ff;
  border-left: 5px solid #0077aa;
  padding: 1.5rem;
  border-radius: 8px;
  transition: transform 0.3s;
}

.animated-box:hover,
.service-item:hover,
.product-item:hover {
  transform: translateY(-5px);
}

.service-item h3,
.product-item h3 {
  color: #004466;
  margin-bottom: 0.5rem;
}

/* === Contact & About === */
.section.contact p {
  margin-bottom: 1rem;
  text-align: center;
}

/* === Contact Form === */
form {
  max-width: 600px;
  margin: 2rem auto;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

form .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #004466;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

form .btn:hover {
  background-color: #006699;
}

/* === Footer === */
footer {
  background-color: #004466;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 4rem;
  font-size: 0.9rem;
}

footer a {
  color: #00ccff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* === Section Headings === */
.section-heading {
  color: #0a84ff;
}

.section-link {
  color: inherit;
  text-decoration: none;
  color: #0a84ff;
  text-decoration: none;
  font-weight: 600;
}

.section-link:hover {
  text-decoration: underline;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  header nav ul {
    flex-direction: column;
    align-items: left;
  }
}

/*===mobile display fix===*/
@media (max-width: 768px) {
  .logo-img {
    width: auto;   /* or 30px */
    height: auto;
  }

  
}
@media (max-width: 768px) {
  /* Stack container elements vertically */
  .container {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }


  .logo-text {
    font-size: 20px;
  }

  /* Responsive nav menu */
  nav ul {
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
  }

  nav ul li a {
    padding: 10px 12px;
    font-size: 16px;
    text-align: center;
  }

  /* Hero section fonts */
  .hero h1 {
    font-size: 1.6em;
    line-height: 1.3;
  }

  .hero .btn {
    width: 100%;
    text-align: center;
    padding: 5px;
    font-size: 1em;
  }

  /* Sections */
  .section {
    padding: 1.5rem 1rem;
  }

  .section h2 {
    font-size: 1.5rem;
  }

  .services-container,
  .products-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Contact form full width */
  form {
    padding: 1.5rem 1rem;
    margin: 1rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 1em;
  }

  footer {
    padding: 1.5rem 1rem;
    font-size: 0.85rem;
  }
}
@media (max-width: 768px) {
  nav ul {
    flex-wrap: wrap;
    flex-direction: row;
    padding: 0 10px;
    margin: 0;
    overflow-x: hidden;
  }

  nav ul li {
    flex: 1 1 100%;
    text-align: center;
  }

  nav ul li a {
    font-size: 16px;
    padding: 10px 0;
    display: block;
  }
}
