/* Softcadd Services - Ultra Premium Design System */

:root {
    --brand-orange: #F37021;
    --brand-blue: #07AFF6;
    --brand-navy: #0F172A;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --surface-white: #FFFFFF;
    --surface-off: #F8FAFC;
    --border-light: rgba(226, 232, 240, 0.8);
    --glass-shine: rgba(255, 255, 255, 0.6);
}

body {
    background-color: var(--surface-off) !important;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
}

/* =========================================
   GLOBAL TEXTURE & UTILS
   ========================================= */
.bg-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}

.text-gradient {
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.font-heading {
    font-family: 'Outfit', sans-serif; /* Setup in HTML head */
}

/* =========================================
   HERO SECTION - SPLIT COMPOSITION
   ========================================= */
.services-hero {
    position: relative;
    padding: 100px 0 60px; /* Reduced further for tightness */
    overflow-x: hidden;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 5;
    padding-right: 2rem;
}

.hero-super-title {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brand-orange);
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(243, 112, 33, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 100px;
}

.hero-heading {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 5vw, 5rem); /* Smaller min size for mobile */
    font-weight: 800;
    line-height: 1.1;
    color: var(--brand-navy);
    margin-bottom: 1.5rem;
}

/* Updated Gradient: Brand Navy to Orange */
.text-gradient {
    background: linear-gradient(135deg, var(--brand-navy) 20%, var(--brand-orange) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-sub {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 2.5rem;
    max-width: 520px;
}

/* Mobile Optimizations */
@media (max-width: 991px) {
    .services-hero {
        padding: 100px 0 40px;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-super-title {
        margin-bottom: 1rem;
        font-size: 0.75rem;
    }

    .hero-heading {
        font-size: 2.75rem; /* Specific mobile size */
        margin-bottom: 1rem;
        line-height: 1.15;
    }

    .hero-sub {
        font-size: 1rem;
        margin-bottom: 2rem;
        max-width: 100%;
        padding: 0 1rem;
    }

    /* Hide background glows on mobile for cleaner look */
    .hero-glow, .hero-bg-shape {
        display: none !important;
    }
}

/* =========================================
   HERO VISUAL - 3D INTERFACE STACK
   ========================================= */
.hero-visual-wrapper {
    position: relative;
    height: 600px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

/* The Main Anchor - Glass Interface Plate */
.interface-plate {
    position: relative;
    width: 480px;
    height: 380px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    box-shadow: 
        0 40px 80px -20px rgba(15, 23, 42, 0.15),
        inset 0 0 0 1px rgba(255,255,255,0.6);
    transform: rotateY(-12deg) rotateX(5deg);
    transition: transform 0.5s ease;
    z-index: 2;
    overflow: hidden;
}

.interface-plate:hover {
    transform: rotateY(-8deg) rotateX(2deg) translateY(-10px);
}

/* Mockup UI - Dashboard Look */
.mockup-container {
    display: flex;
    width: 100%;
    height: 100%;
}

.mockup-sidebar {
    width: 70px;
    background: var(--brand-navy);
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.sidebar-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.sidebar-icon.active {
    background: var(--brand-orange);
}

.mockup-main {
    flex-grow: 1;
    background: #F8FAFC;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    align-items: center;
}

.header-bar { height: 12px; width: 120px; background: #E2E8F0; border-radius: 4px; }
.header-dots { display: flex; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; opacity: 0.5; }

.mockup-graph-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    flex-grow: 1;
    position: relative;
    overflow: hidden;
    border: 1px solid #F1F5F9;
}

/* Authentic Graph Animation */
.graph-path {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 60%;
    background: linear-gradient(180deg, rgba(7, 175, 246, 0.2) 0%, rgba(255,255,255,0) 100%);
    clip-path: polygon(0 100%, 0 40%, 10% 45%, 20% 30%, 30% 60%, 40% 40%, 50% 50%, 60% 20%, 70% 35%, 80% 10%, 90% 30%, 100% 0, 100% 100%);
    animation: scrollGraph 8s linear infinite;
}

@keyframes scrollGraph {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Abstract Glows */
.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(243, 112, 33, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    filter: blur(60px);
}


/* Floating Chips sticking out of the plate */
.floating-card {
    position: absolute;
    background: #ffffff;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
    min-width: 180px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    animation: floatCard 6s ease-in-out infinite;
}

.card-1 { 
    top: 15%; 
    right: 5%; 
    animation-delay: 0s; 
    border-left: 4px solid var(--brand-orange);
}

.card-2 { 
    bottom: 20%; 
    left: -5%; 
    animation-delay: 1.5s; 
    border-left: 4px solid var(--brand-blue);
    z-index: 12; /* In front of plate */
}

.card-3 { 
    top: -10%; 
    left: 10%; 
    animation-delay: 2.5s; 
    background: var(--brand-navy);
    color: white;
    border: none;
}
.card-3 .text-muted { color: rgba(255,255,255,0.7) !important; }

/* Background Orbital Decoration */
.hero-orbit {
    position: absolute;
    width: 550px;
    height: 550px;
    border: 1px dashed rgba(15, 23, 42, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    animation: spinOrbit 40s linear infinite;
}

.hero-orbit::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--brand-orange);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--brand-orange);
}

@keyframes spinOrbit {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Abstract Glows */
.hero-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(7, 175, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
}


/* =========================================
   SERVICES GRID - EDITORIAL STYLE
   ========================================= */
.services-section {
    padding-bottom: 120px;
    position: relative;
    z-index: 2;
}

.service-card-editorial {
    background: var(--surface-white);
    border: 1px solid var(--border-light);
    border-radius: 0; /* Sharp, tech feel or minimal radius */
    border-radius: 16px;
    padding: 3rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
}

/* Number Index (01, 02) */
.service-index {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(0,0,0,0.03);
    font-family: 'Outfit', sans-serif;
    transition: all 0.5s ease;
    line-height: 1;
}

.service-card-editorial:hover .service-index {
    color: rgba(243, 112, 33, 0.1);
    transform: scale(1.1) translateX(-10px);
}

/* Icon */
.service-icon-box {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-off);
    border-radius: 12px;
    margin-bottom: 2.5rem;
    color: var(--brand-navy);
    transition: all 0.4s ease;
}

.service-card-editorial:hover .service-icon-box {
    background: var(--brand-orange);
    color: white;
    transform: rotateY(180deg);
}
.service-card-editorial:hover .service-icon-box i {
    transform: rotateY(-180deg); /* Counter rotate icon to keep it facing forward if desired, or let it spin */
}

/* Typography */
.service-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.service-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

/* Interactive Footer of Card */
.service-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid var(--surface-off);
    margin-top: auto;
}

.btn-learn-more {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-navy);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease, color 0.3s ease;
}

.service-card-editorial:hover .btn-learn-more {
    gap: 1rem;
    color: var(--brand-orange);
}

.service-card-editorial:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px -10px rgba(0,0,0,0.08),
        0 0 0 1px rgba(243, 112, 33, 0.2); /* Highlight border */
    border-color: transparent;
}

/* Responsive */
@media (max-width: 991px) {
    .services-hero {
        padding-top: 120px;
        text-align: center;
    }
    
    .hero-heading {
        font-size: 3.5rem;
    }
    
    .hero-visual-wrapper {
        display: none; /* Hide complex visual on mobile/tablet for focus */
    }
    
    .service-card-editorial {
        padding: 2rem;
    }
    .service-index {
        font-size: 3rem;
    }
}


