:root {
    --bg: #0a0a0f;
    --bg-secondary: #0f0f17;
    --text: #eaeaea;
    --text-bright: #ffffff;
    --muted: #9ca3af;
    --accent: #00f0ff;
    --accent-glow: rgba(0, 240, 255, 0.4);
    --accent-secondary: #7c3aed;
    --accent-secondary-glow: rgba(124, 58, 237, 0.3);
    --card: rgba(20, 20, 30, 0.8);
    --card-border: rgba(0, 240, 255, 0.2);
    --radius: 16px;
    --gap: 24px;
    --maxw: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding: 0 1rem;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at top, rgba(0, 240, 255, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at bottom, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
    animation: pulse-bg 8s ease-in-out infinite;
    transform: translateY(0) !important; /* Keep it fixed, no parallax */
}

@keyframes pulse-bg {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Scanlines Effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    background: linear-gradient(transparent 50%, rgba(0, 240, 255, 0.03) 50%);
    background-size: 100% 4px;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* Grid Overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 3rem 0;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 4rem;
    padding: 1.5rem;
    background: rgba(20, 20, 30, 0.4);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
    animation: logo-glow 3s ease-in-out infinite;
}

.logo-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    border-radius: var(--radius);
    opacity: 0.5;
    filter: blur(8px);
    z-index: 1;
    animation: logo-glow-pulse 2s ease-in-out infinite;
}

@keyframes logo-glow {
    0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
    50% { box-shadow: 0 0 30px var(--accent-glow), 0 0 40px var(--accent-secondary-glow); }
}

@keyframes logo-glow-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.brand h1 {
    font-size: 1.4rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--text-bright), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand p {
    font-size: 0.9rem;
    color: var(--muted);
    letter-spacing: 0.5px;
}

/* Navigation */
nav {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    position: relative;
    color: var(--text);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.nav-link:hover::before {
    left: 100%;
}

.nav-underline {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    transition: width 0.3s ease;
}

.nav-link:hover .nav-underline {
    width: 80%;
}

.nav-link:hover {
    color: var(--accent);
}

/* Fade In Animations */
.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-delay {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 5rem;
    padding: 3rem 0;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.glitch {
    position: relative;
    color: var(--text-bright);
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-1 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent-secondary);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-2 2s infinite linear alternate-reverse;
}

@keyframes glitch-1 {
    0% { clip: rect(42px, 9999px, 44px, 0); }
    5% { clip: rect(12px, 9999px, 59px, 0); }
    10% { clip: rect(33px, 9999px, 29px, 0); }
    15% { clip: rect(92px, 9999px, 98px, 0); }
    20% { clip: rect(23px, 9999px, 68px, 0); }
    25% { clip: rect(1px, 9999px, 83px, 0); }
    30% { clip: rect(67px, 9999px, 97px, 0); }
    35% { clip: rect(86px, 9999px, 50px, 0); }
    40% { clip: rect(7px, 9999px, 13px, 0); }
    45% { clip: rect(15px, 9999px, 47px, 0); }
    50% { clip: rect(54px, 9999px, 28px, 0); }
    55% { clip: rect(90px, 9999px, 74px, 0); }
    60% { clip: rect(30px, 9999px, 74px, 0); }
    65% { clip: rect(84px, 9999px, 84px, 0); }
    70% { clip: rect(40px, 9999px, 90px, 0); }
    75% { clip: rect(24px, 9999px, 71px, 0); }
    80% { clip: rect(64px, 9999px, 86px, 0); }
    85% { clip: rect(74px, 9999px, 40px, 0); }
    90% { clip: rect(87px, 9999px, 20px, 0); }
    95% { clip: rect(99px, 9999px, 26px, 0); }
    100% { clip: rect(8px, 9999px, 95px, 0); }
}

@keyframes glitch-2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    5% { clip: rect(14px, 9999px, 33px, 0); }
    10% { clip: rect(68px, 9999px, 77px, 0); }
    15% { clip: rect(92px, 9999px, 100px, 0); }
    20% { clip: rect(23px, 9999px, 30px, 0); }
    25% { clip: rect(20px, 9999px, 70px, 0); }
    30% { clip: rect(37px, 9999px, 50px, 0); }
    35% { clip: rect(16px, 9999px, 86px, 0); }
    40% { clip: rect(77px, 9999px, 93px, 0); }
    45% { clip: rect(25px, 9999px, 47px, 0); }
    50% { clip: rect(84px, 9999px, 48px, 0); }
    55% { clip: rect(90px, 9999px, 64px, 0); }
    60% { clip: rect(30px, 9999px, 34px, 0); }
    65% { clip: rect(84px, 9999px, 44px, 0); }
    70% { clip: rect(40px, 9999px, 90px, 0); }
    75% { clip: rect(24px, 9999px, 51px, 0); }
    80% { clip: rect(64px, 9999px, 36px, 0); }
    85% { clip: rect(74px, 9999px, 80px, 0); }
    90% { clip: rect(87px, 9999px, 20px, 0); }
    95% { clip: rect(99px, 9999px, 66px, 0); }
    100% { clip: rect(8px, 9999px, 95px, 0); }
}

.hero-subtitle {
    color: var(--muted);
    max-width: 700px;
    margin: 1rem auto 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Stats */
.stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.stat {
    position: relative;
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--card-border);
    min-width: 140px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.1), transparent);
    transition: left 0.5s;
}

.stat:hover::before {
    left: 100%;
}

.stat:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.2);
}

.stat:hover .stat-glow {
    opacity: 1;
}

.stat-number,
.stat-text {
    font-weight: 700;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

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

/* Sections */
section {
    margin-bottom: 5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    border-radius: 2px;
}

/* Category Filters */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    position: relative;
    padding: 0.75rem 1.5rem;
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.1), transparent);
    transition: left 0.5s;
    z-index: -1;
}

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

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(124, 58, 237, 0.2));
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    animation: filterLine 0.3s ease;
}

@keyframes filterLine {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--gap);
}

/* Cards */
.card {
    position: relative;
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(10px);
    padding: 0;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--card-border);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: cardFadeIn 0.6s ease-out forwards;
    animation-delay: calc(var(--card-index, 0) * 0.1s);
}

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

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(124, 58, 237, 0.1));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 240, 255, 0.3);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.card:hover img {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-bright);
}

.card h5 {
    margin-bottom: 0.8rem;
    color: var(--accent);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* Contact Section */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.1), transparent);
    transition: left 0.5s;
}

.contact-link:hover::before {
    left: 100%;
}

.contact-link:hover {
    transform: translateX(10px);
    border-color: var(--accent);
    box-shadow: 0 5px 20px rgba(0, 240, 255, 0.2);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.contact-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.contact-link:hover .contact-icon img {
    animation: iconPulse 0.5s ease;
    filter: drop-shadow(0 0 15px var(--accent-glow));
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Footer */
footer {
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 240, 255, 0.2);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-secondary);
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Responsive */
@media (max-width: 768px) {
    .wrap {
        padding: 2rem 0;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    nav {
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding: 2rem 0;
    }

    .stats {
        gap: 1rem;
    }

    .stat {
        min-width: 120px;
        padding: 1rem 1.5rem;
    }

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

    .section-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .stats {
        flex-direction: column;
        align-items: center;
    }

    .stat {
        width: 100%;
        max-width: 200px;
    }
}
