/* Services Page Styles */

/* Hero Section */
.services-hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    margin: 0;
    isolation: isolate;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    background: rgba(44, 62, 80, 0.75);
    z-index: -1;
}

.services-hero .container {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-subtitle {
    color: #bdc3c7;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    color: #d4af37;
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.hero-description {
    color: #ecf0f1;
    font-size: 16px;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* Services Grid Section */
.services-grid {
    padding: 80px 20px;
    background-color: #f8f9fa;
    margin: 0;
    isolation: isolate;
}

.services-grid .container {
    max-width: 1200px;
    margin: 0 auto;
}

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

/* Service Card */
.service-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-height: 320px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #d4af37 0%, #f4d03f 100%);
    transition: height 0.3s ease;
    z-index: 3;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-card:hover::before {
    height: 100%;
}

/* Service Image (hidden by default, shown on hover) */
.service-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 2;
}

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

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-image {
    opacity: 1;
    visibility: visible;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-btn {
    padding: 12px 30px;
    background: #d4af37;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    z-index: 3;
}

.service-btn:hover {
    background: #f4d03f;
    transform: scale(1.05);
}

/* Service Content (shown by default, hidden on hover) */
.service-content {
    padding: 40px 30px;
    position: relative;
    z-index: 1;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 320px;
}

.service-card:hover .service-content {
    opacity: 0;
    visibility: hidden;
}

/* Service Icon */
.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: #95a5a6;
    transition: all 0.3s ease;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.service-description {
    font-size: 15px;
    line-height: 1.7;
    color: #7f8c8d;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .service-content {
        padding: 30px 20px;
    }
    
    .service-title {
        font-size: 20px;
    }
    
    .service-description {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .services-hero {
        height: 100vh;
        padding: 60px 20px;
    }
    
    .hero-background {
        height: 100vh;
    }
    
    .hero-overlay-dark {
        height: 100vh;
    }
    
    .services-grid {
        padding: 60px 20px;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .service-content {
        padding: 35px 25px;
        min-height: 300px;
    }
    
    .service-card {
        min-height: 300px;
    }
    
    .service-title {
        font-size: 20px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 12px;
    }
    
    .services-hero {
        height: 100vh;
        padding: 40px 15px;
    }
    
    .hero-background {
        height: 100vh;
    }
    
    .hero-overlay-dark {
        height: 100vh;
    }
    
    .services-grid {
        padding: 40px 15px;
    }
    
    .service-content {
        padding: 30px 20px;
        min-height: 280px;
    }
    
    .service-card {
        min-height: 280px;
    }
    
    .service-btn {
        padding: 10px 24px;
        font-size: 12px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-title {
        font-size: 18px;
    }
    
    .service-description {
        font-size: 14px;
    }
}