/* General Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Header Styling */
header {
    background: #ffffff;
    color: #333; /* Changed color to ensure visibility */
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo img {
    height: 50px; /* Adjust the logo size */
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #f39c12; /* Hover effect color */
}


/* Hero Section */
#home {
    background: url('hero-background.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;  /* Prevents any overflow from the image */
}

.hero-content {
    position: absolute;  /* Position text over the image */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);  /* Centering the content */
    color: #fff;
    text-align: center;
    z-index: 2; /* Ensure it's above the background image */
}

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

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

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;  /* Image is placed behind the content */
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* Ensures the image covers the section area */
    object-position: center center;  /* Centers the image */
    filter: brightness(0.6);  /* Optional dark overlay effect */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);  /* Optional semi-transparent overlay */
    z-index: 1;  /* Overlay goes above the image, but below the content */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1.2rem;
    }
}


/* Media Queries for Mobile Devices */
@media (max-width: 768px) {
    /* Adjustments for mobile view */
    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 10px 0;
    }

    #home h1 {
        font-size: 2em;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 1em;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    header .logo img {
        height: 40px; /* Adjust the logo size on smaller screens */
    }

    .portfolio-grid {
        grid-template-columns: 1fr; /* One item per row on small screens */
    }

    .section-title {
        font-size: 2em;
    }

    .image-wrapper {
        width: 200px;
    }
}

/* Hero Image and Overlay */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: brightness(0.6); /* Optional: dark overlay effect */
}

/* Hero Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Portfolio Section */
.portfolio-section {
    padding: 20px;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;  /* Center the grid horizontally */
    align-items: center;      /* Center the grid vertically */
    min-height: 100vh;        /* Ensure the section takes full viewport height */
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three items per row */
    gap: 10px;
    justify-items: center;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 540px;
    height: 100%;
    aspect-ratio: 1080 / 1350; /* Ensure aspect ratio remains the same */
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 10px;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    visibility: visible;
    opacity: 1;
}

/* Our Work Section Styles */
.our-work-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background-color: #000;
    color: #fff;
}

.section-title {
    text-align: center;
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 50px;
    color: #fff;
    opacity: 0.85;
    animation: fadeIn 1s ease-in-out;
}

/* Portfolio Scrolling Image Styles */
.scroll-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.scrolling-images {
    display: flex;
    animation: scrollLeft 30s linear infinite;
}

.image-wrapper {
    flex-shrink: 0;
    width: 300px;
    margin: 0 20px;
    transition: transform 0.3s ease;
}

.image-wrapper img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* Animation for Scrolling Images */
@keyframes scrollLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Stop animation on hover */
.scroll-container:hover .scrolling-images {
    animation-play-state: paused;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .scroll-images img {
        height: 200px;
    }
}

/* Enlarged Image View */
.enlarged-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.enlarged-view img {
    max-width: 90%;
    max-height: 90%;
}

.enlarged-view .close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2em;
    color: #fff;
    cursor: pointer;
}

/* About Us Section */
#about {
    padding: 80px 20px;
    background-color: #B8B8B8;
    color: #fff;
    text-align: center;
}

#about .container {
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

#about.visible .container {
    opacity: 1;
    transform: translateY(0);
}

#about h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
}

#about p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* About and Services Wrapper */
#about-services-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 50px 20px;
    background-color: #FFFFFF;
    color: #FF0105;
}

.about-container, .services-container {
    flex: 1;
    min-width: 350px;
    padding: 20px;
}

/* About and Services Titles */
.about-container h2, .services-container h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.about-container p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.service-item {
    background-color: #222;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
}

/* Portfolio Section Adjustments */
.portfolio-section {
    padding: 10px;
    background-color: #E6E6E6;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    justify-items: center;
    width: 100%;
    max-width: 2000px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 540px;
    height: 100%;
    aspect-ratio: 1080 / 1640; /* Aspect ratio remains unchanged */
    border-radius: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 10px;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    visibility: visible;
    opacity: 1;
}

/* Media Queries for Smaller Screens */
@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}



/* Contact Hero Section */
#contact-hero {
    position: relative;
    height: 100vh;  /* Full viewport height */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;  /* Prevents overflow */
}

.hero-image-contact {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;  /* Ensure the image stays behind the content */
}

.hero-image-contact img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* Ensures the image covers the entire section */
    object-position: center center;  /* Centers the image */
}

.hero-overlay-contact {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);  /* Dark overlay to improve text visibility */
    z-index: 2;  /* Ensures the overlay is above the image */
}

.hero-content-contact {
    position: absolute;
    bottom: 20px;  /* Position content 20px from the bottom */
    right: 20px;   /* Position content 20px from the right */
    z-index: 3;    /* Ensures the content is above the overlay */
    color: #fff;
    padding: 20px;
    text-align: right; /* Align text to the right */
}

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

.hero-content-contact p {
    font-size: 1.2rem;
    margin: 10px 0;
}

.hero-content-contact a {
    color: #FFFFFF; /* Set the link color to white */
    text-decoration: none;
    font-weight: bold;

}

.hero-content-contact a:hover {
    color: #000000; /* Black color on hover */
}

