/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

html, body {
    height: 100%; /* Ensure the body takes the full height of the viewport */
}


/* N A V   B A R */
/* N A V   B A R */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: rgba(22, 25, 72); /* Semi-transparent dark background */
    color: white;
    z-index: 10; /* Keep it above other elements */
    transition: all 0.5s ease; /* Smooth transition */
    opacity: 0; /* Initially hidden */
    visibility: hidden; /* Initially hidden */
    transform: translateY(-100%); /* Slide it up */
}

/* Logo styling in the navbar */
.navbar-logo img {
    width: 120px;
    height: auto;
    display: block;
} 

/* This ensures that the nav-links are aligned to the right */
.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin-left: auto; /* Push the nav links to the right */
}

.navbar .nav-links li {
    display: inline-block;
}

.navbar .nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.navbar .nav-links li a:hover {
    color: #f9f9f9; /* Slight color change on hover */
}

/* Add margin to the last navigation link (Get in Touch) */
.navbar .nav-links li:last-child {
    margin-right: 25px; /* Adds space between 'Get in Touch' and social media icons */
}

.navbar .social-media {
    display: flex;
    gap: 25px; /* Increase the gap between social icons for uniform spacing */
    align-items: center; /* Center the icons vertically */
    margin-right: 20px; /* Add some space between the last nav link and the social icons */
}

.navbar .social-media img {
    width: 20px;
    height: auto;
    filter: brightness(0) invert(1); /* White icons */
    transition: transform 0.3s ease;
}

.navbar .social-media img:hover {
    transform: scale(1.1); /* Slight zoom on hover */
}

.navbar.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Slide it into view */
}
/* Responsive design for mobile */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 10px 15px;
    }
    
    .navbar .nav-links {
        flex-direction: column;
        gap: 15px;
        margin-top: 10px;
        margin-left: 0; /* Ensure links are centered on mobile */
    }
    
    .navbar-logo img {
        width: 100px; /* Smaller logo for mobile */
    }
    
    .navbar .social-media img {
        width: 18px; /* Smaller icons on mobile */
    }
}


/* H E R O */


.hero {
    position: relative;
    height: 100vh; /* Full viewport height */
    width: 100vw; /* Full viewport width */
    overflow: hidden; /* Ensure nothing overflows */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw; /* Ensure full width */
    height: 100vh; /* Ensure full height */
    object-fit: cover; /* Ensures the video covers the whole area */
    transform: translate(-50%, -50%); /* Center the video */
    z-index: -1; /* Keep the video behind content */
}

/* Logo positioning */
.hero-logo {
    position: absolute;
    top: 35%; /* Adjust to fit well within the video */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Perfect centering */
    z-index: 2; /* Ensure it stays above the video */
}

.hero-logo img {
    width: 400px; /* Adjusted to a smaller logo size */
}

.hero h1 {
    font-size: 45px;
    margin-bottom: 20px;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: lighter;
}

.cta-btn {
    padding: 12px 25px;
    background-color: #161948;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-btn:hover {
    background-color: #444a8b;
}



/* A B O U T  - M E */



.about-me {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto; /* Center the section */
    padding: 60px 20px;
    background-color: #f9f9f9; /* Optional: light background to differentiate the section */
    border-radius: 10px; /* Smooth rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for a clean look */
    gap: 30px; /* Space between text and image */
    margin-top: 20px;
}

/* Text content inside About Me section */
.about-me-text {
    flex: 1; /* Take up available space */
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.about-me-text h2 {
    font-size: 36px;
    color: #161948;
    margin-bottom: 20px;
}

.about-me-text p {
    margin-bottom: 20px;
}

/* Image styling for About Me */
.about-me img {
    max-width: 300px; /* Adjust width as needed */
    width: 100%;
    height: auto;
    border-radius: 10px; /* Smooth rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Light shadow for better definition */
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-me {
        flex-direction: column; /* Stack text and image vertically on smaller screens */
        text-align: center; /* Center align text */
    }

    .about-me img {
        max-width: 100%; /* Full width image on mobile */
        margin-bottom: 20px; /* Add space between image and text */
    }
}

/* Featured Projects Section (Campaign Highlights - Masonry Grid Layout) */
.masonry-grid {
    max-width: 1200px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Create a responsive grid */
    gap: 20px;
}

.grid-item {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Video Styling */
.video-item iframe {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}
.video-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-10px);
}

/* Service Item Styling */
.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-item h2 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight:bold;
    color: #161948;

}

.service-item p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.service-item p em {
    font-weight: bold;
    color: #444a8b;
}

.service-icon {
    width: 200px;
    height: 200px;
    margin-bottom: 10px;
    margin-top: 50px;
}
.service-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-10px);
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.05); /* Subtle overlay */
    opacity: 0;
    transition: opacity 0.3s ease;
}



.service-item:hover h2, .service-item:hover p {
    color: #191b36; /* Change text color on hover */
}

