/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  margin: 0;
  padding: 1.5rem;
}

h2 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 0.5em;
}

p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1em;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin: 1em 0;
}

/* Hero Section */
.hero-card {
  max-width: 900px;
  margin: 2em auto;
  padding: 2em;
  background-color: #f7f7f7;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateX(-50px);
  animation: slideIn 1s ease-out forwards;
}

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2rem;
}

.hero img {
  width: 400px;
  height: auto;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: cover;
  opacity: 0;
  transform: translateX(-30px);
  animation: slideInChild 1s ease-out forwards;
  animation-delay: 0.5s;
}

.hero-text {
  max-width: 600px;
  opacity: 0;
  transform: translateX(-30px);
  animation: slideInChild 1s ease-out forwards;
  animation-delay: 0.2s;
}

.hero-text h2 {
  font-size: 3rem;
  font-weight: 700;
  margin: 0.5em 0;
  height: 4rem;
  line-height: 1;
  overflow: hidden;
  position: relative;
}

.rotating-text {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  animation: rotateWords 9s ease-in-out infinite;
  font-size: inherit;
}

.rotating-text:nth-child(1) { animation-delay: 0s; }
.rotating-text:nth-child(2) { animation-delay: 3s; }
.rotating-text:nth-child(3) { animation-delay: 6s; }

@keyframes rotateWords {
  0%   { opacity: 0; transform: translateY(20%); }
  10%  { opacity: 1; transform: translateY(0); }
  25%  { opacity: 1; transform: translateY(0); }
  35%  { opacity: 0; transform: translateY(-20%); }
  100% { opacity: 0; transform: translateY(-20%); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-50px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInChild {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Form */
.form-container {
  max-width: 500px;
  margin: 3em auto;
  padding: 2em;
  background-color: #f7f7f7;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.form-container form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
}

.form-container input,
.form-container textarea {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-family: 'Nunito', sans-serif;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}

.form-container button {
  background-color: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1em;
  padding: 10px 20px;
  border-radius: 5px;
  align-self: center;
  width: auto;
}

.form-container button:hover {
  background-color: #45a049;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 2em;
  background-color: #f7f7f7;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo { font-weight: 700; font-size: 1.2em; }
.nav-list { list-style: none; display: flex; gap: 2em; }
.nav-list li a { text-decoration: none; color: #333; font-weight: 600; }
.menu-toggle { display: none; flex-direction: column; cursor: pointer; }
.bar { height: 3px; width: 25px; background-color: #333; margin: 4px 0; transition: 0.3s; }

/* About Card */
.about-card {
  display: flex;
  gap: 1.5rem;
  max-width: 800px;
  margin: 3rem auto;
  padding: 2rem;
  background: #f7f7f7;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.about-card img {
  width: 220px;
  height: auto;
  border-radius: 12px;
  flex-shrink: 0;
  object-fit: cover;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 1s ease-out forwards;
}

@keyframes fadeSlideUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Services */
.services { max-width: 900px; margin: 4em auto; padding: 0 1em; }
.service-list { display: flex; flex-wrap: wrap; gap: 2em; }
.service-card { flex: 1 1 250px; background-color: #f7f7f7; padding: 1.5em; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.08); }
.service-card h3 { margin-top: 0; }
.service-card p { margin-bottom: 0; }

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #f7f7f7;
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in;
  }
  .nav-list.active { max-height: 500px; }
  .nav-list li { margin: 1em 0; }
  .hero { flex-direction: column; align-items: center; gap: 1em; }
  .hero img { width: 90%; max-width: 300px; margin-top: 1em; }
  .form-container { width: 90%; padding: 1.5em; }
  .navbar { padding: 0.5em 1em; }
  .logo { font-size: 1em; }
  .about-card { flex-direction: column; text-align: center; align-items: center; }
  .about-card img { width: 150px; }
  .hero-text h2 { font-size: 2rem; height: auto; line-height: 1.2; white-space: nowrap; overflow: visible; }
  .rotating-text { position: relative; display: inline-block; transform: none; opacity: 1; }
}

@media (max-width: 480px) {
  .rotating-text { font-size: 1.5rem; }
}

/* Navbar with aqua background */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 2em;
  background-color: #00cfcf; /* new aqua color */
  color: white; /* ensure links/text are readable */
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-list li a {
  text-decoration: none;
  color: white; /* white text for contrast */
  font-weight: 600;
}

/* Burger menu bars color */
.menu-toggle .bar {
  background-color: white;
}

/* Services section with same aqua background */
.services {
  max-width: 900px;
  margin: 4em auto;
  padding: 2em 1em;
  background-color: #00cfcf; /* same aqua */
  border-radius: 10px;
  color: white; /* make text readable on aqua */
}

/* Individual service cards – slightly lighter for contrast */
.service-card {
  flex: 1 1 250px;
  background-color: rgba(255, 255, 255, 0.15); /* semi-transparent white */
  padding: 1.5em;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  color: white; /* ensure headings and text stay visible */
}

/* Service card headings */
.service-card h3 {
  margin-top: 0;
  color: white;
}

/* Service card paragraphs */
.service-card p {
  margin-bottom: 0;
  color: white;
}
/* Mobile menu dropdown */
@media (max-width: 768px) {
  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white; /* white dropdown background */
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in;
  }

  .nav-list.active {
    max-height: 500px;
  }

  .nav-list li a {
    color: #00cfcf; /* aqua links for contrast */
    font-weight: 700;
    font-size: 1.1rem;
  }
}
