@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Dancing+Script:wght@400..700&display=swap');

:root {
    --clr-bg-light: #EEE2C6;
    --clr-orange-main: #D99735;
    --clr-text-dark: #57513F;
    --clr-neutral: #8C8E7B;
    --clr-beige: #D6B98A;
    --clr-orange-dark: #da370f;
    --clr-text-primary: #013668;
    --clr-footer-bg: #0b1620;
    --clr-footer-accent: var(--clr-orange-main);
    --clr-footer-text: #E9E6DD;
    --clr-footer-muted: rgba(233,230,221,0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--clr-bg-light);
    background-image: 
        linear-gradient(rgba(214, 185, 138, 0.5), rgba(214, 185, 138, 0.8)),
        url(images/paper-bg.png);
    background-size: cover;
    color: var(--clr-text-dark);
    font-family: 'Bebas Neue', cursive;
    margin: 0;
    padding: 20px;
    overflow: auto;
    min-height: 100vh;
    position: relative;
}

.main-header {
    padding: 1rem 2rem;
    background-color: var(--clr-orange-main);
    position: relative;
    z-index: 100;
    border-radius: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-nav {
    max-width: 1200px;
    margin: 0 auto;
    border: 2px solid darkcyan;
    border-radius: 20px;
}

.nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 2rem;
}

.nav-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.logo-container {
    flex: 0 0 auto;
    margin: 0 1.5rem;
}

.logo {
    width: 80px;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-link {
    text-decoration: none;
    color: var(--clr-text-primary);
    font-size: 2rem;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
    display: inline-block;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: darkcyan;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-item.active .nav-link {
    color: darkcyan;
}

.nav-link:hover::after,
.nav-item.active .nav-link::after {
    width: 80%;
}

.nav-item.active {
    font-weight: bold;
}

.nav-separator {
    color: var(--clr-text-primary);
    font-size: 1.5rem;
    opacity: 0.7;
    margin: 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
}

.nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.nav-list .nav-item:last-child + .nav-separator {
    display: none;
}

.mobile-logo {
    display: none;
}

.logo-mobile {
    width: 50px;
    height: auto;
    display: block;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1000;
    color: var(--clr-text-primary);
    font-family: 'Bebas Neue', cursive;
    font-size: 1.5rem;
    letter-spacing: 1px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--clr-orange-main);
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--clr-text-primary);
    position: relative;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--clr-text-primary);
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* HERO STYLE */
.hero {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 3rem 2rem;
    text-align: center;
}

.hero-title {
    font-size: 10rem;
    color: var(--clr-orange-main);
    margin: 0;
    text-shadow: 
        8px 8px 0 var(--clr-text-primary),
        2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: var(--clr-orange-dark);
    margin: -4rem 0 3rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-block;
    padding: 0.5rem 2rem;
    background: var(--clr-orange-dark);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: rotate(-2deg);
}

.hero-subtitle::before,
.hero-subtitle::after {
    content: "";
    position: absolute;
    bottom: -10px;
    border-style: solid;
    border-width: 10px 15px 0 15px;
}

.hero-subtitle::before {
    left: 0;
    border-color: var(--clr-orange-dark) transparent transparent transparent;
    transform: rotate(-45deg);
    transform-origin: 0 0;
}

.hero-subtitle::after {
    right: 0;
    border-color: var(--clr-orange-dark) transparent transparent transparent;
    transform: rotate(45deg);
    transform-origin: 100% 0;
}

.hero-subtitle:hover {
    transform: rotate(-1deg) scale(1.02);
    transition: all 0.3s ease;
}

