/* 4Hats - Main Stylesheet - 2026 Edition */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #030305;
    --bg-secondary: #0a0a0f;
    --bg-card: #0d0d14;
    --gold: #62172b;
    --gold-light: #8a253f;
    --orange: #454852;
    --fire-red: #ff4500;
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.5);
    --border: rgba(255, 255, 255, 0.06);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER WITH FIRE TRAIL ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.4s ease;
}

.header.scrolled {
    padding: 12px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 16px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.header.scrolled .header-inner {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(98, 23, 43, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Red Trail Effect */
.header-fire {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #62172b, #8a253f, #62172b, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header-inner:hover .header-fire,
.header.scrolled .header-fire {
    opacity: 1;
    animation: fire-trail 2s ease-in-out infinite;
}

@keyframes fire-trail {

    0%,
    100% {
        background-position: 0% center;
        filter: blur(2px);
    }

    50% {
        background-position: 100% center;
        filter: blur(3px);
    }
}

.header-fire::before {
    content: '';
    position: absolute;
    inset: -10px 0 0 0;
    background: linear-gradient(to top, rgba(138, 37, 63, 0.3), transparent);
    filter: blur(8px);
}




/* Restored Header Styles */
.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    position: relative;
    z-index: 2;
}

.header-logo {
    width: 45px;
    height: 45px;
    filter: drop-shadow(0 0 8px rgba(98, 23, 43, 0.4));
    transition: filter 0.3s;
    object-fit: contain;
}

.header-brand:hover .header-logo {
    filter: drop-shadow(0 0 15px rgba(138, 37, 63, 0.6));
}

.header-title {
    font-family: 'Audiowide', cursive;
    font-size: 18px;
    background: linear-gradient(135deg, #62172b, #8a253f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-nav {
    display: none;
    align-items: center;
    gap: 6px;
    list-style: none;
    position: relative;
    z-index: 2;
}

@media (min-width: 900px) {
    .header-nav {
        display: flex;
    }
}

.header-link {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.25s ease;
    position: relative;
}

.header-link:hover,
.header-link.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.header-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #62172b, #8a253f);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.header-link:hover::after {
    width: 60%;
}

.header-cta {
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bg-primary);
    background: linear-gradient(135deg, var(--gold), var(--orange));
    border: none;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.header-cta:hover {
    box-shadow: 0 0 25px rgba(98, 23, 43, 0.4);
    transform: translateY(-2px);
}

.header-menu-btn {
    display: flex;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    cursor: pointer;
    position: relative;
    z-index: 2;
}

@media (min-width: 900px) {
    .header-menu-btn {
        display: none;
    }
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(3, 3, 5, 0.98);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    font-size: 18px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 12px 24px;
}

/* Page Hero */
.page-hero {
    padding: 160px 0 60px;
    text-align: center;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: var(--gold);
    filter: blur(150px);
    opacity: 0.06;
    pointer-events: none;
}

.page-title {
    font-family: 'Audiowide', cursive;
    font-size: clamp(32px, 6vw, 52px);
    margin-bottom: 12px;
    position: relative;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

/* Section */
.section {
    padding: 60px 0 100px;
}

.section-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 14px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-family: 'Audiowide', cursive;
    font-size: clamp(24px, 4vw, 36px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: var(--bg-primary);
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 0 40px rgba(98, 23, 43, 0.35);
    transform: translateY(-3px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.search-input,
.filter-select {
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    transition: border-color 0.2s;
}

.search-input {
    flex: 1;
    min-width: 200px;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: rgba(98, 23, 43, 0.3);
}

/* ===== COMPLETELY NEW WRITEUP CARDS - NEON CYBER STYLE ===== */
.writeups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 28px;
}

.writeup-card {
    display: block;
    position: relative;
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.9), rgba(5, 5, 15, 0.95));
    border: 1px solid transparent;
    border-radius: 24px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.writeup-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, transparent, rgba(98, 23, 43, 0.3), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s;
}

.writeup-card:hover::before {
    opacity: 1;
}

.writeup-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(98, 23, 43, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.writeup-card-inner {
    padding: 32px;
    position: relative;
    z-index: 1;
}

.writeup-card-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 70% 30%, rgba(98, 23, 43, 0.08), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.writeup-card:hover .writeup-card-glow {
    opacity: 1;
}

.writeup-badge-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.writeup-badge {
    padding: 6px 14px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.writeup-badge.hard {
    background: linear-gradient(135deg, rgba(255, 60, 60, 0.2), rgba(255, 100, 100, 0.1));
    color: #ff6b6b;
    border: 1px solid rgba(255, 100, 100, 0.3);
}

.writeup-badge.medium {
    background: linear-gradient(135deg, rgba(255, 160, 0, 0.2), rgba(255, 200, 50, 0.1));
    color: #ffa726;
    border: 1px solid rgba(255, 180, 50, 0.3);
}

.writeup-badge.easy {
    background: linear-gradient(135deg, rgba(50, 200, 100, 0.2), rgba(100, 220, 150, 0.1));
    color: #66bb6a;
    border: 1px solid rgba(100, 200, 120, 0.3);
}

.writeup-badge.category {
    background: linear-gradient(135deg, rgba(98, 23, 43, 0.15), rgba(138, 37, 63, 0.08));
    color: var(--gold);
    border: 1px solid rgba(98, 23, 43, 0.25);
}

.writeup-card-title {
    font-family: 'Audiowide', cursive;
    font-size: 20px;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.3;
    transition: color 0.3s;
}

.writeup-card:hover .writeup-card-title {
    background: linear-gradient(135deg, var(--gold), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.writeup-card-ctf {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gold);
    margin-bottom: 16px;
    opacity: 0.8;
}

.writeup-card-ctf svg {
    width: 16px;
    height: 16px;
}

.writeup-card-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.writeup-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.writeup-card-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

.writeup-card-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
    transition: all 0.3s;
}

.writeup-card-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.writeup-card:hover .writeup-card-link svg {
    transform: translateX(6px);
}

/* ===== PREMIUM RESOURCE CARDS ===== */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.resource-card {
    display: flex;
    gap: 18px;
    padding: 24px;
    background: linear-gradient(145deg, var(--bg-card), rgba(5, 5, 10, 0.9));
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.resource-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--gold), var(--orange));
    opacity: 0;
    transition: opacity 0.3s;
}

.resource-card:hover {
    border-color: rgba(98, 23, 43, 0.2);
    transform: translateY(-4px) translateX(4px);
    box-shadow: -8px 8px 30px rgba(0, 0, 0, 0.3);
}

.resource-card:hover::before {
    opacity: 1;
}

.resource-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(98, 23, 43, 0.15), rgba(138, 37, 63, 0.1));
    border: 1px solid rgba(98, 23, 43, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
}

.resource-content {
    flex: 1;
}

.resource-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.resource-content p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.5;
}

.resource-content .level {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(98, 23, 43, 0.08);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Category Pills */
.category-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.category-pill {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 25px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s ease;
}

.category-pill:hover,
.category-pill.active {
    background: rgba(98, 23, 43, 0.1);
    border-color: rgba(98, 23, 43, 0.3);
    color: var(--gold);
}

/* About */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 48px;
}

.about-section h2 {
    font-family: 'Audiowide', cursive;
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--gold);
}

