:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --dark-bg: #1a1a2e;
    --darker-bg: #16213e;
    --light-text: #ffffff;
    --gray-text: #a0a0a0;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-hover: rgba(255, 255, 255, 0.1);
    --gradient-primary: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    --gradient-secondary: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(26, 26, 46, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--light-text);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 60px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 107, 107, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(78, 205, 196, 0.15) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: 100%;
    max-width: 1400px;
    padding: 0 20px;
    z-index: 1;
}

.hero-mascot {
    flex: 0 0 auto;
    cursor: help;
    transition: transform 0.3s ease;
}

.hero-mascot:hover {
    transform: scale(1.05);
}

.hero-mascot img {
    width: 300px;
    height: 300px;
    filter: drop-shadow(0 10px 30px rgba(255, 107, 107, 0.3));
    animation: bounce 3s ease-in-out infinite;
}

/* Kochibi touch animation: glow + pop */
@keyframes kochibi-hit {
    0% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 10px 30px rgba(255, 107, 107, 0.3));
    }
    30% {
        transform: translateY(-12px) scale(1.18) rotate(6deg);
        filter: drop-shadow(0 18px 48px rgba(255, 170, 90, 0.9));
    }
    60% {
        transform: translateY(0) scale(1.06) rotate(-2deg);
        filter: drop-shadow(0 12px 36px rgba(255, 140, 100, 0.6));
    }
    100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 10px 30px rgba(255, 107, 107, 0.3));
    }
}

.hero-mascot img.kochibi-animate {
    /* During the short hit animation, play only kochibi-hit (bounce will resume after class removal) */
    animation: kochibi-hit 0.6s cubic-bezier(.2,.9,.3,1) both;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-text);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 2rem;
}

.badge-text {
    background: rgba(255, 230, 109, 0.2);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid var(--accent-color);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--light-text);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-text);
    font-size: 0.9rem;
    animation: fadeInOut 2s ease-in-out infinite;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

section {
    padding: 6rem 0;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray-text);
    max-width: 700px;
    margin: 0 auto;
}

.about {
    background: var(--darker-bg);
    width: 100%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    background: var(--card-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-description {
    color: var(--gray-text);
    line-height: 1.6;
}

.servers {
    width: 100%;
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.server-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.server-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.server-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.server-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.server-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.status-badge {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.available {
    border: 2px solid #4CAF50;
    color: #4CAF50;
}

.status-badge.coming {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.status-badge.dev {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.server-content {
    padding: 2rem;
}

.server-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.server-description {
    color: var(--gray-text);
    line-height: 1.6;
}

.coccobacilli-go {
    background: var(--darker-bg);
    width: 100%;
}

.go-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.go-text {
    flex: 1;
}

.go-description {
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.go-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 10px;
}

.info-icon {
    font-size: 2rem;
}

.go-logo {
    flex: 0 0 auto;
}

.go-logo img {
    width: 500px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(78, 205, 196, 0.3));
}

.cbrs {
    text-align: center;
    padding: 8rem 0;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(78, 205, 196, 0.1) 100%);
    width: 100%;
}

.cbrs-content {
    max-width: 700px;
    margin: 0 auto;
}

.cbrs-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.cbrs-icons .icon {
    font-size: 3rem;
    animation: pulse 2s ease-in-out infinite;
}

.cbrs-icons .icon:nth-child(2) {
    animation-delay: 0.3s;
}

.cbrs-icons .icon:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}

.cbrs-description {
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 2rem;
}

.cbrs-status {
    display: inline-block;
    background: var(--card-bg);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 2px solid var(--primary-color);
}

.status-text {
    font-weight: 600;
    font-size: 1rem;
}

.donations {
    background: var(--darker-bg);
    width: 100%;
}

.donation-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.tier-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.tier-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.tier-card.featured {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(255, 230, 109, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
}

.tier-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

.tier-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tier-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tier-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tier-price span {
    font-size: 1rem;
    color: var(--gray-text);
}

.tier-description {
    color: var(--gray-text);
}

.donation-cta {
    text-align: center;
}

.contact {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background-image: url('assets/img/new/LogoNuovoCB.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.30;
    z-index: 0;
    pointer-events: none;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    text-decoration: none;
    color: var(--light-text);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-card svg {
    width: 48px;
    height: 48px;
}

.social-card span {
    font-weight: 600;
    font-size: 1.1rem;
}

.social-card.discord:hover {
    border-color: #5865F2;
    background: rgba(88, 101, 242, 0.1);
    transform: translateY(-5px);
}

.social-card.twitter:hover {
    border-color: #1DA1F2;
    background: rgba(29, 161, 242, 0.1);
    transform: translateY(-5px);
}

.social-card.instagram:hover {
    border-color: #E4405F;
    background: rgba(228, 64, 95, 0.1);
    transform: translateY(-5px);
}

.social-card.youtube:hover {
    border-color: #FF0000;
    background: rgba(255, 0, 0, 0.1);
    transform: translateY(-5px);
}

.footer {
    background: var(--darker-bg);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

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

.footer-brand img {
    height: 100px;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--gray-text);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--gray-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--gray-text);
    font-size: 0.9rem;
}

.footer-bottom p {
    color: var(--gray-text);
    font-size: 0.9rem;
}

@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 50px;
        flex-direction: column;
        background: rgba(26, 26, 46, 0.98);
        width: 100%;
        padding: 2rem;
        transition: left 0.3s ease;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-mascot img {
        width: 200px;
        height: 200px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .go-content {
        flex-direction: column;
        text-align: center;
    }

    .go-logo img {
        width: 200px;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
    .scroll-indicator {
    display: none;
    }
}

@media (max-width: 640px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .features-grid,
    .server-grid,
    .donation-tiers,
    .social-links {
        grid-template-columns: 1fr;
    }

    .go-content {
        gap: 2rem;
    }

    .go-logo img {
        width: 150px;
    }

    .section-description {
        font-size: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    section {
        padding: 3rem 0;
    }

    .contact .container {
        padding: 0 1rem;
    }

    .contact::before {
        width: 300px;
        height: 300px;
        opacity: 0.1;
    }

    .social-links {
        gap: 1rem;
        padding: 0 1rem;
    }

    .social-card {
        padding: 1.5rem;
    }
}
