/* assets/css/services-apple.css */

.services-apple {
    position: relative;
    height: 1600vh;
    /* Expanded scroll room for 7 services + Outro */
    background-color: var(--bg-color, #0f1011);
    color: #fff;
    overflow: clip;
    /* Fix: clip preserves position: sticky but hides horizontal scrollbars */
    margin-top: -100vh;
    /* perfectly overlaps with the 100vh sticky container offset of previous section */
}

.sticky-services {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
}

.service-intro {
    position: absolute;
    text-align: center;
    width: 90%;
    opacity: 0;
    will-change: opacity, transform, filter;
    z-index: 10;
}

.service-intro h2 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
}

.service-intro h2.highlight {
    background: linear-gradient(90deg, #0ef, #0077ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-top: 10px;
}

.service-presentation {
    position: absolute;
    width: 90%;
    max-width: 1200px;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(30px);
    will-change: opacity, transform;
    visibility: hidden;
}

.service-texts {
    flex: 1;
    position: relative;
    height: 100%;
    max-width: 500px;
}

.service-text {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(-50%) translateX(-30px);
    will-change: transform, opacity;
    visibility: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.service-text h3 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #0ef, #00c3ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.service-text p {
    font-size: 22px;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 30px;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: #ccc;
}

.service-features li i {
    color: #0ef;
    margin-right: 15px;
    font-size: 26px;
}

.service-visuals {
    flex: 1;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.service-visual {
    position: absolute;
    right: 0;
    width: 100%;
    max-width: 450px;
    opacity: 0;
    transform: scale(0.9) translateX(30px);
    will-change: transform, opacity;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ========================================= */
/* VISUAL 1: CHAT INTERFACE                  */
/* ========================================= */
.chat-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.chat-bubble {
    padding: 15px 20px;
    border-radius: 20px;
    margin-bottom: 15px;
    font-size: 1rem;
    max-width: 80%;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.chat-bubble.user {
    background: #323946;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.chat-bubble.ai {
    background: linear-gradient(90deg, #0ef, #0077ff);
    color: #fff;
    align-self: flex-start;
    border-bottom-left-radius: 0;
    box-shadow: 0 5px 15px rgba(0, 119, 255, 0.3);
}

.chat-bubble.ai.typing {
    background: #1f242d;
    box-shadow: none;
    border: 1px solid rgba(0, 238, 255, 0.3);
}

.dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #0ef;
    border-radius: 50%;
    margin: 0 3px;
    animation: bounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* ========================================= */
/* VISUAL 2: AUTOMATION NODES                */
/* ========================================= */
.node-network {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 30px;
}

.node {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: #323946;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #fff;
    border: 2px solid rgba(0, 238, 255, 0.3);
    z-index: 2;
    opacity: 0;
    transform: scale(0);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.node.brain {
    border-color: #0ef;
    box-shadow: 0 0 20px rgba(0, 238, 255, 0.5);
    background: #1f242d;
    color: #0ef;
}

.line {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, #0ef, transparent);
    transform: translateX(-100%);
}

.line.animating::after {
    animation: flow 1.5s infinite linear;
}

@keyframes flow {
    100% {
        transform: translateX(100%);
    }
}

/* ========================================= */
/* VISUAL 3: CUSTOM DASHBOARD                */
/* ========================================= */
.dashboard-mockup {
    width: 100%;
    height: 300px;
    background: #1f242d;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dash-header {
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dash-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #555;
    margin-right: 8px;
}

.dash-dot:nth-child(1) {
    background: #ff5f56;
}

.dash-dot:nth-child(2) {
    background: #ffbd2e;
}

.dash-dot:nth-child(3) {
    background: #27c93f;
}

.dash-body {
    display: flex;
    flex: 1;
}

.dash-sidebar {
    width: 30%;
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
}

.dash-item {
    height: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.5s ease;
}

.dash-main {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dash-card {
    flex: 1;
    background: rgba(0, 238, 255, 0.05);
    border: 1px solid rgba(0, 238, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.dash-card h2 {
    margin: 0;
    font-size: 2rem;
    color: #0ef;
    display: flex;
    align-items: center;
}

.dash-card h2 i {
    margin-right: 15px;
}

.dash-card p {
    margin: 5px 0 0;
    color: #ccc;
    font-size: 1.6rem;
}

/* ========================================= */
/* VISUAL 4: EXCEL MOCKUP                    */
/* ========================================= */
.excel-mockup {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border: 1px solid #c8c6c4;
}

.excel-ribbon {
    background: #107c41;
    /* Official Excel Green */
    color: white;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    font-size: 1.6rem;
}

.excel-window-controls {
    display: flex;
    gap: 6px;
    margin-right: 15px;
}

.w-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.w-dot.red {
    background: #ff5f56;
}

.w-dot.yellow {
    background: #ffbd2e;
}

.w-dot.green {
    background: #27c93f;
}

.excel-title {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.excel-formula-bar {
    background: #fff;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e1dfdd;
    padding: 4px 10px;
    font-size: 0.85rem;
}

.fx-icon {
    font-style: italic;
    color: #605e5c;
    font-weight: bold;
    margin-right: 10px;
    border-right: 1px solid #e1dfdd;
    padding-right: 10px;
}

.fx-input {
    flex: 1;
    height: 20px;
}

.excel-grid-container {
    background: #e1dfdd;
    /* Grid border color */
    padding: 1px 0 0 1px;
}

.excel-grid {
    display: grid;
    grid-template-columns: 35px 1fr 1.5fr 1.2fr 1fr;
    background: #e1dfdd;
    gap: 1px;
    /* Creates the generic borders */
}

.col-header,
.row-header {
    background: #f3f2f1;
    color: #605e5c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    padding: 4px;
}

.col-header.blank {
    background: #e1dfdd;
    position: relative;
}

.col-header.blank::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-bottom: 6px solid #c8c6c4;
}

.cell {
    background: #fff;
    padding: 6px 10px;
    font-size: 0.85rem;
    color: #000;
    position: relative;
    /* initial state for JS animation */
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.cell.header {
    font-weight: bold;
    background: #fff;
    border-bottom: 2px solid #e1dfdd;
    opacity: 1;
    /* Headers are always visible */
    transform: translateY(0);
}

.cell.highlight-cell {
    color: #107c41;
    font-weight: 600;
}

.cell.active-cell {
    outline: 2px solid #107c41;
    outline-offset: -2px;
    z-index: 2;
}

.cell.active-cell::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 6px;
    height: 6px;
    background: #107c41;
    border: 1px solid #fff;
}

.excel-footer {
    background: #f3f2f1;
    display: flex;
    align-items: center;
    padding: 0;
    border-top: 1px solid #e1dfdd;
    font-size: 0.8rem;
    color: #605e5c;
}

.excel-tab {
    padding: 6px 15px;
    border-right: 1px solid #e1dfdd;
    cursor: pointer;
}

.excel-tab.active {
    background: #fff;
    color: #107c41;
    font-weight: 600;
    border-bottom: 2px solid #107c41;
}

.add-sheet {
    padding: 0 15px;
    font-size: 1.6rem;
    cursor: pointer;
}

/* ========================================= */
/* VISUAL 5: PHONE MOCKUP                    */
/* ========================================= */
.phone-mockup {
    width: 250px;
    height: 480px;
    background: #111;
    border-radius: 35px;
    border: 6px solid #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 30px 15px;
    box-shadow: 0 15px 40px rgba(0, 238, 255, 0.2);
    /* Set by JS animatePhone */
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.phone-status {
    text-align: center;
}

.audio-waveform {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 60px;
}

.bar {
    width: 6px;
    background: #0ef;
    border-radius: 3px;
    height: 10px;
    animation: waveform 0.8s infinite ease-in-out alternate;
}

.bar:nth-child(2) {
    animation-delay: 0.1s;
}

.bar:nth-child(3) {
    animation-delay: 0.2s;
}

.bar:nth-child(4) {
    animation-delay: 0.3s;
}

.bar:nth-child(5) {
    animation-delay: 0.4s;
}

.bar:nth-child(6) {
    animation-delay: 0.5s;
}

@keyframes waveform {
    0% {
        height: 10px;
    }

    100% {
        height: 50px;
    }
}

.phone-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.action-btn.hangup {
    background: #ff3b30;
    color: #fff;
}

/* ========================================= */
/* VISUAL 6: PDF SCANNER MOCKUP              */
/* ========================================= */
.pdf-mockup {
    display: flex;
    gap: 20px;
    align-items: center;
    width: 100%;
}

.pdf-document {
    background: #fff;
    width: 200px;
    height: 280px;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    border-radius: 4px;
    color: #333;
    overflow: hidden;
}

.pdf-header {
    font-size: 1.2rem;
    font-weight: 800;
    border-bottom: 2px solid #ccc;
    margin-bottom: 15px;
    padding-bottom: 5px;
}

.pdf-line {
    background: #eee;
    height: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    width: 80%;
}

.pdf-line.highlight-extract {
    background: #0ef;
    width: 60%;
}

.pdf-scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #0077ff;
    box-shadow: 0 0 15px 5px rgba(0, 119, 255, 0.6);
    /* JS animated translateY */
    transform: translateY(0);
}

.extracted-data {
    flex: 1;
    display: flex;
    justify-content: center;
}

.data-badge {
    background: rgba(0, 238, 255, 0.1);
    border: 1px solid #0ef;
    color: #0ef;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s ease;
}

/* ========================================= */
/* VISUAL 7: EMAIL AI MOCKUP                 */
/* ========================================= */
.email-mockup {
    width: 100%;
    background: #1f242d;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    overflow: hidden;
    height: 280px;
}

.email-list {
    width: 40%;
    background: rgba(255, 255, 255, 0.03);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
}

.email-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.email-item.unread {
    border-left: 4px solid #0077ff;
    background: rgba(0, 119, 255, 0.1);
}

.e-sender {
    font-weight: bold;
    font-size: 1.6rem;
}

.e-subj {
    font-size: 0.8rem;
    color: #ccc;
    margin-top: 5px;
}

.email-view {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.e-body {
    font-size: 1.6rem;
    color: #ddd;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.e-reply {
    flex: 1;
    background: #2a303c;
    border-radius: 8px;
    padding: 15px;
    font-size: 1.6rem;
    color: #0ef;
    position: relative;
    /* JS clip-path typewriter animation */
    clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    transition: clip-path 0.1s linear;
}

.e-btn {
    align-self: flex-end;
    margin-top: 15px;
    background: linear-gradient(90deg, #0077ff, #0ef);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
}

/* ========================================= */
/* OUTRO TEXT                                */
/* ========================================= */
.service-outro {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    opacity: 0;
    visibility: hidden;
    z-index: 100;
}

.service-outro h2 {
    font-size: 4.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, #fff, #0077ff, #0ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(0, 238, 255, 0.2));
    margin: 0;
    line-height: 1.2;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .service-intro h2 {
        font-size: 4rem;
    }

    .service-presentation {
        flex-direction: column;
        height: 85vh;
        text-align: center;
        justify-content: flex-start;
        margin-top: 10vh;
    }

    .service-texts { height: 40%; min-height: 250px; position: relative; width: 100%; display: flex; align-items: center; justify-content: center; }

    /* Removing broken absolute top:0 */
    .service-text { text-align: center; max-width: 90%; margin: 0 auto; left: 0; right: 0; top: 50%; transform: translateY(-50%); padding: 0 15px; }

    .service-text h3 {
        font-size: 2.8rem;
    }

    .service-visuals {
        width: 100%;
        justify-content: center;
        height: 350px;
    }

    .service-visual {
        right: auto;
        justify-content: center;
    }

    .service-features li {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .service-intro h2 {
        font-size: 3rem;
    }

    .service-text h3 {
        font-size: 2.2rem;
    }

    .service-text p {
        font-size: 1rem;
    }

    .node {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .service-intro h2 {
        font-size: 2.2rem;
        padding: 0 10px;
    }

    .service-text h3 {
        font-size: 2.8rem;
    }

    .service-text p { display: block; font-size: 2.8rem; margin-bottom: 10px; line-height: 1.4; color: #ccc; }

    .service-features li {
        font-size: 1.6rem;
    }

    .dash-card h2 {
        font-size: 2.5rem;
    }

    .chat-bubble {
        font-size: 1.6rem;
        padding: 10px 15px;
    }

    .service-presentation { height: 85vh; justify-content: flex-start; margin-top: 5vh; gap: 10px; }

    .service-texts { height: 40%; min-height: 220px; }

    .service-visuals {
        height: 280px;
    }
}
/* ZERO-COMPROMISE RESPONSIVE OVERRIDES */
@media (max-width: 480px) {
    .service-visuals { height: auto; padding: 10px 0; }
    .service-visual { width: 95vw; max-width: 100%; overflow: hidden; }
    .chat-container, .excel-mockup, .dashboard-mockup, .phone-mockup, .pdf-mockup, .email-mockup {
        width: 100%; border-radius: 10px; min-width: 0; box-sizing: border-box;
    }
    .chat-bubble { width: auto; max-width: 90%; margin-left: 0; }
    .excel-grid-container { overflow-x: scroll; }
    .node-network { transform: scale(0.8); }
}

@media (max-width: 480px) {
    /* Vertical Node Network */
    
    

    /* Fix Phone Mockup Aspect Ratio */
    

    /* Reduce Services Outro Gap */
    
}

@media (max-width: 480px) {
    /* Make nodes bigger and remove scale */
    
    .node { width: 70px !important; height: 70px !important; }
    .node i { font-size: 2rem !important; }
    
    /* Fix the vertical animation of the lines */
    
    
    
    
    /* Shrink the phone mockup more */
    
}

@media (max-width: 480px) {
    /* Palitos visibly solid */
    
    /* Bigger Nodes */
    .node { width: 90px !important; height: 90px !important; }
    .node i { font-size: 3.5rem !important; }
    
    /* Phone mockup much shorter */
    
}

@media (max-width: 480px) { .node-network { flex-direction: row !important; transform: scale(0.7) !important; gap: 10px; } }

@media (max-width: 480px) { .phone-mockup { width: 85vw !important; max-width: 280px !important; margin: 0 auto !important; aspect-ratio: 9/16 !important; height: auto !important; border-radius: 25px !important; } }

@media (max-width: 480px) { .service-outro { height: 100vh !important; display: flex !important; flex-direction: column !important; justify-content: center !important; align-items: center !important; padding: 0 20px !important; } }
