/* KhelKaro Casino - Modern 2025 Design */

:root {
    --primary-color: rgb(240, 76, 0);
    --secondary-color: #000000;
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --border-color: #333333;
    --gradient-red: linear-gradient(135deg, rgb(240, 76, 0) 0%, rgb(200, 60, 0) 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
}

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

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow-x: hidden;
}

.main-content {
    width: 100%;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    background: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
    width: 100%;
    overflow-x: hidden;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 30px;
}

.logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-desktop {
    flex: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    justify-content: center;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    width: 80%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* Buttons */
.btn {
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-red);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(240, 76, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger-menu span {
    width: 30px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-mobile {
    display: none;
    background: var(--bg-card);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-mobile.active {
    max-height: 600px;
}

.mobile-menu {
    list-style: none;
    padding: 20px;
}

.mobile-menu li {
    margin: 10px 0;
}

.mobile-menu a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background: var(--primary-color);
    transform: translateX(10px);
}

.mobile-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('images/Casino_banner_v1_desktop_1_3f847d4ccd (1).jpeg') center/cover;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(240, 76, 0, 0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    to {
        left: 100%;
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
    text-shadow: 0 0 20px rgba(240, 76, 0, 0.5);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--text-secondary);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

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

/* Section Styles */
.section {
    padding: 80px 20px;
    width: 100%;
    overflow-x: hidden;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-red);
    border-radius: 2px;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
}

.game-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    cursor: pointer;
}

.game-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-red);
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.game-card:hover::before {
    opacity: 1;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 30px rgba(240, 76, 0, 0.3);
}

.game-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.game-card:hover img {
    transform: scale(1.1);
}

/* Game Card Overlay with Play Button */
.game-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.game-card:hover .game-card-overlay {
    opacity: 1;
    pointer-events: all;
}

.game-play-btn {
    padding: 12px 35px;
    background: var(--gradient-red);
    color: var(--text-primary);
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(240, 76, 0, 0.4);
    transform: translateY(20px);
    opacity: 0;
    text-decoration: none;
    display: inline-block;
}

.game-card:hover .game-play-btn {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.1s;
}

.game-play-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 76, 0, 0.6);
}

.game-info {
    padding: 15px;
}

.game-info h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.game-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Live Games Grid */
.live-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 100%;
}

.live-game-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    cursor: pointer;
}

.live-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(240, 76, 0, 0.3);
}

.live-game-card img {
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

.live-game-card:hover img {
    transform: scale(1.05);
}

/* Live Game Card Overlay */
.live-game-card .game-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.live-game-card:hover .game-card-overlay {
    opacity: 1;
    pointer-events: all;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid var(--border-color);
}

.feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(240, 76, 0, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Bonuses Section */
.bonus-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.bonus-card:hover {
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.bonus-header {
    background: var(--gradient-red);
    padding: 20px 30px;
}

.bonus-header h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.bonus-content {
    padding: 30px;
}

.bonus-content ul {
    list-style: none;
    margin: 20px 0;
}

.bonus-content li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.bonus-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Content Section */
.content-section {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-color);
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.content-section h3 {
    font-size: 1.5rem;
    margin: 25px 0 15px;
}

.content-section p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.content-section ul {
    margin: 15px 0;
    padding-left: 20px;
}

.content-section li {
    margin: 10px 0;
    color: var(--text-secondary);
}

/* FAQ Section */
.faq-item {
    background: var(--bg-card);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-question {
    padding: 20px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 0, 0, 0.1);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 30px 20px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-question:hover {
    background: rgba(240, 76, 0, 0.1);
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-dark);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(240, 76, 0, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    border-top: 2px solid var(--primary-color);
    padding: 60px 20px 20px;
    width: 100%;
    overflow-x: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-links,
.footer-contact {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin: 10px 0;
}

.footer-links a,
.footer-contact a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-providers {
    margin-bottom: 40px;
    text-align: center;
}

.footer-providers h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
}

.providers-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    opacity: 0.7;
}

.providers-grid img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.providers-grid img:hover {
    filter: brightness(0) invert(1);
    opacity: 1;
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-secondary);
    margin: 5px 0;
    font-size: 0.9rem;
}

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

/* Responsive Design */
@media (max-width: 968px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    .nav-desktop,
    .header-actions {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .nav-mobile {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        word-wrap: break-word;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .section-title {
        font-size: 2rem;
        word-wrap: break-word;
    }

    .contact-form {
        padding: 25px;
    }

    .content-section {
        padding: 25px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .container {
        padding: 0 15px;
        max-width: 100%;
    }

    .section {
        padding: 60px 15px;
    }

    /* Prevent wide elements from causing horizontal scroll */
    img {
        max-width: 100%;
        height: auto;
    }

    .hero {
        padding: 60px 15px;
        overflow-x: hidden;
    }

    .features-grid,
    .games-grid,
    .live-games-grid {
        max-width: 100%;
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero {
        padding: 60px 10px;
        overflow-x: hidden;
    }

    .section {
        padding: 50px 10px;
        overflow-x: hidden;
    }

    .container {
        padding: 0 10px;
        max-width: 100%;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-width: 100%;
    }

    /* Mobile game button adjustments */
    .game-play-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .game-card:hover .game-card-overlay,
    .live-game-card:hover .game-card-overlay {
        opacity: 1;
    }

    .live-games-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .mobile-actions {
        flex-direction: column;
    }

    .mobile-actions .btn {
        width: 100%;
    }

    /* Force all images to fit within viewport */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Prevent text overflow */
    h1, h2, h3, h4, h5, h6, p, div {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    /* Footer adjustments */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .providers-grid {
        gap: 15px;
        justify-content: center;
    }

    .providers-grid img {
        max-width: 80px;
        height: auto;
    }

    /* Header adjustments */
    .header-content {
        padding: 10px 0;
        gap: 15px;
    }

    .logo img {
        height: 40px;
        max-width: 150px;
    }

    /* Content sections */
    .content-section {
        padding: 20px 15px;
    }

    .bonus-card,
    .feature-card {
        padding: 20px 15px;
    }

    .contact-form {
        padding: 20px 15px;
    }
}

/* Prevent horizontal scroll on all elements */
img, video, iframe, embed, object, table {
    max-width: 100%;
    height: auto;
}

/* Prevent long text from causing horizontal scroll */
p, h1, h2, h3, h4, h5, h6, li, td, th, div, span {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: rgb(240, 76, 0);
    color: var(--text-primary);
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s ease-in-out infinite;
}

