* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    line-height: 1.6; 
    color: #333;
    font-size: 16px;
    margin: 0;
    width: 100%;
    height: 100vh;
}
header {
    background: #004466;
    color: white;
    text-align: center;
    padding: 2rem 0;
    height: 250px; /* Set the height of the header */
}
header h1 {
    font-size: 2.5rem;
}
.topnav {
    overflow: hidden;
    top: 0px;
    padding: 16px;
    background-color: #333;
    width: 100%; /* Full width */ /* Ensure it stays above other content */
    transition: top 1s; /* Smooth transition for fixed position */
    position: relative; /* Default position */
}
.topnav.fixed {
    position: fixed; /* Fix the nav at the top */
    top: 0; /* Align to the top */
}
.topnav a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}
.active {
    background-color: #4CAF50;
    color: white;
}
.topnav .icon {
    display: none; /* Hide icon by default */
}
nav {
    display: flex;
    justify-content: center;
    background: #003355;
}
nav a {
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: bold;
}
nav a:hover {
    background: #002244;
}
.hero {
    background: url('https://source.unsplash.com/construction-site') no-repeat center center/cover;
    color: rgb(5, 5, 5);
    text-align: center;
    padding: 5rem 0;
}
.hero h2 {
    font-size: 2.5rem;
}

@keyframes moveFromRight {
    0% {
        transform: translateX(100%); /* Start off-screen to the right */
    }
    100% {
        transform: translateX(-100%); /* Move off-screen to the left */
    }
}

.hero h2#animated {
    color: hwb(200 3% 35%);
    display: inline-block; /* Ensure the element can be animated */
    animation: moveFromRight 30s linear infinite; /* Apply the animation */
    font-size: 70px;
}
.hero p {
    font-size: 1.2rem;
    margin-top: 1rem;
}
section {
    padding: 4rem 2rem;
    max-width: 1300px;
    margin: 0 auto;
    color: #070606;
    display: flex; /* Use flexbox to center content */
    flex-direction: column; /* Stack children vertically */
    justify-content: center; /* Center content vertically */
    align-items: center; 
}
section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #004466;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 2rem; /* Space between cards */
}
#vision .card{
    top: 100px;
}
.card {
    background: #f0f8ff;
    padding: 2rem;          
    top: 60px;
    color: #070606;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.card h3 {
    color: #004466;
}

#projects{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.card img {
    max-width: 100%;
    border-radius: 8px;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }
    nav a { text-align: center;
        padding: 1rem; }
    }
.pattern {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem; /* Space between cards */
}
#our-team .pattern .card {
    background: #f0f8ff; 
    padding: 1.5rem; 
    border-radius: 8px;
    color: #070606;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2); 
    text-align: center; 
    transition: transform 0.3s; 
}
#our-team .pattern .card:hover {
    transform: scale(1.05); 
}
#our-team .pattern .card img {
    border-radius: 50%; 
    width: 100px; 
    height: 100px; 
    object-fit: cover; 
}
.contact-cards {
    gap: 2rem;
    display: flex;
    justify-content: space-around; 
    flex-wrap: wrap; 
    margin: 2rem 0; 
}

.card h3 {
    color: #004466; 
}
.card a {
    padding: 10px;
    border-radius: 6px;
    color: #004466; 
    text-decoration: none; 
}
.card a:hover {
    text-decoration: none;
    background-color: #92d5f7;

}

@media screen and (max-width: 600px) {
    .topnav {
        overflow: hidden;
        top: 0px;
        padding: 16px;
        background-color: #333;
        width: 100%;
        position: relative;
        z-index: 1000;
    }
    
    .topnav.fixed {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    
    .topnav a:not(:first-child) {
        display: none;
    }
    
    .topnav a.icon {
        float: right;
        display: block;
    }
    
    .topnav.responsive {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: #333;
        z-index: 1001;
        height: auto;
        max-height: 100vh;
        overflow-y: auto;
    }
    
    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
        padding: 14px 16px;
    }
    
    .topnav.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
    }
    
    .hero h2#animated {
        font-size: 2.5rem;
    }
    
    .tab {
        width: 100%;
    }
}

#showMoreBtn {
    background-color: #004466; 
    color: white; 
    border: none; 
    padding: 10px 20px; 
    border-radius: 5px; 
    cursor: pointer; 
    margin-top: 20px; 
}

#showMoreBtn:hover {
    background-color: #003355; 
}

.form-group {
    margin-bottom: 15px;
}
label {
    display: block;
    margin-bottom: 5px;
}
input, textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
button:hover {
    background-color: #0056b3;
}
.message {
    margin-top: 10px;
    display: none;
    padding: 10px;
    border-radius: 4px;
}
.success {
    background-color: #d4edda;
    color: #155724;
}
.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Style the tab */
.tab {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #46686d;
    width: 100%;
}
  
  /* Style the buttons that are used to open the tab content */
.tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 8px;
    transition: 0.3s;
    width: 20%;
}
  
/* Change background color of buttons on hover */
.tab button:hover {
    background-color: #7daedb;
}
  
/* Create an active/current tablink class */
.tab button.active {
    background-color: #56a5f0;
}
  
/* Style the tab content */
.tabcontent {
    display: none;
    padding: 6px 12px;
    border: 1px solid #337386;
    border-top: none;
}

.fixed {
    position: fixed; 
    top: 0; 
    width: 100%; 
    z-index: 1000; 
}    
footer {
    background-color: #737374; 
    padding: 10px;
    color: #ffffff; 
    text-align: center; 
}
footer section{
    display: flex;
    flex-direction: row;
}
footer h3 {
    margin: 10px 0; 
}

footer ul {
    padding: 0; 
    list-style-type: none; 
}

footer ul li {
    margin: 15px;
}

footer a {
    text-decoration: none; 
    color: #ffffff; 
    background-color: #00448d; 
    border-radius: 5px; 
    padding: 10px 15px; 
    transition: background-color 0.3s; 
}

footer a:hover {
    background-color: #0056b3; 
}
.cta-button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}
.cta-button:hover {
    background-color: #0056b3;
}

/* Animated Testimonials */
.slide-in {
    animation: testimonialSlideIn 0.5s forwards;
}
.slide-out {
    animation: testimonialSlideOut 0.5s forwards;
}

@keyframes testimonialSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes testimonialSlideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-30px);
    }
}

#animated-testimonials {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.testimonial-item {
    text-align: center;
    font-style: italic;
    color: #004466;
    font-size: 1.1rem;
    transition: all 0.5s;
}