:root {
    --primary: #00f3ff;
    --primary-dim: rgba(0, 243, 255, 0.2);
    --secondary: #bc13fe;
    --secondary-dim: rgba(188, 19, 254, 0.2);
    --bg-dark: #050510;
    --bg-panel: rgba(255, 255, 255, 0.03);
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --font-main: 'Rajdhani', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
}

.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 16, 0.8);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Typography */
.neon-text {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-dim), 0 0 20px var(--primary-dim);
}

.primary-color {
    color: var(--primary);
}

.secondary-color {
    color: var(--secondary);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary-dim);
}

/* Buttons */
.btn-login {
    border: 1px solid var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    color: var(--primary) !important;
}

.btn-login:hover {
    background: var(--primary-dim);
    box-shadow: 0 0 15px var(--primary-dim);
}

.btn-primary {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 1rem 2.5rem;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    clip-path: polygon(10% 0, 100% 0, 100% 80%, 90% 100%, 0 100%, 0 20%);
    transition: 0.3s;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 20px var(--primary);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2.5rem;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-secondary:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
}

.status-badge {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #0f0;
    border: 1px solid rgba(0, 255, 0, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 255, 0, 0.05);
}

.pulse {
    width: 6px;
    height: 6px;
    background: #0f0;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(0, 255, 0, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 255, 0, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0);
    }
}

.hero h1 {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1rem;
    text-transform: uppercase;
    position: relative;
    letter-spacing: -2px;
}

.highlight {
    color: var(--secondary);
    font-weight: 700;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 1rem;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    width: 100%;
    justify-content: center;
    padding: 0 1rem;
}

.stat-card {
    padding: 2rem;
    min-width: 200px;
    text-align: center;
    transition: 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-dim);
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-family: var(--font-mono);
}

/* Sections */
.container {
    padding: 6rem 10%;
}

.section-header {
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    white-space: nowrap;
}

.section-header .line {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, var(--primary), transparent);
}

/* Bounties Grid */
.bounty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.bounty-card {
    padding: 2rem;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.bounty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transition: 0.3s;
    transform-origin: bottom;
}

.bounty-card:hover::before {
    transform: scaleY(1);
}

.bounty-card:hover {
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.company-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
}

.bagde-high {
    color: #ff0055;
    background: rgba(255, 0, 85, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid rgba(255, 0, 85, 0.2);
}

.bagde-med {
    color: #ff9900;
    background: rgba(255, 153, 0, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid rgba(255, 153, 0, 0.2);
}

.bagde-low {
    color: #00eeff;
    background: rgba(0, 238, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid rgba(0, 238, 255, 0.2);
}

.card-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.reward-range {
    font-family: var(--font-mono);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.btn-glitch {
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: 0.3s;
}

.btn-glitch:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    letter-spacing: 2px;
}

/* Leaderboard */
.leaderboard-table {
    padding: 1rem;
}

.table-header,
.table-row {
    display: grid;
    grid-template-columns: 0.5fr 2fr 1fr 1fr;
    padding: 1.5rem;
    align-items: center;
}

.table-header {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table-row {
    transition: 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.table-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.top-rank {
    background: linear-gradient(90deg, rgba(188, 19, 254, 0.1), transparent);
    border-left: 2px solid var(--secondary);
}

.rank {
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.top-rank .rank {
    color: var(--secondary);
    font-weight: bold;
}

.hacker-name {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hacker-name i {
    color: gold;
}

.rep {
    font-family: var(--font-mono);
}

/* Footer */
footer {
    padding: 4rem 10%;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #020205;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.socials {
    display: flex;
    gap: 1.5rem;
}

.socials a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: 0.3s;
}

.socials a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--bg-dark);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(15px);
        padding-top: 2rem;
    }

    .nav-links li {
        opacity: 0;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hamburger i {
        color: var(--text-main);
        font-size: 1.5rem;
    }

    .nav-active {
        transform: translateX(0%);
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }

        to {
            opacity: 1;
            transform: translateX(0px);
        }
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-stats {
        flex-direction: column;
    }

    .table-header,
    .table-row {
        grid-template-columns: 0.5fr 2fr 1fr;
    }

    .impact {
        display: none;
    }
}

/* Blog Section */
.blog-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.blog-card:hover .blog-img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 700;
}

.blog-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-btn {
    margin-top: auto;
    /* Push button to bottom */
}

/* About Page Styles */
.about-section {
    padding-top: 120px;
    /* Account for fixed nav */
}

.about-content {
    padding: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.about-content h1 {
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.about-content .line {
    background: linear-gradient(90deg, var(--secondary), transparent);
    height: 2px;
    width: 100%;
    margin-bottom: 2rem;
}

.intro-text {
    font-size: 1.1rem;
    color: #ddd;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.about-card h2 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-card ul {
    list-style: none;
    padding-left: 0.5rem;
}

.about-card ul li {
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.5rem;
}

.about-card ul li::before {
    content: '>';
    color: var(--secondary);
    position: absolute;
    left: 0;
    font-family: var(--font-mono);
    font-weight: bold;
}

.mindset-section {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.mindset-section h2 {
    margin-bottom: 1rem;
    color: #fff;
}

.quote {
    margin-top: 1.5rem;
    font-family: var(--font-mono);
    color: var(--secondary);
    text-align: center;
    font-size: 1.1rem;
}

/* Tool Logos Section */
.tools-section {
    padding: 3rem 10%;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tools-title {
    font-family: var(--font-mono);
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.logos-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    align-items: center;
}

.tool-logo {
    width: 60px;
    height: 60px;
    opacity: 0.3;
    transition: 0.3s ease;
    filter: grayscale(100%);
}

.tool-logo:hover {
    opacity: 1;
    transform: scale(1.1);
    filter: grayscale(0%) drop-shadow(0 0 10px var(--primary));
}

/* Hero Search Bar */
.hero-search-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.hero-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--primary);
    padding: 1rem 1.5rem;
    padding-right: 3rem;
    border-radius: 30px;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 1rem;
    outline: none;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
    transition: 0.3s;
}

.hero-input:focus {
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.3);
    background: rgba(0, 0, 0, 0.7);
}

.hero-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    cursor: pointer;
}



.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 16, 0.95);
    border: 1px solid var(--primary);
    border-radius: 8px;
    margin-top: 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.search-result-item {
    padding: 0.8rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.2s;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.search-result-item:hover {
    background: var(--primary-dim);
    padding-left: 1.5rem;
    color: var(--primary);
}

.search-result-item:last-child {
    border-bottom: none;
}

/* Blog Post Page */
.blog-post-content {
    background: rgba(0, 0, 0, 0.4);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-meta {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1.5rem;
}