/* CSS RESET & VARIABLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    scroll-behavior: smooth;
}

:root {
    --bg-color: #06070d;
    --card-bg: #111422;
    --primary: #ff2a5f;
    --secondary: #05d9e8;
    --accent: #7928ca;
    --text: #ffffff;
    --text-muted: #7e8c9f;
}

body {
    background-color: var(--bg-color);
    color: var(--text);
    overflow-x: hidden;
}

/* CORRECTED HEAVY BACKGROUND ANIMATION ENGINE */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* Fixed multiple gradient layers explicitly separating their coordinates */
    background: radial-gradient(circle at 20% 30%, rgba(255, 42, 95, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(5, 217, 232, 0.07) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(121, 40, 202, 0.05) 0%, transparent 50%);
    animation: spaceDrift 25s linear infinite alternate;
    z-index: -1;
}

@keyframes spaceDrift {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(-5%, -5%) rotate(180deg);
    }
}

/* HEADER & NAVBAR */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: sticky;
    top: 0;
    background: rgba(6, 7, 13, 0.85);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-icon {
    position: relative;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    animation: logoMorph 6s ease-in-out infinite alternate;
    box-shadow: 0 0 25px rgba(255, 42, 95, 0.4);
}

.logo-icon::after {
    content: 'F';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 900;
    font-size: 1.6rem;
}

@keyframes logoMorph {
    0% {
        border-radius: 12px 35px 12px 35px;
        transform: scale(1) rotate(0deg);
    }

    50% {
        border-radius: 35px 12px 35px 12px;
        transform: scale(1.08);
    }

    100% {
        border-radius: 50%;
        transform: scale(1) rotate(360deg);
    }
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 600;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}

nav a:hover {
    color: var(--secondary);
    transform: translateY(-2px);
}

/* SECTION HOVER WRAPPER */
section {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.section-title span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* HERO SECTION */
.hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 2rem;
}

.badge {
    background: rgba(5, 217, 232, 0.08);
    color: var(--secondary);
    padding: 0.6rem 1.6rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid rgba(5, 217, 232, 0.2);
    margin-bottom: 2rem;
    animation: customPulse 2.5s infinite;
}

@keyframes customPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(5, 217, 232, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(5, 217, 232, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(5, 217, 232, 0);
    }
}

.hero h1 {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    max-width: 950px;
    letter-spacing: -1.5px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary) 30%, var(--accent) 70%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.4rem;
    max-width: 650px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.cta-btn {
    background: linear-gradient(135deg, var(--primary), #d6003c);
    color: white;
    text-decoration: none;
    padding: 1.1rem 2.8rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 30px rgba(255, 42, 95, 0.3);
}

.cta-btn.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(255, 42, 95, 0.5);
}

.cta-btn.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.05);
}

/* GRID STRUCTS */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2.5rem;
}

/* CARDS WITH ENHANCED ANIMATIONS */
.card {
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s, border-color 0.4s;
    position: relative;
}

.card:hover {
    transform: translateY(-12px);
    border-color: rgba(5, 217, 232, 0.25);
    box-shadow: 0 25px 50px rgba(5, 217, 232, 0.08);
}

.thumb {
    position: relative;
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #181c32, #0d0f1a);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Simulated Scanning Laser Effect for AI Cards */
.card.ai-card .thumb::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    background: var(--secondary);
    box-shadow: 0 0 15px var(--secondary);
    top: 0;
    left: 0;
    animation: scanEffect 3s linear infinite;
}

@keyframes scanEffect {
    0% {
        top: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(6, 7, 13, 0.8);
    backdrop-filter: blur(5px);
    color: var(--secondary);
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    border: 1px solid rgba(5, 217, 232, 0.3);
}

.tag.pink {
    color: var(--primary);
    border-color: rgba(255, 42, 95, 0.3);
}

.play-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: transform 0.3s, background 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover .play-btn {
    transform: scale(1.15) rotate(10deg);
    background: var(--primary);
    border-color: transparent;
}

.play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 18px solid white;
    margin-left: 5px;
}

.card-body {
    padding: 2rem;
}

.card-body h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    font-weight: 800;
}

.card-body p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* SECTION: INFOGRAPHICS (LIVE ENGINE STATS) */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    background: radial-gradient(ellipse at center, #13172c 0%, var(--card-bg) 100%);
    padding: 4rem 3rem;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.stat-box {
    text-align: center;
    position: relative;
}

.stat-box:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.stat-num {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.stat-num.alt {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* SECTION: FUN EXPERIMENTS LAB AREA */
.lab-showcase {
    background: #090b14;
    border-radius: 32px;
    padding: 4rem;
    border: 1px dashed rgba(5, 217, 232, 0.2);
    display: flex;
    align-items: center;
    gap: 4rem;
}

.lab-content {
    flex: 1;
}

.lab-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    height: 300px;
}

/* Complex CSS-Only Multi-axis Atom Animation */
.spinner-core {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    top: calc(50% - 30px);
    box-shadow: 0 0 40px var(--primary);
}

.orbital-ring {
    position: absolute;
    width: 260px;
    height: 100px;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    top: calc(50% - 50px);
    transform: rotateX(70deg) rotateY(20deg);
    animation: orbitOne 4s linear infinite;
}

.orbital-ring.two {
    border-color: var(--accent);
    transform: rotateX(70deg) rotateY(-40deg) rotateZ(60deg);
    animation: orbitTwo 4s linear infinite;
}

@keyframes orbitOne {
    0% {
        transform: rotateX(70deg) rotateY(20deg) rotateZ(0deg);
    }

    100% {
        transform: rotateX(70deg) rotateY(20deg) rotateZ(360deg);
    }
}

@keyframes orbitTwo {
    0% {
        transform: rotateX(70deg) rotateY(-40deg) rotateZ(0deg);
    }

    100% {
        transform: rotateX(70deg) rotateY(-40deg) rotateZ(360deg);
    }
}

/* RESPONSIVE LAYOUT BREAKPOINTS */
@media (max-width: 1024px) {
    .lab-showcase {
        flex-direction: column;
        padding: 2.5rem;
        gap: 2.5rem;
    }

    .stat-box:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1.2rem 5%;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    nav {
        display: none;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .cta-btn {
        text-align: center;
    }
}