/* Global Styles */
:root {
    --primary-color: #ffc107;
    --secondary-color: #ff9800;
    --dark-color: #212121;
    --light-color: #ffffff;
    --gray-color: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}


/* Navigation */
nav {
    position: fixed;
    width: 100%;
    background: var(--light-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 50px; /* Adjust this value to control the logo size */
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    margin-left: 2rem;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.mobile-menu {
    display: none;
    cursor: pointer;
}

.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('Precon.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Account for the fixed navbar */
    position: relative;
    color: var(--light-color);
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll; /* Explicitly change to scroll on mobile */
    }
}

.hero-content {
    text-align: left;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateX(-100px);
    animation: slideInLeft 1s ease forwards;
    width: 100%;
    padding-left: 4rem; 
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--light-color);
    text-align: left;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
    text-align: left;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 2rem;
    align-items: center;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    align-items: 4rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    color: #E67E22;
    text-decoration: none;
    font-weight: 500;
    gap: 0.5rem;
}

.text-link:hover {
    color: #f39c12;
}

.hero-image {
    opacity: 0;
    transform: translateX(100px);
    animation: slideInRight 1s ease forwards;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-item h1 {
    font-size: 3.5rem;
    color: #E67E22;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.hero-image {
    opacity: 0;
    transform: translateX(100px);
    animation: slideInRight 1s ease forwards;
}

.construction-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}


@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive styles */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem;
    }

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

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-images {
        display: none;
    }

    .hero-content h1,
    .hero-content p {
        text-align: center; /* Ensures that both the title and the paragraph are centered */
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* About Section */
.about {
    background: var(--light-color);
    padding: 6rem 0;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1s ease;
}

.about-image.active {
    opacity: 1;
    transform: translateX(0);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content {
    opacity: 0;
    transform: translateX(100px);
    transition: all 1s ease;
}

.about-content.active {
    opacity: 1;
    transform: translateX(0);
}

.about-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-subtitle {
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.about-description {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.feature-item.active {
    opacity: 1;
    transform: translateY(0);
}

.feature-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--dark-color);
}

.feature-text {
    font-size: 1.1rem;
    color: #555;
}

/* Services Section */
.services {
    background: var(--gray-color);
    padding: 6rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.service-card {
    background: var(--light-color);
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
}

.service-card.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Projects Section */
.projects {
    padding: 6rem 0;
    background: var(--light-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(50px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.project-card.reveal.active img {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.2s; /* Slight delay after the card appears */
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: rgba(0,0,0,0.8);
    color: var(--light-color);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    text-align: center;
}

.project-info h3 {
    margin-bottom: 0.5rem;
}

.project-card:hover .project-info {
    transform: translateY(0);
}

/* Contact Section */
/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--gray-color);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact h2,
.services h2,
.projects h3 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.contact-info {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.contact-info.reveal.active {
    opacity: 1;
    transform: translateX(0);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.contact-info p {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact-form {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.contact-form.reveal.active {
    opacity: 1;
    transform: translateX(0);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--dark-color);
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--light-color);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-links a {
        margin: 1rem 0;
    }

    .mobile-menu {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-container,
    .services-grid,
    .projects-grid,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .about-title {
        font-size: 2rem;
    }

    .service-card,
    .project-card {
        margin: 0 1rem;
    }
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-image {
        display: none;
    }
}

.section-title-container {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(-50px);
    transition: all 1s ease;
}

.section-title-container.active {
    opacity: 1;
    transform: translateY(0);
}

.section-subtitle {
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

/* Update existing sections with new title styles */
.services, .projects, .contact {
    padding: 6rem 0;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    display: block;
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    animation: zoom 0.3s ease;
    object-fit: contain; /* This ensures the image maintains its aspect ratio */
}

@keyframes zoom {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1101;
}

.close-lightbox:hover {
    color: var(--primary-color);
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 50px;
}

/* Make project images clickable */
.project-card img {
    cursor: pointer;
}

.view-image-link {
    color: white;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.view-image-link:hover {
    opacity: 0.8;
}

/* Social Links in Footer */
.social-links {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    color: var(--light-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.1rem;
    gap: 0.5rem;
}

.social-link:hover {
    color: var(--primary-color);
}

.social-link i {
    font-size: 1.3rem;
}