/* Global Styles & Cyberpunk Theme */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Orbitron:wght@400;700;900&display=swap');

:root {
    --theme-background: #060A0F;
    --theme-body: #03D1DF;
    --theme-highlight: #FFA12D;
    --theme-title: #00EFFF;
    --theme-surface: rgba(6, 10, 15, 0.9);
    
    /* Enhanced Glows */
    --glow-title: 0 0 20px rgba(0, 239, 255, 0.8), 0 0 40px rgba(0, 239, 255, 0.4);
    --glow-body: 0 0 16px rgba(3, 209, 223, 0.6);
    --glow-highlight: 0 0 20px rgba(255, 161, 45, 0.8);
}

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

body {
    background-color: var(--theme-background);
    color: var(--theme-body);
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Scanline Effect - Subtle */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.05) 50%,
        rgba(0, 0, 0, 0.05)
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 999;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    color: var(--theme-title);
    text-transform: uppercase;
    text-shadow: var(--glow-title);
    margin-bottom: 1rem;
}

a {
    color: var(--theme-highlight);
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: var(--glow-highlight);
}

a:hover {
    color: #fff;
    text-shadow: 0 0 30px var(--theme-highlight), 0 0 60px var(--theme-highlight);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(3, 209, 223, 0.2);
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow: var(--glow-title);
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 6px;
    animation: glitch 3s infinite;
}

.hero .subtitle {
    font-size: 2rem;
    color: var(--theme-title);
    margin-bottom: 2rem;
    letter-spacing: 4px;
    opacity: 0.9;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 3rem;
    text-shadow: var(--glow-body);
    color: #fff;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: transparent;
    border: 2px solid var(--theme-highlight);
    color: var(--theme-highlight);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--glow-highlight);
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--theme-highlight);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn:hover {
    color: var(--theme-background);
    box-shadow: 0 0 40px var(--theme-highlight);
}

.btn:hover::before {
    left: 0;
}

/* Content Sections */
.content-section {
    padding: 4rem 0;
    background: rgba(6, 10, 15, 0.7);
    border-top: 1px solid rgba(3, 209, 223, 0.2);
    border-bottom: 1px solid rgba(3, 209, 223, 0.15);
    margin-bottom: 0;
    backdrop-filter: blur(10px);
    position: relative;
}

.content-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--theme-body), transparent);
    opacity: 0.3;
}

.content-section.alt {
    background: radial-gradient(circle at top left, rgba(0, 239, 255, 0.05), transparent 50%),
                radial-gradient(circle at bottom right, rgba(255, 161, 45, 0.04), transparent 55%),
                rgba(6, 10, 15, 0.85);
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    display: block;
    padding-bottom: 1rem;
}

.content-section h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--theme-body);
    box-shadow: 0 0 10px rgba(3, 209, 223, 0.6), 0 0 20px rgba(3, 209, 223, 0.3);
}

.content-section p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: flex-start;
}

.two-column .column {
    position: relative;
}

.bullet-list {
    list-style: none;
    padding-left: 0;
}

.bullet-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.bullet-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--theme-highlight);
    text-shadow: var(--glow-highlight);
}

/* Catchphrase */
.hero .catchphrase {
    font-size: 0.9rem;
    color: var(--theme-title);
    margin-bottom: 3rem;
    text-shadow: var(--glow-body);
    font-weight: 700;
    letter-spacing: 1px;
}

/* Rules Grid */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.rule-card {
    background: linear-gradient(135deg, rgba(6, 10, 15, 0.95), rgba(10, 20, 30, 0.9));
    border: 1px solid rgba(3, 209, 223, 0.4);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.rule-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(0, 239, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rule-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(3, 209, 223, 0.4), 0 0 20px rgba(255, 161, 45, 0.2);
    border-color: var(--theme-highlight);
}

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

.rule-card .icon {
    width: 48px;
    height: 48px;
    color: var(--theme-highlight);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 5px rgba(255, 161, 45, 0.5));
}

.rule-card h3 {
    font-size: 1.1rem;
    color: var(--theme-body);
    margin-bottom: 0;
    text-shadow: none;
    font-family: 'JetBrains Mono', monospace;
}

