/* =============================================
   SOFTWARE FACTORY - WEBSITE CLONE THEME
   ============================================= */

:root {
    --soft-primary: #0ea5e9;
    /* Sky Blue */
    --soft-secondary: #6366f1;
    /* Indigo */
    --soft-bg: #f8fafc;
    /* Slate 50 */
    --soft-dark: #0f172a;
    /* Slate 900 */
    --soft-muted: #64748b;
    /* Slate 500 */
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
}

body.software-page {
    background-color: #ffffff;

    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

/* HERO SECTION - Vibrant Tech Light Theme */
.software-hero {
    position: relative;
    padding: 8rem 0 6rem;
    background-color: #f0f9ff;
    /* Light Sky Base */
    background-image:
        radial-gradient(at 0% 0%, rgba(6, 182, 212, 0.25) 0%, transparent 50%),
        /* Vibrant Cyan */
        radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.25) 0%, transparent 50%),
        /* Vibrant Purple */
        radial-gradient(at 50% 100%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
        /* Vibrant Blue */
        linear-gradient(120deg, #dbeafe 0%, #f3e8ff 100%);
    /* Subtle Diagonal Flow */
    background-blend-mode: overlay, normal, normal, normal;
    overflow: hidden;
}

.hero-badge {
    background: rgba(14, 165, 233, 0.1);
    color: #0284c7;
    border: 1px solid rgba(14, 165, 233, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.5rem;
    columns: var(--soft-dark);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    font-weight: 800;
    color: #0f172a;
}

.hero-title .highlight {
    background: linear-gradient(90deg, #0ea5e9, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 3D TECH SPHERE ANIMATION */
.tech-sphere-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-sphere {
    position: relative;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    animation: sphere-float 6s ease-in-out infinite;
}

.sphere-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(14, 165, 233, 0.3);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.1);
}

.r1 {
    width: 300px;
    height: 300px;
    border-color: rgba(99, 102, 241, 0.4);
    animation: rotate-3d-1 10s linear infinite;
}

.r2 {
    width: 260px;
    height: 260px;
    border-color: rgba(14, 165, 233, 0.6);
    animation: rotate-3d-2 15s linear infinite reverse;
    border-left-color: transparent;
    border-right-color: transparent;
}

.r3 {
    width: 220px;
    height: 220px;
    border-color: rgba(45, 212, 191, 0.5);
    animation: rotate-3d-3 12s linear infinite;
    border-top-color: transparent;
}

.r4 {
    width: 180px;
    height: 180px;
    border: 2px dashed rgba(99, 102, 241, 0.3);
    animation: rotate-flat 20s linear infinite;
}

.sphere-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at 30% 30%, #38bdf8, #6366f1);
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
    animation: core-pulse 4s ease-in-out infinite;
}

.orbit-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #0ea5e9;
    border-radius: 50%;
    transform-origin: 150px;
    /* Orbit radius */
    animation: orbit 8s linear infinite;
    box-shadow: 0 0 10px #0ea5e9;
}

@keyframes sphere-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes rotate-3d-1 {
    0% {
        transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotateX(360deg) rotateY(180deg);
    }
}

@keyframes rotate-3d-2 {
    0% {
        transform: translate(-50%, -50%) rotateX(60deg) rotateY(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotateX(60deg) rotateY(360deg);
    }
}

@keyframes rotate-3d-3 {
    0% {
        transform: translate(-50%, -50%) rotateX(-60deg) rotateY(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotateX(-60deg) rotateY(360deg);
    }
}

@keyframes rotate-flat {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes core-pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 60px rgba(14, 165, 233, 0.6);
    }
}

@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(140px) rotate(0deg);
    }

    100% {
        transform: rotate(360deg) translateX(140px) rotate(-360deg);
    }
}

/* Tech Tags Styling */
.tech-tag {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-style: preserve-3d;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
    backface-visibility: hidden;
    /* Hide when behind */
    white-space: nowrap;
}

/* Individual Tech Positions (Spherical Coordinates) */
.t1 {
    animation: orbit-tag-1 12s infinite linear;
}

.t2 {
    animation: orbit-tag-2 15s infinite linear;
}

.t3 {
    animation: orbit-tag-3 14s infinite linear;
}

.t4 {
    animation: orbit-tag-4 16s infinite linear;
}

