/* SOFTWARE.CSS - Fullpage Presentation Logic */

/* 1. LOCK THE BODY */
body {
    overflow: hidden; /* No native scrollbars allowed */
    height: 100vh;
    background: #020617;
    margin: 0;
    padding: 0;
}

/* Hide the main website footer for this presentation page */
footer {
    display: none !important;
}

/* 2. THE WRAPPER THAT MOVES */
.fullpage-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    transition: transform 1s cubic-bezier(0.8, 0, 0.2, 1); /* Ultra-smooth slide */
    will-change: transform;
}

/* 3. INDIVIDUAL SECTIONS */
.sw-section {
    width: 100%;
    height: 100vh; /* Exactly one screen height */
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* Accounts for fixed navbar */
}

/* --- HERO SECTION --- */
.sw-hero {
    background: #020617;
}

.hero-bg-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #1e293b 0%, #020617 70%);
    z-index: 1;
}

    .hero-bg-anim::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
        background-size: 50px 50px;
        opacity: 0.5;
    }

.text-gradient-gold {
    background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
}

.btn-white-glow {
    background: white;
    color: #020617;
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

    .btn-white-glow:hover {
        background: #f8fafc;
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    }

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    text-align: center;
    cursor: pointer;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* --- PRODUCT SECTIONS --- */
.product-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(4px);
    transform: scale(1.1);
    z-index: 0;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.theme-blue .product-overlay {
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.85));
}

.theme-blue .product-desc {
    color: #cbd5e1;
}

