/* Global styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

body, html {
    overflow-x: hidden;
    background-color: #f4f4f4;
}

/* Header */
.header {
    color: white;
    text-align: center;
    background: linear-gradient(to right, #000, #fff);
    padding: 40px 0;
}

h1 {
    font-size: 30px;
}

/* First Body Part */
.container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
    gap: 40px;
}

.main-image-container {
    flex: 1 0 45%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image {
    width: 100%;
    height: 100%;
    background-image: url('images/main-bg.jpg');
    background-attachment: scroll;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 10px;
}

.content {
    flex: 1 0 50%;
    padding: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 23px;
}

p {
    font-size: 22px;
    color: #666;
    text-align: justify;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column; /* Stack items on top of each other */
        text-align: center;
        gap: 20px;
    }

    /* Ensure the main image container is visible */
    .main-image-container {
        flex: 1 0 auto;
        width: 100%;
        height: 300px; /* Ensure a visible height */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Ensure the main image is displayed properly */
    .main-image {
        width: 100%;
        max-width: 100%;
        height: 300px; /* Ensure visibility */
        min-height: 200px; /* Prevent collapsing */
        background-size: cover;
        background-position: center;
        display: block !important; /* Ensure it's not hidden */
        border-radius: 10px;
        opacity: 1; /* Ensure it's visible */
        visibility: visible;
    }

    /* Adjust content alignment */
    .content {
        flex: 1 0 auto;
        align-items: center;
        text-align: center;
        padding: 0 15px; /* Add padding for better readability */
    }

    /* Headings remain centered, while paragraphs are justified */
    h2 {
        text-align: center;
    }

    p {
        text-align: justify !important; /* Force justify for mobile */
        margin-left: auto;
        margin-right: auto;
        max-width: 90%; /* Prevents text from stretching edge-to-edge */
    }
}

/* Second Body Part */
.second-body {
    background-image: url('images/gray-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 50px 20px;
    text-align: center;
}

/* Updated Title Styling */
.second-body h2 {
    font-size: 30px; /* Matches the header title size */
    color: #333; /* Dark gray color */
    font-weight: bold;
    margin-bottom: 30px;
}


/* Slider */
.slider {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    margin: auto;
}

.slide-track {
    display: flex;
    width: 200%;
    animation: scroll 12s linear infinite;
}

/* Each Slide */
.slide {
    flex: 0 0 25%;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 8px;
    margin: 5px;
}

.slide img {
    width: 100px; /* Increased image size */
    height: 100px;
    object-fit: cover;
    border-radius: 5px; /* Square with soft edges */
}

/* Title & Description - Positioned Right */
.slide-text {
    text-align: left;
    margin-left: 15px;
}

.slide h3 {
    color: white;
    font-size: 22px;
}

.slide p {
    color: #ddd;
    font-size: 18px;
    margin-top: 5px;
}

/* Animation */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Third Body Part */
.third-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    background-color: #f8f8f8;
}

.card-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    gap: 40px;
}

/* Card Styling - Now on the Right */
.card {
    position: relative;
    width: 350px;
    height: 250px;
    background-color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

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

.card:hover {
    transform: scale(1.05);
}

/* Card Content */
.card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white; /* Ensuring text inside card is white */
    text-align: center;
}

/* Title inside Card */
.card__title {
    font-size: 22px;
    font-weight: bold;
    color: white; /* Changed to white */
}

/* Description inside Card */
.card__description {
    font-size: 16px;
    margin-top: 5px;
    color: #ccc; /* Changed to white */
}

/* Card Description (Left Side) */
.card-description {
    flex: 1;
    text-align: left;
    color: white; /* Changed text color to white */
}

.card-description h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
}

.card-description p {
    font-size: 23px;
    color: #666; /* Updated to white for visibility */
    text-align: justify;
    margin-right: 50px;
    margin-bottom: 20px;
}

/* Button Styling */
.btn-find-out {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 20px;
    font-size: 18px;
    color: white;
    background-color: #333;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s ease-in-out;
}

.btn-find-out:hover {
    background-color: #ccc;
    color: #333;
}

