/* assets/css/services.css */
/* =========================================
   Editorial Bento Grid (Reference Style) 
   ========================================= */
.bento-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    margin-top: 60px;
    align-items: start;
}

.bento-right-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bento-card {
    background: #0C0C0C;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 28px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    border-color: rgba(124, 58, 237, 0.3);
    background: #111111;
}

.bento-card-left {
    height: 300px !important;
}

.bento-card-right {
    height: 140px !important;
    padding: 30px !important;
    justify-content: space-between;
}

.bento-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--color-accent);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
    margin-bottom: 30px;
}

.bento-quote {
    font-size: clamp(1.2rem, 1.2vw, 1.8rem);
    line-height: 1.35;
    color: #fff;
    font-weight: 400;
    max-width: 95%;
}

.bento-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    display: block;
}

.bento-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
}

.bento-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bento-author img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.author-meta span {
    display: block;
    font-size: 0.95rem;
    color: #fff;
    font-weight: 600;
}

.author-meta small {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.bento-card p.small-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 20px;
}

@media (max-width: 1100px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-card-left,
    .bento-card-right {
        height: auto !important;
        min-height: 250px;
    }
}

/* =========================================
   Fiber Optic Process Section
   ========================================= */
.process-section {
    position: relative;
    background: #000;
    overflow: hidden;
    padding-bottom: 80px;
}

.fiber-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 0;
}

.fiber-axis {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(-50%);
    z-index: 1;
}

.fiber-axis::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent,
            rgba(124, 58, 237, 0.2) 20%,
            rgba(124, 58, 237, 0.2) 80%,
            transparent);
}

.fiber-glow-orb {
    position: absolute;
    left: 50%;
    top: 0;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow:
        0 0 20px 5px rgba(124, 58, 237, 0.8),
        0 0 40px 10px rgba(124, 58, 237, 0.4);
    z-index: 2;
    transition: top 0.1s linear;
}

.fiber-step {
    position: relative;
    width: 50%;
    margin-bottom: 120px;
    opacity: 0.15;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 2;
}

.fiber-step.fiber-left {
    left: 0;
    padding-right: 60px;
    text-align: right;
}

.fiber-step.fiber-right {
    left: 50%;
    padding-left: 60px;
    text-align: left;
}

.fiber-content {
    display: inline-block;
    max-width: 400px;
}

.fiber-step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.fiber-left .fiber-step-header {
    flex-direction: row-reverse;
}

.fiber-number {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--color-accent);
    letter-spacing: 0.1em;
    font-family: var(--font-body);
    opacity: 0.8;
}

.fiber-step h3 {
    font-size: 1.75rem;
    font-weight: 500;
    margin: 0;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.5s ease;
}

.fiber-step p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.5s ease;
}

.fiber-step.is-active {
    opacity: 1;
    transform: translateY(0);
}

.fiber-step.is-active h3 {
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.fiber-step.is-active p {
    color: rgba(255, 255, 255, 0.8);
}

.fiber-step.is-passed {
    opacity: 0.5;
    transform: translateY(0);
}

.fiber-step.is-passed h3 {
    color: rgba(255, 255, 255, 0.6);
}

.fiber-step.is-passed p {
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .fiber-axis {
        left: 30px;
    }

    .fiber-glow-orb {
        left: 30px;
    }

    .fiber-step {
        width: 100%;
        left: 0 !important;
        padding-left: 70px !important;
        padding-right: 0 !important;
        text-align: left !important;
        margin-bottom: 80px;
    }

    .fiber-left .fiber-step-header {
        flex-direction: row;
    }

    .fiber-content {
        max-width: 100%;
    }
}

/* =========================================
   Services Section (High-End Mixed Bento)
   ========================================= */
.services-section {
    position: relative;
    background: #050505;
    overflow: hidden;
}

.services-bento-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 20px;
    margin-top: 60px;
}

.service-card-premium {
    background: rgba(12, 12, 12, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
    will-change: transform;
    --mouse-x: 50%;
    --mouse-y: 50%;
}

@keyframes ambient-pulse {
    0% { transform: translate(-10%, -10%) scale(1); opacity: 0.1; }
    50% { transform: translate(10%, 10%) scale(1.1); opacity: 0.2; }
    100% { transform: translate(-10%, -10%) scale(1); opacity: 0.1; }
}

.service-ambient-glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at 30% 30%, rgba(124, 58, 237, 0.06), transparent 60%);
    pointer-events: none;
    transition: opacity 0.6s ease;
    animation: ambient-pulse 10s infinite alternate ease-in-out;
    will-change: transform, opacity;
}

.service-card-premium:hover .service-ambient-glow {
    opacity: 0;
}

.service-card-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y), rgba(124, 58, 237, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card-premium:hover::before {
    opacity: 1;
}

.service-card-premium::after {
    content: '';
    position: absolute;
    inset: -1px;
    z-index: -1;
    background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y), rgba(124, 58, 237, 0.35), transparent 40%);
    border-radius: 32px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card-premium:hover::after {
    opacity: 1;
}

