/* Reset e variabili */
:root {
    --electric-blue: #4a90e2;
    --swiss-red: #c94a4a;
    --deep-charcoal: #1a1a1a;
    --light-gray: #f5f5f5;
    --pure-white: #ffffff;
    --lime-green: #7cb342;
    --sun-yellow: #ffb74d;
    --slate-gray: #708090;
    
    /* Mappatura semantica */
    --primary-color: var(--electric-blue);
    --secondary-color: var(--swiss-red);
    --accent-color: var(--lime-green);
    --accent-secondary: var(--sun-yellow);
    --background-dark: var(--deep-charcoal);
    --background-light: var(--light-gray);
    --white: var(--pure-white);
    --text-dark: var(--deep-charcoal);
    --text-light: var(--slate-gray);
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--white);
    background-color: var(--background-dark);
}

/* Header e Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: 50px;
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.navbar-logo a {
    display: flex;
    align-items: center;
}

.navbar-logo img {
    height: 65px;
    width: auto;
    transition: all 0.3s ease;
    object-fit: contain;
    object-position: center;
}

.navbar-logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 30%, #3c3c3c 70%, rgba(74, 144, 226, 0.25) 100%);
    padding: 2rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(124, 179, 66, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 183, 77, 0.06) 0%, transparent 50%);
    opacity: 0.6;
    z-index: 1;
    animation: pulse 4s ease-in-out infinite alternate;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: rgba(74, 144, 226, 0.08);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.4;
    z-index: 1;
    animation: rotate 20s linear infinite;
}

.hero-background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.animated-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.8;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.main-cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), rgba(74, 144, 226, 0.8));
    box-shadow: 0 4px 16px 0 rgba(74, 144, 226, 0.25);
    letter-spacing: 0.5px;
    color: var(--white);
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-shadow: none;
}

.main-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.45);
    color: var(--white);
    background: linear-gradient(45deg, var(--primary-color), rgba(74, 144, 226, 1));
}

/* Animazioni */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

.hero-title {
    animation: fadeInUp 1s ease-out;
}

.hero-description {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.main-cta-button {
    animation: fadeInUp 1s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { opacity: 0.1; }
    100% { opacity: 0.2; }
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Animazioni Hero avanzate */
.hero-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float-around 15s infinite linear;
}

.floating-shape:nth-child(1) {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-shape:nth-child(2) {
    width: 120px;
    height: 120px;
    background: var(--primary-color);
    top: 60%;
    right: 15%;
    animation-delay: -5s;
}

.floating-shape:nth-child(3) {
    width: 60px;
    height: 60px;
    background: var(--accent-secondary);
    bottom: 30%;
    left: 20%;
    animation-delay: -10s;
}

.floating-shape:nth-child(4) {
    width: 100px;
    height: 100px;
    background: var(--secondary-color);
    top: 40%;
    right: 30%;
    animation-delay: -7s;
}

@keyframes float-around {
    0% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    25% { transform: translateY(-20px) translateX(20px) rotate(90deg); }
    50% { transform: translateY(0px) translateX(40px) rotate(180deg); }
    75% { transform: translateY(20px) translateX(20px) rotate(270deg); }
    100% { transform: translateY(0px) translateX(0px) rotate(360deg); }
}

/* Discord Corner CTA */
.discord-corner {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    text-align: right;
    z-index: 3;
    max-width: 220px;
}

.discord-corner-text {
    color: var(--white);
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    opacity: 0.9;
}

.discord-corner-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.discord-corner-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 160px;
    text-align: left;
    font-size: 0.85rem;
}

.discord-corner-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.discord-corner-btn.creator:hover {
    border-color: var(--accent-color);
    box-shadow: 0 5px 20px rgba(124, 179, 66, 0.25);
}

.discord-corner-btn.sponsor:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.25);
}

.btn-label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.btn-sublabel {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
    }
    
    .navbar-logo img {
        height: 55px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-section {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 1rem;
        gap: 3rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .discord-corner {
        position: relative;
        bottom: auto;
        right: auto;
        justify-self: center;
        text-align: center;
        max-width: 100%;
        margin-top: 2rem;
    }
    
    .discord-corner-buttons {
        flex-direction: row;
        gap: 0.8rem;
        justify-content: center;
    }
    
    .discord-corner-btn {
        min-width: 140px;
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .btn-label {
        font-size: 0.8rem;
    }
    
    .btn-sublabel {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 0.8rem;
        gap: 2.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .main-cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .discord-corner {
        max-width: 100%;
        margin-top: 1.5rem;
    }
    
    .discord-corner-text {
        font-size: 0.7rem;
        margin-bottom: 0.6rem;
    }
    
    .discord-corner-buttons {
        flex-direction: column;
        gap: 0.6rem;
    }
    
    .discord-corner-btn {
        min-width: 120px;
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .btn-label {
        font-size: 0.75rem;
    }
    
    .btn-sublabel {
        font-size: 0.6rem;
    }
}
