/* ========================================
   SEATECH - MAIN SERVICES PAGE STYLES
   Specific styles for the main services page
   ======================================== */

/* Main Services Page Hero */
.main-services-hero {
    position: relative;
    height: 445px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.main-services-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.main-services-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 69, 116, 0.8) 0%, rgba(20, 69, 141, 0.6) 100%);
    z-index: 2;
}

.main-services-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    width: 100%;
}

.main-services-hero-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-logo {
    margin-bottom: 30px;
}

.service-logo .logo-image {
    height: 60px;
    width: auto;
}

.main-services-title {
    font-size: 3.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.main-services-description {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Main Services Content */
.main-services-content {
    padding: 80px 0;
    background: #f8f9fa;
}

.main-services-header {
    text-align: center;
    margin-bottom: 60px;
}

.main-services-section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #004574;
}

.main-services-section-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Main Services Grid */
.main-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.main-service-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.main-service-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

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

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

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

.service-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #004574 0%, #14458d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon {
    font-size: 3em;
    opacity: 0.8;
    color: #fff;
}

.main-service-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100px;
}

.main-service-title {
    font-size: 1.4em;
    margin: 0 0 auto 0;
    color: #004574;
    line-height: 1.3;
    font-weight: 600;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.main-service-cta {
    color: #004574;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
    margin-top: 15px;
}

.main-service-item:hover .main-service-cta {
    color: #14458d;
}

/* No Services State */
.no-services {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.no-services h2 {
    color: #004574;
    margin-bottom: 20px;
    font-size: 2rem;
}

.no-services p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .main-services-hero {
        height: 350px;
    }
    
    .main-services-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    
    .main-services-description {
        font-size: 1.1rem;
    }
    
    .main-services-content {
        padding: 60px 0;
    }
    
    .main-services-section-title {
        font-size: 2rem;
    }
    
    .main-services-section-description {
        font-size: 1.1rem;
    }
    
    .main-services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .main-service-image {
        height: 200px;
    }
    
    .main-service-content {
        padding: 20px;
        min-height: 90px;
    }
}

@media (max-width: 480px) {
    .main-services-hero {
        height: 300px;
    }
    
    .main-services-title {
        font-size: 2rem;
        letter-spacing: 1px;
        margin: 15px 0;
    }
    
    .main-services-description {
        font-size: 1rem;
    }
    
    .main-services-content {
        padding: 40px 0;
    }
    
    .main-services-header {
        margin-bottom: 40px;
    }
    
    .main-services-section-title {
        font-size: 1.8rem;
    }
    
    .main-services-section-description {
        font-size: 1rem;
    }
    
    .main-services-grid {
        gap: 20px;
    }
    
    .main-service-image {
        height: 180px;
    }
    
    .main-service-content {
        padding: 18px;
        min-height: 80px;
    }
    
    .main-service-title {
        font-size: 1.2em;
    }
}