/* Services Page Styles - Complete Redesign */

/* ========== SCROLL SNAP SETUP ========== */
html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    scroll-padding-top: 0;
}

body {
    scroll-snap-type: y mandatory;
}

/* ========== BANNER FOOTER CONTENT ========== */
.banner-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.4);
    text-align: center;
    color: white;
    z-index: 10;
}

.banner-footer h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.banner-footer p {
    font-size: 1.1rem;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* ========== HERO SECTION ========== */
.services-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 120px 20px 80px;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 15px;
    opacity: 0.95;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.85;
    line-height: 1.7;
}

/* ========== INTRO SECTION ========== */
.intro-section {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    min-height: 100vh;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.intro-section h1 {
    font-size: 2.8rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-weight: 700;
}

.intro-section hr {
    border: none;
    height: 3px;
    background: #4A9EFF;
    width: 100px !important;
    border-radius: 2px;
    margin: 20px auto !important;
}

.intro-section p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    max-width: 900px;
    margin: 20px auto 0;
}

/* ========== BANNER SCROLL SNAP ========== */
.banner {
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
}

/* ========== SERVICES SECTION ========== */
.services-section {
    background: #f8f9fa;
    padding: 20px;
}

/* Service Item - Grid Layout */
.service-item {
    display: grid;
    grid-template-columns: 60% 40%;
    aspect-ratio: 16 / 8;
    background: white;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    margin: 20px 0;
    border: 1px solid #e8e8e8;
    border-radius: 15px;
    overflow: hidden;
}

/* Reverse layout for even items */
.service-item.reverse {
    direction: ltr;
    grid-template-columns: 40% 60%;
}

.service-item.reverse .service-content {
    order: 2;
}

.service-item.reverse .service-visual {
    order: 1;
}

/* Remove top margin from first service item */
.service-item:first-of-type {
    margin-top: 0;
}

/* Service Content */
.service-content {
    padding: 35px 50px 30px 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    order: 1;
}

/* Service Header */
.service-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.service-number {
    font-size: 3rem;
    font-weight: 700;
    color: #4A9EFF;
    line-height: 1;
    opacity: 0.3;
    flex-shrink: 0;
}

.service-title-group {
    flex: 1;
}

.service-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.2;
}

.service-tagline {
    font-size: 1.1rem;
    color: #4A9EFF;
    font-weight: 600;
    font-style: italic;
}

/* Service Description */
.service-description {
    margin-bottom: 15px;
}

.service-description p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}

/* Service Capabilities */
.service-capabilities {
    margin-bottom: 25px;
}

.service-capabilities h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-capabilities h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d2d2d;
    margin-top: 20px;
    margin-bottom: 10px;
}

.service-capabilities p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.7;
}

.service-capabilities ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.service-capabilities ul li {
    padding: 8px 0 8px 30px;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

.service-capabilities ul li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #4A9EFF;
    font-weight: bold;
    font-size: 1.2rem;
}

.service-capabilities ol {
    list-style: none;
    counter-reset: item;
    padding: 0;
    margin: 0 0 20px 0;
}

.service-capabilities ol li {
    counter-increment: item;
    padding: 8px 0 8px 35px;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

.service-capabilities ol li:before {
    content: counter(item);
    position: absolute;
    left: 0;
    background: #4A9EFF;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
}

/* Service Closing */
.service-closing {
    margin-bottom: 30px;
}

.service-closing p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    font-style: italic;
}

/* Service Actions */
.service-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: #4A9EFF;
    color: white;
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
    background: #2E7FD9;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 158, 255, 0.4);
}

.btn-primary:focus {
    outline: 3px solid #4A9EFF;
    outline-offset: 2px;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: #4A9EFF;
    border: 2px solid #4A9EFF;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: #4A9EFF;
    color: white;
    transform: translateY(-2px);
}

.btn-secondary:focus {
    outline: 3px solid #4A9EFF;
    outline-offset: 2px;
}

/* Service Visual */
.service-visual {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 100%);
    order: 2;
}

.service-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    will-change: transform;
}

.service-item:hover .service-visual img {
    transform: scale(1.05);
}

.visual-overlay {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 80px;
    height: 80px;
    background: rgba(74, 158, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: none; /* Hide icons */
}

.visual-icon {
    font-size: 2.5rem;
}

/* ========== READ MORE / COLLAPSE ========== */
.service-details {
    max-height: 9999px;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease;
    opacity: 1;
}

.service-details.collapsed {
    max-height: 0;
    opacity: 0;
    display: none;
}

.read-more-btn {
    display: none !important;
    background: transparent;
    color: #4A9EFF;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: underline;
    text-transform: uppercase;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.3s ease;
    margin-bottom: 20px;
}

.read-more-btn:hover {
    color: #2E7FD9;
}

.read-more-btn:focus {
    outline: 3px solid #4A9EFF;
    outline-offset: 2px;
}

/* ========== SERVICES INTEGRATION SECTION ========== */
.services-integration {
    background: white;
    padding: 80px 20px;
}

.integration-container {
    max-width: 1200px;
    margin: 0 auto;
}

.services-integration h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 60px;
}

