/* ============================================
   HEPP6 - Shell Styles
   Reusable: Header, Footer, Background, Scrollbar
   Include this on every page
   ============================================ */

/* CSS Variables */
:root {
    --color-bg-dark: #030014;
    --color-bg-darker: #020010;
    --color-bg-card: rgba(15, 10, 40, 0.6);
    --color-primary: #7c3aed;
    --color-primary-light: #a78bfa;
    --color-secondary: #1e3a8a;
    --color-secondary-light: #3b82f6;
    --color-neon-purple: #8b5cf6;
    --color-neon-blue: #06b6d4;
    --color-neon-pink: #ec4899;
    --color-text-white: #ffffff;
    --color-text-gray: #94a3b8;
    --color-text-gray-light: #cbd5e1;
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-neon: linear-gradient(90deg, var(--color-neon-purple), var(--color-neon-blue), var(--color-neon-pink));
    --gradient-glow: linear-gradient(180deg, rgba(139, 92, 246, 0.3) 0%, rgba(6, 182, 212, 0.1) 50%, transparent 100%);
    --font-main: 'Inter', 'Segoe UI', sans-serif;
    --font-heading: 'Inter', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-glow-purple: 0 0 60px rgba(139, 92, 246, 0.4), 0 0 120px rgba(139, 92, 246, 0.2);
    --shadow-glow-blue: 0 0 60px rgba(6, 182, 212, 0.4), 0 0 120px rgba(6, 182, 212, 0.2);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--color-neon-purple) var(--color-bg-darker);
}

/* Custom Scrollbar - Webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-darker);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,
            var(--color-neon-purple) 0%,
            var(--color-neon-blue) 33%,
            var(--color-neon-pink) 66%,
            var(--color-neon-purple) 100%);
    background-size: 100% 300%;
    border-radius: 10px;
    animation: scrollbarFlow 4s linear infinite;
}

::-webkit-scrollbar-thumb:hover {
    animation: scrollbarFlow 2s linear infinite;
}

@keyframes scrollbarFlow {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 0% 300%;
    }
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */

/* Background Container */
body>.bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    overflow: hidden;
    background: var(--color-bg-dark);
}

/* Particles.js Container */
body>#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -5;
    pointer-events: none;
}

/* Main Glow Orbs */
body>.bg-wrapper>.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: orbFloat 20s ease-in-out infinite;
}

body>.bg-wrapper>.glow-orb.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.5) 0%, rgba(139, 92, 246, 0.1) 50%, transparent 70%);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

body>.bg-wrapper>.glow-orb.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.4) 0%, rgba(6, 182, 212, 0.1) 50%, transparent 70%);
    top: 30%;
    right: -150px;
    animation-delay: -7s;
}

body>.bg-wrapper>.glow-orb.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, rgba(236, 72, 153, 0.05) 50%, transparent 70%);
    bottom: 10%;
    left: 20%;
    animation-delay: -14s;
}

body>.bg-wrapper>.glow-orb.orb-4 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
    bottom: -100px;
    right: 30%;
    animation-delay: -5s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(20px, 10px) scale(1.02);
    }
}

/* Grid Pattern Overlay */
body>.bg-wrapper>.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.5;
}

/* Gradient Overlay */
body>.bg-wrapper>.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, transparent 0%, rgba(3, 0, 20, 0.8) 100%);
}

/* Noise Texture */
body>.bg-wrapper>.noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ============================================
   HEADER
   ============================================ */
body>header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 3rem;
    background: transparent;
    transition: var(--transition-smooth);
}

body>header.scrolled {
    background: rgba(3, 0, 20, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

body>header>nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Animated Logo */
body>header>nav>.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--color-text-white);
    position: relative;
    display: inline-block;
}

body>header>nav>.logo>.logo-text {
    background: linear-gradient(135deg, #fff 0%, #fff 40%, var(--color-neon-purple) 60%, var(--color-neon-blue) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoShine 4s ease-in-out infinite;
}

body>header>nav>.logo>.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    filter: blur(15px);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
}

body>header>nav>.logo:hover>.logo-glow {
    opacity: 1;
}

@keyframes logoShine {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Navigation Menu */
body>header>nav>ul {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

body>header>nav>ul>li>a {
    color: var(--color-text-gray);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-smooth);
}

body>header>nav>ul>li>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-neon-purple), var(--color-neon-blue));
    transition: var(--transition-smooth);
    border-radius: 2px;
}

body>header>nav>ul>li>a:hover {
    color: var(--color-text-white);
}

body>header>nav>ul>li>a:hover::after {
    width: 100%;
}

body>header>nav>ul>li>a.active {
    color: var(--color-text-white);
}

body>header>nav>ul>li>a.active::after {
    width: 100%;
}

/* CTA Button in Nav */
body>header>nav>ul>li>a.nav-cta {
    background: linear-gradient(135deg, var(--color-neon-purple) 0%, var(--color-primary) 100%);
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    color: var(--color-text-white);
    font-weight: 600;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    transition: var(--transition-smooth);
}

body>header>nav>ul>li>a.nav-cta::after {
    display: none;
}

body>header>nav>ul>li>a.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

/* Mobile Menu Toggle */
body>header>nav>.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