.service-card-premium:hover {
    border-color: rgba(124, 58, 237, 0.2);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-card-primary {
    grid-column: span 3;
    padding: 64px;
    min-height: 320px;
    justify-content: flex-end;
    background: rgba(15, 15, 15, 0.8);
}

.service-card-primary .service-icon-wrapper {
    background: rgba(124, 58, 237, 0.15);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.1);
}

.service-card-secondary {
    grid-column: span 2;
    padding: 40px;
    min-height: 300px;
    background: rgba(8, 8, 8, 0.8);
    justify-content: flex-start;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.service-icon-wrapper {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    color: var(--color-accent);
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-card-secondary .service-icon-wrapper {
    width: 52px;
    height: 52px;
}

.service-card-premium:hover .service-icon-wrapper {
    transform: rotate(5deg) scale(1.1);
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.2);
}

.service-content {
    position: relative;
    z-index: 1;
}

.service-card-premium h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0;
    color: #fff;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.service-card-secondary h3 {
    font-size: 1.3rem;
}

.service-card-premium p {
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    font-size: 1.05rem;
    max-width: 95%;
    transition: color 0.3s ease;
}

.service-card-premium:hover p {
    color: rgba(255, 255, 255, 0.8);
}

.service-card-premium.color-purple .service-icon-wrapper { color: #A855F7; }
.service-card-premium.color-blue .service-icon-wrapper { color: #3B82F6; }
.service-card-premium.color-deep-purple .service-icon-wrapper { color: #7C3AED; }
.service-card-premium.color-dark .service-icon-wrapper { color: #FFFFFF; }

.service-card-premium.color-purple:hover .service-icon-wrapper { border-color: rgba(168, 85, 247, 0.4); box-shadow: 0 0 30px rgba(168, 85, 247, 0.2); }
.service-card-premium.color-blue:hover .service-icon-wrapper { border-color: rgba(59, 130, 246, 0.4); box-shadow: 0 0 30px rgba(59, 130, 246, 0.2); }
.service-card-premium.color-deep-purple:hover .service-icon-wrapper { border-color: rgba(124, 58, 237, 0.4); box-shadow: 0 0 30px rgba(124, 58, 237, 0.2); }
.service-card-premium.color-dark:hover .service-icon-wrapper { border-color: rgba(255, 255, 255, 0.4); box-shadow: 0 0 30px rgba(255, 255, 255, 0.2); }

.service-card-primary:first-of-type::before {
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(124, 58, 237, 0.12), transparent 40%);
}

@media (max-width: 1100px) {
    .service-card-primary { grid-column: span 6; min-height: 380px; }
    .service-card-secondary { grid-column: span 3; }
}

@media (max-width: 768px) {
    .services-bento-grid { grid-template-columns: 1fr; gap: 16px; }
    .service-card-secondary { grid-column: span 6; min-height: 260px; }
    .service-card-primary { padding: 40px; }
}


/* --- Mobile Overrides (Extracted from Global CSS) --- */
@media (max-width: 768px) {
/* Bento Grid Fix - Stack everything */
    .bento-grid,
    .footer-content,
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Container padding */
    .container {
        padding: 0 16px !important;
    }

    /* Target large inline-styled paddings */
    [style*="padding: 40px"] {
        padding: 30px 16px !important;
    }

    /* Target large inline-styled font sizes */
    [style*="font-size: clamp"],
    [style*="font-size: 5rem"],
    [style*="font-size: 4.5rem"] {
        font-size: 2.2rem !important;
    }

    [style*="font-size: 1.25rem"] {
        font-size: 1.1rem !important;
    }

    .bento-card-left,
    .bento-card-right {
        height: auto !important;
        min-height: 180px;
        padding: 24px 16px !important;
    }

    .bento-number {
        font-size: 2.8rem !important;
    }

    .bento-quote {
        font-size: 1.1rem !important;
    }

    /* Sections Padding */
    .section-padding {
        padding: 50px 0 !important;
    }

    /* Header Spacing Fix (pages with Aurora) */
    header,
    section[style*="padding-top: 140px"] {
        padding-top: 100px !important;
    }

    /* Overlapping prevention for cards */
    .service-card-premium,
    .testimonial-card,
    .blog-post,
    .footer-column {
        margin-bottom: 30px;
    }

    /* Contact Cards */
    [style*="min-width: 200px"] {
        min-width: 100% !important;
        max-width: 100% !important;
    }

    /* Fiber Timeline Mobile */
    .fiber-timeline {
        padding: 40px 0 !important;
    }

    .fiber-axis {
        left: 10px !important;
        transform: none !important;
    }

    .fiber-glow-orb {
        left: 10px !important;
        transform: translate(-50%, -50%) !important;
    }

    .fiber-step {
        width: 100% !important;
        left: 0 !important;
        padding-left: 40px !important;
        padding-right: 0 !important;
        text-align: left !important;
        margin-bottom: 60px !important;
    }

    .fiber-left .fiber-step-header {
        flex-direction: row !important;
    }
}
