:root {
    --primary-gold: #d6a019;
    --primary-gold-light: #ffcc00;
    --bg-dark: #0a0a0a;
    --bg-light: #fafafa;
    --bg-glass: rgba(255, 255, 255, 0.08);
    --bg-glass-hover: rgba(255, 255, 255, 0.12);
    --text-primary: #1a1a1a;
    --text-secondary: rgba(26, 26, 26, 0.7);
    --text-tertiary: rgba(26, 26, 26, 0.5);
    --text-dark: #000000;
    --border-glass: rgba(214, 160, 25, 0.3);
    --shadow-primary: 0 20px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 25px 50px rgba(0, 0, 0, 0.4);
    --blur-amount: 20px;
    --transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --background: rgb(214, 160, 25);
    --hover-color: #ffcc00;
    --primary-gradient: rgba(0, 0, 0, 0.8);
    --secondary-gradient: rgba(0, 0, 0, 1);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --overlay-color: rgba(0, 0, 0, 0.5);
    --accent-glow: rgba(214, 160, 25, 0.3);
    --glass-border: rgba(214, 160, 25, 0.2);
    --news-section-bg: #141414;
    --card-bg: rgba(20, 20, 20, 0.6);
    --card-border: rgba(214, 160, 25, 0.15);
    --gradient-overlay: linear-gradient(135deg, rgba(214, 160, 25, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    --gradient-mesh: linear-gradient(135deg, rgba(214, 160, 25, 0.15) 0%, rgba(255, 204, 0, 0.08) 50%, rgba(0, 0, 0, 0.3) 100%);
}

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

body {
    font-family: 'Epilogue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-light);
    overflow-x: hidden;
}




/* Hero Section */
.qshe-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
     background: 
                linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(10, 10, 10, 0.8) 100%),
                radial-gradient(circle at 20% 80%, rgba(214, 160, 25, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 204, 0, 0.05) 0%, transparent 50%),
                url('../oilactivities/pipelay2.jpg') no-repeat center center;
          
            background-attachment: fixed;
            position: relative;
            background-size: 120%;
    overflow: hidden;
}

.background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--accent-glow);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 7s;
}

.floating-element:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-30px) rotate(120deg);
    }
    66% {
        transform: translateY(-60px) rotate(240deg);
    }
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    padding: 0 2rem;
    color: white;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-title span {
    display: inline-block;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title span:nth-child(odd) {
    color: var(--primary-gold);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.5s forwards;
    opacity: 0;
}

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

/* Navigation Tabs */
.qshe-navigation {
    background: var(--bg-light);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 80px;
    z-index: 100;
    backdrop-filter: blur(var(--blur-amount));
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.nav-tab:hover,
.nav-tab.active {
    color: var(--primary-gold);
    border-color: var(--primary-gold);
    background: rgba(214, 160, 25, 0.05);
    transform: translateY(-2px);
}

.nav-tab i {
    font-size: 1.2rem;
}

/* Content Sections */
.qshe-content {
    min-height: 100vh;
}

.content-section {
    display: none;
    padding: 4rem 0;
}

.content-section.active {
    display: block;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Policies Section */
.policies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.policy-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-primary);
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.policy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gold);
}

.policy-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.policy-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.policy-icon i {
    font-size: 2rem;
    color: var(--primary-gold);
}

.policy-card h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.policy-card > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.policy-details h4 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.policy-details ul {
    list-style: none;
    margin-bottom: 2rem;
}

.policy-details li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.policy-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    font-weight: bold;
}

.policy-actions {
    margin-top: 2rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-gold);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-download:hover {
    background: var(--primary-gold-light);
    transform: translateY(-2px);
}

/* Certifications Section */
.certifications-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.certification-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-primary);
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-gold), var(--primary-gold-light));
}

.certification-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cert-logo {
    width: 80px;
    height: 80px;
    background: var(--accent-glow);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-gold);
}