.about-section p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 12px;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.focus-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
}

.focus-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 6px;
}

.focus-item p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

/* ===== FIXED MODERN FOOTER ===== */
.footer {
    position: relative;
    margin-top: 80px;
    background: linear-gradient(to bottom, transparent, rgba(5, 5, 10, 0.8));
}

.footer-top {
    padding: 60px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand,
    .footer-social {
        justify-content: center;
    }
}

.footer-brand-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 80px;
    height: 36px;
    object-fit: contain;
}

.footer-brand-title {
    font-family: 'Audiowide', cursive;
    font-size: 20px;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    transition: all 0.3s;
}

.footer-social a:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--gold);
    transform: translateY(-3px);
}

.footer-column h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-newsletter input {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 13px;
}

.footer-newsletter input:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.3);
}

.footer-newsletter button {
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    border: none;
    border-radius: 8px;
    color: var(--bg-primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.footer-newsletter button:hover {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid var(--border);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 600px) {
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

.footer-copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--gold);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    background: rgba(15, 15, 25, 0.9);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
    z-index: 50;
}

.back-to-top.visible {
    opacity: 1;
}

.back-to-top:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-4px);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 140px 24px 100px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    opacity: 0.12;
    object-fit: cover;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
}

.hero-glow-1 {
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    background: #62172b;
}