.integration-paths {
    display: flex;
    justify-content: center;
}

.path-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 50px;
    max-width: 900px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.path-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 40px;
    text-align: center;
}

.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #4A9EFF;
    transition: all 0.3s ease;
}

.step:hover {
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.2);
    transform: translateX(5px);
}

.step-number {
    min-width: 50px;
    width: 50px;
    height: 50px;
    background: #4A9EFF;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.step p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
    margin: 0;
}

.step strong {
    color: #1a1a1a;
    font-weight: 700;
}

/* ========== CTA SECTION ========== */

.services-cta {
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    overflow: hidden;
    padding: 80px 20px;
    background: 
        linear-gradient(rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.25)),
        url('../../../assets/images/cta-background.webp') center/cover no-repeat;
}

.services-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary-large,
.btn-secondary-large {
    padding: 18px 45px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary-large {
    background: white;
    color: #4A9EFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary-large:hover,
.btn-primary-large:focus {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-primary-large:focus {
    outline: 3px solid white;
    outline-offset: 2px;
}

.btn-secondary-large {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 3px solid white;
}

.btn-secondary-large:hover,
.btn-secondary-large:focus {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.btn-secondary-large:focus {
    outline: 3px solid white;
    outline-offset: 2px;
}

/* ========== UTILITY CLASSES ========== */
.hidden {
    display: none !important;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .read-more-btn {
        display: none !important;
    }
    
    .service-content {
        padding: 50px 60px;
    }
    
    .service-title {
        font-size: 2rem;
    }
    
    .service-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .banner-footer h2 {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .banner-footer p {
        font-size: 1rem;
    }
    
    .banner-footer {
        padding: 30px 15px;
    }
    
    .services-hero {
        padding: 80px 20px 60px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .intro-section {
        min-height: 100vh;
    }
    
    /* Stack service items vertically on tablet */
    .service-item,
    .service-item.reverse {
        grid-template-columns: 1fr;
        aspect-ratio: auto;
        direction: ltr;
        min-height: auto;
    }
    
    .service-item.reverse .service-content {
        order: 1;
    }
    
    .service-item.reverse .service-visual {
        order: 2;
    }
    
    .service-visual {
        min-height: 300px;
    }
    
    .service-content {
        padding: 40px 30px;
        order: 1;
    }
    
    .service-title {
        font-size: 1.8rem;
    }
    
    .service-number {
        font-size: 2rem;
    }
    
    .service-tagline {
        font-size: 1rem;
    }
    
    .service-capabilities h3 {
        font-size: 1.2rem;
    }
    
    .service-capabilities h4 {
        font-size: 1rem;
    }
    
    .service-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        text-align: center;
        width: 100%;
    }

    /* Read More Button on Mobile */
    .read-more-btn {
        display: inline-block;
        margin-top: 15px;
        margin-bottom: 20px;
    }

    .service-details {
        max-height: 400px;
        overflow: hidden;
    }

    .service-details.collapsed {
        max-height: 0;
        opacity: 0;
    }
    
    /* Integration section */
    .path-card {
        padding: 30px;
    }
    
    .step {
        flex-direction: column;
        gap: 15px;
    }
    
    .step-number {
        min-width: 40px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .services-integration {
        padding: 60px 20px;
    }
    
    .services-integration h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    /* CTA section */
    .services-cta {
        padding: 60px 20px;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-primary-large,
    .btn-secondary-large {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .banner-footer h2 {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }
    
    .banner-footer p {
        font-size: 0.95rem;
    }
    
    .banner-footer {
        padding: 25px 12px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .service-content {
        padding: 30px 20px;
    }
    
    .service-title {
        font-size: 1.5rem;
    }
    
    .service-header {
        gap: 15px;
    }
    
    .service-number {
        font-size: 1.8rem;
    }
    
    .service-item {
        aspect-ratio: auto;
    }
    
    .service-visual {
        min-height: 250px;
    }
    
    .visual-overlay {
        width: 60px;
        height: 60px;
        top: 20px;
        right: 20px;
    }
    
    .visual-icon {
        font-size: 2rem;
    }
    
    .intro-section {
        padding: 40px 15px;
        min-height: 100vh;
    }
    
    .intro-section h1 {
        font-size: 2rem;
    }
    
    .intro-section p {
        font-size: 1rem;
    }
}