/* ===================================
   Graphin8 - Services Page Theme
   File: pages/services/assets/css/services.css
   =================================== */

:root {
  --svc-navy: #060a20;
  --svc-card-bg: #0f1738;
  --svc-blue: #1F3C88;
  --svc-cyan: #5893D4;
  --svc-orange: #F7B633;
  --svc-orange-hover: #e69a2b;
  --svc-text-main: #e6eefb;
  --svc-text-muted: #94a3b8;
  --svc-border: rgba(255, 255, 255, 0.08);
  --svc-glass: rgba(15, 23, 56, 0.7);
}

/* Base Layout */
.g8-services-main {
    background-color: var(--svc-navy);
    color: var(--svc-text-main);
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

.svc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.text-center { text-align: center; }
.text-gradient {
    background: linear-gradient(90deg, var(--svc-cyan), #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Buttons --- */
.g8-btn-primary {
    background: var(--svc-orange);
    color: var(--svc-navy);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--svc-orange);
}

.g8-btn-primary:hover {
    background: var(--svc-orange-hover);
    border-color: var(--svc-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(247, 182, 51, 0.2);
}

.g8-btn-glass {
    background: rgba(255,255,255,0.05);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.g8-btn-glass:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}

/* --- 1. Hero Section --- */
.svc-hero {
    position: relative;
    padding: 140px 0 100px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.svc-hero-bg {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(31, 60, 136, 0.4) 0%, rgba(6, 10, 32, 0) 70%);
    filter: blur(80px);
    z-index: 0;
    animation: pulseGlow 5s infinite alternate;
}

@keyframes pulseGlow {
    0% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    100% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

.svc-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(88, 147, 212, 0.1);
    border: 1px solid rgba(88, 147, 212, 0.3);
    color: var(--svc-cyan);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.svc-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.svc-subtitle {
    font-size: 1.2rem;
    color: var(--svc-text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.svc-hero-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* --- 1.5 Marquee Section (Updated Size) --- */
.g8-marquee-section {
    position: relative;
    background: linear-gradient(90deg, var(--svc-navy) 0%, var(--svc-card-bg) 50%, var(--svc-navy) 100%);
    border-top: 1px solid var(--svc-border);
    border-bottom: 1px solid var(--svc-border);
    padding: 40px 0; /* Increased padding */
    overflow: hidden;
    user-select: none;
    margin-bottom: 50px;
}

.g8-marquee-track {
    display: flex;
    width: fit-content;
    gap: 0; 
    animation: scroll-left 30s linear infinite; 
}

/* Pause on hover */
.g8-marquee-section:hover .g8-marquee-track {
    animation-play-state: paused;
}

.g8-marquee-content {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding-right: 50px; 
}

.mq-item {
    font-size: 5rem; /* Increased from 3rem */
    font-weight: 800;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.05); 
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3); 
    white-space: nowrap;
    transition: all 0.3s ease;
}

.mq-item:hover {
    color: var(--svc-cyan); 
    -webkit-text-stroke: 0px;
    text-shadow: 0 0 20px rgba(88, 147, 212, 0.5);
}

.mq-sep {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 60px; /* Increased spacing */
    color: var(--svc-orange);
}

.mq-sep svg {
    width: 42px; /* Increased icon size */
    height: 42px;
    fill: var(--svc-orange);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); 
    }
}



/* --- 2. Services Grid --- */
.svc-section {
    padding: 100px 0;
    position: relative;
}

.svc-bg-alt {
    background: linear-gradient(180deg, var(--svc-navy) 0%, var(--svc-card-bg) 100%);
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--svc-orange);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-desc {
    color: var(--svc-text-muted);
    font-size: 1.1rem;
}

.svc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.svc-card {
    background: rgba(15, 23, 56, 0.6);
    border: 1px solid var(--svc-border);
    padding: 40px 30px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.svc-card:hover {
    transform: translateY(-10px);
    border-color: var(--svc-cyan);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.svc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--svc-cyan), var(--svc-orange));
    opacity: 0;
    transition: opacity 0.3s;
}

.svc-card:hover::before { opacity: 1; }

.svc-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

/* Icon Colors */
.color-1 { background: rgba(88, 147, 212, 0.15); color: var(--svc-cyan); }
.color-2 { background: rgba(247, 182, 51, 0.15); color: var(--svc-orange); }
.color-3 { background: rgba(236, 72, 153, 0.15); color: #ec4899; }
.color-4 { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.color-5 { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.color-6 { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

.svc-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.svc-card p {
    color: var(--svc-text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.svc-list {
    list-style: none;
    padding: 0;
}

.svc-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.svc-list li svg {
    width: 16px; height: 16px;
    color: var(--svc-cyan);
}

/* --- 3. Process Section (Steps) --- */
.process-wrapper {
    position: relative;
    margin-top: 50px;
    padding: 20px 0;
}

.process-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--svc-cyan) 0%, rgba(88, 147, 212, 0.1) 100%);
    transform: translateX(-50%);
}

.process-step {
    display: flex;
    justify-content: flex-end; /* Default Left Side */
    padding-right: 50%;
    margin-bottom: 60px;
    position: relative;
}

.process-step.right {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.step-num {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--svc-navy);
    border: 2px solid var(--svc-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--svc-white);
    z-index: 2;
    box-shadow: 0 0 15px rgba(88, 147, 212, 0.5);
}

.step-content {
    background: var(--svc-card-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--svc-border);
    max-width: 450px;
    width: 90%;
    position: relative;
}

/* Connectors */
.process-step .step-content::after {
    content: '';
    position: absolute;
    top: 25px;
    right: -20px; /* Point to center */
    width: 20px; height: 2px;
    background: var(--svc-cyan);
    opacity: 0.5;
}

.process-step.right .step-content::after {
    right: auto;
    left: -20px;
}

.step-content h3 { color: var(--svc-orange); margin-bottom: 10px; }
.step-content p { color: var(--svc-text-muted); margin: 0; line-height: 1.6; }

/* --- 4. CTA Banner --- */
.svc-cta {
    padding: 50px 0 100px;
}

.cta-box {
    background: linear-gradient(135deg, var(--svc-blue) 0%, var(--svc-navy) 100%);
    border-radius: 20px;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    right: -50px; bottom: -50px;
    width: 200px; height: 200px;
    background: var(--svc-cyan);
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(50px);
}

.cta-content h2 { font-size: 2rem; margin-bottom: 10px; }
.cta-content p { color: rgba(255,255,255,0.7); font-size: 1.1rem; }

/* --- 5. Animations --- */
.scroll-reveal, .scroll-reveal-left, .scroll-reveal-right, .scroll-reveal-up {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.scroll-reveal { transform: translateY(30px); }
.scroll-reveal-left { transform: translateX(-50px); }
.scroll-reveal-right { transform: translateX(50px); }
.scroll-reveal-up { transform: scale(0.95); }

.in-view {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* ===========================
   2.5 PRICING SECTION
   =========================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: stretch; /* Ensures cards are same height */
    margin-top: 50px;
    padding: 20px 0; /* Space for hover transform */
}

/* Card Base */
.pricing-card {
    background: rgba(15, 23, 56, 0.4);
    border: 1px solid var(--svc-border);
    border-radius: 20px;
    padding: 40px 30px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

/* Hover Effect */
.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--svc-cyan);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(15, 23, 56, 0.8);
}

/* Popular Card Styling (Center Card) */
.pricing-card.popular {
    background: linear-gradient(180deg, rgba(247, 182, 51, 0.05) 0%, rgba(15, 23, 56, 0.6) 100%);
    border-color: rgba(247, 182, 51, 0.3);
    box-shadow: 0 10px 30px rgba(247, 182, 51, 0.1);
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
    border-color: var(--svc-orange);
    box-shadow: 0 25px 50px rgba(247, 182, 51, 0.15);
}

/* Popular Badge */
.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--svc-orange);
    color: var(--svc-navy);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(247, 182, 51, 0.4);
}

/* Header Section inside Card */
.pricing-header {
    text-align: center;
    border-bottom: 1px solid var(--svc-border);
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.pricing-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--svc-text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: 0.3s;
}

/* Icon Animation on Hover */
.pricing-card:hover .pricing-icon {
    background: var(--svc-cyan);
    color: #fff;
    transform: rotateY(180deg);
}

.pricing-card.popular:hover .pricing-icon {
    background: var(--svc-orange);
    color: var(--svc-navy);
}

.pricing-header h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 700;
}

/* Price Typography */
.price-box {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 15px;
    color: #fff;
}

.price-box .currency {
    font-size: 1.5rem;
    font-weight: 600;
    margin-right: 2px;
}

.price-box .amount {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.price-box .period {
    color: var(--svc-text-muted);
    font-size: 1rem;
    margin-left: 5px;
}

.pricing-desc {
    color: var(--svc-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    min-height: 45px; /* Alignment fix */
}

/* Features List */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.pricing-features li svg {
    width: 18px;
    height: 18px;
    color: var(--svc-cyan);
    flex-shrink: 0;
}

.pricing-card.popular .pricing-features li svg {
    color: var(--svc-orange);
}

/* Helper Class for Button Width */
.w-full {
    width: 100%;
    justify-content: center;
}

/* Responsive */
@media (max-width: 992px) {
    .svc-title { font-size: 2.8rem; }
    .pricing-card.popular {
        transform: scale(1);
        z-index: 1;
        margin-top: 15px;
        margin-bottom: 15px;
    }
    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }
    .pricing-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .svc-hero { padding: 100px 0 60px; }
    .svc-title { font-size: 2.2rem; }
    
    .process-line { left: 20px; }
    
    .process-step {
        justify-content: flex-start;
        padding-right: 0;
        padding-left: 60px; /* Space for line */
    }
    
    .process-step.right { padding-left: 60px; }
    
    .step-num { left: 20px; }
    
    .process-step .step-content::after {
        right: auto; left: -20px; width: 20px;
    }

    .cta-box { flex-direction: column; text-align: center; gap: 30px; }
}