/* Services Page Styles */

/* Hero Section */
.services-hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 60px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(66, 135, 245, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.services-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.services-hero-title {
    font-family: 'GreycliffCF-Bold', 'Arial', sans-serif;
    font-size: 4rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.services-hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Light Mode Hero */
body.light-mode .services-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

body.light-mode .services-hero::before {
    background: radial-gradient(circle at center, rgba(13, 71, 161, 0.05) 0%, transparent 70%);
}

body.light-mode .services-hero-title {
    color: #1e293b;
}

body.light-mode .services-hero-subtitle {
    color: #64748b;
}

/* Services Container */
.services-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    position: relative;
}

/* Hexagon Canvas Background */
.services-hex-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: auto;
}

.service-card {
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

/* Service Card */
.service-card {
    background: rgba(10, 10, 10, 0.5);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(66, 135, 245, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

/* Featured Service Card - Spans 2 columns */
.service-card-featured {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .service-card-featured {
        grid-column: span 1;
    }
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(66, 135, 245, 0.3);
    border-color: rgba(66, 135, 245, 0.3);
}

/* Light Mode Service Card */
body.light-mode .service-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

body.light-mode .service-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(13, 71, 161, 0.3);
}

/* Service Image */
.service-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-image {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(10, 10, 10, 0.8) 100%);
    pointer-events: none;
}

body.light-mode .service-overlay {
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.6) 100%);
}

/* Service Content */
.service-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-family: 'GreycliffCF-Bold', 'Arial', sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

body.light-mode .service-title {
    color: #1e293b;
}

.service-title-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 15px;
    display: block;
}

body.light-mode .service-title-image {
    filter: invert(1);
}

/* Matter24 logo - invert lightness but preserve color hues */
body.light-mode .matter24-logo {
    filter: invert(1) hue-rotate(180deg);
}

/* Matter24 logo - crop transparent space */
.matter24-logo {
    margin-top: -20px;
    margin-bottom: -20px;
}

/* Matter24 description list styling */
.service-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.service-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.service-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #4287f5;
    font-size: 1.2rem;
    font-weight: bold;
}

body.light-mode .service-list li::before {
    color: #0d47a1;
}

/* Matter24 Two-Column Layout */
.matter24-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .matter24-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Matter24 CTA Column */
.matter24-cta-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.matter24-cta-wrapper {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(66, 135, 245, 0.1) 0%, rgba(13, 71, 161, 0.1) 100%);
    border: 2px solid rgba(66, 135, 245, 0.3);
    border-radius: 15px;
    width: 100%;
}

body.light-mode .matter24-cta-wrapper {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.05) 0%, rgba(66, 135, 245, 0.05) 100%);
    border-color: rgba(13, 71, 161, 0.2);
}

.matter24-cta-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-weight: 500;
}

body.light-mode .matter24-cta-text {
    color: #475569;
}

/* Matter24 Button */
.btn-matter24 {
    display: inline-block;
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
    color: #ffffff;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 6px 20px rgba(13, 71, 161, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-matter24::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-matter24:hover::before {
    left: 100%;
}

.btn-matter24:hover {
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(13, 71, 161, 0.6);
}

/* Quote Button */
.btn-quote {
    display: inline-block;
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
    color: #ffffff;
    font-weight: bold;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 15px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.btn-quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-quote:hover::before {
    left: 100%;
}

.btn-quote:hover {
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 71, 161, 0.5);
}

.service-description {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    flex: 1;
}

body.light-mode .service-description {
    color: #475569;
}

/* Feature Tags */
.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.feature-tag {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(66, 135, 245, 0.2) 0%, rgba(13, 71, 161, 0.2) 100%);
    border: 1px solid rgba(66, 135, 245, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #4287f5;
    font-weight: 500;
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: linear-gradient(135deg, rgba(66, 135, 245, 0.3) 0%, rgba(13, 71, 161, 0.3) 100%);
    border-color: rgba(66, 135, 245, 0.5);
    transform: translateY(-2px);
}

body.light-mode .feature-tag {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.1) 0%, rgba(66, 135, 245, 0.1) 100%);
    border-color: rgba(13, 71, 161, 0.2);
    color: #0d47a1;
}

body.light-mode .feature-tag:hover {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.15) 0%, rgba(66, 135, 245, 0.15) 100%);
    border-color: rgba(13, 71, 161, 0.3);
}

/* Service Highlight */
.service-highlight {
    font-size: 1rem;
    font-weight: 600;
    color: #4287f5;
    font-style: italic;
    padding: 15px;
    border-left: 3px solid #4287f5;
    background: rgba(66, 135, 245, 0.05);
    border-radius: 0 8px 8px 0;
    margin-top: auto;
}

body.light-mode .service-highlight {
    color: #0d47a1;
    border-left-color: #0d47a1;
    background: rgba(13, 71, 161, 0.05);
}

.service-price {
    font-size: 1.2rem;
    font-weight: bold;
    font-style: normal;
}

/* CTA Section */
.services-cta {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.services-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(66, 135, 245, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-title {
    font-family: 'GreycliffCF-Bold', 'Arial', sans-serif;
    font-size: 3rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.cta-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.btn-primary-services {
    display: inline-block;
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
    color: #ffffff;
    font-weight: bold;
    padding: 18px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 8px 30px rgba(13, 71, 161, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.btn-primary-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary-services:hover::before {
    left: 100%;
}

.btn-primary-services:hover {
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(13, 71, 161, 0.6);
}

/* Light Mode CTA */
body.light-mode .services-cta {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

body.light-mode .services-cta::before {
    background: radial-gradient(circle at center, rgba(13, 71, 161, 0.05) 0%, transparent 70%);
}

body.light-mode .cta-title {
    color: #1e293b;
}

body.light-mode .cta-description {
    color: #64748b;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
        padding: 60px 20px;
    }
}

@media (max-width: 768px) {
    .services-hero {
        min-height: 30vh;
        padding: 80px 20px 40px;
    }

    .services-hero-title {
        font-size: 2.5rem;
    }

    .services-hero-subtitle {
        font-size: 1.1rem;
    }

    .services-container {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 40px 15px;
    }

    .service-image-wrapper {
        height: 200px;
    }

    .service-content {
        padding: 20px;
    }

    .service-title {
        font-size: 1.5rem;
    }

    .service-description {
        font-size: 0.95rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-description {
        font-size: 1rem;
    }

    .btn-primary-services {
        padding: 15px 35px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .services-hero-title {
        font-size: 2rem;
    }

    .services-hero-subtitle {
        font-size: 1rem;
    }

    .service-features {
        gap: 8px;
    }

    .feature-tag {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
}
