/*
Navigation Bar
*/
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: black;
  box-shadow: 0 2px 8px rgba(243, 212, 212, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10%;
  z-index: 1000;
  transition: background 0.3s ease;
}

nav .logo {
  margin-right: 3px;
  width: 80px;
  height: auto;
  color: #2c5364;
  letter-spacing: 1px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav ul li {
  display: inline-block;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

/* Hover underline effect */
nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #ff7f50;
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

nav ul li a:hover {
  color: #ff7f50;
}

/* Offset body for fixed nav */
body {
  padding-top: 100px;
}

/* 
Global Reset & Typography
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

/* NORMALIZED TEXT SPACING */
h1, h2, h3 {
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.2;
  text-align: center;
}

p {
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.5; 
}

/*
Section Layout
*/
section {
  min-height: 100vh;
  padding: 32px 10%;
  transition: all 0.4s ease;
  display: block;
}

/* 
Hero Section
*/
.hero {
  background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
  color: white;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero-content {
  max-width: 320px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 12px;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.hero button {
  margin-top: 10px;
  padding: 10px 25px;
  font-size: 1rem;
  background: #000000;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.hero button:hover {
  background: #e0d8d5;
}

/*
About Section
*/
.about {
  background: #ffffff;
  color: #222;
  text-align: center;
}

.about .content {
  max-width: 700px;
  margin: 0 auto;
}

.about h2 {
  font-size: 2.5rem;
}

/*
Services Section
*/
.services {
  background: #e8f0fe;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.services h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.service-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.service-card {
  background: white;
  padding: 30px;
  width: 280px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card h3 {
  margin-bottom: 10px;
  color: #050505;
}

/*
Contact Section
*/
.contact {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  text-align: center;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}

.contact input,
.contact textarea {
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
}

.contact textarea {
  resize: none;
  height: 120px;
}

.contact button {
  padding: 12px 25px;
  background: #000000;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

.contact button:hover {
  background: #000000;
}

/*
   Responsive
*/
@media (max-width: 400px) {
  nav ul {
    display: none;
  }

  nav .menu-toggle {
    display: block;
    cursor: pointer;
  }

  .hero {
    justify-content: center;
    text-align: center;
  }

  .hero-content {
    text-align: center;
  }

  .service-cards {
    flex-direction: column;
  }
}
