/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800;900&display=swap');

:root {
    /* Color Palette */
    --primary-blue: #00e5ff;
    /* Cyan/Electric Blue */
    --primary-glow: #00e5ff80;
    --secondary-blue: #2979ff;
    --accent-purple: #7c4dff;

    --bg-dark: #0a0a12;
    --bg-overlay: rgba(5, 5, 15, 0.90);
    /* Darker overlay for El Hub Social look */

    --bg-card: rgba(20, 20, 35, 0.6);
    --bg-card-hover: rgba(30, 30, 50, 0.8);

    --text-main: #ffffff;
    --text-muted: #b0b0c0;

    --gradient-main: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    --gradient-btn: linear-gradient(180deg, #2979ff 0%, #1565c0 100%);

    --container-width: 1200px;
    --header-height: 100px;
    /* Taller header */
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    /* Background moved to pseudo-element for scroll behavior */
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

/* Background Image that scrolls away */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90vh;
    /* Covers most of the first screen */
    background-image: url('assets/background.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: -2;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

/* Dark overlay on top of the image */
body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90vh;
    background: var(--bg-overlay);
    z-index: -1;
    pointer-events: none;
}


a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-btn);
    color: white;
    box-shadow: 0 4px 0 #0d47a1, 0 5px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid #42a5f5;
}

.btn-primary:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #0d47a1, inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    filter: brightness(1.1);
}

.btn-outline {
    background: rgba(0, 229, 255, 0.05);
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    box-shadow: 0 0 10px var(--primary-glow);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: #000;
    box-shadow: 0 0 25px var(--primary-glow);
}

/* --- Split Header --- */
header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: absolute;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    text-shadow: 0 0 10px var(--primary-blue);
}

/* --- Hero Section --- */
.hero {
    min-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: var(--header-height);
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 900;
    text-transform: uppercase;
    color: white;
    text-shadow: 0 5px 0 rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 229, 255, 0.2);
}

.scroll-marker {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--primary-blue);
    font-size: 1.5rem;
    opacity: 0.7;
}

/* --- Countdown --- */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.time-box {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 229, 255, 0.3);
    padding: 10px 20px;
    border-radius: 8px;
    min-width: 80px;
    backdrop-filter: blur(5px);
}

.time-box span {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.time-box label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--primary-blue);
    letter-spacing: 1px;
    margin-top: 5px;
    display: block;
}

/* --- Sections --- */
.page-content {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: var(--primary-blue);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
}

.card p {
    color: var(--text-muted);
}

/* --- Footer --- */
footer {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Lang Switcher --- */
.lang-switch {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 20px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 4px 10px;
    cursor: pointer;
    font-weight: 700;
    border-radius: 16px;
    transition: all 0.3s;
    font-size: 0.8rem;
}

.lang-btn.active {
    background: var(--primary-blue);
    color: var(--bg-dark);
}

/* --- Animations --- */
@keyframes pulse-glow {
    0% {
        filter: drop-shadow(0 0 5px var(--primary-glow));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 20px var(--primary-blue));
        transform: scale(1.05);
    }

    100% {
        filter: drop-shadow(0 0 5px var(--primary-glow));
        transform: scale(1);
    }
}

/* Logo Animation Class */
header .logo img {
    animation: pulse-glow 3s infinite ease-in-out;
}

@keyframes bounce {

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

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

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

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(3deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* --- Responsive --- */
.nav-links {
    flex-wrap: wrap;
    justify-content: center;
}
}

/* --- Voting Page --- */
.vote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    /* Wider cards like blog */
    gap: 30px;
    margin-top: 40px;
}

.vote-card {
    background: rgba(15, 15, 20, 0.8);
    /* Darker, cleaner background */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    /* Slightly more rounded like blog */
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    backdrop-filter: blur(10px);
}

.vote-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.vote-card .btn {
    background: #0f3d3e;
    /* Dark teal background */
    color: #00ffd5;
    /* Bright teal text */
    border: 1px solid #00ffd5;
    border-radius: 50px;
    /* Pill shape */
    padding: 8px 30px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 213, 0.1);
}

.vote-card .btn:hover {
    background: #00ffd5;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 213, 0.4);
    transform: translateY(-2px);
}

.vote-img {
    height: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

/* --- Roadmap Page --- */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 60px auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    /* Center line */
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%);
    z-index: 0;
}

.timeline-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.step {
    position: relative;
    width: 30%;
    text-align: center;
}

.step-marker {
    width: 50px;
    height: 50px;
    background: var(--bg-dark);
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
    transition: all 0.3s;
}

.step.completed .step-marker {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    box-shadow: 0 0 15px var(--primary-glow);
}

.step.active .step-marker {
    border-color: #ffb700;
    color: #ffb700;
    box-shadow: 0 0 15px rgba(255, 183, 0, 0.3);
}

.step-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    position: relative;
}

.step-card::before {
    /* Connector line to marker */
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
}

.step-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    float: right;
}

.badge-done {
    background: rgba(0, 229, 255, 0.2);
    color: var(--primary-blue);
}

.badge-active {
    background: rgba(255, 183, 0, 0.2);
    color: #ffb700;
}

.step-list {
    margin-top: 15px;
    list-style: none;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.step-list li {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.step-list li::before {
    content: '•';
    color: var(--primary-blue);
    position: absolute;
    left: 0;
}

/* --- Blog Page --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    position: relative;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    transition: transform 0.3s;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0));
    padding: 25px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.blog-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    backdrop-filter: blur(5px);
}

.blog-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: #ffb700;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* --- Global Animations --- */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.fade-in {
    animation: fade-in 0.8s ease-out forwards;
}

@import url('styles-mobile.css');

/* Hero Glitch Animation */
.hero-text,
.hero h1 {
    position: relative;
    display: inline-block;
}

.hero h1.glitch-active {
    animation: glitch-skew 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    color: var(--primary-blue);
}

.hero h1.glitch-active::before,
.hero h1.glitch-active::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f172a;
    /* Match background to hide original */
}

.hero h1.glitch-active::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.hero h1.glitch-active::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(30px, 9999px, 10px, 0);
    }

    20% {
        clip: rect(70px, 9999px, 90px, 0);
    }

    40% {
        clip: rect(20px, 9999px, 50px, 0);
    }

    60% {
        clip: rect(60px, 9999px, 20px, 0);
    }

    80% {
        clip: rect(10px, 9999px, 80px, 0);
    }

    100% {
        clip: rect(40px, 9999px, 60px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(60px, 9999px, 20px, 0);
    }

    20% {
        clip: rect(10px, 9999px, 80px, 0);
    }

    40% {
        clip: rect(50px, 9999px, 30px, 0);
    }

    60% {
        clip: rect(20px, 9999px, 70px, 0);
    }

    80% {
        clip: rect(90px, 9999px, 10px, 0);
    }

    100% {
        clip: rect(30px, 9999px, 60px, 0);
    }
}

@keyframes glitch-skew {
    0% {
        transform: skew(0deg);
    }

    20% {
        transform: skew(-2deg);
    }

    40% {
        transform: skew(2deg);
    }

    60% {
        transform: skew(-1deg);
    }

    80% {
        transform: skew(1deg);
    }

    100% {
        transform: skew(0deg);
    }
}