body>header>nav>.menu-toggle>span {
    width: 24px;
    height: 2px;
    background: var(--color-text-white);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

/* ============================================
   FOOTER
   ============================================ */
body>footer {
    position: relative;
    z-index: 1;
    background: rgba(2, 0, 16, 0.8);
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    padding: 5rem 3rem 2rem;
}

body>footer>.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

body>footer>.footer-content>.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

body>footer>.footer-content>.footer-main>.footer-brand>.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #fff 0%, var(--color-neon-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: inline-block;
}

body>footer>.footer-content>.footer-main>.footer-brand>p {
    color: var(--color-text-gray);
    margin-bottom: 1.5rem;
    max-width: 280px;
    font-size: 0.95rem;
    line-height: 1.7;
}

body>footer>.footer-content>.footer-main>.footer-brand>.social-links {
    display: flex;
    gap: 0.75rem;
}

body>footer>.footer-content>.footer-main>.footer-brand>.social-links>a {
    width: 42px;
    height: 42px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-gray-light);
    transition: var(--transition-smooth);
}

body>footer>.footer-content>.footer-main>.footer-brand>.social-links>a:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    color: var(--color-text-white);
    transform: translateY(-3px);
}

body>footer>.footer-content>.footer-main>.footer-links>h4 {
    color: var(--color-text-white);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

body>footer>.footer-content>.footer-main>.footer-links>ul {
    list-style: none;
}

body>footer>.footer-content>.footer-main>.footer-links>ul>li {
    margin-bottom: 0.75rem;
}

body>footer>.footer-content>.footer-main>.footer-links>ul>li>a {
    color: var(--color-text-gray);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

body>footer>.footer-content>.footer-main>.footer-links>ul>li>a:hover {
    color: var(--color-text-white);
}

body>footer>.footer-content>.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

body>footer>.footer-content>.footer-bottom>p {
    color: var(--color-text-gray);
    font-size: 0.85rem;
}

body>footer>.footer-content>.footer-bottom>.legal-links {
    display: flex;
    gap: 2rem;
}

body>footer>.footer-content>.footer-bottom>.legal-links>a {
    color: var(--color-text-gray);
    font-size: 0.85rem;
}

body>footer>.footer-content>.footer-bottom>.legal-links>a:hover {
    color: var(--color-text-white);
}

/* ============================================
   TYPOGRAPHY (Global)
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text-white);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

p {
    color: var(--color-text-gray);
    font-size: 1.05rem;
    line-height: 1.8;
}

a {
    color: var(--color-text-gray-light);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-text-white);
}

/* ============================================
   BUTTONS (Global)
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-neon-purple) 0%, var(--color-primary) 100%);
    color: var(--color-text-white);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.6), 0 10px 40px rgba(139, 92, 246, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: rgba(139, 92, 246, 0.1);
    color: var(--color-text-white);
    border: 1px solid rgba(139, 92, 246, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-3px);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-gradient {
    background: linear-gradient(135deg, var(--color-neon-purple) 0%, var(--color-neon-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-animated {
    background: linear-gradient(135deg, var(--color-neon-purple) 0%, var(--color-neon-blue) 50%, var(--color-neon-pink) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientMove 5s ease-in-out infinite;
}

@keyframes gradientMove {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.glow-text {
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

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

/* Page transition */
.page-transition {
    animation: pageEnter 0.6s ease;
}

@keyframes pageEnter {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.slide-in-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left.visible,
.slide-in-right.visible,
.slide-in-up.visible,
.fade-in.visible,
.scale-in.visible {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
}

/* Staggered animation delays */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE - Header & Footer
   ============================================ */
@media (max-width: 1024px) {
    body>footer>.footer-content>.footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body>header {
        padding: 1rem 1.5rem;
    }

    body>header>nav>ul {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(3, 0, 20, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        opacity: 0;
        transition: var(--transition-smooth);
    }

    body>header>nav>ul.active {
        transform: translateX(0);
        opacity: 1;
    }

    body>header>nav>ul>li>a {
        font-size: 1.25rem;
    }

    body>header>nav>.menu-toggle {
        display: flex;
    }

    body>header>nav>.menu-toggle.active>span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    body>header>nav>.menu-toggle.active>span:nth-child(2) {
        opacity: 0;
    }

    body>header>nav>.menu-toggle.active>span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    body>footer {
        padding: 3rem 1.5rem 1.5rem;
    }

    body>footer>.footer-content>.footer-main {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    body>footer>.footer-content>.footer-main>.footer-brand>.social-links {
        justify-content: center;
    }

    body>footer>.footer-content>.footer-main>.footer-brand>p {
        margin-left: auto;
        margin-right: auto;
    }

    body>footer>.footer-content>.footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   COOKIE BANNER
   ============================================ */
body > .cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 1.5rem 2rem;
    background: rgba(3, 0, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body > .cookie-banner.visible {
    transform: translateY(0);
    opacity: 1;
}

body > .cookie-banner > .cookie-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

body > .cookie-banner > .cookie-content > .cookie-text > h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--color-text-white);
}

body > .cookie-banner > .cookie-content > .cookie-text > p {
    font-size: 0.9rem;
    color: var(--color-text-gray);
    margin: 0;
    line-height: 1.5;
}

body > .cookie-banner > .cookie-content > .cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

body > .cookie-banner > .cookie-content > .cookie-buttons > .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    body > .cookie-banner {
        padding: 1.25rem 1.5rem;
    }

    body > .cookie-banner > .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    body > .cookie-banner > .cookie-content > .cookie-buttons {
        width: 100%;
    }

    body > .cookie-banner > .cookie-content > .cookie-buttons > .btn {
        flex: 1;
    }
}