/**
 * eBSSL - Enterprise Software & IT Solutions
 * Custom Web Engineering Service Showcase Stylesheet
 * Path: public/assets/css/custom-web-engineering.css
 */

/* ==========================================================================
   0. Hero Section Background & Ambient Atmosphere (Matching Homepage Hero)
   ========================================================================== */
#cwe-hero {
    background: 
        radial-gradient(circle at 82% 35%, rgba(186, 230, 253, 0.45) 0%, rgba(224, 242, 254, 0.22) 38%, transparent 70%),
        radial-gradient(circle at 15% 18%, rgba(240, 249, 255, 0.95) 0%, transparent 55%),
        linear-gradient(180deg, #f8fbfe 0%, #edf5fc 48%, #e1effa 100%);
}

/* ==========================================================================
   1. Orbit Radius Variables & Responsive Scaling
   ========================================================================== */
:root {
    --orbit-radius: 265px;
    --orbit-duration: 26s;
}

@media (max-width: 1280px) {
    :root {
        --orbit-radius: 240px;
        --orbit-duration: 24s;
    }
}

@media (max-width: 1024px) {
    :root {
        --orbit-radius: 220px;
        --orbit-duration: 22s;
    }
}

@media (max-width: 640px) {
    :root {
        --orbit-radius: 170px;
        --orbit-duration: 20s;
    }
}

/* ==========================================================================
   2. Circular Orbit Track Lines & Gyroscopic Rotation
   ========================================================================== */
.ebssl-orbit-track {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(var(--orbit-radius) * 2);
    height: calc(var(--orbit-radius) * 2);
    border-radius: 50%;
    border: 1.5px solid rgba(0, 132, 255, 0.22);
    box-shadow: 0 0 25px rgba(0, 132, 255, 0.08), inset 0 0 25px rgba(0, 132, 255, 0.04);
    pointer-events: none;
    z-index: 5;
    animation: ebsslTrackPulse 4s ease-in-out infinite;
}

.ebssl-orbit-track-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(var(--orbit-radius) * 1.85);
    height: calc(var(--orbit-radius) * 1.85);
    border-radius: 50%;
    border: 1.5px dashed rgba(14, 165, 233, 0.22);
    pointer-events: none;
    z-index: 4;
    animation: ebsslTrackSpin 60s linear infinite;
}

@keyframes ebsslTrackPulse {
    0%, 100% {
        border-color: rgba(0, 132, 255, 0.22);
        box-shadow: 0 0 20px rgba(0, 132, 255, 0.06);
    }
    50% {
        border-color: rgba(0, 132, 255, 0.42);
        box-shadow: 0 0 32px rgba(0, 132, 255, 0.16);
    }
}

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

/* ==========================================================================
   3. Circular Orbit Motion Keyframes (Upright Counter-Rotation)
   ========================================================================== */
.ebssl-orbit-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    z-index: 15;
}

.ebssl-badge-box {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.ebssl-badge-box:hover {
    transform: translate(-50%, -50%) scale(1.22);
    z-index: 40;
}

.ebssl-badge-tooltip {
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(11, 26, 48, 0.92);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 50;
}

.ebssl-badge-box:hover .ebssl-badge-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(2px);
}

.ebssl-orbit-stage:hover .ebssl-orbit-badge {
    animation-play-state: paused !important;
}

.ebssl-orbit-item-1 { animation: orbitCircle1 var(--orbit-duration) linear infinite; }
.ebssl-orbit-item-2 { animation: orbitCircle2 var(--orbit-duration) linear infinite; }
.ebssl-orbit-item-3 { animation: orbitCircle3 var(--orbit-duration) linear infinite; }
.ebssl-orbit-item-4 { animation: orbitCircle4 var(--orbit-duration) linear infinite; }
.ebssl-orbit-item-5 { animation: orbitCircle5 var(--orbit-duration) linear infinite; }
.ebssl-orbit-item-6 { animation: orbitCircle6 var(--orbit-duration) linear infinite; }
.ebssl-orbit-item-7 { animation: orbitCircle7 var(--orbit-duration) linear infinite; }
.ebssl-orbit-item-8 { animation: orbitCircle8 var(--orbit-duration) linear infinite; }

@keyframes orbitCircle1 {
    from { transform: rotate(0deg) translateY(calc(-1 * var(--orbit-radius))) rotate(0deg); }
    to   { transform: rotate(360deg) translateY(calc(-1 * var(--orbit-radius))) rotate(-360deg); }
}

@keyframes orbitCircle2 {
    from { transform: rotate(45deg) translateY(calc(-1 * var(--orbit-radius))) rotate(-45deg); }
    to   { transform: rotate(405deg) translateY(calc(-1 * var(--orbit-radius))) rotate(-405deg); }
}

