* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: #1c1c1c; background: #585858; }
header {
  background: url('civil.png') no-repeat center/cover;
  height: 100vh;
  color: rgb(255, 255, 255);
  position: relative;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  overflow: hidden;
}


nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}
nav a {
  color: white;
  text-decoration: none;
}
nav a:hover {
    color:#2ecc71

}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  left:0px;
  font-size: 14px;
  background-color: none;
  min-width: 160px;
  padding: 24px 0px;
  text-align: center;
  z-index: 999;
}

.dropdown:hover .dropdown-content {
  display: block;
}


.btn-outline {
  border: 1px solid #00c96d;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  color: #2ecc71;
  text-decoration: none;
}

.btn-outline:hover {
  background: #2ecc71;
  color: white;
}

.cta-button {
    color: #666;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.cta-button:hover {
    color: #27ae60;
}


.hero {
  margin: auto;
  text-align: left;
  padding: 5rem 2rem;
  max-width: 1000px;
}
.hero h1 { font-size: 3rem; margin-top: 3rem; }
.section {
  padding: 4rem 2rem;
  background: white;
}

/* Services Section */
.services {
    padding: 0px 0;
    background: #ffffff; 
}

.grid-1x2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    background:white;
}

.grid-1x2 p{
font-size:1.2rem;
font-weight: bold;
line-height:35px;
color:#6B6B6B;
}

.section-title {
    margin-bottom: 4rem;
    margin-left:100px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #2ecc71;
    text-align: left;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin-right: 100px;

}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1rem;
    margin-top: 4rem;
    background:#D9D9D9;
}

.service-card {
    background: #D9D9D9;
    padding: 2.5rem;
    border-radius: 15px;
   /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-left: 30px;
    margin-right: 30px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
   /* background: linear-gradient(135deg, #2ecc71, #27ae60); */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-mini-grid{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));

}

.service-icon {
    width: 80px;
    height: 80px;
    /*background: linear-gradient(135deg, #2ecc71, #27ae60);*/
    border-radius: 50%;
    display: flex;
    align-items: right;
    justify-content: right;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #27ae60;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #6B6B6B;
}

.service-card p {
    color: #6B6B6B;
    margin-bottom: 1.5rem;
}


.service-link {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: #27ae60;
}


/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    margin-left: 100px;
    margin-right: 100px;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;

  }

.portfolio-item:hover {
    transform: scale(1.05);
    filter: brightness(60%);    
}

.portfolio-image {
    width: 100%;
    height: 500px;
    background: linear-gradient(45deg, #ddd, #bbb);
    position: relative;
    display: flex;
    justify-content: center;
}

.portfolio-image img {
  max-width: 100%; 
  max-height: 100%;
  width: auto; /* Allows the image to maintain its aspect ratio */
  height: auto; /* Allows the image to maintain its aspect ratio */
  display: block; /* Removes any extra space below the image */
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    padding: 2rem;
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    opacity: 0.9;
}


/* Trust Section */
.trust {
    padding: 70px 0;
    background: #f8f9fa;
}

.trust-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, .5fr));
    gap: 2rem;
    align-items: center;
    margin-top: 4rem;
}

.trust-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.trust-logo img {
    max-width: 100%; 
  max-height: 100%;
  width: auto; /* Allows the image to maintain its aspect ratio */
  height: auto; /* Allows the image to maintain its aspect ratio */
  display: block; /* Removes any extra space below the image */
}


/* Contact Section */
.contact {
    padding: 100px 0;
    background: #27ae60;
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-left: 100px;
    margin-right: 100px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.contact-form {
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);

  }

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-bottom: 1px solid white;
    border-color: #ffffff;
    font-size: 1rem; 
    outline:none;
    background: #27ae60;

}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background: #2ecc71;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background: white;
    color:#2ecc71;

}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 100px;
    margin-left:50px;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #2ecc71;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #2ecc71;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}



       /* Responsive Design */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }

            .hero h1 {
                font-size: 2.5rem;
            }

            .services-grid {
                grid-template-columns: 1fr;
            }

            .contact-content {
                grid-template-columns: 1fr;
            }

            .hero-content {
                text-align: center;
            }
        }

        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .fade-in-up {
            animation: fadeInUp 0.8s ease-out;
        }

        /* Smooth scrolling */
        html {
            scroll-behavior: smooth;
        }
