:root {
  --primary-color: #2B3A42;
  --secondary-color: #C09542;
  --light-gray: #f4f4f4;
  --white: #fff;
  --dark-text: #333;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  background: var(--light-gray);
  color: var(--dark-text);
  scroll-behavior: smooth;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('sparks.jpg') no-repeat center center/cover;
  height: 100vh;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3.5em;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.2em;
  margin-top: 15px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero a {
    color: var(--white);
    margin: 5px 20px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

    .hero a:hover {
        color: var(--white);
        text-decoration: none;
    }

/* Navigation Bar */
header {
  background: var(--primary-color);
  color: var(--white);
  padding: 10px 20px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

header h1 {
    margin: 0;
    font-size: 1.8em;
}

nav {
  background: var(--secondary-color);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 15px 0;
  position: sticky;
  top: 60px; /* Adjust based on header height */
  z-index: 999;
}

nav a {
  color: var(--white);
  margin: 5px 20px;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Welcome Section Styling */
#welcome {
    background-color: var(--white); /* A clean white background to make it stand out */
    text-align: center;
    padding: 200px 20px; /* Extra vertical padding to give it breathing room */
}

.welcome-headline {
    font-size: 2.8em; /* A large, impactful headline */
    color: var(--primary-color);
    margin-bottom: 25px;
}

.welcome-text {
    font-size: 1.2em;
    line-height: 1.8; /* Generous line spacing for readability */
    color: #555; /* A slightly softer dark gray for the paragraph */
    max-width: 800px; /* Prevents text lines from being too wide on large screens */
    margin: 0 auto 40px auto; /* Centers the paragraph block and adds space below it */
}

/* General Section Styling */
section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

h2 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5em;
}

.about-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Responsive columns */
    gap: 40px; /* Space between the columns */
    align-items: start;
}

.about-text p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
}

.about-text strong {
    color: var(--primary-color);
}

.about-highlights {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-left: 5px solid var(--secondary-color); /* Accent border */
}

    .about-highlights h3 {
        font-size: 1.5em;
        color: var(--primary-color);
        margin-top: 0;
    }

    .about-highlights h4 {
        font-size: 1.2em;
        color: var(--primary-color);
        margin-top: 25px;
        margin-bottom: 15px;
    }

    .about-highlights ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .about-highlights ul li {
            background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23C09542"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>') no-repeat left center;
            background-size: 20px;
            padding-left: 30px; /* Space for the checkmark icon */
            margin-bottom: 10px;
            font-size: 1.1em;
        }

.about-tagline {
    text-align: center;
    margin-top: 60px; /* Space above the tagline */
    padding-top: 40px;
    border-top: 1px solid #ddd;
}

    .about-tagline p {
        font-size: 1.5em;
        font-weight: bold;
        font-style: italic;
        color: var(--primary-color);
    }

/* Service Card Specific Styles */
.service-card {
    padding: 0; /* Remove default padding to allow image to fill the top */
    overflow: hidden; /* Ensures the rounded corners are applied to the image */
    display: flex;
    flex-direction: column;
    text-align: center;
}

    .service-card img {
        width: 100%; /* Make image span the full width of the card */
        height: 200px; /* Give a fixed height to all images */
        object-fit: cover; /* Ensures the image covers the area without distortion */
        display: block;
    }

    .service-card h4 {
        margin: 20px 15px; /* Add some spacing around the text */
        color: var(--primary-color);
        font-size: 1.2em;
        flex-grow: 1; /* Helps align text if cards have different text lengths */
        display: flex;
        align-items: center;
        justify-content: center;
    }

.reason-card {
    text-align: center; /* Center all content within the card */
    padding: 40px 20px; /* Add more vertical padding for better spacing */
}

.icon-container {
    width: 70px;
    height: 70px;
    background: #fdf5e6; /* A very light, warm background color */
    border-radius: 50%; /* Makes the container a perfect circle */
    margin: 0 auto 25px auto; /* Centers the circle and adds space below it */
    display: flex; /* Use flexbox to perfectly center the icon inside */
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.reason-card:hover .icon-container {
    transform: scale(1.1); /* Slightly enlarge the icon on hover */
}

.icon-container svg {
    width: 36px; /* Set the size of the icon */
    height: 36px;
    fill: var(--secondary-color); /* Use your brand's secondary color for the icon */
}

.reason-card strong {
    display: block; /* Make the title a block element */
    margin-bottom: 10px; /* Add space between title and paragraph */
    font-size: 1.3em;
}

.reason-card p {
    margin: 0;
    font-size: 1em;
    color: #555;
}

/* Grid and Card Styling */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: var(--white);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.card strong {
    color: var(--primary-color);
}

/* Project Card Specific Styles */
.project-card {
    padding: 0; /* Remove default padding */
    overflow: hidden; /* Clip the image to the card's rounded corners */
    display: flex;
    flex-direction: column;
    text-align: center;
}

    .project-card img {
        width: 100%;
        height: 200px;
        object-fit: cover; /* Cover the area without distortion */
        display: block;
    }

/* This new class styles the text area within the card */
.card-content {
    padding: 20px 15px;
    flex-grow: 1; /* Ensures all cards have the same height in a row */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .card-content h4 {
        margin-top: 0;
        margin-bottom: 10px;
        color: var(--primary-color);
        font-size: 1.2em;
    }

    .card-content p {
        margin: 0;
        font-size: 0.9em;
        color: #666;
    }

/* CTA Button */
.cta {
    display: block;
    width: fit-content;
    margin: 40px auto 0;
    background: var(--secondary-color);
    color: var(--white);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s, transform 0.3s;
}

.cta:hover {
  background: #a37932;
  transform: scale(1.05);
}

/* Testimonials Slider */
.testimonials-container {
  position: relative;
  background: var(--white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.testimonial {
  display: none;
  font-style: italic;
  text-align: center;
}

.testimonial.active {
  display: block;
  animation: fadeIn 0.7s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.testimonial p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

.testimonial span {
  display: block;
  font-weight: bold;
  color: var(--secondary-color);
  margin-top: 10px;
}

.slider-controls {
  margin-top: 20px;
  text-align: center;
}

.slider-btn {
  background: var(--secondary-color);
  border: none;
  color: var(--white);
  padding: 10px 20px;
  margin: 0 10px;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.slider-btn:hover {
  background: #a37932;
}

/* Contact Section Styling */
#contact {
    background-color: var(--light-gray); /* Use the light gray background for contrast */
    text-align: center;
}

.section-intro {
    max-width: 600px;
    margin: 0 auto 40px auto;
    font-size: 1.1em;
    color: #555;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.contact-card {
    display: block;
    background: var(--white);
    padding: 40px 20px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

    .contact-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px auto;
    background-color: #fdf5e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .contact-icon svg {
        width: 30px;
        height: 30px;
        fill: var(--secondary-color);
    }

.contact-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.5em;
    color: var(--primary-color);
}

.contact-card p {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
}
/* Footer */
footer {
  background: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 40px 20px;
}