/* --- CSS Variables & Reset --- */
:root {
    --primary-blue: #0a2351;
    --primary-orange: #ff6b00;
    --accent-green: #28a745;
    --text-dark: #333333;
    --text-light: #777777;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* --- Reusable Classes --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--primary-blue); color: var(--white); }
.text-white { color: var(--white); }

.sub-heading {
    color: var(--primary-orange);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.header-line {
    width: 80px;
    height: 4px;
    background: var(--primary-orange);
    margin: 0 auto;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-orange);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #e65a00;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

/* --- Header & Navigation (Sticky & Responsive) --- */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo (Left) */
.logo a {
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo span { color: var(--primary-orange); }
.logo i { color: var(--primary-orange); }

/* Nav Menu (Center) */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-orange);
}

/* Header Right (Call Button & Toggle) */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-call {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-call:hover {
    background-color: var(--primary-orange);
}

.btn-call i { font-size: 1.2rem; }

.menu-toggle {
    display: none; /* Hidden on desktop */
    font-size: 1.8rem;
    color: var(--primary-blue);
    cursor: pointer;
}

/* --- Hero Section (1st) --- */
.hero-section {
    height: 100vh;
    min-height: 600px;
    /* UPDATED BG IMAGE HERE: Gas processing plant at night */
    background: url('../assets/img/hero-img.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    margin-top: 70px; /* Offset for sticky header */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 35, 81, 0.75); /* Blue overlay */
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content h1 span { color: var(--primary-orange); }

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- Who We Are & Why Us Layouts (2nd & 4th) --- */
.two-col-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}

.col-text { flex: 1; }
.col-image { flex: 1; }

.col-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.col-text h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--primary-blue);
}

.col-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

/* Why Us Specific (60% / 40%) */
.split-60-40 .col-text { flex: 60%; }
.split-60-40 .col-image { flex: 40%; }

.image-cover img {
    height: 450px;
    object-fit: cover;
}

.feature-list { list-style: none; margin-top: 30px; }
.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.feature-list i {
    color: var(--primary-orange);
    font-size: 1.3rem;
    margin-top: 3px;
}

/* --- Services Section (3rd - Cards) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-15px);
    border-bottom-color: var(--primary-orange);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 25px;
    display: inline-block;
}
.icon-box.orange { color: var(--primary-orange); }
.icon-box.blue { color: var(--primary-blue); }
.icon-box.green { color: var(--accent-green); }

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

/* --- Contact Section (5th - 80% width) --- */
.contact-container-80 {
    width: 80%; /* Requirement met */
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255,255,255,0.05); /* Subtle background for form area */
    padding: 50px;
    border-radius: 20px;
}

.contact-form .form-group-row {
    display: flex;
    gap: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
    flex: 1;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: rgba(255,255,255,0.9);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-orange);
    background: var(--white);
}

.btn-block { width: 100%; }

/* --- Footer (3 Columns) --- */
footer {
    background: #071a3d; /* Slightly darker than primary blue */
    color: rgba(255,255,255,0.8);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr; /* Col 1 slightly wider */
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo { margin-bottom: 20px; }
.footer-logo a { color: var(--white) !important; }

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 15px; }
.footer-col ul li a {
    text-decoration: none;
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--primary-orange); padding-left: 5px; }

.contact-info p {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.contact-info i { color: var(--primary-orange); }
.contact-info a { text-decoration: none; color: inherit; }

.footer-bottom {
    background: #05132e;
    text-align: center;
    padding: 25px 0;
    margin-top: 30px;
}

/* --- Animations (Scroll Reveal Classes) --- */
/* Initial states */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-up { transform: translateY(50px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }

/* Active states (added by JS) */
.reveal-up.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* --- RESPONSIVE MEDIA QUERIES --- */

@media (max-width: 992px) {
    .hero-content h1 { font-size: 3rem; }
    
    /* Stack columns on tablet */
    .two-col-layout, .split-60-40 {
        flex-direction: column;
    }
    .split-60-40 .col-text, .split-60-40 .col-image { flex: auto; width: 100%; }
    .col-image { order: -1; } /* Image on top on mobile/tablet */

    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    /* Header Navigation handles */
    .menu-toggle { display: block; }
    .nav-menu {
        position: fixed;
        top: 70px; /* Height of header */
        right: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background: var(--white);
        padding: 40px;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    .nav-menu.active { right: 0; }
    .nav-menu ul { flex-direction: column; text-align: center; }
    .nav-menu ul li { margin-bottom: 25px; }
    .nav-link { font-size: 1.2rem; }

    /* Mobile tweaks */
    .call-text { display: none; } /* Hide "Call Us" text, keep icon */
    .btn-call { padding: 10px 12px; } /* Smaller button just for icon */

    .hero-content h1 { font-size: 2.5rem; }
    .hero-btns { flex-direction: column; }
    .btn { width: 100%; text-align: center; }

    .contact-container-80 { width: 95%; padding: 30px 20px; }
    .contact-form .form-group-row { flex-direction: column; gap: 0; }

    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .contact-info p { justify-content: center; }
}