/* Services Section Styles */
.services-section {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    padding: 1rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.service-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .service-item {
        font-size: 1.125rem;
        line-height: 1.2;
        margin-bottom: 0.4rem;
    }

    .services-section.section {
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* Video Background */
.services-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Ensure video loads properly */
.services-video-bg:not([src]) {
    background: #0000002b;
}

/* Fallback background if video fails */
.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    z-index: -2;
}

/* Overlay */
.services-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(210, 37, 240, 0.075);
    z-index: 0;
}

/* Sliding Image Container */
.services-sliding-image {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 130%;
    height: 100vh;
    overflow: visible;
    pointer-events: none;
}

.sliding-nati-image {
    position: absolute;
    right: -25%;
    top: 50%;
    transform: translateY(-50%) translateX(100%);
    height: 100vh;
    width: auto;
    object-fit: contain;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* Animation states */
.services-section.active .sliding-nati-image {
    transform: translateY(-50%) translateX(-40%);
    opacity: 1;
}

.services-section.scroll-out .sliding-nati-image {
    transform: translateY(-50%) translateX(120%);
    opacity: 0;
}

/* Main Container */
.services-container {
    position: relative;
    z-index: 20;
    max-width: 1200px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 2rem);
    padding: 1rem;
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    box-sizing: border-box;
}

/* Main Title */
.services-title {
    font-size: 5rem;
    font-weight: bold;
    margin-bottom: 3rem;
    margin-top: 0;
    color: #2563eb;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    z-index: 25;
    position: relative;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

/* Service Cards */
.service-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Service Icon */
.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    height: 3rem;
}

/* Service Title */
.service-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    font-weight: bold;
    color: rgb(250, 157, 27);
}

/* Service List */
.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: white;
}

.service-item {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

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

/* Tablet Styles */
@media (max-width: 1024px) {
    
    .services-title {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
        margin-top: 0;
    }
    
    .services-grid {
        gap: 1.5rem;
        margin-top: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-title {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }
    
    .service-item {
        font-size: 1.125rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .services-section {
        padding: 0.5rem;
        min-height: 100vh;
        height: 100vh;
        justify-content: center;
        align-items: center;
        padding-top: 0.5rem;
        overflow: hidden;
    }
    
    .services-container {
        max-width: 100%;
        padding: 0 1rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100vh;
        width: 100%;
        z-index: 20;
    }
    
    .services-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
        line-height: 1.1;
        text-align: center;
        padding: 0 0.5rem;
        margin-top: 0.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin-top: 0.25rem;
        width: 100%;
        max-width: 95%;
        padding-bottom: 0.5rem;
    }
    
    .service-card {
        padding: 1rem;
        margin-bottom: 0.5rem;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(8px);
        border-radius: 0.75rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .service-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .service-item {
        font-size: 0.9rem;
    }
    
    /* Mobile sliding image adjustments */
    .services-sliding-image {
        width: 60%;
        z-index: 1;
        height: 100vh;
    }
    
    .services-container {
        z-index: 20;
    }
    
    .sliding-nati-image {
        height: 100vh;
        right: -15%;
    }
    
    .services-section.active .sliding-nati-image {
        transform: translateY(-50%) translateX(-10%);
        opacity: 1;
    }
    
    .services-section.scroll-out .sliding-nati-image {
        transform: translateY(-50%) translateX(100%);
        opacity: 0;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .services-section {
        min-height: 100vh;
        height: 100vh;
    }
    
    .services-container {
        height: 90vh;
        padding-bottom: 0rem;
        overflow: hidden;
    }
    
    .services-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .services-grid {
        gap: 0.15rem;
    }
    
    .service-card {
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(6px);
        border-radius: 0.5rem;
    }
    
    .service-title {
        font-size: 1.125rem;
        margin-bottom: 0.15rem;
    }
    
    .service-item {
        font-size: 0.85rem;
    }
    
    /* Enhanced sliding image for small phones */
    .sliding-nati-image {
        height: 30%;
        right: -20%;
        opacity: 1;
    }
    
    .services-section.active .sliding-nati-image {
        transform: translateY(-20%) translateX(-10%);
        opacity: 1;
    }
}

/* Extra Small Mobile Styles */
@media (max-width: 375px) {
    .services-section {
        padding: 0.25rem;
        height: 100vh;
        min-height: 100vh;
    }
    
    .services-container {
        height: 90vh;
        padding-bottom: 0rem;
        overflow: hidden;
    }
    
    .services-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }
    
    .service-card {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .service-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .service-item {
        font-size: 0.8rem;
        line-height: 1.2;
        margin-bottom: 0.2rem;
    }
    
    .services-grid {
        gap: 0.25rem;
        padding-bottom: 0.5rem;
    }
}

/* High DPI / Retina Display Adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-card {
        backdrop-filter: blur(8px);
    }
}

/* Landscape Mobile Orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .services-section {
        min-height: 100vh;
        height: 100vh;
        padding: 0.25rem;
        justify-content: center;
    }
    
    .services-container {
        height: 90vh;
        overflow: hidden;
    }
    
    .services-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .service-card {
        padding: 0.5rem;
    }
    
    .service-title {
        font-size: 1rem;
        margin-bottom: 0.375rem;
    }
    
    .service-item {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .service-card {
        background: rgba(0, 0, 0, 0.6);
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .sliding-nati-image {
        transition: none;
    }
    
    .service-card {
        transition: none;
    }
    
    .service-card:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .services-video-bg,
    .services-sliding-image {
        display: none;
    }
    
    .services-section {
        background: white;
        color: black;
    }
    
    .service-card {
        background: #f5f5f5;
        backdrop-filter: none;
        border: 1px solid #ddd;
    }
}

/* services.css */

/* Note: Base styles for this section are mostly defined within mobile media queries */

@media (max-width: 768px) {
    #services {
        padding: 2rem 1rem !important;
    }

    #services h2 {
        font-size: 2.5rem !important;
        margin-bottom: 2rem !important;
    }
    
    #services .grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    #services .backdrop-blur-sm {
        padding: 1.5rem !important;
        margin: 0 auto !important;
        max-width: 90% !important;
    }

    #services h3 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }

    #services ul {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }

    #services li {
        margin-bottom: 0.5rem !important;
    }
}

@media (max-width: 480px) {
    .sliding-nati-image {
        height: 100vh !important;
        right: -35% !important;
    }

    section#services.active .sliding-nati-image {
        display: absolute;
        transform: scale(1.25) translateY(-40%) translateX(-35%) !important;
    }

    #services {
        padding: 1.5rem 0.5rem !important;
    }

    #services h2 {
        font-size: 2rem !important;
        margin-bottom: 1.5rem !important;
    }

    #services h3 {
        font-size: 1.25rem !important;
    }
    
    #services .backdrop-blur-sm {
        padding: 1rem !important;
        max-width: 95% !important;
    }

    #services ul {
        font-size: 0.8rem !important;
    }

    #services ul li {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
    }
}

@media (max-width: 460px) {
     #services {
        padding: 1rem !important;
    }

    #services h2 {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
    }

    #services h3 {
        font-size: 1.1rem !important;
    }

    #services ul {
        font-size: 0.75rem !important;
    }
}


