/* SCOPED CSS: our_service */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Orbitron:wght@500;700&display=swap');

/* 1. Main Container - SCROLLABLE TRACK */
.our_service_container {
    position: relative;
    width: 100%;
    height: 600vh; /* Necessary for scroll length */
    background-color: #030508;
    font-family: 'Inter', sans-serif;
    color: #fff;
}

/* 2. Sticky Viewport - THE VISUAL WINDOW */
.our_service_sticky_wrapper {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden; /* Clips content outside the screen */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

/* 3. 3D Background Canvas */
/* Make sure this is INSIDE sticky wrapper in HTML */
#sciFiBg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* 4. Background Text Layout */
.our_service_bg_text_wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1600px;
    z-index: 1; 
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* --- LEFT SIDE: HEADLINE --- */
.our_service_headline_col {
    flex: 1;
}

.our_service_bg_line {
    font-family: 'Orbitron', sans-serif;
    font-size: 5.5vw;
    line-height: 1.1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.our_service_headline_col .our_service_bg_line:last-child {
    color: #00f3ff;
    text-shadow: 0 0 25px rgba(0, 243, 255, 0.8);
}

/* --- RIGHT SIDE: DESCRIPTION --- */
.our_service_desc_col {
    width: 300px;
    margin-left: 5rem;
    padding-top: 15px;
}

@media (min-width: 1400px) {
    .our_service_desc_col {
        width: 400px;
    }
}

.our_service_desc_col p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #a0aab5;
    margin-bottom: 2rem;
    border-left: 2px solid #00f3ff;
    padding-left: 1rem;
}

/* 5. The Card Wrapper */
.our_service_card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    height: 380px;
    z-index: 10;
    opacity: 0;
    will-change: transform, opacity;
    pointer-events: auto; 
}

/* 6. Glass Effect - FIXED READABILITY */
.our_service_card_glass {
    position: relative;
    width: 100%;
    height: 100%;
    
    /* 1. DARKER BACKGROUND (90% Opacity) */
    background: rgba(5, 10, 15, 0.95);
    
    /* 2. STRONGER BLUR */
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    
    /* Glowing Border */
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-top: 1px solid rgba(0, 243, 255, 0.6);
    
    /* Stronger Shadow to lift card off text */
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.9),
        inset 0 0 20px rgba(0, 243, 255, 0.05);
        
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.our_service_card_glass:hover {
    border-color: rgba(0, 243, 255, 1);
    box-shadow: 0 0 35px rgba(0, 243, 255, 0.4);
    transform: translateY(-5px);
}

/* Content Styling */
.our_service_card_content {
    position: relative;
    z-index: 2; /* Ensure text is above background */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.our_service_card_logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #00f3ff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

/* 3. TEXT SHADOW FOR READABILITY */
.our_service_quote {
    font-size: 1.05rem;
    line-height: 1.5;
    color: #ffffff; /* Pure white text */
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0,0,0, 0.8); /* Drop shadow on text */
}

.our_service_author {
    margin-top: auto;
    font-size: 0.75rem;
    color: #a0aab5;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.our_service_author strong {
    color: #fff;
    display: block;
    margin-bottom: 4px;
    font-family: 'Orbitron', sans-serif;
}

/* ==========================================
   UPDATED RESPONSIVE LOGIC
   Fixes mobile cropping by removing 50% centering
   ========================================== */

@media (max-width: 992px) {
    .our_service_bg_text_wrapper {
        flex-direction: column;
        left: 5%;
        /* Remove vertical centering to prevent top/bottom cropping */
        top: 10%; 
        transform: none; 
        width: 90%;
        display: block; /* Ensure stacked layout */
    }

    .our_service_bg_line {
        font-size: 11vw;
        /* Allow text to wrap if it exceeds screen width */
        white-space: normal; 
        line-height: 1.2;
        margin-bottom: 5px;
    }

    .our_service_desc_col {
        width: 100%;
        margin-left: 0;
        margin-top: 1.5rem;
        max-width: 450px;
        padding-bottom: 50px; /* Buffer space */
    }
}

@media (max-width: 768px) {
    /* Anchoring text higher on small screens */
    .our_service_bg_text_wrapper {
        top: 8%; 
    }

    .our_service_bg_line {
        font-size: 12vw; 
    }

    /* Background text pushed back */
    .our_service_bg_text_wrapper {
        z-index: 1;
    }

    /* Cards stay on top and are slightly smaller for mobile */
    .our_service_card {
        width: 290px;
        height: 360px;
        z-index: 20;
    }

    /* Darken area behind cards to improve readability of the background text */
    .our_service_sticky_wrapper::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(3, 5, 8, 0.7);
        z-index: 0;
        pointer-events: none;
    }

    .our_service_container {
        /* Necessary for scroll length on mobile */
        height: 600vh !important; 
    }
}