/**
 * Urban Casting Solution - Stylesheet
 * @author Bangherang Studio - @giampo
 * @copyright 2024 - All rights reserved
 * @version 1.0.0
 */

/* CSS Reset - normalize cross-browser */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body container con viewport full-height garantito */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden; /* Previene horizontal scroll su animazioni */
    color: #fff;
    position: relative;
    min-height: 100vh;
}

/**
 * Background gradient animation
 * Utilizza pseudo-element per performance ottimali (GPU acceleration)
 * Pattern 45deg per movimento diagonale fluido
 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #0a0a0a, #2a2a2a, #1a1a1a, #3a3a3a, #0a0a0a);
    background-size: 400% 400%; /* Oversized per smooth animation */
    animation: gradientFlow 15s ease infinite;
    z-index: -1;
}

/* Gradient animation keyframes - loop continuo */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Main content wrapper - flexbox centering con backdrop blur */
.content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay per leggibilità */
    backdrop-filter: blur(10px); /* Webkit blur effect */
}

/**
 * Logo principale con text gradient metallico
 * Usa webkit-background-clip per gradient su testo
 * Shimmer animation per effetto premium
 */
.logo {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -2px; /* Tight kerning per impatto visivo */
    margin-bottom: 1rem;
    text-transform: uppercase;
    background: linear-gradient(135deg, #8B8B8B 0%, #E0E0E0 50%, #696969 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    animation: shimmer 3s ease-in-out infinite;
}

/* Shimmer effect - brightness oscillation */
@keyframes shimmer {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3); /* Peak brightness al 30% */
    }
}

/* Tagline typography */
.tagline {
    font-size: 1.5rem;
    color: #b0b0b0;
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Description block con max-width per optimal reading */
.description {
    font-size: 1.1rem;
    color: #999;
    max-width: 600px; /* Lunghezza riga ottimale 60-70 chars */
    line-height: 1.8;
    margin-bottom: 3rem;
}

/* CTA button con glass morphism effect */
.coming-soon {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    padding: 1.5rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: pulse 2s ease-in-out infinite;
}

/* Pulse animation per attention grabbing */
/* Pulse animation per attention grabbing */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.4);
        transform: scale(1.02); /* Leggero scale-up al 2% */
    }
}

/**
 * Features grid - CSS Grid responsive
 * Auto-fit con minmax per responsive automatico
 * No media query needed per basic responsive
 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    max-width: 900px;
}

/* Feature card con glass morphism */
.feature {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease; /* Smooth hover transition */
}

/* Feature hover state - elevazione e highlight */
.feature:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px); /* Lift effect */
}

/* Feature icon sizing */
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Feature title styling */
.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
}

/* Feature description text */
.feature-desc {
    font-size: 0.9rem;
    color: #999;
    line-height: 1.6;
}

/**
 * Language switcher component
 * Fixed positioning per persistent access
 * Glass morphism design pattern
 */
.lang-switcher {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 100; /* Above content ma sotto modal (se presenti) */
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Language button states */
.lang-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: #999;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Active language indicator */
.lang-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Language button hover feedback */
.lang-btn:hover {
    color: #fff;
}

/**
 * Radial gradient overlay
 * Aggiunge depth con vignette effect
 * Pointer-events none per non bloccare interazioni
 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none; /* Click-through */
    z-index: 0;
}

/* Footer copyright - minimal design */
.footer {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%); /* Center trick */
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    z-index: 100;
}

.footer a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #fff;
}

/**
 * Mobile responsive breakpoint
 * @media 768px - tablet/mobile threshold
 */
@media (max-width: 768px) {
    .logo {
        font-size: 2.5rem; /* Scale down per mobile */
    }

    .tagline {
        font-size: 1.2rem;
    }

    .coming-soon {
        font-size: 1.5rem;
        padding: 1rem 2rem; /* Reduced padding su mobile */
    }

    .features {
        grid-template-columns: 1fr; /* Stack verticale su mobile */
    }

    .lang-switcher {
        top: 1rem;
        right: 1rem; /* Più vicino ai bordi su mobile */
    }

    .footer {
        font-size: 0.75rem; /* Smaller footer text */
    }
}