﻿/* 
Developed By: Md Rashaduzzaman
Founder & CEO TechnoFlicker
Website: https://technoflicker.com
Facebook: https://fb.com/mdrrana83
Phone: +8801797872701
*/
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #673DE6;
    --dark-purple: #2F1C6A;
    --accent-blue: #00C2FF;
    --light-bg: #F4F5FF;
    --text-dark: #1F2937;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-purple);
}

/* Glassmorphism Utilities */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 3D Cube Animation */
.cube-container {
    width: 280px;
    height: 280px;
    perspective: 1400px;
    margin: auto;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 15s infinite linear;
}

.face {
    position: absolute;
    width: 280px;
    height: 280px;
    background: linear-gradient(45deg, rgba(103, 61, 230, 0.9), rgba(0, 194, 255, 0.9));
    border: 2px solid rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.2), 0 0 20px rgba(103, 61, 230, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 4px;
}

.front {
    transform: rotateY(0deg) translateZ(140px);
}

.right {
    transform: rotateY(90deg) translateZ(140px);
}

.back {
    transform: rotateY(180deg) translateZ(140px);
}

.left {
    transform: rotateY(-90deg) translateZ(140px);
}

.top {
    transform: rotateX(90deg) translateZ(140px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(140px);
}

@keyframes rotate {
    from {
        transform: rotateX(0deg) rotateY(0deg);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* Hero Slider Animations */
.slide {
    display: none;
    animation: fadeEffect 1s;
}

.slide.active {
    display: flex;
}

@keyframes fadeEffect {
    from {
        opacity: 0.4
    }

    to {
        opacity: 1
    }
}

/* Gradient Text and Borders */
.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-fill-color: transparent;
}

/* Accordion Transitions */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

.accordion-content.active {
    opacity: 1;
}

.btn-gradient {
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent-blue) 100%);
    background-size: 200% auto;
    transition: 0.5s;
}

