/* --- Global Styles & Theme Colors --- */
:root {
    --navy: #001f3f;
    --red: #D90429;      /* Strong accent red */
    --yellow: #FFC300;   /* Bright accent yellow */
    --white: #FFFFFF;
    --light-gray: #f4f4f4;
    --text-dark: #333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--white);
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    color: var(--navy);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
.sub-heading { margin-top: 2.5rem; }

p {
    margin-bottom: 1rem;
}

/* --- Header & Navigation --- */
header {
    background-color: var(--navy);
    color: var(--white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.logo img {
    height: 50px; /* Adjust as needed */
    width: auto;
}

/* Bouncing Logo Animation */
.bouncing-logo {
    animation: bounceLogo 2.5s infinite ease-in-out;
}

@keyframes bounceLogo {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

nav ul {
    list-style: none;
    display: flex;
}

nav li {
    margin-left: 1.5rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
    color: var(--yellow);
    border-bottom: 2px solid var(--yellow);
}

/* Animated "Contact Us" Button */
.cta-button {
    background-color: var(--red);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block; /* Added for transform */
}

.cta-button:hover {
    background-color: var(--yellow);
    color: var(--navy);
    transform: scale(1.05) rotate(-2deg); /* Fun animation */
}

/* --- Hero Section (Home Page) --- */
.hero {
    background: linear-gradient(rgba(0, 31, 63, 0.8), rgba(0, 31, 63, 0.8)), url('https://via.placeholder.com/1500x600.png?text=Industrial+Pumps') no-repeat center center/cover;
    color: var(--white);
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
}

.hero-content {
    animation: fadeInDown 1s ease-out;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.btn-main {
    background-color: var(--red);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-main:hover {
    background-color: var(--yellow);
    color: var(--navy);
    transform: scale(1.05);
}

/* --- Animated Item Showcase (All Pages) --- */
.item-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.item-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    /* Animation */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease-out forwards;
}
/* Staggered animation */
.item-card:nth-child(1) { animation-delay: 0.1s; }
.item-card:nth-child(2) { animation-delay: 0.2s; }
.item-card:nth-child(3) { animation-delay: 0.3s; }
.item-card:nth-child(4) { animation-delay: 0.4s; }


.item-placeholder {
    width: 100%;
    height: 180px;
    background-color: var(--light-gray);
    border: 3px dashed var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--navy);
    font-size: 1.2rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    /* Placeholder Animation */
    animation: pulseBorder 2s infinite alternate;
}

@keyframes pulseBorder {
    from {
        border-color: var(--navy);
    }
    to {
        border-color: var(--red);
    }
}

/* --- Services Page List --- */
.services-list {
    list-style: none;
    margin-top: 2rem;
}

.services-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
}

.services-list i {
    font-size: 2.5rem;
    color: var(--red);
    margin-right: 1.5rem;
    width: 50px;
    text-align: center;
}

/* --- FAQ Page Accordion --- */
.faq-container {
    max-width: 800px;
    margin: 2rem auto;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 1rem;
}

.faq-question {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--navy);
    padding: 1rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--red);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-left: 1rem;
}

.faq-answer p {
    padding: 0.5rem 0 1.5rem 0;
}

/* --- Contact Page --- */
.contact-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-info, .map-container {
    flex: 1;
    min-width: 300px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--red);
    width: 40px;
    text-align: center;
    margin-right: 1rem;
}

.info-item a {
    color: var(--red);
    text-decoration: none;
    font-weight: bold;
}

.info-item a:hover {
    text-decoration: underline;
}

.map-container iframe {
    border-radius: 8px;
    border: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- Footer --- */
footer {
    background-color: var(--navy);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

/* --- Utility Animations --- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- Responsive Design --- */
@media (max-width: 900px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }

    nav {
        margin: 1rem 0;
        width: 100%;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    nav li {
        margin: 0.5rem 0;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .hero {
        height: 50vh;
    }
    
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .services-list li {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .services-list i {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .contact-container {
        flex-direction: column;
    }
}