:root {
  --blue: #002C5F;
  --yellow: #FDCB58;
  --light-gray: #f7f7f7;
  --dark-gray: #333;
  --white: #fff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Arial', sans-serif;
  color: var(--dark-gray);
  line-height: 1.6;
  background: var(--white);
}

header {
  background: rgba(0, 44, 95, 0.7);
  color: var(--white);
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
  transition: background 0.3s ease;
}

header.scrolled { background: var(--blue); }

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

header h1 {
  font-size: 1.5rem;
  animation: fadeDown 1s ease-in-out;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li { margin-left: 20px; }

nav ul li a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}

nav ul li a:hover { color: var(--yellow); }

.hero {
  background: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?fit=crop&w=1500&q=80') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-content { padding: 0 20px; z-index: 2; }

.hero-text-box {
  background: rgba(0, 0, 0, 0.55);
  padding: 30px;
  border-radius: 8px;
  animation: fadeUp 1s ease-in-out;
}

.hero-text-box h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 10px;
}

.hero-text-box p {
  color: var(--white);
  margin-bottom: 20px;
}

.btn {
  background: var(--yellow);
  color: var(--blue);
  padding: 12px 24px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  display: inline-block;
  margin-top: 10px;
  transition: transform 0.3s, background 0.3s;
}

.btn:hover { background: #e6b94d; transform: scale(1.05); }

.services {
  padding: 80px 20px;
  background: var(--light-gray);
}

.services h2 { text-align: center; margin-bottom: 40px; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: auto;
}

.service-card {
  background: var(--white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(40px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card i {
  font-size: 2.5rem;
  color: var(--blue);
  margin-bottom: 15px;
}

.contact { padding: 80px 20px; }

.contact h2 { text-align: center; margin-bottom: 30px; }

.contact-form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(40px);
}

.contact-form.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  margin-bottom: 15px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-form button {
  background: var(--blue);
  color: var(--white);
  padding: 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover { background: #001a3d; }

.contact-info {
  text-align: center;
  margin-top: 30px;
  opacity: 0;
  transform: translateY(40px);
}

.contact-info.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

footer {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: 10px 0;
  font-size: 0.9rem;
}

.success { text-align: center; color: green; margin-bottom: 20px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media(max-width: 768px) {
  .hero-text-box h2 { font-size: 1.6rem; }
}