.hero-paragraph {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.paragraph-img {
    width: 250px;
    height: auto;
    transition: transform 0.3s ease;
}

.paragraph-img:hover {
    transform: scale(1.05);
}

.hero-text {
    text-align: left;
    font-size: 2rem;
    line-height: 1.6;
    color: var(--clr-text-dark);
    margin: 0;
    padding: 0 1rem;
    position: relative;
}

/* Rewards Section */
.rewards {
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.rewards-title {
    font-family: 'Bangers', 'Arial Black', sans-serif;
    text-align: center;
    font-size: 4rem;
    color: #ff4757;
    margin: 0 0 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    text-shadow: 3px 3px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    -webkit-text-stroke: 2px #bb0606;
    color: #ffd700;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0;
    position: relative;
}

.promo-card {
    background: #eea51e;
    border-radius: 20px;
    box-shadow: 8px 8px 0 #000, 15px 15px 0 rgba(0,0,0,0.1);
    padding: 0;
    text-align: center;
    width: 320px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 4px solid #000;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #91542c, #f0f0f0);
}

.promo-card:hover {
    transform: translateY(-5px) rotate(-1deg);
    box-shadow: 12px 12px 0 #000, 20px 20px 0 rgba(0,0,0,0.1);
}

.card-comic-banner {
    background: #ff4757;
    color: white;
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    box-shadow: 0 4px 0 #cc2e3b;
}

.card-logo {
    width: 200px;
    height: auto;
    margin: 0 auto 1.5rem;
    object-fit: contain;
    filter: 
        drop-shadow(0 0 2px rgba(0,0,0,0.3))
        drop-shadow(0 0 10px rgba(255, 255, 255, 0.7))
        drop-shadow(3px 3px 0 rgba(0,0,0,0.3));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    position: relative;
    z-index: 1;
}

.promo-card:hover .card-logo {
    transform: scale(1.1) rotate(1deg) translateZ(10px);
    filter: 
        drop-shadow(0 0 4px rgba(0,0,0,0.4))
        drop-shadow(0 0 15px rgba(255, 255, 255, 0.9))
        drop-shadow(5px 5px 0 rgba(0,0,0,0.2));
}

.referral-badge {
    background: #1e90ff;
    color: white;
    font-family: 'Bangers', cursive;
    font-size: 1.8rem;
    padding: 0.8rem 1.5rem;
    margin: 0 auto 1.5rem;
    display: inline-block;
    border-radius: 50px;
    position: relative;
    box-shadow: 0 4px 0 #0c6fb9;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

.referral-badge span {
    color: #ffd700;
    font-size: 2.2rem;
    letter-spacing: 2px;
}

.bonus-list {
    background: #f8f9fa;
    margin: 0 1.5rem 1.5rem;
    padding: 1.5rem;
    border-radius: 15px;
    border: 3px dashed #dee2e6;
    position: relative;
    overflow: hidden;
}

.bonus-title {
    font-family: 'Bangers', cursive;
    color: #2f3542;
    font-size: 1.6rem;
    margin: 0 0 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.bonus-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.bonus-list li {
    font-family: 'Comic Neue', cursive;
    font-size: 1.2rem;
    padding: 0.5rem 0.5rem 0.5rem 2.5rem;
    margin: 0.5rem 0;
    background: white;
    border-radius: 8px;
    position: relative;
    border-left: 4px solid #ff6b81;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

.bonus-list li::before {
    content: '⚡';
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.card-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 0 1.8rem 2.5rem;
}

.card-buttons button,
.card-buttons a.btn-claim {
    font-family: 'Bangers', cursive;
    font-size: 1.6rem;
    padding: 1.2rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    min-width: 220px;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

.btn-claim {
    background: #ffd700;
    color: #2f3542;
    box-shadow: 0 5px 0 #e6c200, 0 8px 0 rgba(0,0,0,0.2);
    font-weight: bold;
}

.btn-leaderboard {
    background: #2ed573;
    color: white;
    box-shadow: 0 5px 0 #1e8a4f, 0 8px 0 rgba(0,0,0,0.2);
    font-weight: bold;
}

.card-buttons button:hover,
.card-buttons a.btn-claim:hover {
    transform: translateY(2px);
    box-shadow: 0 3px 0 #e6c200, 0 5px 0 rgba(0,0,0,0.1);
}

.card-buttons button:active,
.card-buttons a.btn-claim:active {
    transform: translateY(5px);
    box-shadow: 0 1px 0 #e6c200, 0 2px 0 rgba(0,0,0,0.1);
}

/* FOOTER */
footer {
    background: linear-gradient(180deg, var(--clr-footer-bg), #071021);
    color: var(--clr-footer-text);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    margin: 3rem auto 1rem;
    max-width: 1200px;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    justify-content: space-between;
    box-shadow: 0 8px 20px rgba(0,0,0,0.45);
    border-top: 6px solid var(--clr-footer-accent);
}

.footer-left,
.footer-middle,
.footer-right {
    flex: 1;
    min-width: 200px;
}

.footer-left p,
.footer-middle p,
.footer-right p {
    color: var(--clr-footer-muted);
    font-family: 'Comic Neue', cursive;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.footer-left a {
    color: var(--clr-orange-main);
    text-decoration: none;
    font-family: 'Bebas Neue', cursive;
    font-weight: 700;
    font-size: 0.98rem;
    display: inline-block;
    padding: 0.12rem 0.5rem;
    border-radius: 6px;
    background: rgba(217,151,53,0.06);
    transition: background 0.18s ease, transform 0.12s ease, color 0.18s ease;
    margin-left: 0.25rem;
}

.footer-left a:hover,
.footer-left a:focus {
    background: rgba(217,151,53,0.14);
    color: #fff;
    transform: translateY(-2px);
    outline: none;
}

.footer-left a:focus-visible {
    outline: 2px solid var(--clr-orange-main);
    outline-offset: 2px;
}

.footer-logo {
    width: 70px;
    height: auto;
    display: block;
    margin-bottom: 0.6rem;
    filter: brightness(1.1) saturate(0.9);
}

.footer-middle h3,
.footer-right h3 {
    color: var(--clr-orange-main);
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.footer-middle ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-middle li {
    margin: 0.4rem 0;
}

.footer-middle a {
    color: var(--clr-footer-text);
    text-decoration: none;
    opacity: 0.95;
    transition: opacity 0.18s ease, color 0.18s ease;
}

.footer-middle a:hover {
    color: var(--clr-orange-main);
    opacity: 1;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.4rem;
}

.social-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    color: var(--clr-footer-text);
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.04);
    transition: transform 0.18s ease, background 0.18s ease;
}

.social-icon:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.08));
    color: var(--clr-orange-main);
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.social-icon svg * {
    fill: currentColor;
}


/* Responsive */
@media (max-width: 1100px) {
    .main-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 2rem;
    }
    
    .mobile-logo {
        display: block;
        position: relative;
        z-index: 1001;
    }
    
    .mobile-menu-toggle {
        display: flex;
        position: relative;
        top: 0;
        right: 0;
    }
    
    .header-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--clr-orange-main);
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        border: none;
    }
    
    .header-nav.active {
        transform: translateX(0);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 2.5rem;
        padding: 2rem;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        font-size: 2.5rem;
        padding: 1rem 2rem;
    }
    
    .nav-separator {
        display: none;
    }
    
    .logo-container {
        display: none;
    }
    
    .logo {
        width: 120px;
    }
    
    .mobile-menu-toggle.active .hamburger {
        background-color: transparent;
    }
    
    .mobile-menu-toggle.active .hamburger::before {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .mobile-menu-toggle.active .hamburger::after {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    .mobile-menu-toggle.active .menu-text {
        display: none;
    }
}

@media screen and (max-width: 1000px) {
    .hero-title {
        font-size: 6rem;
    }

    .hero-subtitle {
        font-size: 2rem;
    }

    .hero-paragraph {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .paragraph-img {
        max-width: 100%;
        height: auto;
    }

    .hero-text {
        font-size: 1.5rem;
        text-align: center;
    }
}

@media screen and (max-width: 560px) {
    .hero-title {
        font-size: 4rem;
        text-shadow: 
        4px 4px 0 var(--clr-text-primary),
        2px 2px 4px rgba(0, 0, 0, 0.1);
    }

    .hero-subtitle {
        font-size: 1.5rem;
        margin-top: -2rem;
    }

    .paragraph-img {
        width: 200px;
    }

    .hero-text {
        font-size: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .rewards {
        padding: 3rem 1rem;
    }
    
    .rewards-title {
        font-size: 2.2rem;
    }
    
    .csgowin-card {
        width: 100%;
        max-width: 350px;
    }
}

@media screen and (max-width: 480px) {
    .rewards-title {
        font-size: 1.8rem;
    }
    
    .referral-code {
        font-size: 1.2rem;
    }
    
    .card-text {
        font-size: 1rem;
    }
}

@media (max-width: 800px) {
    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left,
    .footer-middle,
    .footer-right {
        width: 100%;
    }

    .footer-middle ul {
        display: inline-block;
    }
}

/* Socials Modal Styles (shared) */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}
.modal[aria-hidden="false"] { display: block; }
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}
.modal-dialog {
    position: relative;
    width: 420px;
    max-width: calc(100% - 32px);
    margin: 6vh auto;
    background: #fff;
    border-radius: 12px;
    padding: 1.2rem 1.4rem 1.6rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    z-index: 1;
    text-align: center;
}
.modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 1.6rem;
    cursor: pointer;
}
.socials-grid {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 0.6rem;
}
.social-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    text-decoration: none;
    color: #222;
    background: #f7f7f7;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.social-link:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.social-svg { width: 20px; height: 20px; fill: currentColor; }