/* Services Detail Page Styles */
:root {
    --primary-gold: #d4af37;
    --charcoal: #1a1a1a;
    --gold-glow: rgba(212, 175, 55, 0.3);
}

#services-detail-page {
    background-color: #0c0c0c;
    color: #fff;
    min-height: 100vh;
    padding-top: 80px;
    /* Aligned with navbar height */
}

/* Global Navbar Styling */
/* Global Navbar Alignment */
#services-detail-page {
    background-color: #0c0c0c;
    color: #fff;
    min-height: 100vh;
    padding-top: 150px;
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: all 0.3s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
}

/* Global Button Component */
.btn {
    display: inline-block;
    padding: 1rem 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    font-size: 0.85rem;
    border: none;
}

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

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

.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    transform: translateY(-3px);
}

.nav-actions .btn {
    padding: 0.7rem 1.4rem;
    font-size: 0.75rem;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.btn-large {
    padding: 1.3rem 3rem;
    font-size: 1.1rem;
}

/* Hero Section for Services */
.services-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 480px 5% 150px;
    background:
        radial-gradient(circle at 50% 250px, rgba(0, 0, 0, 0.5) 0%, transparent 400px),
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('/images/mining_carousel_1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    margin-bottom: 80px;
    border-bottom: 2px solid var(--primary-gold);
}

.services-hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 20px;
}

.services-hero h1 span {
    color: var(--primary-gold);
}

.services-hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.7);
}

/* Detailed Service Sections */
.service-detail-section {
    padding: 80px 5%;
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-detail-section.active {
    opacity: 1;
    transform: translateY(0);
}

/* Fix: Flip starting from the second section after the hero */
.service-detail-section:nth-of-type(even) {
    flex-direction: row-reverse;
}

.service-detail-image {
    flex: 1;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 480px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.service-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-detail-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.service-detail-info {
    flex: 1;
}

.service-number {
    font-size: 5rem;
    font-weight: 900;
    color: rgba(212, 175, 55, 0.1);
    line-height: 1;
    margin-bottom: -20px;
}

.service-detail-info h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    color: var(--primary-gold);
    font-weight: 800;
}

.service-detail-info p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.service-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #fff;
}

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

/* Bottom CTA */
.services-cta {
    padding: 100px 5%;
    text-align: center;
    background: #111;
    margin-top: 100px;
}

/* Main Footer Styling */
.main-footer {
    background: #080808;
    padding: 80px 5% 40px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    margin-top: 80px;
}

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

.footer-logo {
    height: 150px;
    margin-bottom: 25px;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    max-width: 350px;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--primary-gold);
    margin-bottom: 25px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

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

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .service-detail-section {
        flex-direction: column !important;
        gap: 40px;
        padding: 60px 5%;
    }

    .service-detail-image {
        height: 350px;
        width: 100%;
    }

    .service-features {
        grid-template-columns: 1fr;
    }
}