.t5 {
    animation: orbit-tag-5 18s infinite linear;
}

.t6 {
    animation: orbit-tag-6 20s infinite linear;
}

@keyframes orbit-tag-1 {
    0% {
        transform: rotateY(0deg) translateZ(180px) rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg) translateZ(180px) rotateY(-360deg);
    }
}

@keyframes orbit-tag-2 {
    0% {
        transform: rotateY(60deg) rotateX(45deg) rotateY(0deg) translateZ(170px) rotateY(0deg);
    }

    100% {
        transform: rotateY(60deg) rotateX(45deg) rotateY(360deg) translateZ(170px) rotateY(-360deg);
    }
}

@keyframes orbit-tag-3 {
    0% {
        transform: rotateY(-60deg) rotateX(-30deg) rotateY(0deg) translateZ(190px) rotateY(0deg);
    }

    100% {
        transform: rotateY(-60deg) rotateX(-30deg) rotateY(360deg) translateZ(190px) rotateY(-360deg);
    }
}

@keyframes orbit-tag-4 {
    0% {
        transform: rotateX(90deg) rotateY(0deg) translateZ(160px) rotateY(0deg) rotateX(-90deg);
    }

    100% {
        transform: rotateX(90deg) rotateY(360deg) translateZ(160px) rotateY(-360deg) rotateX(-90deg);
    }
}

@keyframes orbit-tag-5 {
    0% {
        transform: rotateY(180deg) rotateX(20deg) rotateY(0deg) translateZ(200px) rotateY(0deg);
    }

    100% {
        transform: rotateY(180deg) rotateX(20deg) rotateY(360deg) translateZ(200px) rotateY(-360deg);
    }
}

@keyframes orbit-tag-6 {
    0% {
        transform: rotateY(270deg) rotateX(-45deg) rotateY(0deg) translateZ(175px) rotateY(0deg);
    }

    100% {
        transform: rotateY(270deg) rotateX(-45deg) rotateY(360deg) translateZ(175px) rotateY(-360deg);
    }
}

/* FEATURES GRID */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card-soft {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card-soft:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: #0ea5e9;
}

.soft-icon {
    width: 50px;
    height: 50px;
    background: #f0f9ff;
    color: #0ea5e9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* PROCESS CIRCLES (matching website.php) */
.process-section {
    padding: 6rem 0;
    background: #f1f5f9;
    /* Light grey bg */
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    text-align: center;
    margin-top: 4rem;
}

.process-circle {
    width: 60px;
    height: 60px;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.3);
}

/* PRICING PLANS */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.plan-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid #e2e8f0;
    position: relative;
    transition: transform 0.3s;
}

.plan-card.featured {
    border: 2px solid #6366f1;
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
    z-index: 2;
}

.plan-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #6366f1;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Button Styling - Cyan Theme */
.btn-primary-neon {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: white;
    border-radius: 8px;
    /* Standardized Shape */
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    /* Ensure padding is sufficient */
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(8, 145, 178, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary-neon:hover {
    background: linear-gradient(90deg, #06b6d4, #22d3ee);
    /* Brighter Cyan */
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(34, 211, 238, 0.6);
    border-color: rgba(165, 243, 252, 0.5);
    color: #333;
}

/* TECH STACK FOOTER */
.tech-stack-row {
    padding: 4rem 0;
    background: #fff;
    border-top: 1px solid #f1f5f9;
}

.tech-items {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s;
}

.tech-items:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.tech-text {
    font-weight: 700;
    font-size: 1.5rem;
    color: #334155;
}

/* Responsive */
@media (max-width: 1024px) {
    .plan-card.featured {
        transform: scale(1);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .software-hero .container>div {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 3rem !important;
    }

    .software-hero .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .software-hero div[style*="display: flex; gap: 1rem;"] {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .software-hero {
        padding: 4rem 0;
    }

    .tech-sphere-wrapper {
        transform: scale(0.7);
        /* Scale down sphere for mobile */
    }

    .tech-sphere-container {
        height: 300px;
        /* Adjust container height */
        overflow: hidden;
    }

    .software-hero div[style*="display: flex; gap: 1rem;"] {
        flex-direction: column;
    }

    .btn-primary-neon {
        width: 100%;
    }

    .process-grid {
        gap: 2rem;
        margin-top: 2rem;
    }

    .tech-items {
        gap: 2rem;
    }
}