/* Global Styles */
:root {
    --background: #F6FAFF;
    --surface: #FFFFFF;
    --primary: #2563EB;
    --secondary: #0EA5E9;
    --accent: #BFC7D5;
    --text: #0F172A;
    --muted: #64748B;
    --border: #DCE7F3;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text);
    font-weight: 700;
}

.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

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

.bg-surface {
    background-color: var(--surface) !important;
}

.border-border {
    border-color: var(--border) !important;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1a4da3;
    border-color: #1a4da3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-light {
    border-color: white;
    color: white;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--muted);
    border-color: var(--muted);
    color: white;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #516075;
    border-color: #516075;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-control {
    border-color: var(--border);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

.text-muted-custom {
    color: var(--muted) !important;
}

/* Responsive Typography */
.site-title {
    font-size: 1.8rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.8rem;
}

@media (min-width: 768px) {
    .site-title {
        font-size: 2.2rem;
    }
    h1 {
        font-size: 3.5rem;
    }
    h2 {
        font-size: 2.8rem;
    }
    h3 {
        font-size: 2.2rem;
    }
}

@media (min-width: 1024px) {
    .site-title {
        font-size: 2.5rem;
    }
    h1 {
        font-size: 4.5rem;
    }
    h2 {
        font-size: 3.5rem;
    }
    h3 {
        font-size: 2.5rem;
    }
}

/* Top Disclaimer Bar */
.top-disclaimer {
    background-color: #dc3545; /* Red */
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
    z-index: 1050; /* Above most content, below modal */
    position: relative;
}

/* Header */
.navbar-brand img {
    max-height: 40px;
}

.navbar-toggler {
    border-color: var(--border);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2815, 23, 42, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.sticky-top {
    z-index: 1050;
}

.offcanvas {
    z-index: 1070;
}

.offcanvas-header .btn-close {
}

.offcanvas-body {
    padding-top: 1rem;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

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

@media (max-width: 1199.98px) {
    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar-nav .nav-item {
        width: 100%;
    }
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--border);
    }
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
}

@media (min-width: 1200px) {
    .offcanvas-collapse {
        display: flex !important;
        flex-basis: auto;
    }
}

/* Hero Section */
.hero-section {
    min-height: 70vh;
    background-color: var(--primary);
    position: relative;
    padding-top: 100px; /* Offset for sticky header */
    padding-bottom: 100px;
}

.hero-background-img {
    filter: brightness(0.4);
}

.hero-background-overlay {
    background: linear-gradient(45deg, rgba(37, 99, 235, 0.7), rgba(14, 165, 233, 0.7));
    z-index: 0;
}

.hero-stacked-cards {
    margin-top: 2rem;
    max-width: 600px;
    width: 100%;
    height: auto;
}

.scroll-indicator {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.scroll-indicator:hover {
    transform: translateX(-50%) translateY(-5px);
}

/* About Section */
.about-section img {
    height: 500px;
    width: 100%;
    object-fit: cover;
}

/* How To Play Section */
.embed-responsive {
    position: relative;
    width: 100%;
}

.embed-responsive-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.list-unstyled li span {
    display: block;
}

/* Game Selection Section */
.game-selection-section .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-selection-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
}

.game-selection-section .card-img-top {
    height: 200px;
    object-fit: cover;
}

.game-selection-section .game-link {
    display: block;
    text-decoration: none;
}

.game-selection-section .game-play-btn {
    text-decoration: none;
}

/* Game Modal */
.game-modal .modal-content {
    background-color: rgba(0, 0, 0, 0.9);
}

.game-modal .modal-header {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1060;
    width: auto;
    padding: 1rem;
}

.game-modal .btn-close-custom {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    opacity: 1;
    line-height: 1;
}

.game-modal .btn-close-custom i {
    font-size: 3rem;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease;
}

.game-modal .btn-close-custom:hover i {
    transform: rotate(90deg);
}