/* Panel list inspired by in-app steps */
.panel-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.panel-item {
    border: 1px solid rgba(3, 209, 223, 0.4);
    background: linear-gradient(135deg, rgba(6, 10, 15, 0.95), rgba(6, 20, 30, 0.95));
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.panel-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--theme-highlight), var(--theme-body));
    box-shadow: 0 0 10px var(--theme-highlight);
}

.panel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(0, 239, 255, 0.15);
    mix-blend-mode: screen;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.panel-item:hover {
    border-color: rgba(255, 161, 45, 0.6);
    box-shadow: 0 4px 20px rgba(3, 209, 223, 0.2);
    transform: translateX(5px);
}

.panel-item:hover::after {
    opacity: 1.5;
}

.panel-label {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--theme-highlight);
    margin-bottom: 0.5rem;
}

.panel-text {
    font-size: 0.95rem;
}

/* Footer */
/* Created By Section */
.created-by-section {
    padding: 3rem 0 2.5rem;
    background: linear-gradient(180deg, rgba(6, 10, 15, 0.95), rgba(10, 15, 25, 0.95));
    border-top: 1px solid rgba(3, 209, 223, 0.3);
    text-align: center;
}

.created-by-section h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    border: none;
    padding: 0;
    text-align: center;
}

.created-by-section h2::after {
    display: none;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(6, 10, 15, 0.8), rgba(10, 20, 30, 0.8));
    border: 1px solid rgba(3, 209, 223, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-member::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 239, 255, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    border-color: var(--theme-highlight);
    box-shadow: 0 8px 25px rgba(3, 209, 223, 0.3);
}

.team-member:hover::before {
    opacity: 1;
}

.team-avatar-stack {
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-avatar-bg {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid var(--theme-body);
    box-shadow: 0 0 20px rgba(3, 209, 223, 0.4);
    background-image: var(--avatar-url);
    background-size: cover;
    background-position: center;
    transition: all 0.25s ease;
    display: block;
    /* Ensure pixel-art is crisp (no antialiasing) */
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    /* Apply color mask overlay */
    filter: grayscale(100%) sepia(100%) hue-rotate(130deg) saturate(160%) brightness(1.2) contrast(1.05);
    background-blend-mode: screen;
    background-color: rgba(3, 209, 223, 0.05);
}

.team-member:hover .team-avatar-bg {
    border-color: var(--theme-highlight);
    box-shadow: 0 0 30px rgba(255, 161, 45, 0.6);
    filter: none; /* restore original colors slightly */
    transform: translateY(-3px);
}

.team-member h3 {
    font-size: 1rem;
    margin: 0;
    color: var(--theme-title);
    text-transform: none;
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    line-height: 1.4;
}

.team-member .role {
    font-size: 0.85rem;
    color: var(--theme-highlight);
    margin: 0;
    opacity: 0.9;
    text-align: center;
}

.team-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.75rem;
    position: relative;
    z-index: 10;
}

.team-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
}

.social-icon {
    width: 24px;
    height: 24px;
    color: var(--theme-body);
    transition: all 0.3s ease;
    pointer-events: none;
}

.team-links a:hover .social-icon {
    color: var(--theme-highlight);
    transform: scale(1.15);
}

footer {
    text-align: center;
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(3, 209, 223, 0.15);
    margin-top: 0;
}

footer p {
    opacity: 0.7;
    font-size: 0.9rem;
}

footer .links {
    margin-top: 1rem;
}

footer .links a {
    margin: 0 1rem;
    font-size: 0.9rem;
}

/* Glitch Animation - Cyan/White only */
@keyframes glitch {
    0% {
        text-shadow: 2px 2px 0px var(--theme-body), -2px -2px 0px #fff;
    }
    2% {
        text-shadow: 4px 4px 0px var(--theme-body), -4px -4px 0px #fff;
    }
    4% {
        text-shadow: 2px 2px 0px var(--theme-body), -2px -2px 0px #fff;
    }
    100% {
        text-shadow: 2px 2px 0px var(--theme-body), -2px -2px 0px #fff;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero .subtitle {
        font-size: 1.5rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .container {
        padding: 1rem;
    }

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