.hero-glow-2 {
    bottom: -300px;
    right: -200px;
    background: #8a253f;
    opacity: 0.08;
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(98, 23, 43, 0.06) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, black 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, black 10%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(98, 23, 43, 0.08);
    border: 1px solid rgba(98, 23, 43, 0.15);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: #62172b;
    margin-bottom: 28px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.hero-label-dot {
    width: 6px;
    height: 6px;
    background: #62172b;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.hero-title {
    font-family: 'Audiowide', cursive;
    font-size: clamp(36px, 8vw, 72px);
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--gold), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.feature-card {
    padding: 40px 32px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(98, 23, 43, 0.25);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(98, 23, 43, 0.1);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 24px;
    color: var(--gold);
    padding: 14px;
    background: rgba(98, 23, 43, 0.08);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: rgba(98, 23, 43, 0.15);
    transform: scale(1.05);
}

.feature-title {
    font-family: 'Audiowide', cursive;
    font-size: 17px;
    margin-bottom: 14px;
    color: var(--text);
}

.feature-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ===== TEAM CARDS ===== */
.team-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
}

.team-card {
    position: relative;
    width: 280px;
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid rgba(98, 23, 43, 0.3);
    transition: all 0.4s ease;
}

.team-card:hover {
    border-color: #62172b;
    transform: translateY(-8px);
    box-shadow: 0 25px 80px rgba(98, 23, 43, 0.25);
}

.team-card-photo {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #12121a, #0a0a0f);
}

.team-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.team-card:hover .team-card-photo img {
    opacity: 0.4;
    filter: blur(2px);
    transform: scale(1.05);
}

.team-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    z-index: 15;
    transition: opacity 0.35s ease;
}

.team-card:hover .team-card-info {
    opacity: 0;
}

.team-card-name {
    font-family: 'Audiowide', cursive;
    font-size: 18px;
    margin-bottom: 4px;
    color: var(--text);
}

.team-card-role {
    font-size: 12px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Crow Feather Effect */
.feather-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 10;
    pointer-events: none;
}

.feather {
    position: absolute;
    bottom: -20%;
    width: 60px;
    height: 60px;
    background-image: url('../assets/feathers.png');
    /* Adjusted path to be relative to css file */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transform-origin: center bottom;
}

.team-card:hover .feather {
    animation: feather-rise 3s ease-in-out infinite;
    opacity: 1;
}

@keyframes feather-rise {
    0% {
        transform: translateY(0) rotate(var(--r, 0deg)) scale(0.5);
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    100% {
        transform: translateY(-500px) rotate(calc(var(--r, 0deg) + 180deg)) scale(1.5);
        opacity: 0;
    }
}

.burn-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.9));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 5;
}

.team-card:hover .burn-overlay {
    opacity: 1;
}

.team-card-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    z-index: 20;
    transition: all 0.35s ease 0.1s;
}

.team-card:hover .team-card-actions {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.25s ease;
    min-width: 140px;
    justify-content: center;
}

.action-btn svg {
    width: 18px;
    height: 18px;
}

.linkedin-btn {
    background: #0077b5;
    color: white;
    box-shadow: 0 8px 30px rgba(0, 119, 181, 0.4);
}

.linkedin-btn:hover {
    background: #0088cc;
    transform: scale(1.05);
}

.website-btn {
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: var(--bg-primary);
    box-shadow: 0 8px 30px rgba(98, 23, 43, 0.4);
}

.website-btn:hover {
    transform: scale(1.05);
}

