body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.prize-box {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin: 30px auto;
    max-width: 500px;
    border: 2px solid rgba(255,255,255,0.2);
}

.prize-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prize-amount {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.prize-type {
    font-size: 1.1rem;
    opacity: 0.9;
}

.hero-buttons {
    margin: 30px 0;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.btn-buy-ticket {
    background: #ff6b6b;
    border: none;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.btn-buy-ticket:hover {
    transform: translateY(-2px);
    background: #ff5252;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

.btn-outline-light {
    border: 2px solid white;
    padding: 13px 35px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-outline-light:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.winner-badge {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.ticket-card {
    border-left: 4px solid #667eea;
}

.result-success {
    background: #d4edda;
    border: 2px solid #28a745;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.result-fail {
    background: #f8d7da;
    border: 2px solid #dc3545;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

footer {
    margin-top: auto;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    z-index: 1000;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    border-top: 1px solid #e0e0e0;
}

.mobile-bottom-nav .nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
}

.mobile-bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6c757d;
    padding: 8px 2px;
    transition: all 0.3s ease;
    position: relative;
    min-width: 0;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.4rem;
    margin-bottom: 3px;
    transition: all 0.3s ease;
}

.mobile-bottom-nav .nav-item span {
    font-size: 0.6rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.mobile-bottom-nav .nav-item.active {
    color: #667eea;
}

.mobile-bottom-nav .nav-item.active i {
    transform: scale(1.1);
}

.mobile-bottom-nav .nav-item:active {
    transform: scale(0.95);
}

/* Highlight effect */
.mobile-bottom-nav .nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 0 0 3px 3px;
}

/* Show only on mobile */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }
    
    /* Add padding to body to prevent content from being hidden behind nav */
    body {
        padding-bottom: 70px;
    }
    
    /* Hide desktop footer on mobile */
    footer.bg-dark {
        display: none;
    }
    
    /* Adjust container padding */
    .container {
        padding-bottom: 20px;
    }
}

/* Navbar styling */
.navbar {
    background-color: #000000 !important;
}

/* PWA-like styling */
@media (max-width: 768px) {
    .navbar {
        position: sticky;
        top: 0;
        z-index: 999;
        box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    
    /* Simplify navbar on mobile */
    .navbar-brand {
        font-size: 1rem;
    }
    
    /* Better mobile spacing */
    .hero-section {
        padding: 40px 20px !important;
    }
    
    .hero-section h1 {
        font-size: 2rem !important;
    }
    
    .hero-section p {
        font-size: 1rem !important;
    }
    
    /* Card improvements for mobile */
    .card {
        margin-bottom: 15px;
    }
    
    /* Better button sizing */
    .btn-buy-ticket {
        font-size: 1rem !important;
        padding: 12px 30px !important;
    }
}

/* Ripple effect on tap */
.mobile-bottom-nav .nav-item::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.mobile-bottom-nav .nav-item:active::after {
    transform: scale(1);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    /* Smooth scrolling */
    html {
        scroll-behavior: smooth;
    }
    
    /* Better touch targets */
    .btn {
        min-height: 44px;
    }
    
    /* Optimize images */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Better form inputs */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Compact stats on mobile */
    .row.mt-4 {
        margin-top: 1rem !important;
    }
    
    /* Better spacing */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* iOS safe area support */
@supports (padding: max(0px)) {
    .mobile-bottom-nav {
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }
}

/* Android notch support */
@media (max-width: 768px) {
    body {
        padding-bottom: max(70px, calc(70px + env(safe-area-inset-bottom)));
    }
}

/* Prevent text selection on nav items */
.mobile-bottom-nav .nav-item {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.winner-profile {
    border-left: 5px solid #667eea;
    transition: transform 0.3s;
}

.winner-profile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.winner-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #667eea;
}

.winner-photo-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.winner-info p {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.testimonial-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.video-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.video-section iframe,
.video-section video {
    border-radius: 10px;
}

.winner-badge-small {
    margin-top: 10px;
}


/* Section Title */
.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 35px 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.feature-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    font-weight: 900;
    color: #f0f0f0;
}

.feature-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2d3748;
}

.feature-card p {
    color: #718096;
    margin-bottom: 20px;
    line-height: 1.6;
}

.feature-link {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.feature-link:hover {
    gap: 10px;
}

/* Benefits Section */
.testimonial-section {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.benefit-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.benefit-item:hover {
    background: #f7fafc;
}

.benefit-item i {
    font-size: 2rem;
    color: #667eea;
    flex-shrink: 0;
}

.benefit-item h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #2d3748;
}

.benefit-item p {
    color: #718096;
    margin: 0;
    font-size: 0.9rem;
}

/* CTA Card */
.cta-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 35px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.cta-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-card p {
    margin-bottom: 25px;
    opacity: 0.95;
}

.cta-card .btn-light {
    background: white;
    color: #f5576c;
    font-weight: 700;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s;
}

.cta-card .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .prize-amount {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .feature-number {
        font-size: 2rem;
        top: 15px;
        right: 15px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}
