@charset "utf-8";
body {
	font-family: "Lato", sans-serif;
  	font-weight: 600;
	background-color: #FFFFFF;
	padding: 0;
	margin: 0;
}

header {
    position: relative;
    z-index: 10;
    height: 80px;
    padding: 0px 30px;
    box-sizing: border-box;
    margin-bottom: 0; /* REMOVE this extra space, handle content spacing with h1 */
}

nav {
    /* Align nav with header padding (30px from right edge) */
    margin: 35px 0; /* Keep vertical margin, remove horizontal margin */
    /* REMOVE THIS LINE: width: 10%; */ /* Let flexbox decide width based on content */
}

.navi {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 20px;
	text-align: center;
	justify-content: flex-end;
	font-size: 20px;
}

li a, .dropbtn {
	display: inline-block;
	color: #FFFFFF;
	text-decoration: none;
	text-align: center;
	padding: 14px 16px;
}

li a:hover, .dropdown:hover .dropbtn {
	background-color: #1BC6CE;
}

li.dropdown {
    display: inline-block;
}

.dropdown-content {
	display: none;
	position: absolute;
	z-index: 2;
	background-color:#1BC6CE;
	min-width: 160px;
}

.dropdown-content a {
	color:#FFFFFF;
	display: block;
	text-decoration: none;
	text-align: left;
	padding: 12px 16px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a:hover {
	background-color: #FFFFFF;
	color: #1BC6CE;
}

#logo {
    /* Align logo with header padding (30px from left edge) */
    margin: 35px 0; /* Keep vertical margin, remove horizontal margin */
    width: 280px;
    height: 45px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center; /* NEW: Helps vertically center logo and nav items */
    z-index: 2; /* This z-index is within the header, it's fine */
}

.hero {
    position: relative; /* Keep relative for scrolling */
    z-index: -1; /* CRITICAL: Keeps it behind other elements (like header) */
    width: 99vw;
    height: 95vh; /* Changed from 95vh to 100vh for full viewport height */
    overflow: hidden;
    margin-top: -80px; /* CRITICAL: Pulls the hero UP by the height of your header. */
                        /* Adjust this value to match the exact 'height' of your header. */
}