/* Call-to-Action Section */
.contact-cta {
    text-align: center;
    padding: 50px 0;
    background-color: #f9f9f9;
}

.contact-cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.contact-cta .cta-btn {
    padding: 12px 30px;
    font-size: 18px;
    border-radius: 5px;
}

.cta-btn-small {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background-color: #161948;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.cta-btn-small:hover {
    background-color: #444a8b;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    background-color: #dedede;
    font-size: 14px;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-list {
        grid-template-columns: 1fr; /* Stack services on small screens */
    }

    .project-grid {
        grid-template-columns: 1fr; /* Stack projects on small screens */
    }

    .logo img {
        width: 180px; /* Smaller logo for mobile screens */
    }

    .hero h1 {
        font-size: 36px; /* Smaller hero text for mobile */
    }
}




/* Client Logos! */


/* Client Logos Grid */
.client-logo-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    justify-items: center;
    padding: 40px 0;
}

.client-logo img {
    max-width: 150px; /* Control the max size of the logos */
    width: 100%;
    height: auto;
    filter: grayscale(100%); /* Optional: Make logos grayscale for a clean look */
    transition: filter 0.3s ease; /* Smooth hover transition */
}

.client-logo img:hover {
    filter: none; /* Restore original colors on hover */
}
/* Container for logos */
.logo-slider {
    overflow: hidden; /* Hide overflowing logos */
    width: 100%; /* Full-width container */
    margin: 0 auto;
    padding: 20px 0;
    background-color: #f9f9f9;
    position: relative;
}

/* Track that moves the logos */
.logo-track {
    display: flex;
    width: max-content; /* Ensure the width of the track fits all logos */
    animation: scroll 30s linear infinite;
}

/* Individual logo styling */
.client-logo {
    flex: 0 0 150px;
    margin: 0 20px;
}

.client-logo img {
    width: 100%;
    height: auto;
}

/* Keyframes for the smooth scrolling animation */
@keyframes scroll {
    0% {
        transform: translateX(0); /* Start at the beginning */
    }
    100% {
        transform: translateX(-50%); /* Move left until half the content scrolls out */
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .masonry-grid {
        grid-template-columns: 1fr; /* Stack projects and services vertically on small screens */
    }

    .logo img {
        width: 180px; /* Smaller logo for mobile screens */
    }

    .hero h1 {
        font-size: 36px; /* Smaller hero text for mobile */
    }
}


/*Highlights section*/

.highlights-section {
    display: flex;
    justify-content: space-around;
    background-color: #161948; /* Dark blue background */
    padding: 60px 0;
    color: white;
    text-align: center;
}

.highlight {
    max-width: 180px;
    margin: 0 20px;
}

.highlight img {
    width: 60px;
    margin-bottom: 20px;
}

.highlight h3 {
    font-size: 36px;
    margin-bottom: 10px;
}

.highlight p {
    font-size: 16px;
    color: #f0f0f0;
}

/* Add animation to numbers */
@keyframes countUp {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.highlight h3 {
    animation: countUp 1s ease-in-out;
}

/* CAROUSEL */

/* Carousel Container */
.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
    overflow: hidden; /* Hide overflow to simulate a carousel */
    padding-top:60px;
}

/* Carousel Wrapper */
.carousel-wrapper {
    display: flex;
    gap: 20px; /* Space between each item */
    transition: transform 0.5s ease; /* Smooth scroll transition */
    margin-top:10px;
}

/* Carousel Grid Item (Video Styling) */
.grid-item {
    min-width: 33.33%; /* Ensure 3 items fit into the container */
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.video-item iframe {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Carousel Navigation Arrows */
.carousel-navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none; /* Prevent blocking interactions with videos */
}

.carousel-arrow {
    background-color: rgba(22, 25, 72, 0.7);
    color: white;
    border: none;
    font-size: 30px;
    padding: 10px;
    cursor: pointer;
    pointer-events: all; /* Enable interactions */
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.carousel-arrow:hover {
    background-color: rgba(22, 25, 72, 1);
}

/* Image Item Styling */
.image-item img {
    width: 100%; /* Full width of the container */
    border-radius: 10px;
    margin-bottom: 50px;
}

.image-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-10px);
}

/* Responsive design */
@media (max-width: 768px) {
    .grid-item {
        min-width: 100%; /* Show one item at a time on mobile */
    }
}

.scroll-down-arrow {
    position: absolute;
    bottom: 60px;  /* Position the arrow 30px from the bottom */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Center the arrow */
    font-size: 40px; /* Size of the arrow */
    color: white; /* Color of the arrow */
    text-decoration: none; /* Remove underline from the link */
    animation: bounce 2s infinite; /* Add a bounce animation */
    z-index: 2; /* Ensure it's above the video */
}

/* Bounce animation for the arrow */
@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px); /* Moves the arrow down by 10px */
    }
}

/* Make sure arrow changes when hovered */
.scroll-down-arrow:hover {
    color: #f9f9f9;
}