.game-modal .modal-body {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-modal iframe {
    border: none;
    width: 100%;
    height: 100%;
    display: block;
}

/* Tournaments Section */
.leaderboard-preview {
    background-color: var(--background);
    border: 1px solid var(--border);
}

.leaderboard-preview ul li {
    padding: 4px 0;
}

/* Achievements Section */
.achievement-item {
    width: 100px;
    height: 100px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Daily Challenges Section */
.streak-display {
    font-weight: 600;
    font-size: 1.1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.progress {
    height: 8px;
}

.progress-bar {
    background-color: var(--primary);
}

/* Chat Section */
.chat-window {
    height: 400px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--background);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.chat-message.incoming img, .chat-message.outgoing img {
    flex-shrink: 0;
}

.chat-message.incoming span {
    background-color: var(--background);
    color: var(--text);
    border: 1px solid var(--border);
}

.chat-message.outgoing span {
    background-color: var(--primary);
    color: white;
}

/* Contact Form Section */
.contact-form-section .card {
    border: 1px solid var(--border);
}

/* FAQ Section */
.accordion-item {
    border-color: var(--border);
}

.accordion-button {
    background-color: var(--surface);
    color: var(--text);
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background-color: var(--background);
    color: var(--primary);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary);
}

.accordion-body {
    background-color: var(--surface);
    color: var(--text);
    border-top: 1px solid var(--border);
}

/* Testimonials Section */
.testimonials-section .card {
    border: 1px solid var(--border);
}

.testimonials-section .carousel-control-prev-icon, 
.testimonials-section .carousel-control-next-icon {
    filter: invert(1);
}

.testimonials-section .badge {
    font-size: 0.75em;
    padding: 0.4em 0.6em;
    vertical-align: middle;
}

/* Disclaimer Block */
.disclaimer-block {
    background-color: #212529; /* Darker than footer for contrast */
    color: white;
}

.disclaimer-block .border-warning {
    border-color: #ffc107 !important;
}

.disclaimer-block .text-warning {
    color: #ffc107 !important;
}

.disclaimer-block ul {
    padding-left: 0;
}

/* Footer */
.footer-section {
    background-color: #1a1e21;
    color: rgba(255, 255, 255, 0.7);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-section a:hover {
    color: var(--secondary);
}

.footer-partner-logo {
    height: auto;
    max-width: 120px;
    width: 100%;
    object-fit: contain;
    filter: brightness(0.8) grayscale(0.2);
    transition: filter 0.3s ease;
}

.footer-partner-logo:hover {
    filter: none; /* No grayscale on hover */
}

.footer-section .accordion-button {
    background-color: #1a1e21;
    color: rgba(255, 255, 255, 0.8);
}

.footer-section .accordion-button:not(.collapsed) {
    background-color: #212529;
    color: var(--secondary);
}

.footer-section .accordion-body {
    background-color: #1a1e21;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-slide-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-slide-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-slide-left {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-slide-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale-up {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-scale-up.is-visible {
    opacity: 1;
    transform: scale(1);
}

.animate-staggered-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-staggered-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delay classes for staggered animations */
.delay-1 {
    transition-delay: 0.1s;
}
.delay-2 {
    transition-delay: 0.2s;
}
.delay-3 {
    transition-delay: 0.3s;
}
.delay-4 {
    transition-delay: 0.4s;
}
.delay-5 {
    transition-delay: 0.5s;
}

/* Specific animation for hero scroll indicator */
.animate-pulse {
    animation: pulse-scroll 2s infinite ease-in-out;
}

@keyframes pulse-scroll {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 0.7; }
    100% { transform: translateX(-50%) translateY(0); opacity: 1; }
}
/* Parent container for content styling */
.dataClauseFrame {
    padding-top: 20px; /* Top padding for the frame */
    padding-left: 20px; /* Left padding for the frame */
    padding-right: 20px; /* Right padding for the frame */
    /* You can adjust these values as needed.
       For example, padding: 20px 20px 20px 20px; for equal padding on all sides. */
}

/* Heading styles */
.dataClauseFrame h1 {
    font-size: 1.6em; /* Moderate font size for main headings */
    margin-top: 1.5em; /* Space above h1 */
    margin-bottom: 0.8em; /* Space below h1 */
    line-height: 1.2; /* Line height for readability */
    font-weight: bold; /* Bold text for emphasis */
}

.dataClauseFrame h2 {
    font-size: 1.4em; /* Moderate font size for sub-headings */
    margin-top: 1.2em; /* Space above h2 */
    margin-bottom: 0.6em; /* Space below h2 */
    line-height: 1.3; /* Line height for readability */
    font-weight: bold;
}

.dataClauseFrame h3 {
    font-size: 1.2em; /* Moderate font size for sub-sub-headings */
    margin-top: 1em; /* Space above h3 */
    margin-bottom: 0.5em; /* Space below h3 */
    line-height: 1.4; /* Line height for readability */
    font-weight: bold;
}

.dataClauseFrame h4 {
    font-size: 1.1em; /* Slightly larger than body text */
    margin-top: 0.8em; /* Space above h4 */
    margin-bottom: 0.4em; /* Space below h4 */
    line-height: 1.4; /* Line height for readability */
    font-weight: bold;
}

.dataClauseFrame h5 {
    font-size: 1em; /* Same as body text, but bold */
    margin-top: 0.6em; /* Space above h5 */
    margin-bottom: 0.3em; /* Space below h5 */
    line-height: 1.5; /* Line height for readability */
    font-weight: bold;
}

/* Paragraph styles */
.dataClauseFrame p {
    font-size: 1em; /* Standard paragraph font size, inherits from body if not set elsewhere */
    margin-bottom: 1em; /* Space between paragraphs */
    line-height: 1.5; /* Good line height for readability */
}

/* Unordered list styles */
.dataClauseFrame ul {
    list-style-type: disc; /* Default bullet style */
    margin-top: 1em; /* Space above the list */
    margin-bottom: 1em; /* Space below the list */
    padding-left: 25px; /* Indentation for list items */
}

/* List item styles */
.dataClauseFrame li {
    margin-bottom: 0.5em; /* Space between list items */
    line-height: 1.5; /* Line height for list item text */
}

@media (max-width: 768px) {
    .about-section img {
        height: 350px
    }
}