/* 
   PetroQuinnox Holding 
   Premium Corporate Stylesheet 
*/

:root {
    /* Color Palette */
    --deep-navy: #071A2E;
    --petroleum-blue: #0B3C6D;
    --gold: #D4AF37;
    --white: #FFFFFF;
    --light-gray: #F5F7FA;
    --dark-gray: #333333;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--dark-gray);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--deep-navy);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--light-gray);
}

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

.text-gold {
    color: var(--gold);
}

.text-white {
    color: var(--white);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--petroleum-blue);
    margin-bottom: 50px;
}

.mt-5 {
    margin-top: 50px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition-fast);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--deep-navy);
    border: 2px solid var(--gold);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--gold);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

.btn-outline {
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 10px 20px;
}

.btn-outline:hover {
    background-color: var(--gold);
    color: var(--deep-navy);
}

/* Header & Nav */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-fast);
    padding: 20px 0;
    background: transparent;
}

#main-header.scrolled {
    background-color: rgba(7, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.logo a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links>li>a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.nav-links>li>a:hover {
    color: var(--gold);
}

/* Mega Menu */
.has-dropdown {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: var(--white);
    width: 600px;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    pointer-events: none;
}

.has-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.mega-menu h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--petroleum-blue);
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 8px;
}

.mega-menu ul li {
    margin-bottom: 10px;
}

.mega-menu ul li a {
    color: var(--dark-gray);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.mega-menu ul li a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.mobile-toggle {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background-color: var(--deep-navy);
}

.hero-image-side {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay-split {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--deep-navy) 0%, transparent 40%);
}

.hero-split-container {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text-side {
    width: 50%;
    padding-right: 5%;
}

.hero-content {
    max-width: 600px;
    margin-top: 60px;
    /* Offset for fixed header */
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.15;
}

.hero-content p {
    font-size: 1rem;
    color: var(--light-gray);
    margin-bottom: 35px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Utilities */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.justify-center {
    justify-content: center;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
    padding-right: 20px;
    padding-bottom: 20px;
}

.img-fluid {
    width: 100%;
    height: auto;
    display: block;
}

.rounded {
    border-radius: 12px;
}

.shadow-lg {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.experience-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: var(--gold);
    color: var(--deep-navy);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.3);
}

.badge-number {
    display: block;
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.badge-text {
    font-size: 0.95rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.about-text p {
    font-size: 1.15rem;
    color: var(--dark-gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-stats {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 30px;
}

.stat-item h3 {
    font-size: 3.5rem;
    color: var(--petroleum-blue);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark-gray);
    margin-bottom: 0;
}

/* Divisions */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.division-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition-slow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.division-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-slow);
}

.division-card:hover::before {
    transform: scaleX(1);
}

.division-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: rgba(11, 60, 109, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--petroleum-blue);
    transition: var(--transition-fast);
}

.division-card:hover .card-icon {
    background: var(--petroleum-blue);
    color: var(--white);
}

.division-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* Sustainability */
.sustainability {
    background: url('assets/petro_renewables.jpg') center/cover fixed;
    position: relative;
}

.sustainability::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 26, 46, 0.85);
    /* Deep Navy Overlay */
}

.sustainability .container {
    position: relative;
    z-index: 2;
}

.sustainability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

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

.sus-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.sustainability-counters {
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sus-counter h3 {
    display: inline-block;
    font-size: 4rem;
    color: var(--gold);
}

.sus-counter span {
    font-size: 2rem;
    color: var(--gold);
    font-weight: bold;
}

/* Features / Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-card {
    text-align: center;
    padding: 30px;
}

.feature-card i {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

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

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: -100px;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(7, 26, 46, 0.95), transparent);
    transition: var(--transition-fast);
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    bottom: 0;
}

.portfolio-overlay h3 {
    color: var(--white);
    margin-bottom: 20px;
}

/* Leadership */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

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

.leader-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: var(--light-gray);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.leader-card h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* Footer & Contact */
.main-footer {
    background-color: var(--deep-navy);
    color: var(--white);
}

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

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--light-gray);
    transition: var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 1.2rem;
    margin-right: 15px;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--deep-navy);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-col strong {
    color: var(--white);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 4px;
    font-family: var(--font-body);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.footer-bottom {
    background-color: #04101d;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: var(--gold);
}

/* Animations */
@keyframes slowZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    animation-delay: 0.2s;
    transition-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
    transition-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
    transition-delay: 0.6s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-image-side {
        width: 100%;
    }

    .hero-text-side {
        width: 100%;
        padding-right: 0;
        text-align: center;
        background: rgba(7, 26, 46, 0.85);
        padding: 40px 20px;
        border-radius: 12px;
    }

    .hero-split-container {
        justify-content: center;
    }

    .hero-content {
        margin-top: 0;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-overlay-split {
        background: linear-gradient(to top, rgba(7, 26, 46, 0.9) 0%, rgba(7, 26, 46, 0.4) 100%);
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .mega-menu {
        width: 100%;
        left: 0;
        transform: none;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .sustainability-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .sustainability-grid,
    .sustainability-counters {
        flex-direction: column;
        grid-template-columns: 1fr;
        gap: 30px;
    }
}