/* Mobile Responsive Fix */
@media (max-width: 768px) {
    .card-container {
        display: flex;
        flex-direction: column-reverse; /* Swaps position on mobile */
        align-items: center; /* Centers horizontally */
        justify-content: center; /* Centers vertically */
        text-align: center;
        min-height: 100vh; /* Ensures full viewport height */
        padding: 20px; /* Prevents content from touching edges */
    }

    .card-description {
        display: flex;
        flex-direction: column;
        align-items: center; /* Centers horizontally */
        justify-content: center; /* Centers vertically */
        max-width: 85%; /* Ensures better width for readability */
    }

    .card-description p {
        text-align: justify !important; /* Justifies text */
        max-width: 90%; /* Ensures text doesn't stretch edge-to-edge */
        margin: 0 auto; /* Centers text block */
        margin-bottom: 20px; /* Adds space below the text */
    }

    /* Fully Center the Button & Add Space */
    .btn-find-out {
        display: flex;
        justify-content: center;
        align-items: center;
        width: fit-content; /* Adjusts to text size */
        margin: 30px auto 0; /* Adds more space above the button */
        padding: 12px 20px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

/* Modal Content */
.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 60%;
    text-align: center;
    position: relative;
    max-width: 800px;
    animation: fadeIn 0.3s ease-in-out;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
}

/* Gallery Grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

/* Gallery Items */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    width: 100%; /* Ensures all gallery items take equal space */
    height: 200px; /* Set a fixed height */
}

/* Ensure All Images Are Same Size */
.gallery-item img {
    width: 100%;
    height: 100%; /* Forces images to be same height */
    object-fit: cover; /* Ensures images fill the space without distortion */
    display: block;
    transition: transform 0.3s ease;
}

/* Hover Effect */
.gallery-item:hover img {
    transform: scale(1.1);
}

/* Description Overlay */
.hover-desc {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 100%;
    text-align: center;
    padding: 10px;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.gallery-item:hover .hover-desc {
    opacity: 1;
}

/* Responsive: Adjust for Smaller Screens */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(1, 1fr); /* 1 column on mobile */
    }

    .gallery-item {
        height: 110px; /* Slightly smaller images on mobile */
    }
}

