/* Variables */
:root {
    --primary-green: #005c3c;
    /* Deep Professional Green */
    --accent-green: #008f5d;
    /* Vibrancy */
    --primary-orange: #ff6f00;
    /* Energetic Orange */
    --gradient-green: linear-gradient(135deg, #004d32 0%, #008f5d 100%);
    --gradient-orange: linear-gradient(135deg, #ff8f00 0%, #ff6f00 100%);

    --text-dark: #111827;
    --text-muted: #4b5563;
    --text-light: #f3f4f6;

    --bg-light: #ffffff;
    --bg-off-white: #f9fafb;

    --white: #ffffff;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Roboto', sans-serif;

    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 18px;
    /* Increased base size from 16px */
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-off-white);
    line-height: 1.8;
    /* Slightly increased for better readability */
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 25px;
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: 100px 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: var(--gradient-orange);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 111, 0, 0.4);
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.top-bar {
    background: var(--primary-green);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.top-bar-container {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    align-items: center;
}

.top-btn-call {
    color: var(--white) !important;
    text-decoration: none;
    transition: var(--transition);
}

.top-bar span {
    display: inline-block;
    opacity: 0.9;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    height: 90px;
}

.logo img {
    height: 75px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.05rem;
    /* Slightly increased */
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-orange);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-orange);
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-green);
}

/* Hero Section */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    /* Borewell Rig Image - Updated to .webp as per user update */
    background-image: url('../images/hero-final.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: var(--white);
    margin-bottom: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Stronger gradient for better text readability on complex background */
    background: linear-gradient(to right, rgba(0, 92, 60, 0.85), rgba(0, 0, 0, 0.4));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding-top: 20px;
}

.hero-logo-large img {
    height: 120px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: inline-block;
    margin-bottom: 30px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero h1 span {
    display: block;
    font-size: 2.2rem;
    font-weight: 400;
    margin-top: 10px;
    color: #ffd180;
    /* Light orange tint */
}

/* Page Banner (For secondary pages) */
.page-banner {
    background: var(--gradient-green);
    padding: 100px 0 60px;
    color: var(--white);
    text-align: center;
}

.page-banner h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
}

.page-banner p {
    opacity: 0.95;
    font-size: 1.25rem;
    /* Increased */
    margin-top: 15px;
}

/* Info Cards Section - Floating Overlap */
.info-cards {
    position: relative;
    z-index: 10;
    margin-top: 40px;
    /* Changed from -80px to create space */
    margin-bottom: 60px;
}

.cards-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.card {
    padding: 50px 30px;
    text-align: center;
    transition: var(--transition);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    z-index: 2;
}

.card-orange {
    background: var(--gradient-orange);
    color: var(--white);
}

.card-green {
    background: var(--gradient-green);
    color: var(--white);
}

.card .icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    display: inline-block;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card p {
    font-size: 1rem;
    color: #1a1a1a;
    /* Darker for better contrast on orange/green backgrounds */
    font-weight: 500;
}

/* About Section */
.about {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.about h4 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary-green);
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.about p {
    margin-bottom: 25px;
    font-size: 1.15rem;
    /* Increased */
    color: var(--text-muted);
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--hover-shadow);
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    z-index: 1;
}

/* Stats Section */
.stats {
    background: linear-gradient(rgba(0, 92, 60, 0.85), rgba(0, 92, 60, 0.85)), url('../images/1.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 0;
    color: var(--white);
    text-align: center;
    margin: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.stat-item p {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    opacity: 0.9;
}

/* Services / Projects Section */
.services {
    background-color: var(--bg-off-white);
}

.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 70px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background-color: var(--primary-orange);
    border-radius: 3px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.service-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 35px;
    position: relative;
}

.service-content h3 {
    font-size: 1.6rem;
    /* Increased */
    margin-bottom: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.service-content p {
    font-size: 1.1rem;
    /* Increased */
    line-height: 1.8;
    color: var(--text-muted);
}

/* Reviews - Testimonials */
.reviews {
    background-color: var(--white);
    padding-bottom: 120px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.review-card {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    padding: 40px;
    border-radius: 20px;
    box-shadow: -5px -5px 10px #ffffff, 5px 5px 15px #d1d9e6;
    text-align: center;
    border-top: 5px solid var(--primary-orange);
}

.stars {
    color: #ffd700;
    margin: 20px 0;
    font-size: 1.2rem;
}

.review-card p {
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.review-card h4 {
    font-weight: 700;
    margin-top: 10px;
    color: var(--primary-green);
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: var(--text-light);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--white);
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-orange);
}

.footer-col p {
    color: #cecece;
    /* Lighter for better contrast on dark background */
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #a0a0a0;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-orange);
    padding-left: 8px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #a0a0a0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    /* Increased */
}

.contact-info i {
    color: var(--primary-orange);
}

.map-link {
    display: inline-block;
    margin-top: 15px;
    background: #c2410c;
    /* Darker orange for better contrast - AAA compliant with white */
    color: var(--white);
    padding: 8px 20px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: var(--transition);
}

.map-link:hover {
    background: #e65100;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    color: #cecece;
    /* Increased contrast from #666 */
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .cards-wrapper {
        grid-template-columns: 1fr;
    }

    .card {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 30px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .services-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
    }

    .section-padding {
        padding: 60px 0;
    }

    .info-cards {
        margin-top: 30px;
        margin-bottom: 30px;
    }

    /* Mobile Top Bar Buttons */
    .top-bar {
        padding: 10px 0;
    }

    .top-bar-container {
        flex-direction: row;
        gap: 5px;
        justify-content: center;
        align-items: center;
    }

    .top-btn-call {
        background: rgba(255, 255, 255, 0.1);
        padding: 6px 10px;
        border-radius: 4px;
        text-align: center;
        font-weight: 500;
        font-size: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        white-space: nowrap;
    }

    .top-btn-call span {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .top-btn-call:active {
        background: rgba(255, 255, 255, 0.3);
    }
}

@media (max-width: 576px) {

    .gallery-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* Gallery & Video Grid Reusable Styles */
.gallery-grid,
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Image Aspect Ratio Enforcement (16:9) */
.gallery-item {
    aspect-ratio: 16 / 9;
    width: 100%;
    position: relative;
    overflow: hidden;
    height: auto !important;
}

/* Video Aspect Ratio (Independent) */
.video-card .video-container {
    aspect-ratio: 16 / 9;
    /* Default to 16:9 but modifiable */
    width: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Overrides for specific height issues if any */
.gallery-item {
    height: auto !important;
    /* Override inline styles if any persist temporarily */
}

/* Header Action Buttons */
.nav-links li.action-btn {
    display: flex;
    align-items: center;
}

.nav-links li.action-btn a {
    padding: 8px 15px;
    border-radius: 5px;
    color: var(--white) !important;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.nav-links li.action-btn a::after {
    display: none;
}

.btn-call {
    background: var(--primary-green);
}

.btn-whatsapp {
    background: #25D366;
    /* WhatsApp Green */
}

.btn-call:hover,
.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    filter: brightness(1.1);
}

@media (max-width: 1024px) {
    .nav-links {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .nav-links li.action-btn {
        width: 100%;
    }

    .nav-links li.action-btn a {
        justify-content: center;
        width: 100%;
        margin-top: 10px;
    }
}