/* ================================
   BET LIVRE - LANDING PAGE STYLES
   ================================ */

/* Color Variables */
:root {
    --primary-color: #00C2FF;
    --secondary-color: #8A00FF;
    --accent-color: #FFD500;
    --background-dark: #121212;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --gradient-primary: linear-gradient(135deg, #00C2FF, #8A00FF);
    --gradient-secondary: linear-gradient(135deg, #8A00FF, #00C2FF);
    --gradient-accent: linear-gradient(135deg, #FFD500, #FF8C00);
    --shadow-light: 0 4px 20px rgba(0, 194, 255, 0.3);
    --shadow-dark: 0 8px 30px rgba(0, 0, 0, 0.4);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-primary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Custom Buttons */
.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap; /* Evita quebra de texto */
    min-width: 140px; /* Largura mínima */
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
    color: white;
}

.btn-outline-primary-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    border-radius: 50px;
    padding: 10px 28px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-width: 140px;
}

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

.btn-secondary-custom {
    background: var(--gradient-secondary);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    color: white;
}

.btn-outline-light {
    border: 2px solid var(--text-primary);
    color: var(--text-primary);
    background: transparent;
    border-radius: 50px;
    padding: 10px 28px;
    font-weight: 600;
    text-decoration: none;
}

.btn-outline-light:hover {
    background: var(--text-primary);
    color: var(--background-dark);
}

/* Navigation */
.custom-navbar {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 0; /* Reduz padding para mobile */
    transition: var(--transition);
    z-index: 1030; /* Garante que fica acima de outros elementos */
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-collapse {
    margin-top: 1rem;
}

/* Mobile navbar improvements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(18, 18, 18, 0.98);
        border-radius: 12px;
        margin-top: 1rem;
        padding: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav .nav-link {
        margin: 0.5rem 0;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        transition: var(--transition);
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(0, 194, 255, 0.1);
    }
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 2rem;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(58%) sepia(96%) saturate(3071%) hue-rotate(186deg) brightness(101%) contrast(101%);
    transition: var(--transition);
    transform: scale(1.5);
}

.logo-icon:hover {
    transform: scale(1.7);
    filter: brightness(0) saturate(100%) invert(25%) sepia(89%) saturate(2635%) hue-rotate(262deg) brightness(102%) contrast(101%);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0 15px;
    position: relative;
    transition: var(--transition);
}

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

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

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

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 100px 0 50px 0; /* Adiciona padding para evitar sobreposição com navbar */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(0, 194, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(138, 0, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(255, 213, 0, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.hero-content {
    padding-right: 2rem; /* Espaçamento para telas maiores */
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1; /* Melhora o line-height para evitar cortes */
    margin-bottom: 1.5rem;
    word-wrap: break-word; /* Quebra palavras longas */
    hyphens: auto; /* Hifenização automática */
}

.hero-title .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block; /* Evita quebras estranhas */
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.6;
}

.hero-buttons {
    margin-bottom: 3rem;
}

.hero-stats {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 2rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 600;
    animation: float 4s ease-in-out infinite;
}

.card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 60%;
    right: 10%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

.floating-card i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.hero-phone {
    width: 300px;
    height: 600px;
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border-radius: 40px;
    padding: 20px;
    box-shadow: var(--shadow-dark);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--background-dark);
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.screen-content {
    padding: 2rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-preview h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.match {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.team {
    color: var(--primary-color);
    font-weight: 600;
}

.prediction-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prediction-buttons .btn {
    border-radius: 12px;
    padding: 12px;
    font-weight: 600;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.feature-highlight .badge {
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
}

.bg-primary-custom {
    background: var(--gradient-primary) !important;
}

.bg-secondary-custom {
    background: var(--gradient-secondary) !important;
}

.bg-accent {
    background: var(--gradient-accent) !important;
    color: var(--background-dark) !important;
}

/* Game Categories */
.games-section {
    padding: 80px 0;
}

.game-category {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.game-category:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(138, 0, 255, 0.2);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.game-category h4 {
    margin-bottom: 0.5rem;
}

.game-category p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.category-stats .badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Rankings Section */
.rankings-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
}

.ranking-list {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.rank-position {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 1.5rem;
    position: relative;
}

.rank-position i {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 1rem;
    color: var(--accent-color);
}

.player-info {
    flex: 1;
}

.player-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.player-stats {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.player-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.player-badge i {
    color: var(--accent-color);
}

/* Achievement Showcase */
.achievement-showcase {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.achievement-showcase h3 {
    margin-bottom: 2rem;
    text-align: center;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.achievement-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.achievement-item.unlocked {
    border-color: var(--accent-color);
    background: rgba(255, 213, 0, 0.1);
}

.achievement-item.unlocked i {
    color: var(--accent-color);
}

.achievement-item.locked {
    opacity: 0.5;
}

.achievement-item.locked i {
    color: var(--text-secondary);
}

.achievement-item i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.achievement-item span {
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

/* Community Section */
.community-section {
    padding: 80px 0;
}

.community-visual {
    position: relative;
}

.community-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

.stat-info .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-info .stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.community-features {
    margin-top: 2rem;
}

.community-feature {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.community-feature i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 0.25rem;
}

.community-feature h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.community-feature p {
    color: var(--text-secondary);
    margin: 0;
}

/* Rewards Section */
.rewards-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
}

.reward-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

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

.reward-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: var(--background-dark);
}

.reward-card h3 {
    margin-bottom: 1rem;
}

.reward-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.badge-showcase {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.mini-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.mini-badge.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}

.mini-badge.silver {
    background: linear-gradient(135deg, #C0C0C0, #808080);
    color: #000;
}

.mini-badge.bronze {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    color: #fff;
}

.reward-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.reward-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.reward-list i {
    color: var(--accent-color);
}

.tournament-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
}

.tournament-prize {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tournament-status {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--gradient-primary);
    color: white;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.cta-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.signup-form .input-group {
    max-width: 500px;
    margin: 0 auto;
}

.signup-form .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50px 0 0 50px;
    padding: 15px 25px;
    font-size: 1.1rem;
}

.signup-form .btn {
    border-radius: 0 50px 50px 0;
    padding: 15px 30px;
    background: var(--background-dark);
    border: none;
    color: var(--primary-color);
    font-weight: 600;
}

.signup-form .btn:hover {
    background: #000;
    color: var(--primary-color);
}

.signup-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.social-proof {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    backdrop-filter: blur(20px);
}

.proof-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
}

.proof-item i {
    color: var(--accent-color);
}

/* Footer */
.footer {
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    margin-bottom: 2rem;
}

.footer-description {
    color: var(--text-secondary);
    margin: 1rem 0 2rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.footer h5 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 3rem 0 2rem;
}

.footer-copyright {
    color: var(--text-secondary);
    margin: 0;
}

.footer-disclaimer {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
        line-height: 1.1;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-content {
        padding-right: 1rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding: 120px 0 40px 0;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.8rem;
        line-height: 1.1;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        text-align: center;
        margin: 0 auto 2rem;
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-content {
        padding-right: 0;
        text-align: center;
    }
    
    .hero-visual {
        height: 400px;
        margin-top: 2rem;
    }
    
    .hero-phone {
        width: 250px;
        height: 500px;
    }
    
    .floating-card {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    .achievement-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 30px 0;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        text-align: center;
        margin-bottom: 1.5rem;
        padding: 0 1rem; /* Padding lateral para evitar cortes */
    }
    
    .hero-subtitle {
        font-size: 1rem;
        text-align: center;
        margin: 0 auto 2rem;
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .hero-buttons {
        text-align: center;
        padding: 0 1rem;
    }
    
    .hero-buttons .btn {
        display: inline-block;
        margin: 0.5rem;
        width: auto;
        min-width: 160px;
    }
    
    .hero-stats {
        margin: 0 1rem;
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        text-align: center;
        line-height: 1.3;
    }
    
    .section-subtitle {
        text-align: center;
        font-size: 1rem;
    }
    
    .hero-visual {
        display: none;
    }
    
    .floating-card {
        position: static;
        margin: 1rem auto;
        max-width: 200px;
    }
    
    .feature-card,
    .game-category,
    .reward-card {
        margin-bottom: 2rem;
        padding: 2rem 1.5rem;
    }
    
    .achievement-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .community-stats {
        margin-bottom: 3rem;
    }
    
    .signup-form .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .signup-form .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .social-proof .row > div {
        margin-bottom: 1rem;
    }
    
    /* Container adjustments */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 90px 0 20px 0;
    }
    
    .hero-title {
        font-size: 1.9rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        padding: 0 0.5rem;
    }
    
    .hero-buttons .btn {
        font-size: 0.9rem;
        padding: 10px 20px;
        margin: 0.25rem;
        min-width: 140px;
    }
    
    .hero-stats {
        margin: 0 0.5rem;
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .feature-card,
    .game-category,
    .reward-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .navbar-brand .logo-text {
        font-size: 1.4rem;
    }
    
    .navbar-brand .logo-icon {
        transform: scale(1.2);
    }
    
    .section-title {
        font-size: 1.6rem;
        padding: 0 0.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
    
    /* Achievement grid mobile fix */
    .achievement-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .achievement-item {
        padding: 1rem 0.5rem;
        font-size: 0.8rem;
    }
    
    /* Container extra small */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.7rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        max-width: 200px;
        margin: 0.5rem auto;
    }
    
    .navbar-brand .logo-text {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-card {
        animation: none;
    }
    
    .logo-icon {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .feature-card,
    .game-category,
    .reward-card,
    .ranking-list,
    .achievement-showcase {
        border: 2px solid var(--primary-color);
    }
    
    .btn-outline-primary-custom,
    .btn-outline-light {
        border-width: 3px;
    }
}

/* Additional mobile fixes */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .btn-lg {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
    
    .section-title {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .navbar-brand .logo-text {
        font-size: 1.3rem;
    }
    
    .proof-item span {
        font-size: 0.8rem;
    }
    
    .signup-note {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

/* Landscape mobile fixes */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 80px 0 20px 0;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        margin-top: 2rem;
        padding: 1rem;
    }
}

/* Fix for very small screens */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
        font-size: 0.85rem;
    }
    
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .hero-stats .stat-number {
        font-size: 1.3rem;
    }
    
    .hero-stats .stat-label {
        font-size: 0.7rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
