/* Services Page Specific Styles */

/* Services Hero Section */
.services-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 70px;
}

.services-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
}

.services-hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(14, 21, 27, 0.8), rgba(71, 141, 165, 0.6));
    z-index: -1;
}

.services-hero-content {
    color: white;
    text-align: left;
}

.services-title {
    font-family: 'Elsie', serif;
    font-size: 4rem;
    font-weight: 400;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Services Content */
.services-content {
    padding: 100px 0;
    background: #f9f9f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Service Card */
.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.service-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 30px;
    flex-grow: 1;
}

.service-title {
    font-family: 'Elsie', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: #0e151b;
    margin-bottom: 20px;
    line-height: 1.3;
}

.service-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 16px;
}

.service-description:last-child {
    margin-bottom: 0;
}

/* Service Subsections */
.service-subsection {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.subsection-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0e151b;
    margin-bottom: 15px;
}

.subsection-description {
    color: #666;
    line-height: 1.7;
    font-size: 15px;
}

/* Gold Refinery Image */
.gold-image-section {
    margin: 25px 0;
    text-align: center;
}

.gold-refinery-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Design for Services */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .services-title {
        font-size: 3rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-card {
        margin: 0 10px;
    }

    .service-content {
        padding: 20px;
    }

    .service-title {
        font-size: 1.5rem;
    }

    .service-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .services-hero {
        height: 40vh;
        min-height: 300px;
    }

    .services-title {
        font-size: 2.5rem;
    }

    .services-content {
        padding: 60px 0;
    }

    .service-content {
        padding: 15px;
    }

    .service-title {
        font-size: 1.3rem;
    }

    .service-description,
    .subsection-description {
        font-size: 14px;
    }
}

/* Animation for service cards */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

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

/* Special styling for long content */
.service-card:nth-child(4) .service-content,
.service-card:nth-child(6) .service-content {
    padding-bottom: 40px;
}

/* Hover effects for better interactivity */
.service-subsection {
    transition: all 0.3s ease;
}

.service-card:hover .service-subsection {
    background: rgba(71, 141, 165, 0.02);
    padding: 25px 20px 20px;
    margin: 25px -20px 0;
    border-radius: 10px;
}