/* Images inside the hero */
.hero img {
	position: absolute;
	width: 100%;
	height: 100%;
	object-fit: cover;
    opacity: 0; /* Hidden by default for animation */
    animation: fadeLoop 15s linear infinite; /* The animation itself */
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 100;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #000000;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}


/* The @keyframes fadeLoop */
@keyframes fadeLoop {
    0%   { opacity: 0; }
    13.33% { opacity: 1; } /* Image becomes fully visible */
    33.33% { opacity: 1; } /* Stays visible for a duration */
    46.66% { opacity: 0; } /* Fades out */
    100% { opacity: 0; }  /* Remains hidden until next cycle */
}

/* Animation delays for each image */
.hero .img-ani-1 { animation-delay: 0s; }
.hero .img-ani-2 { animation-delay: 5s; }
.hero .img-ani-3 { animation-delay: 10s; }

/* --- Footer Styling --- */
footer {
    background-color: #000000;
    color: #FFFFFF;
    padding: 40px 35px 20px; /* Overall footer padding */
    text-align: center;
    display: flex;
    flex-direction: column; /* Stacks footer-text and copyright vertically */
    align-items: center; /* Centers items horizontally */
    gap: 20px; /* Space between main footer sections */
}

.footer-text {
    display: flex;
    justify-content: space-between; /* Pushes left nav and right contacts apart */
    align-items: flex-start; /* Aligns content to the top within this container */
    flex-wrap: wrap; /* Allows sections to wrap on smaller screens */
    width: 100%;
    padding: 0px 35px;
}

/* --- Footer Navigation (Left Column - Make Closer) --- */
.nav-footer {
    /* This class is on the <ul> in your HTML. */
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column; /* CRITICAL: Stacks links vertically */
    gap: 0px; /* CRITICAL: Reduce vertical space BETWEEN links */
    text-align: left; /* Align text to the left */
}

.nav-footer li {
    margin-bottom: 0; /* Ensures no extra margin pushes list items apart */
}

.nav-footer li a { /* Target the <a> links inside .nav-footer */
    display: block; /* Make links take full available width for easier clicking */
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px; /* CRITICAL: Adjust for desired smaller font size */
    padding: 2px 0; /* CRITICAL: Adjust for LESS VERTICAL PADDING around the text */
    line-height: 1.5; /* CRITICAL: Adjust line height if text still feels too spaced vertically */
    text-align: left;
}

.nav-footer li a:hover {
    color: #1BC6CE;
    background-color: transparent; /* No background on hover */
}

/* --- Footer Contacts Alignment (Right Column - Closer and Aligned with Icons) --- */
.footer-contacts {
    display: flex;
    flex-direction: column; /* Stacks "CONTACTS" title and contact lines vertically */
    align-items: flex-start; /* Align contents to the left within its column */
    gap: 5px; /* Space between "CONTACTS" title and the first contact line */
}

.contact-line:hover {
	color: #1BC6CE;
}

.footer-contacts p { /* Styling for the "CONTACTS" title */
    margin: 0;
    font-weight: bold;
    color: #FFFFFF;
}

/* Style for each individual contact line (icon + text) */
.contact-line {
    display: flex; /* CRITICAL: Makes icon and text align horizontally */
    align-items: center; /* CRITICAL: Vertically center the icon and text */
    gap: 8px; /* Space between the icon and the text */
    color: #FFFFFF; /* Color for the contact text */
    font-size: 16px; /* Adjust font size for contact text */
}

.contact-line img {
    height: 40px; /* Adjust icon size as needed */
    width: auto;
    flex-shrink: 0; /* Prevents icon from shrinking on smaller screens */
}

.contact-line span {
    margin: 0; /* Remove any default span margins */
    padding: 0; /* Remove any default span padding */
}

.copyright {
	text-align: center;
	padding: 5px 20px 10px 10px;
	color: #FFFFFF; /* Example: Lighter color for copyright */
}

h1 {
	font-size: 70px;
	margin: 150px 625px 50px;
	color: #FFFFFF;
	padding: 20px 40px;
	background-color: #1BC6CE;
	text-align: center;
}

/* --- New Styles for Image Overlay --- */

/* The wrapper for each image and its overlay */
.service-item {
    position: relative; /* CRITICAL: Allows absolute positioning of the overlay inside */
    width: 32.5%; /* This should control the width of each image container */
    overflow: hidden; /* Ensures the overlay stays within the image bounds */
    cursor: pointer; /* Changes cursor to pointer on hover */
}

/* Ensure the image fills its new parent container */
.service-item img {
    display: block;
    width: 100%; /* Image fills the .service-item wrapper */
    height: auto; /* Maintain aspect ratio */
}

/* The overlay itself */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* CRITICAL CHANGE: Start with the black overlay visible */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black initially */
    /* REMOVE THIS LINE: opacity: 0; */ 

    /* CRITICAL CHANGE: Transition the background color, not the entire element's opacity */
    transition: background-color 0.3s ease; 

    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Pushes content to the bottom */
    align-items: flex-start; /* Aligns content to the left */
    padding: 20px;
    box-sizing: border-box;
}

/* Show the overlay on hover over the service item */
.service-item:hover .image-overlay {
    /* CRITICAL CHANGE: Make the background transparent on hover */
    background-color: transparent; 
    /* REMOVE THIS LINE: opacity: 1; */
}

/* Style for the text inside the overlay */
.overlay-text-content {
    color: #FFFFFF; /* White text color */
    font-size: 40px; /* Adjust font size as needed */
    font-weight: bold; /* Make text bold */
    margin: 0; /* Remove default paragraph margins */
    text-align: left; /* Ensure text is left-aligned within its own box */
    line-height: 1.2; /* Adjust line height for better spacing */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7); /* Optional: Adds a subtle shadow for readability */
}

/* Ensure your service-type containers are still flex to arrange the .service-item wrappers */
.service-type1 {
    display: flex;
    gap: 20px;
    margin: 0px 35px 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.service-type2 {
    display: flex;
    gap: 20px;
    margin: 0px 35px 35px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Make the link container block-level and relative for positioning */
.service-link {
    display: block; /* Ensures the link takes up the full block area */
    position: relative; /* CRITICAL: This allows .image-overlay to be absolutely positioned relative to the link */
    width: 100%; /* Ensures the link covers the full width of its parent (.service-item) */
    height: 100%; /* Ensures the link covers the full height of its parent (.service-item) */
    text-decoration: none; /* Removes the default underline from the link */
    color: inherit; /* Ensures text color within the link is inherited or set by overlay-text-content */
}