/* css/style.css */
:root {
    --primary: #d4af37;
    --secondary: #006847;
    --dark: #1a2b3c;
    --light: #f8f9fa;
    --accent: #c53030;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    margin-bottom: 20px;
    color: var(--dark);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary);
}

p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: var(--dark);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #b8941f;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: #005238;
}

/* Header Styles */
header {
    background-color: rgba(26, 43, 60, 0.95);
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
}

.logo-text span {
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary);
}

.mobile-menu {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(26, 43, 60, 0.8), rgba(26, 43, 60, 0.8)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: white;
    margin-bottom: 20px;
    font-size: 3.5rem;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

/* About Section */
.about {
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Services Section */
.services {
    background-color: #f0f4f8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    color: white;
    font-size: 2.5rem;
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    margin-bottom: 15px;
    color: var(--dark);
}

/* Equipment Section */
.equipment {
    background-color: white;
}

.equipment-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.equipment-list {
    list-style: none;
}

.equipment-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.equipment-list li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* HSE Section */
.hse {
    background-color: #f0f4f8;
}

.hse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.hse-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding: 40px 30px;
}

.hse-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.hse-icon {
    height: 80px;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    color: white;
    font-size: 2.5rem;
    border-radius: 50%;
    margin: 0 auto 25px;
}

/* Stats Section */
.stats {
    background: linear-gradient(rgba(26, 43, 60, 0.9), rgba(26, 43, 60, 0.9)), url('../images/stats-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.stats h2 {
    color: white;
}

.stats h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-item {
    padding: 30px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-text {
    font-size: 1.2rem;
}

/* Projects Section */
.projects {
    background-color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.project-image {
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 30px;
}

.project-category {
    display: inline-block;
    background: var(--primary);
    color: var(--dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Contact Section */
.contact {
    background-color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    background: var(--primary);
    color: var(--dark);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h3 {
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.contact-form {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Clients Section */
.clients {
    background-color: #f0f4f8;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.client-logo {
    background: white;
    border-radius: 8px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    height: 120px;
}

.client-logo:hover {
    transform: translateY(-5px);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.footer-column p, .footer-column a {
    color: #b0b7c3;
    margin-bottom: 15px;
    display: block;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    color: var(--dark);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #b0b7c3;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .about-content, .equipment-content, .contact-content {
        grid-template-columns: 1fr;
    }
    
    .about-image, .equipment-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--dark);
        flex-direction: column;
        padding: 20px;
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .contact-form {
        padding: 20px;
    }
}



/* Projects Filter */
.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--dark);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: var(--dark);
}

/* Project Cards */
.project-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.project-details p {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.text-center {
    text-align: center;
}

/* Project Filter JS */
.project-card {
    display: block;
}

.project-card.hidden {
    display: none;
}



/* Temporary placeholders for missing images */
.showcase-image, .grid-item {
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: 600;
}


/* ===== NEW HOMEPAGE STYLES - ADD THESE TO EXISTING CSS ===== */

/* Featured Projects - Compact Version */
.featured-projects {
    background: white;
    padding: 80px 0;
}

.project-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.showcase-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    border: 1px solid #f0f0f0;
}

.showcase-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.showcase-image {
    height: 220px;
    overflow: hidden;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.showcase-item:hover .showcase-image img {
    transform: scale(1.05);
}

.showcase-content {
    padding: 25px;
}

.showcase-content h3 {
    color: var(--secondary);
    margin-bottom: 10px;
    font-size: 1.3rem;
    line-height: 1.3;
}

.project-client {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: block;
}

.project-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.project-scale {
    display: inline-block;
    background: var(--light);
    color: var(--dark);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #e0e0e0;
}

/* Equipment Gallery */
.equipment-gallery {
    background: white;
    padding: 80px 0;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 40px;
}

.grid-item {
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grid-item:hover img {
    transform: scale(1.05);
}

.grid-item-large {
    grid-column: span 2;
    grid-row: span 2;
    height: 415px;
}

/* Client Section */
.client-section {
    background: #f8f9fa;
    padding: 60px 0;
    text-align: center;
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.client-logo {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.client-logo:hover {
    transform: translateY(-5px);
}

.client-logo div {
    height: 60px;
    width: 120px;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: 600;
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .project-showcase {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .showcase-image {
        height: 200px;
    }
    
    .showcase-content {
        padding: 20px;
    }
    
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-item-large {
        grid-column: span 2;
        grid-row: span 1;
        height: 200px;
    }
    
    .client-logos {
        gap: 20px;
    }
    
    .client-logo {
        padding: 15px;
    }
    
    .client-logo div {
        height: 40px;
        width: 100px;
    }
}

@media (max-width: 576px) {
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    .client-logos {
        gap: 15px;
    }
    
    .client-logo {
        padding: 10px;
    }
    
    .client-logo div {
        height: 35px;
        width: 80px;
        font-size: 0.8rem;
    }
}


/* Mobile Responsive Images */
@media (max-width: 768px) {
    /* Fix equipment gallery */
    .image-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .grid-item,
    .grid-item-large {
        grid-column: 1;
        grid-row: auto;
        height: 250px;
    }
    
    /* Fix project showcase */
    .showcase-image {
        height: 200px;
    }
    
    /* Ensure all images are contained */
    img {
        max-width: 100%;
        height: auto;
        object-fit: cover;
    }
    
    /* Fix specific containers */
    .about-image,
    .showcase-image,
    .grid-item {
        overflow: hidden;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .grid-item,
    .grid-item-large {
        height: 200px;
    }
    
    .showcase-image {
        height: 180px;
    }
}


/* Client Logos with Company Names */
.client-section {
    background: #f8f9fa;
    padding: 60px 0;
    text-align: center;
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.client-logo {
    background: white;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    min-width: 180px;
}

.client-logo:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.client-logo-img {
    height: 60px;
    width: auto;
    max-width: 120px;
    margin-bottom: 15px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.client-logo:hover .client-logo-img {
    filter: grayscale(0%);
}

.client-name {
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .client-logos {
        gap: 20px;
    }
    
    .client-logo {
        padding: 20px 15px;
        min-width: 140px;
    }
    
    .client-logo-img {
        height: 50px;
        max-width: 100px;
        margin-bottom: 10px;
    }
    
    .client-name {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .client-logos {
        gap: 15px;
    }
    
    .client-logo {
        padding: 15px 10px;
        min-width: 120px;
    }
    
    .client-logo-img {
        height: 40px;
        max-width: 80px;
    }
}