@keyframes orbitCircle3 {
    from { transform: rotate(90deg) translateY(calc(-1 * var(--orbit-radius))) rotate(-90deg); }
    to   { transform: rotate(450deg) translateY(calc(-1 * var(--orbit-radius))) rotate(-450deg); }
}

@keyframes orbitCircle4 {
    from { transform: rotate(135deg) translateY(calc(-1 * var(--orbit-radius))) rotate(-135deg); }
    to   { transform: rotate(495deg) translateY(calc(-1 * var(--orbit-radius))) rotate(-495deg); }
}

@keyframes orbitCircle5 {
    from { transform: rotate(180deg) translateY(calc(-1 * var(--orbit-radius))) rotate(-180deg); }
    to   { transform: rotate(540deg) translateY(calc(-1 * var(--orbit-radius))) rotate(-540deg); }
}

@keyframes orbitCircle6 {
    from { transform: rotate(225deg) translateY(calc(-1 * var(--orbit-radius))) rotate(-225deg); }
    to   { transform: rotate(585deg) translateY(calc(-1 * var(--orbit-radius))) rotate(-585deg); }
}

@keyframes orbitCircle7 {
    from { transform: rotate(270deg) translateY(calc(-1 * var(--orbit-radius))) rotate(-270deg); }
    to   { transform: rotate(630deg) translateY(calc(-1 * var(--orbit-radius))) rotate(-630deg); }
}

@keyframes orbitCircle8 {
    from { transform: rotate(315deg) translateY(calc(-1 * var(--orbit-radius))) rotate(-315deg); }
    to   { transform: rotate(675deg) translateY(calc(-1 * var(--orbit-radius))) rotate(-675deg); }
}

/* ==========================================================================
   4. Center Laptop Showcase Component & Precision Cutout Screen
   ========================================================================== */
.ebssl-laptop-backdrop-shade {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(520px, 95vw);
    height: min(520px, 95vw);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 243, 208, 0.42) 0%, rgba(186, 230, 253, 0.35) 45%, transparent 72%);
    filter: blur(48px);
    pointer-events: none;
    z-index: 1;
}

.ebssl-laptop-dome-disk {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(440px, 85vw);
    height: min(440px, 85vw);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.8) 0%, rgba(240, 249, 255, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 35px rgba(0, 132, 255, 0.08);
    pointer-events: none;
    z-index: 2;
}

.ebssl-laptop-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    filter: drop-shadow(0 25px 30px rgba(11, 26, 48, 0.12));
    animation: ebsslLaptopFloat 6s ease-in-out infinite;
}

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

.ebssl-laptop-screen-content {
    position: absolute;
    top: 9.2%;
    left: 17.9%;
    width: 64.2%;
    height: 67%;
    overflow: hidden;
    z-index: 15;
    background-color: #050b14;
    border-radius: 4px;
}

.ebssl-laptop-shadow {
    position: absolute;
    bottom: -22px;
    left: 12%;
    width: 76%;
    height: 18px;
    background: radial-gradient(ellipse at center, rgba(11, 26, 48, 0.28) 0%, rgba(11, 26, 48, 0.05) 55%, transparent 75%);
    border-radius: 50%;
    filter: blur(4px);
    pointer-events: none;
    z-index: 8;
    animation: ebsslShadowPulse 6s ease-in-out infinite;
}

@keyframes ebsslShadowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.85;
    }
    50% {
        transform: scale(0.92);
        opacity: 0.55;
    }
}

/* ==========================================================================
   5. Gradient Text & Brand Elements
   ========================================================================== */
.ebssl-gradient-text {
    background: linear-gradient(135deg, #0084ff 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.ebssl-brand-dash {
    animation: ebsslDashPulse 2.5s ease-in-out infinite;
}

@keyframes ebsslDashPulse {
    0%, 100% {
        opacity: 0.6;
        width: 1.5rem;
    }
    50% {
        opacity: 1;
        width: 2.2rem;
    }
}

/* ==========================================================================
   6. Custom Web Engineering Cards & Interactive Code Accents
   ========================================================================== */
.cwe-feature-card {
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cwe-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -12px rgba(0, 132, 255, 0.12);
    border-color: rgba(0, 132, 255, 0.4);
}

.cwe-tech-pill {
    transition: all 0.2s ease;
}

.cwe-tech-pill:hover {
    transform: translateY(-2px);
    background-color: #ffffff;
    border-color: #0084ff;
    box-shadow: 0 4px 12px rgba(0, 132, 255, 0.15);
}

.cwe-step-card {
    position: relative;
    transition: all 0.3s ease;
}

.cwe-step-card:hover {
    transform: translateY(-3px);
}