.theme-blue .btn-primary-glow {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.theme-red .product-overlay {
    background: linear-gradient(135deg, rgba(20, 5, 5, 0.95), rgba(69, 10, 10, 0.9));
}

.theme-red .product-desc {
    color: #fecaca;
}

.theme-red .btn-danger-glow {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: white;
    border: none;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.theme-green .product-overlay {
    background: linear-gradient(135deg, rgba(2, 20, 10, 0.95), rgba(6, 78, 59, 0.9));
}

.theme-green .product-desc {
    color: #a7f3d0;
}

.theme-green .btn-success-glow {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

/* Glass Card */
.product-card-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    color: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.icon-box-lg {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.product-desc {
    font-size: 1.15rem;
    line-height: 1.7;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.tech-item {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.2);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.05);
    color: white;
}

    .tech-item i {
        margin-right: 12px;
        opacity: 0.8;
    }

/* Floating UI Elements */
.floating-ui-element {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ui-card {
    position: absolute;
    background: rgba(255,255,255,0.95);
    padding: 15px 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    color: #334155;
    min-width: 150px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

    .ui-card small {
        text-transform: uppercase;
        font-size: 0.7rem;
        font-weight: 700;
        color: #94a3b8;
    }

    .ui-card strong {
        font-size: 1.2rem;
        color: #0f172a;
    }

.card-1 {
    top: 20%;
    right: 10%;
    animation: float1 6s ease-in-out infinite;
}

.card-2 {
    bottom: 25%;
    left: 10%;
    animation: float2 7s ease-in-out infinite;
}

.card-3 {
    top: 40%;
    left: 0%;
    animation: float3 5s ease-in-out infinite;
}

.card-4 {
    bottom: 15%;
    right: 15%;
    animation: float1 8s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(10px, 15px);
    }
}

@keyframes float3 {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(15px);
    }
}

/* --- CTA SECTION --- */
.suite-cta-section {
    background: #020617;
    position: relative;
}

.cta-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1e293b 0%, #020617 80%);
    z-index: 1;
}

.cta-glass-box {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    z-index: 2;
}

/* ==========================================================================
   --- ENTRANCE ANIMATIONS CONTROLLED BY .active CLASS --- 
   ========================================================================== */

/* 1. HERO ANIMATION */
.sw-hero .reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.sw-hero.active .reveal-item:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.sw-hero.active .reveal-item:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.sw-hero.active .reveal-item:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.sw-hero.active .reveal-item:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

/* 2. SLIDE LEFT ANIMATION (Sprinkler) */
.anim-slide-left .product-card-glass {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.anim-slide-left .floating-ui-element {
    opacity: 0;
    transform: scale(0.8);
    transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.anim-slide-left .child-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.6s ease;
}

.anim-slide-left.active .product-card-glass {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.3s;
}

.anim-slide-left.active .floating-ui-element {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.6s;
}

.anim-slide-left.active .child-reveal:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.anim-slide-left.active .child-reveal:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.anim-slide-left.active .child-reveal:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

.anim-slide-left.active .child-reveal:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.9s;
}

/* 3. SLIDE RIGHT ANIMATION (Fire Alarm) */
.anim-slide-right .product-card-glass {
    opacity: 0;
    transform: translateX(100px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.anim-slide-right .floating-ui-element {
    opacity: 0;
    transform: scale(0.8);
    transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.anim-slide-right .child-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.6s ease;
}

.anim-slide-right.active .product-card-glass {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.3s;
}

.anim-slide-right.active .floating-ui-element {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.6s;
}

.anim-slide-right.active .child-reveal:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.anim-slide-right.active .child-reveal:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.anim-slide-right.active .child-reveal:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

.anim-slide-right.active .child-reveal:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.9s;
}

/* 4. ZOOM UP ANIMATION (IBC) */
.anim-zoom-up .product-card-glass {
    opacity: 0;
    transform: translateY(100px) scale(0.9);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.anim-zoom-up .floating-ui-element {
    opacity: 0;
    transform: scale(0.8);
    transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.anim-zoom-up .child-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.6s ease;
}

.anim-zoom-up.active .product-card-glass {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.3s;
}

.anim-zoom-up.active .floating-ui-element {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.6s;
}

.anim-zoom-up.active .child-reveal:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.anim-zoom-up.active .child-reveal:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.anim-zoom-up.active .child-reveal:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

.anim-zoom-up.active .child-reveal:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.9s;
}

/* 5. CTA FADE ANIMATION */
.anim-fade-in .child-reveal {
    opacity: 0;
    transform: scale(0.95);
    transition: all 1s ease;
}

.anim-fade-in.active .child-reveal {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.4s;
}

/* --- MOBILE OVERRIDES --- */
@media (max-width: 991px) {
    /* Kill fullpage behavior on mobile */
    body {
        overflow-y: auto;
        height: auto;
    }

    .fullpage-wrapper {
        position: relative;
        height: auto;
        transform: none !important;
        transition: none;
    }

    .sw-section {
        height: auto;
        min-height: 100vh;
        padding: 120px 0;
    }

    /* Reveal immediately on mobile to avoid breaking */
    .product-card-glass, .floating-ui-element, .child-reveal, .reveal-item {
        opacity: 1 !important;
        transform: none !important;
        transition-delay: 0s !important;
    }
}

/* --- FULLPAGE PROGRESS NAVIGATION --- */
.fp-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    flex-direction: column;
    gap: 15px;
}

.fp-nav::before {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 5px;
    width: 2px;
    background: rgba(255, 255, 255, 0.15);
    z-index: -1;
}

.fp-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: #020617;
    cursor: pointer;
    transition: 0.3s all cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.fp-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.3);
}

.fp-dot.active {
    background: white;
    border-color: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    height: 35px; /* Stretches the dot into a pill shape */
    border-radius: 12px;
}

/* Tooltip for dots */
.fp-dot::after {
    content: attr(title);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: rgba(15, 23, 42, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s all;
    border: 1px solid rgba(255,255,255,0.1);
}

.fp-dot:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* --- FOOTER FIXES --- */
.footer-hover {
    transition: color 0.3s;
}
.footer-hover:hover {
    color: white !important;
}

@media (max-width: 991px) {
    .fp-nav { display: none !important; }
}