/* Button Styling */
.btn-find-out {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 20px;
    font-size: 18px;
    color: white;
    background-color: #333;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.btn-find-out:hover {
    background-color: #ccc;
    color: #333;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .modal-content {
        width: 80%;
    }

    .gallery {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Video Section */
.video-section {
    width: 100%;
    margin: 20px 0; /* Adds a little margin for spacing */
    background-image: linear-gradient(#333, #000); /* Gradient from white to dark gray */
    padding-top: 0; /* Remove top padding if any, which might be causing a white line */
}

/* Full-Width Video and Description */
.video-container {
    width: 100%;
    display: flex;
    align-items: flex-start; /* Align items at the start of the container */
    justify-content: space-between; /* Distribute space between video and description */
    gap: 20px; /* Space between the video and the description */
}

video {
    width: 50%; /* Adjust width to make room for the description */
    max-width: 100%;
    border-radius: 5px;
    margin-top: 30px; /* Adjusted margin */
    margin-bottom: 30px; /* Adjusted margin */
    margin-left: 30px; /* Left margin for alignment */
    margin-right: 20px; /* Right margin for alignment */
}

.video-description {
    width: 45%; /* Adjust width for the description */
    padding: 20px; /* Padding around text */
    box-sizing: border-box; /* Include padding in width calculation */
    font-size: 16px; /* Adjust font size for readability */
    margin-top: 30px; /* Adjusted top margin */
    margin-bottom: 30px; /* Adjusted bottom margin */
    margin-right: 30px; /* Right margin for alignment */
    color: white; /* Set text color to white for all text */
}

.video-description h2 {
    color: orange; /* Ensures that all paragraphs specifically have white text */
    font-size: 33px; /* Adjust font size for readability */
}

.video-description p {
    color: white; /* Ensures that all paragraphs specifically have white text */
    font-size: 22px; /* Adjust font size for readability */
}

@media (max-width: 768px) {
    .video-section {
        padding: 0 30px; /* Add horizontal padding to the entire section */
    }

    .video-container {
        flex-direction: column; /* Stack video and description vertically on smaller screens */
        align-items: center; /* Center align the items to ensure content is centered */
        width: 100%; /* Ensure the container uses the full width */
    }

    video {
        width: 100%; /* Video should fill the adjusted width considering container padding */
        margin: 30px 0 10px; /* 30px top margin, 10px bottom margin, no specific horizontal margin needed due to section padding */
    }

    .video-description {
        width: 100%; /* Full width to align with the video's width */
        padding: 10px; /* Consistent padding all around for text */
        margin: 0 auto 30px; /* Auto margins for horizontal centering, 30px bottom margin */
        text-align: center; /* Center the text within the description */
    }
}


/* Full Screen Button */
.btn-fullscreen {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 18px;
    color: white;
    background-color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-fullscreen:hover {
    background-color: #ccc;
    color: #333;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    video {
        width: 100%;
    }
}

/* Marketing Exposure Section Styles */
.marketing-exposure {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-image: linear-gradient(#000, #333); /* Dark gradient for sophisticated look */
    color: #fff; /* White text for high contrast and visibility */
    box-shadow: 0 4px 8px rgba(0,0,0,0.5); /* Subtle shadow for depth */
}

.exposure-header h2 {
    color: orange; /* Bright color for headings to stand out */
    text-align: center;
    margin-top: 30px;
}

.exposure-header p {
    color: #fff; /* White color for consistency */
    text-align: center;
    margin-bottom: 30px;
}

.exposure-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three columns for desktop */
    gap: 20px;
    text-align: center;
}

.exposure-type h3 {
    color: orange; /* Bright color for sub-headings */
    margin-bottom: 20px;
}

.exposure-type p {
    font-size: 19px;
    color: #ccc; /* Light gray for readability and aesthetic */
    text-align: justify; /* Justified text for better alignment on desktop */
    margin-bottom: 20px;
    margin-left: 30px;
    margin-right: 30px;
}

@media (max-width: 768px) {
    .exposure-grid {
        grid-template-columns: 1fr; /* Single column layout for mobile */
    }

    .exposure-type p {
        text-align: center; /* Center text for better readability on mobile */
        margin: 20px 10px; /* Adjusted margins to prevent text from touching the screen edges */
    }

    .exposure-header h2, .exposure-header p, .exposure-type h3 {
        margin-left: 10px;
        margin-right: 10px; /* Slight horizontal padding for headers and subheaders */
    }

    .marketing-exposure {
        padding: 20px; /* Increased padding for better spacing on mobile */
    }
}

/* Get in Touch Section Styles */
.get-in-touch {
    position: relative;
    background-image: url('images/get-in-touch.jpg');
    background-attachment: fixed; /* Creates the parallax effect */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 500px; /* Adjust the height as needed */
}

.get-in-touch .overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 90%; /* Responsive width */
    max-width: 600px; /* Maximum width */
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

.get-in-touch h2 {
    margin-bottom: 20px;
    font-size: 32px;
    color: white;
}

.get-in-touch .expanded-text {
    margin-bottom: 30px;
    font-size: 20px; /* Slightly larger font for emphasis */
    line-height: 1.6;
    color: white; /* Ensures paragraph text is white */
    max-width: 80%; /* Adjusting width for better reading */
    margin: auto; /* Ensures it is centered properly */
    margin-bottom: 30px;
}

.get-in-touch button {
    background-color: orange;
    border: none;
    padding: 12px 25px;
    font-size: 18px;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.get-in-touch button:hover {
    background-color: #333; /* Darker shade for hover effect */
}

/* Responsive Adjustments for smaller devices */
@media (max-width: 768px) {
    .get-in-touch {
        background-attachment: scroll; /* Fixes background for better performance on mobile */
    }
    .get-in-touch .overlay-content {
        padding: 15px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    }
}


/* Fix Footer Bottom Alignment */
.footer-bottom {
    display: flex;
    flex-direction: column; /* Stack elements for better mobile view */
    align-items: center; /* Fully center the content */
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 15px 0; /* Adds spacing for better separation */
}

/* Ensure text is centered */
.footer-bottom p {
    margin: 5px 0; /* Adds slight space between lines */
    text-align: center;
    font-size: 14px;
}

/* Ensure links are also centered */
.footer-bottom a {
    display: inline-block;
    text-align: center;
    font-weight: bold;
}

/* Main Footer Layout */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
    padding-bottom: 30px;
    border-bottom: 1px solid #ccc;
    margin-top: 30px;
}

/* Footer Sections */
.footer-about,
.footer-info,
.footer-newsletter {
    flex: 1;
    padding: 15px;
    min-width: 280px; /* Prevents elements from shrinking too much */
}

/* Added Margin Left for Better Spacing */
.footer-about {
    margin-left: 10px;
}

.footer-info {
    margin-left: 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-about h3, 
.footer-info h4,
.footer-newsletter h4 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-about p,
.footer-info p,
.footer-newsletter p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* Newsletter Form */
.footer-newsletter form {
    margin-top: 15px;
}

.footer-newsletter input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Align checkbox with text */
/* Align checkbox with text properly */
.privacy-check {
    display: flex;
    align-items: center; /* Ensures proper alignment */
    font-size: 12px;
    color: #777;
    gap: 5px;
    margin-bottom: 10px;
    flex-wrap: nowrap; /* Prevents wrapping issues */
}

/* Ensure checkbox is properly aligned */
.privacy-check input {
    margin: 0;
    flex-shrink: 0; /* Prevents the checkbox from resizing */
    width: 14px; /* Adjust checkbox size */
    height: 14px;
}

/* Proper spacing between text and checkbox */
.privacy-check label {
    font-size: 12px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    white-space: nowrap; /* Prevents text from breaking into multiple lines */
}

/* Style the Privacy Policy link */
.privacy-check a {
    color: #000;
    text-decoration: underline;
    margin-left: 3px;
}

/* Responsive Fix for Mobile */
@media (max-width: 768px) {
    .privacy-check {
        justify-content: center; /* Centers checkbox and text */
        flex-direction: row; /* Ensures checkbox is aligned horizontally */
    }

    .privacy-check input {
        margin-right: 5px; /* Adds spacing between checkbox and text */
    }
}

/* Subscribe Button */
.footer-newsletter button {
    width: 100%;
    background-color: black;
    color: white;
    padding: 12px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.footer-newsletter button:hover {
    background-color: #444;
}

/* Bottom Footer */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap;
}

.footer-bottom p {
    flex: 1;
    text-align: center;
}

.footer-bottom a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
}

.footer-bottom a:hover {
    text-decoration: underline;
}
/* Responsive Footer */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        align-items: center; /* Centers all content */
        justify-content: center;
    }

    .footer-about,
    .footer-info,
    .footer-newsletter {
        padding: 20px 10px;
        margin-left: 0;
        width: 100%; /* Full width alignment */
    }

    /* Center Address & Contact Section Properly */
    .footer-info {
        display: flex;
        flex-direction: column;
        align-items: center; /* Ensures proper centering */
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    .footer-address,
    .footer-contact {
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center; /* Fully center align */
        justify-content: center;
    }

    /* Fully Center Paragraphs */
    .footer-address p,
    .footer-contact p {
        margin: 5px auto; /* Adds even space and centers */
        width: 100%;
        text-align: center; /* Ensures full center alignment */
        display: flex;
        justify-content: center;
    }

    /* Fix Email & Phone Alignment */
    .footer-contact a {
        display: inline-block;
        margin-top: 5px;
        text-align: center;
        word-break: break-word; /* Prevents email from breaking layout */
    }

    /* Center Bottom Footer */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }
}



/* Mobile Optimization */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .main-image-container {
        flex: 1 0 100%;
        height: 300px;
        display: flex;
        justify-content: center;
    }

    .main-image {
        width: 90%;
        height: 100%;
        background-size: cover;
        background-position: center;
    }

    .content {
        flex: 1 0 100%;
        align-items: center;
        text-align: center;
    }

    h2, p {
        text-align: center;
        margin-left: 10px;
        margin-right: 10px;
    }

    /* Adjust Slider for Mobile */
    .slide {
        flex: 0 0 100%;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .slide img {
        margin-bottom: 10px;
    }

    .slide-text {
        text-align: center;
        margin-left: 0;
    }
}