.team-card-handle {
    font-size: 12px;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    margin-top: 8px;
}

/* CTA */
.cta-section {
    text-align: center;
    padding: 80px 24px;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(98, 23, 43, 0.03), transparent 70%);
    pointer-events: none;
}

.cta-title {
    font-family: 'Audiowide', cursive;
    font-size: clamp(22px, 4vw, 32px);
    margin-bottom: 14px;
    position: relative;
}

.cta-text {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 460px;
    margin: 0 auto 28px;
    position: relative;
}

/* Rankings Teaser */
.rankings-teaser-section {
    padding-top: 72px;
}

.rankings-teaser-subtitle {
    color: var(--text-muted);
    margin-top: 12px;
    font-size: 15px;
}

.rankings-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.rankings-mini-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.rankings-mini-card:hover {
    transform: translateY(-4px);
    border-color: rgba(98, 23, 43, 0.35);
}

.rankings-mini-card.skeleton {
    min-height: 118px;
    background: linear-gradient(110deg,
            rgba(255, 255, 255, 0.04) 8%,
            rgba(255, 255, 255, 0.09) 18%,
            rgba(255, 255, 255, 0.04) 33%);
    background-size: 240% 100%;
    animation: ranking-skeleton 1.4s linear infinite;
}

.rankings-mini-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.rankings-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.rankings-badge.top {
    background: rgba(255, 196, 87, 0.18);
    color: #ffc457;
    border: 1px solid rgba(255, 196, 87, 0.35);
}

.rankings-badge.strong {
    background: rgba(98, 23, 43, 0.18);
    color: #9d2a30;
    border: 1px solid rgba(98, 23, 43, 0.35);
}

.rankings-badge.regular {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.rankings-points {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.rankings-mini-title {
    font-size: 16px;
    line-height: 1.35;
    margin-bottom: 8px;
}

.rankings-mini-meta {
    color: var(--text-muted);
    font-size: 13px;
}

.rankings-teaser-actions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.rankings-teaser-stat,
.rankings-page-stat {
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
}

.rankings-teaser-stat strong,
.rankings-page-stat strong {
    color: var(--gold);
    font-family: 'Audiowide', cursive;
    letter-spacing: 0.03em;
}

.rankings-empty {
    grid-column: 1/-1;
    text-align: center;
    color: var(--text-muted);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 24px;
}

/* Rankings Page */
.rankings-page-intro {
    color: var(--text-muted);
    max-width: 640px;
    margin: 14px auto 0;
    text-align: center;
}

.rankings-page-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.rankings-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.rankings-toolbar h3 {
    font-family: 'Audiowide', cursive;
    font-size: 20px;
    margin: 0;
}

.rankings-count {
    color: var(--text-muted);
    font-size: 14px;
}

.rankings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ranking-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ranking-card:hover {
    transform: translateY(-5px);
    border-color: rgba(98, 23, 43, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.ranking-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.ranking-place {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.ranking-place.top {
    background: rgba(255, 196, 87, 0.18);
    color: #ffc457;
    border: 1px solid rgba(255, 196, 87, 0.35);
}

.ranking-place.strong {
    background: rgba(98, 23, 43, 0.18);
    color: #9d2a30;
    border: 1px solid rgba(98, 23, 43, 0.35);
}

.ranking-place.regular {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.ranking-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 4px;
}

.ranking-title {
    font-size: 18px;
    margin-bottom: 6px;
    line-height: 1.35;
}

.ranking-organizer {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 12px;
}

.ranking-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.ranking-chip {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.04);
}

.ranking-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}

.ranking-link:hover {
    color: var(--gold-light);
}

.ranking-empty-state {
    grid-column: 1/-1;
    text-align: center;
    color: var(--text-muted);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 30px;
}

@keyframes ranking-skeleton {
    to {
        background-position: -140% 0;
    }
}

@media (max-width: 980px) {
    .rankings-mini-grid,
    .rankings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: 92vh;
        padding: 128px 18px 76px;
    }

    .rankings-mini-grid,
    .rankings-grid {
        grid-template-columns: 1fr;
    }
}
