@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@400;600;700;800&display=swap');

:root {
    --primary-gold: #F4B000;
    --primary-gold-rgb: 244, 176, 0;
    --bg-dark-900: #060D1A;
    --bg-dark-800: #0A1629;
    --bg-dark-700: #10213D;
    --text-white: #FFFFFF;
    --text-muted: #9FB0C6;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.06);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.4);
    --header-height: 72px;
}

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark-900);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-gold);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background 0.3s ease, border-color 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark-900) url('../img/premium_betting_bg_pattern_1767368957531.png') repeat;
    background-size: 800px;
    background-attachment: fixed;
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glassmorphic Overlay for Readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent, var(--bg-dark-900) 90%);
    z-index: -1;
    pointer-events: none;
}

h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(6, 13, 26, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #F4B000 0%, #FFFFFF 50%, #F4B000 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 10px 20px rgba(244, 176, 0, 0.2);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(244, 176, 0, 0.4);
}

.logo-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--bg-dark-900);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--text-white);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-menu ul {
    display: flex;
    gap: 32px;
}

.nav-menu a {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-muted);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-login {
    padding: 10px 24px;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-weight: 700;
    font-size: 14px;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(244, 176, 0, 0.15) 0%, transparent 70%);
    filter: blur(100px);
    z-index: -1;
    animation: mesh-move 20s infinite alternate;
}

@keyframes mesh-move {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100px, 50px);
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #9FB0C6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content h1 span {
    color: var(--primary-gold);
    -webkit-text-fill-color: var(--primary-gold);
}

.hero-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
}

.btn-primary {
    background: var(--primary-gold);
    color: var(--bg-dark-900);
    padding: 16px 36px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 10px 20px rgba(244, 176, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(244, 176, 0, 0.4), 0 0 30px rgba(244, 176, 0, 0.2);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
    padding: 16px 36px;
    border-radius: 14px;
    font-weight: 700;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.hero-image img {
    border-radius: 32px;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--glass-border);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

/* Tag Cloud Styles */
.tag-cloud-section {
    padding: 60px 0;
    background: rgba(10, 22, 41, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.tag-item {
    font-size: 13px;
    color: var(--text-muted);
    background: var(--bg-dark-700);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    cursor: default;
}

.tag-item:hover {
    color: var(--primary-gold);
    border-color: var(--primary-gold);
    transform: translateY(-3px);
    background: rgba(244, 176, 0, 0.1);
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 40px;
    margin-bottom: 16px;
}

.section-title h2 span {
    color: var(--primary-gold);
}

.section-title p {
    color: var(--text-muted);
    font-size: 18px;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 24px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(244, 176, 0, 0.1) 0%, transparent 80%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(244, 176, 0, 0.5);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(244, 176, 0, 0.1);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card .icon {
    width: 64px;
    height: 64px;
    background: rgba(244, 176, 0, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-card .icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary-gold);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
}

/* WhatsApp Floating */
.whatsapp-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 64px;
    height: 64px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float svg {
    width: 36px;
    height: 36px;
    fill: #fff;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax Effect Classes */
.parallax-layer {
    transition: transform 0.1s ease-out;
}

/* Staggered Animation for Tag Cloud */
.tag-item {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal.active .tag-item {
    opacity: 1;
    transform: scale(1);
}

.tag-item:nth-child(even) {
    transition-delay: 0.1s;
}

.tag-item:nth-child(3n) {
    transition-delay: 0.2s;
}

.tag-item:nth-child(4n) {
    transition-delay: 0.3s;
}

/* Premium Scroll Track */
body {
    scrollbar-color: var(--primary-gold) transparent;
    scrollbar-width: thin;
}

/* Trending Keywords Section */
.trending-keywords {
    background: var(--bg-dark-800);
    padding: 20px 0;
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
}

.keywords-track {
    display: flex;
    gap: 40px;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.keyword-item {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    gap: 8px;
}

.keyword-item::before {
    content: '🔥';
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.news-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s ease;
}

.news-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-gold);
}

.news-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.tag-india {
    background: rgba(255, 103, 31, 0.2);
    color: #FF671F;
}

.tag-nepal {
    background: rgba(0, 56, 147, 0.2);
    color: #003893;
}

.tag-global {
    background: rgba(244, 176, 0, 0.2);
    color: var(--primary-gold);
}

.news-card h4 {
    margin-bottom: 12px;
}

.news-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 32px;
    left: 32px;
    z-index: 1000;
}

.chatbot-toggle {
    width: 64px;
    height: 64px;
    background: var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(244, 176, 0, 0.3);
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 350px;
    height: 500px;
    background: rgba(10, 22, 41, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-header {
    background: var(--primary-gold);
    color: var(--bg-dark-900);
    padding: 16px;
    font-weight: 800;
    display: flex;
    justify-content: space-between;
}

.chatbot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

.message {
    padding: 10px 14px;
    border-radius: 14px;
    margin-bottom: 12px;
    max-width: 80%;
    font-size: 14px;
}

.bot-msg {
    background: var(--bg-dark-700);
    align-self: flex-start;
}

.user-msg {
    background: var(--primary-gold);
    color: var(--bg-dark-900);
    align-self: flex-end;
}

.chatbot-input {
    padding: 16px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 8px;
}

.chatbot-input input {
    flex: 1;
    background: var(--bg-dark-700);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 8px 12px;
    color: white;
}

/* Responsive & iOS view fixes */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-ctas {
        justify-content: center;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(6, 13, 26, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .nav-menu a {
        font-size: 24px;
        color: var(--text-white);
    }

    .hero-content h1 {
        font-size: 36px;
    }

    /* iOS Safe area fixes */
    .main-header {
        padding-top: env(safe-area-inset-top);
        height: calc(72px + env(safe-area-inset-top));
    }

    .whatsapp-float {
        bottom: calc(32px + env(safe-area-inset-bottom));
        right: calc(32px + env(safe-area-inset-right));
    }
}