/* General Reset */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
              url('../images/bg-home.jpeg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
}


.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for better text visibility */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

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

.hero h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.btn {
    background-color: plum;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: palevioletred;
}

.fade-in {
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

nav {
    background-color: #333;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1rem;
    font-weight: bold;
}

nav a:hover {
  text-decoration: palevioletred;
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 1px;
  cursor: pointer;
  color: white;
}

.logo span {
  color: plum;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 15px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer p {
    margin: 0;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero h3 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    nav a {
        margin: 0 10px;
        font-size: 0.9rem;
    }
}
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero h3 {
        font-size: 1.2rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    nav a {
        margin: 0 8px;
        font-size: 0.8rem;
    }
}

/* Services */
.services {
  padding: 60px 20px;
  background: white;
  text-align: center;
}

.services h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #333;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Service Card */
.service-card {
  background: plum; /* catchy accent color */
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card h3 {
  color: black; /* catchy accent color */
  margin-bottom: 10px;
}

.service-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* Make 2nd row only 2 cards */
.service-card:nth-child(4),
.service-card:nth-child(5) {
  grid-column: span 1;
}

@media (max-width: 900px) {
  .services-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .services-container {
    grid-template-columns: 1fr;
  }
}

/* Contact */
.contact{
    text-align: center;
}

.contact form {
  max-width: 700px;
  max-height: fit-content;
  margin: auto;
  display: grid;
  gap: 1rem;
}

.contact input,
.contact textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 15px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Gallery */
.gallery h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
  text-align: center;
}

/* Masonry grid */
.gallery-grid {
  column-count: 3;  /* number of columns */
  column-gap: 15px; /* spacing between columns */
}

.gallery img {
  width: 100%;
  margin-bottom: 15px;
  border-radius: 10px;
  display: block;
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 900px) {
  .gallery-container {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .gallery-container {
    column-count: 1;
  }
}

/* About */
.about {
  padding: 60px 20px;
  background: #fefefe;
  text-align: center;
}

.about h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #333;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
  gap: 40px;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  text-align: left;
}

.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #e63946; /* accent color */
}

.about-text p {
  margin-bottom: 20px;
  line-height: 1.7;
  color: #444;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    text-align: center;
  }
}

/* Make the whole page take up full height */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Main content should expand to push footer down */
main, section {
  flex: 1;
}

/* Footer styles */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 15px 0;
  margin-top: auto; /* pushes footer to the bottom */
}