.btn-gradient:hover {
    background-position: right center;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Branded Feature Icon Box */
.branded-icon-box {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #f9f9fb;
    z-index: 1;
    overflow: hidden;
    transition: all 0.3s ease;
}

.branded-icon-box::before {
    content: '';
    position: absolute;
    width: 160%;
    height: 160%;
    background: conic-gradient(from 0deg, transparent 0%, var(--primary) 25%, var(--accent-blue) 50%, transparent 75%);
    animation: rotateBrand 4s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.group:hover .branded-icon-box::before {
    opacity: 0.15;
}

.group:hover .branded-icon-box {
    background: white;
    transform: scale(1.05);
}

@keyframes rotateBrand {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.feature-icon-fixed {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 24px !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Accordion Transitions */
.accordion-content {
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

/* Hexagon Animation & Layout */
.hex-container {
    position: relative;
    width: 500px;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.9);
}

/*
  Hex Dimensions: 100px width.
  Height = 115px.
  Grid Steps:
    Vertical Step = 110px approximately.
    Horizontal Step = 85px.
    Odd Column Vertical Offset = 55px.
*/

.hex {
    position: absolute;
    width: 100px;
    height: 115px;
    -webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    animation: floatHex 6s ease-in-out infinite;
    opacity: 0.95;
    z-index: 1;
}

/* Constructing the "b" */
/* Column 1: The Stem */
.hex-1 {
    top: 0px;
    left: 50px;
    background-color: #FF0000;
    width: 60px;
    height: 70px;
    z-index: 2;
    animation-delay: 0s;
    transform: translateX(20px);
}

/* Small Red Tip */
.hex-2 {
    top: 60px;
    left: 50px;
    background-color: #8CC63F;
    animation-delay: 1s;
}

/* Green */
.hex-3 {
    top: 170px;
    left: 50px;
    background-color: #FBB03B;
    animation-delay: 2s;
}

/* Orange - Middle of Stem */
.hex-4 {
    top: 280px;
    left: 50px;
    background-color: #FFFF00;
    animation-delay: 3s;
}

/* Yellow - Bottom of Stem */

/* Column 2: The Loop Top/Bottom */
/* To the right (x+85), Shifted down (y+55) or up */
.hex-5 {
    top: 115px;
    left: 135px;
    background-color: #29ABE2;
    animation-delay: 1.5s;
}

/* Blue - Top of Loop */
.hex-6 {
    top: 335px;
    left: 135px;
    background-color: #3F6EAA;
    animation-delay: 4s;
}

/* Dark Blue - Bottom of Loop */

/* Column 3: The Loop Far Right */
.hex-7 {
    top: 225px;
    left: 220px;
    background-color: #8AB6E1;
    animation-delay: 2.5s;
}

/* Light Blue - Right Edge */

/* Cube Positioning */
/* The "Hole" is roughly at: x=135, y=225 (between hex 5 and 6, left of 7) */
.cube-in-hex {
    position: absolute;
    top: 250px;
    /* approx center of hole */
    left: 170px;
    /* approx center of hole */
    transform: translate(-50%, -50%);
    z-index: 10;
}

.cube-container {
    width: 280px;
    height: 280px;
}

/* Floating Animation */
@keyframes floatHex {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(1deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Partners Animation */
.animate-spin-slow {
    animation: spin 20s linear infinite;
}

.animate-spin-reverse-slow {
    animation: spin 25s linear infinite reverse;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-float {
    animation: floatPartner 6s ease-in-out infinite;
}

@keyframes floatPartner {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce-slow {
    animation: bounce 3s infinite;
}

.animate-ping-slow {
    animation: ping 3s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Dash Animation for Portal Lines */
@keyframes dash {
    to {
        stroke-dashoffset: -20;
    }
}

.animate-dash {
    animation: dash 20s linear infinite;
}

/* Module Section Premium Styling */
.module-visual-container {
    position: relative;
    width: 100%;
    height: 600px;
    background: #2F1C6A;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.module-visual-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/circuit-board.png');
    opacity: 0.1;
    z-index: 1;
}

.module-branding-bg {
    position: absolute;
    inset: -50%;
    background: conic-gradient(from 0deg,
            #FF0000 0deg 51deg,
            #8CC63F 51deg 102deg,
            #FBB03B 102deg 153deg,
            #FFFF00 153deg 204deg,
            #29ABE2 204deg 255deg,
            #3F6EAA 255deg 306deg,
            #8AB6E1 306deg 360deg);
    filter: blur(80px);
    opacity: 0.25;
    animation: rotateBranding 20s linear infinite;
    z-index: 0;
}

@keyframes rotateBranding {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.fixed-image-wrapper {
    position: relative;
    z-index: 10;
    width: 85%;
    height: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 4px solid var(--primary);
    /* Bold Primary Color Border */
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 0 40px rgba(103, 61, 230, 0.3), inset 0 0 20px rgba(103, 61, 230, 0.2);
}

#module-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cursor-zoom-in {
    cursor: zoom-in;
}

.cursor-zoom-out {
    cursor: zoom-out;
}

/* Apps Section Styling */
.app-card.active div {
    background: rgba(103, 61, 230, 0.1) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 10px 30px -10px rgba(103, 61, 230, 0.4);
}

.app-card:not(.active):hover div {
    transform: translateX(10px);
}

.phone-mockup-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(103, 61, 230, 0.15) 0%, transparent 70%);
    z-index: -1;
}

.phone-frame {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.phone-frame:hover {
    transform: scale(1.02) rotateY(-5deg);
}

/* B Logo CSS Implementation */
.b-logo-circle {
    position: relative;
    width: 250px;
    height: 380px;
    /* Adjusted height for tighter fit */
}

.hex-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hex {
    position: absolute;
    width: 80px;
    height: 92px;
    /* Height = Width / sqrt(3) * 2 approx */
    background-color: #ccc;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: all 0.3s ease;
}

.hex:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
    z-index: 10;
}

/* Base positions */
/* Column 1 - Left - Stem */
.hex-1 {
    /* Top Red - Small Ascender */
    top: 0;
    left: 20px;
    width: 50px;
    height: 58px;
    background-color: #FF0000;
    z-index: 2;
}

.hex-2 {
    /* Green */
    top: 50px;
    left: 0;
    background-color: #8BC63F;
}

.hex-3 {
    /* Orange */
    top: 119px;
    /* 50 + 69 */
    left: 0;
    background-color: #F7941D;
}

.hex-4 {
    /* Yellow - Bottom Left */
    top: 188px;
    /* 119 + 69 */
    left: 0;
    background-color: #FFF200;
}

/* Column 2 - Right - Loop Inner */
.hex-5 {
    /* Cyan - Top of Loop */
    top: 85px;
    left: 60px;
    background-color: #00ADEF;
}

.hex-7 {
    /* Dark Blue - Bottom Right of Loop */
    top: 223px;
    left: 60px;
    background-color: #3F6EAA;
}

/* Column 3 - Far Right - Loop Outer */
.hex-6 {
    /* Light Blue */
    top: 120px;
    left: 120px;
    background-color: #8AB6E1;
}

.hex-8 {
    /* Purple - Completes the loop */
    top: 189px;
    left: 120px;
    background-color: #673DE6;
}

/* Tech Circle Decoration */
.tech-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    height: 380px;
    border: 2px dashed rgba(46, 49, 146, 0.2);
    /* Dark Blue taint */
    border-radius: 50%;
    animation: rotate-slow 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes rotate-slow {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Responsive Tech Circle */
@media (max-width: 768px) {
    .tech-circle {
        width: 260px !important;
        height: 260px !important;
    }

    .b-logo-circle {
        width: 200px !important;
        height: 300px !important;
    }

    /* Safety cushion for horizontal overflow */
    html,
    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
}

/* Gateway Slider Styling */
.gateways-slider {
    padding: 30px 0;
    background: #fff;
}

.gateway-card {
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 80px;
    margin: 0 auto;
}

.gateway-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.gateway-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.whatsapp-float.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1) translateY(0);
    color: #FFF;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 100px;
        right: 20px;
        font-size: 28px;
    }
}