/* Global Variables & Reset */
:root {
    --primary-color: #B22222;
    /* Industrial Red (Firebrick) - Inspired by logo */
    --secondary-color: #333333;
    /* Dark Grey - Text/Headers */
    --accent-color: #F4F4F4;
    /* Light Grey - Backgrounds */
    --text-color: #555555;
    /* Readable Body Text */
    --white: #ffffff;
    --font-main: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --max-width: 1200px;
    --spacing-section: 80px;
    --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Sections */
section {
    padding: var(--spacing-section) 0;
    scroll-margin-top: 80px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--secondary-color);
    text-decoration: none;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
#home {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
    /* Offset for fixed header */
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

.btn:hover {
    background-color: #901B1B;
    /* Darker Red */
}

/* About Section */
#about {
    background-color: var(--white);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
    min-width: 300px;
    font-size: 1.1rem;
    text-align: justify;
}

.about-text p {
    margin-bottom: 20px;
}

/* Services Section */
#services {
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.service-icon-img {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Masking logic removed as we now use a pre-colored PNG */

.service-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* Clients Section */
#clients {
    background-color: var(--accent-color);
}

#clients .clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: center;
}

.client-logo-placeholder {
    font-weight: bold;
    color: #888;
    font-size: 1.2rem;
    padding: 10px 20px;
    border: 2px dashed #ddd;
    border-radius: 8px;
}


/* Gallery Section */
#gallery {
    background-color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Contact Section */
#contact {
    background-color: var(--secondary-color);
    color: var(--white);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3,
.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--white);
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

.contact-item {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.contact-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Footer */
footer {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Hide for now, easy mobile menu later */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hamburger {
        display: block;
    }

    .contact-container {
        flex-direction: column;
    }
}

/* Fixed Clients Ticker */
body {
    padding-bottom: 80px;
    /* Space for the fixed footer */
}

.clients-ticker-wrap {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 70px;
    /* Reduced height for bottom bar */
    display: flex;
    align-items: center;
    z-index: 999;
}

.clients-ticker {
    display: flex;
    animation: ticker 40s linear infinite;
    width: max-content;
}

.ticker-item {
    flex-shrink: 0;
    padding: 0 40px;
    font-weight: bold;
    color: #888;
    font-size: 1.1rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Removed dashed border placeholder style */
    /* border: 2px dashed #ddd; */
    border-radius: 8px;
    margin: 0 10px;
    /* padding: 10px 20px; */
    height: 100%;
}

.ticker-item img {
    height: 50px;
    width: auto;
    object-fit: contain;
    /* mix-blend-mode: multiply; */
    /* Helps if logos have white bg - disabled for transparent pngs */
}

.ticker-text {
    flex-shrink: 0;
    padding: 0 40px;
    font-weight: 900;
    color: var(--primary-color);
    font-size: 1.2rem;
    text-transform: uppercase;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.clients-ticker:hover {
    animation-play-state: paused;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Move half the width (since we doubled content) */
    }
}

@media (max-width: 768px) {
    section {
        padding: 40px 0;
        /* Reduced from 80px */
        scroll-margin-top: 90px;
        /* Ensures titles aren't hidden behind the fixed header */
    }

    #home {
        padding-top: 100px;
        /* Adjust for fixed header */
    }

    .section-title {
        margin-bottom: 30px;
        /* Reduced from 50px */
    }

    .nav-links {
        display: none;
    }


}

/* --- Scroll Animations --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for cards (optional efficient implementation) */
.service-card:nth-child(2) {
    transition-delay: 0.1s;
}

.service-card:nth-child(3) {
    transition-delay: 0.2s;
}

/* Enhanced Hover Effects */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(178, 34, 34, 0.2);
    /* Reddish shadow */
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.btn-cta {
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.btn-cta:hover {
    transform: scale(1.05);
}