/* Modern Tridevv Gaming Website Styles */

/* Root Variables */
:root {
    --primary-color: #ffd700;
    --secondary-color: #ff6b35;
    --accent-color: #25d366;
    --telegram-color: #0088cc;
    --dark-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #cccccc;
    --gradient-primary: linear-gradient(135deg, #ffd700, #ff6b35);
    --gradient-dark: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    --shadow-primary: 0 10px 30px rgba(255, 215, 0, 0.3);
    --shadow-card: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: var(--gradient-dark);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffd700" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ff6b35" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
}

.top-banner {
    position: relative;
    z-index: 10;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding: 1rem 0;
}

.banner-content {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.banner-text {
    font-size: 1rem;
    color: var(--text-light);
}

.hero-content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.feature-item i {
    font-size: 1.2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    text-align: center;
}

.floating-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* WhatsApp & Telegram Buttons */
.whatsapp-btn, .btn-whatsapp, .btn-whatsapp-footer,
.telegram-btn, .btn-telegram, .btn-telegram-footer,
.download-app-btn {
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-primary);
    font-size: 0.95rem;
}

.whatsapp-btn, .btn-whatsapp, .btn-whatsapp-footer {
    background: var(--accent-color);
}

.telegram-btn, .btn-telegram, .btn-telegram-footer {
    background: var(--telegram-color);
}

a.download-app-btn,
a.download-app-btn:link,
a.download-app-btn:visited {
    background: linear-gradient(135deg, #25d366 0%, #1ebc58 100%);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 10px 26px rgba(37, 211, 102, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    font-weight: 700;
    letter-spacing: 0.2px;
    text-decoration: none !important;
    color: #ffffff !important;
    position: relative;
    overflow: hidden;
    padding: 0.78rem 1.55rem;
    border-radius: 999px;
}

.whatsapp-btn:hover, .btn-whatsapp:hover, .btn-whatsapp-footer:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
    color: white;
}

.telegram-btn:hover, .btn-telegram:hover, .btn-telegram-footer:hover {
    background: #0a6aa6;
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 136, 204, 0.4);
    color: white;
}

.download-app-btn:hover {
    background: linear-gradient(135deg, #20c95f, #18ab50);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 42px rgba(37, 211, 102, 0.48);
    color: #ffffff !important;
}

.download-app-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: left 0.45s ease;
}

.download-app-btn:hover::before {
    left: 130%;
}

.download-app-btn i {
    font-size: 1.05rem;
    width: 1.35rem;
    height: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.18);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.22);
}

.whatsapp-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.whatsapp-buttons .btn-whatsapp {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    background: transparent;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Games Section */
.games-section {
    background: var(--card-bg);
    position: relative;
    text-align: center;
}

.game-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    background: var(--card-bg);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.game-card:hover img {
    transform: scale(1.05);
}

.game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 1.5rem 1rem 1rem;
    color: white;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.game-card:hover .game-overlay {
    transform: translateY(0);
}

.game-overlay h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

.game-overlay p {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

/* Support Section */
.support-section {
    background: var(--dark-bg);
}

.support-content {
    padding-right: 2rem;
}

.support-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.support-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.support-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.support-item i {
    font-size: 2rem;
    width: 50px;
    text-align: center;
}

.support-item h5 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.support-item p {
    color: var(--text-muted);
    margin: 0;
}

.support-logo {
    max-width: 300px;
    filter: drop-shadow(0 10px 20px rgba(255, 215, 0, 0.3));
}

.support-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* App Download Section */
.app-download-section {
    background: var(--dark-bg);
}

.app-download-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
}

.download-steps {
    max-width: 560px;
}

.download-steps p {
    color: var(--text-muted);
    margin-bottom: 0.7rem;
}

.download-large-btn {
    padding: 0.95rem 1.8rem;
    font-size: 1rem;
}

/* Android-only visibility */
.android-only {
    display: none !important;
}

body.android-device .android-only {
    display: inline-flex !important;
}

body.android-device .app-download-section.android-only {
    display: block !important;
}

/* Features Section */
.features-section {
    background: var(--card-bg);
}

.feature-card {
    background: var(--dark-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.2);
    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 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-card h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-muted);
}

/* Footer */
.footer-section {
    background: var(--dark-bg);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    padding: 3rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 1rem;
}

.footer-title {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.footer-text {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.footer-buttons {
    display: flex;
    justify-content: flex-end;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
.animate-in {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Hero Section Mobile */
    .hero-section {
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero-subtitle {
        text-align: center;
        margin: 0 auto 2rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem;
        justify-content: center;
        align-items: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    /* Section Titles Mobile */
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .section-subtitle {
        text-align: center;
    }
    
    /* Support Section Mobile */
    .support-content {
        padding-right: 0;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .support-text {
        text-align: center;
    }
    
    .support-features {
        gap: 1rem;
        align-items: center;
    }
    
    .support-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .support-image {
        text-align: center;
    }
    
    .support-buttons {
        align-items: center;
    }
    
    /* Footer Mobile */
    .footer-content {
        text-align: center;
    }
    
    .footer-buttons {
        justify-content: center;
        margin-top: 2rem;
    }
    
/* Games Section Mobile */
.games-section .row {
    justify-content: center;
}

.games-section {
    text-align: center;
}

.games-section .container {
    text-align: center;
}

.games-section .row {
    text-align: center;
}

.games-section .col-md-4,
.games-section .col-sm-6 {
    text-align: center;
}

.game-card {
    text-align: center;
}
    
    /* Features Section Mobile */
    .features-section .row {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    /* Extra Small Mobile */
    .hero-title {
        font-size: 2rem;
    }
    
    .banner-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .top-banner .col-md-4 {
        text-align: center !important;
    }
    
    .top-banner .col-md-8 {
        text-align: center !important;
    }
    
    .whatsapp-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Game Cards Mobile */
    .game-card img {
        height: 150px;
    }
    
    .game-card {
        margin-bottom: 1rem;
    }
    
    /* Feature Cards Mobile */
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Support Items Mobile */
    .support-item {
        margin-bottom: 1rem;
    }
    
    /* Footer Mobile */
    .footer-logo {
        margin: 0 auto 1rem;
    }
    
    .footer-title {
        text-align: center;
    }
    
    .footer-text {
        text-align: center;
    }
    
    /* Container Mobile */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* All Text Center on Mobile */
    .hero-text,
    .support-content,
    .feature-card,
    .game-card,
    .footer-content {
        text-align: center;
    }
    
    /* Center All Buttons */
    .btn,
    .whatsapp-btn,
    .btn-whatsapp,
    .btn-outline-light {
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Floating WhatsApp Button */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.whatsapp-tooltip {
    position: absolute;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
}

.whatsapp-float-btn:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes pulse-whatsapp {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.05); 
    }
}

/* Hide floating button on mobile */
@media (max-width: 768px) {
    .floating-whatsapp-btn {
        display: none;
    }
}

/* Floating Telegram Button */
.floating-telegram-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    animation: pulse-whatsapp 2s infinite;
}

.telegram-float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--telegram-color);
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 136, 204, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.telegram-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 136, 204, 0.6);
}

.telegram-float-btn i {
    font-size: 28px;
    color: white;
}

.telegram-tooltip {
    position: absolute;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
}

.telegram-float-btn:hover .telegram-tooltip {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .floating-telegram-btn {
        display: none;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}