@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: 200px;
    height: 200px;
    perspective: 1000px;
    margin: auto;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 15s infinite linear;
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, rgba(103, 61, 230, 0.6), rgba(0, 194, 255, 0.6));
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 0 20px rgba(103, 61, 230, 0.5);
    backdrop-filter: blur(5px);
}

.front {
    transform: rotateY(0deg) translateZ(100px);
}

.right {
    transform: rotateY(90deg) translateZ(100px);
}

.back {
    transform: rotateY(180deg) translateZ(100px);
}

.left {
    transform: rotateY(-90deg) translateZ(100px);
}

.top {
    transform: rotateX(90deg) translateZ(100px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

@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);
}

/* 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: 140px;
    height: 140px;
}

/* 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;
}