/* --- Global Reset & Base Styles --- */
html {
scroll-behavior: smooth;
}

body {
margin: 0;
padding: 0;
overflow-x: hidden; /* Prevents side-scrolling on mobile */
}

/* --- Typography --- */
.h1 {
text-align: center;
font-size: 2rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 2px;
}

/* Scale up H1 for tablets and desktops */
@media (min-width: 768px) {
.h1 {
font-size: 2.5rem;
}
}

/* --- Animations --- */
.title {
animation: fadeInAnimation ease 3s;
animation-iteration-count: 1;
animation-fill-mode: forwards;
}

@keyframes fadeInAnimation {
0% { opacity: 0; transform: translateY(20px); }
100% { opacity: 1; transform: translateY(0); }
}

/* --- Buttons --- */
.btn {
background-color: rgb(224, 76, 23);
transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
border: none;
}

.btn:hover {
background-color: rgb(180, 50, 10);
transform: scale(1.05);
box-shadow: 0 4px 15px rgba(224, 76, 23, 0.4);
}

/* --- Navigation Custom Links --- */
.nav-item {
color: #4b5563; /* text-gray-600 */
font-size: 1.1rem;
font-weight: 600;
position: relative;
transition: 0.3s;
text-decoration: none;
}

.nav-item:after {
content: "";
position: absolute;
background-color: rgb(211, 61, 10);
height: 3px;
width: 0;
left: 0;
bottom: -5px;
transition: width 0.3s ease;
}

.nav-item:hover {
color: rgb(211, 60, 10);
}

.nav-item:hover:after {
width: 100%;
}

/* --- Service Images --- */
.imag {
width: 100%;
height: 250px; /* Shorter height for mobile screens */
object-fit: cover;
transition: transform 0.3s ease, box-shadow 0.3s ease;
border-radius: 0.5rem;
}

/* Make images taller on larger screens */
@media (min-width: 768px) {
.imag {
height: 350px;
}
}

.imag:hover {
transform: scale(1.03);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* --- Seamless Logo Slider --- */
.logos-container {
width: 100%;
overflow: hidden;
position: relative;
/* Soft fade on left and right edges */
mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
-webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logos-track {
display: flex;
width: calc(200px * 24); /* 200px (width) * 24 (total number of logos including duplicates) */
animation: scrollLogos 35s linear infinite;
}

.logo-item {
width: 200px;
height: 100px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
padding: 0 20px;
}

.logo-item img {
max-width: 100%;
max-height: 80px;
width: auto;
height: auto;
object-fit: contain;
filter: grayscale(100%);
opacity: 0.6;
transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.logo-item:hover img {
filter: grayscale(0%);
opacity: 1;
transform: scale(1.1);
}

@keyframes scrollLogos {
0% { transform: translateX(0); }
100% { transform: translateX(calc(-200px * 12)); } /* Move exactly halfway (1 set of logos) */
}

/* Pause slider when a user hovers over it */
.logos-container:hover .logos-track {
animation-play-state: paused;
}