.cert-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.cert-status.active {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.cert-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.cert-subtitle {
    font-size: 1rem;
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.cert-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cert-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(214, 160, 25, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.feature i {
    color: var(--primary-gold);
}

.cert-details {
    margin-bottom: 2rem;
}

.cert-info {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(214, 160, 25, 0.1);
}

.cert-info:last-child {
    border-bottom: none;
}

.cert-info .label {
    font-weight: 600;
    color: var(--text-primary);
}

.cert-info .value {
    color: var(--text-secondary);
}

.cert-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--primary-gold-light);
    transform: translateY(-2px);
}

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

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

/* Certification Stats */
.cert-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-primary);
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-gold);
    display: block;
}

.stat-label {
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Safety Standards Section */
.standards-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 4rem;
}

.standards-category {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-primary);
    border: 1px solid var(--glass-border);
}

.standards-category.full-width {
    grid-column: 1 / -1;
}

.standards-category h3 {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Libre Baskerville', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-gold);
}

.standards-category h3 i {
    color: var(--primary-gold);
    font-size: 1.8rem;
}

.standards-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.standard-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(214, 160, 25, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(214, 160, 25, 0.1);
    transition: var(--transition-smooth);
}

.standard-item:hover {
    background: rgba(214, 160, 25, 0.1);
    transform: translateX(10px);
}

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

.standard-content {
    flex: 1;
}

.standard-content h4 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.standard-content p {
    color: var(--text-secondary);
    line-height: 1.5;
}

.standard-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.standard-status.implemented {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

/* Safety Protocols */
.protocols-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.protocol-card {
    background: rgba(214, 160, 25, 0.05);
    border: 1px solid rgba(214, 160, 25, 0.1);
    border-radius: 15px;
    padding: 2rem;
    transition: var(--transition-smooth);
}

.protocol-card:hover {
    background: rgba(214, 160, 25, 0.1);
    transform: translateY(-5px);
}

.protocol-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gold);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.protocol-card h4 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.protocol-card ul {
    list-style: none;
}

.protocol-card li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.protocol-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    font-weight: bold;
}

/* Safety Metrics */
.safety-metrics {
    background: var(--bg-dark);
    color: white;
    padding: 4rem 2rem;
    border-radius: 20px;
    margin-top: 4rem;
}

.safety-metrics h3 {
    text-align: center;
    font-family: 'Libre Baskerville', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--primary-gold);
}

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

.metric-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(214, 160, 25, 0.2);
    transition: var(--transition-smooth);
}

.metric-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.metric-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-gold);
    display: block;
    margin-bottom: 0.5rem;
}

.metric-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    margin-bottom: 1rem;
}

.metric-trend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.metric-trend.positive {
    color: #22c55e;
}

/* Footer Styles (from existing design) */
.footer-section {
    background: var(--bg-dark);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand img {
    height: 60px;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.company-stats {
    display: flex;
    gap: 2rem;
}

.company-stats .stat-item {
    text-align: center;
}

.company-stats .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.company-stats .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-gold);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links ul li a:hover {
    color: var(--primary-gold);
}

.footer-social h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-gold);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-icons a:hover {
    background: var(--primary-gold);
    transform: translateY(-2px);
}

.newsletter-signup h4 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-form button {
    background: var(--primary-gold);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.newsletter-form button:hover {
    background: var(--primary-gold-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn {
    width: 60px;
    height: 60px;
    background: var(--primary-gold);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
}

.back-to-top-btn:hover {
    background: var(--primary-gold-light);
    transform: translateY(-5px);
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring-circle {
    fill: none;
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 4;
    stroke-dasharray: 176;
    stroke-dashoffset: 176;
    transition: stroke-dashoffset 0.1s ease;
}

.back-to-top-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    fill: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav__links {
        display: none;
    }
    
    .toggle-btn {
        display: flex;
    }
    
    .nav-tabs {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-tab {
        width: 100%;
        justify-content: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .company-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .certifications-showcase {
        grid-template-columns: 1fr;
    }
    
    .cert-actions {
        flex-direction: column;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .protocols-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav {
        padding: 1rem;
    }
    
    .policies-grid {
        grid-template-columns: 1fr;
    }
    
    .policy-card,
    .certification-card {
        padding: 1.5rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .qshe-hero{
         padding: 1.5rem 4%;
                background-attachment: scroll;
                background-size:cover;
                background-position: center center;
            
          
            background-attachment: fixed;
            position: relative;
            
            animation: none;
    }
}