:root {
    --primary: #111111; /* Almost black for buttons and primary actions */
    --primary-hover: #333333;
    --bg-dark: #e1a642; /* Beautiful Razorpay Gold for main background */
    --bg-surface: #ffffff; /* Pure White for cards and panels */
    --bg-glass: rgba(255, 255, 255, 0.35); /* Advanced Frosted white */
    --text-main: #111111; /* Almost black text for high readability */
    --text-muted: #3a322c; /* Darker greyish-brown for higher contrast on glass */
    --border-color: #eae6df; /* Very subtle, light border */
    --accent: #fbf9f4; /* Light cream for inner boxes */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

.shiny-text {
    --shiny-color: var(--text-main);
    --shiny-shine: #ffffff;
    --shiny-speed: 4s;
    background-image: linear-gradient(
        120deg, 
        var(--shiny-color) 0%, 
        var(--shiny-color) 35%, 
        var(--shiny-shine) 50%, 
        var(--shiny-color) 65%, 
        var(--shiny-color) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* Fallback */
    animation: shiny-text-anim var(--shiny-speed) linear infinite;
    display: inline-block;
}

@keyframes shiny-text-anim {
    0% { background-position: 150% center; }
    100% { background-position: -50% center; }
}

body {
    background: linear-gradient(135deg, #e1a642, #f3c26b, #e1a642, #d49533);
    background-size: 400% 400%;
    animation: goldMeshGlow 15s ease infinite;
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

@keyframes goldMeshGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 20px 5%;
    background: var(--bg-glass);
    backdrop-filter: blur(25px) saturate(150%);
    -webkit-backdrop-filter: blur(25px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    z-index: 100;
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: start;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-self: center;
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-self: end;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-primary {
    background: linear-gradient(135deg, #222222, #000000);
    color: #ffffff; /* White text on brown button for contrast */
    border: 1px solid #444;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #333333, #111111);
}

/* Helper Utilities */
.section-container {
    padding: 100px 5% 50px;
}

.fade-up {
    opacity: 1;
}

/* Profile Sidebar */
.profile-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    max-width: 100%;
    height: 100vh;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-color);
    z-index: 99999 !important;
    padding: 60px 30px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.6);
    transform: translateZ(0); /* Fix Chrome backdrop-filter rendering bug */
    isolation: isolate;
    will-change: transform, right;
}

.profile-sidebar.active {
    right: 0;
}

/* Modal Overlay (Background Blur) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* White Theme Section */
.theme-white {
    background: #ffffff !important;
    color: var(--bg-dark) !important;
}

.theme-white .pricing-card {
    background: #fdf8f5;
    border-color: #e2d5c8;
    color: var(--bg-dark);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.theme-white .pricing-card.popular {
    background: linear-gradient(180deg, rgba(233, 182, 94, 0.15) 0%, #ffffff 100%);
    border-color: var(--primary);
}

.theme-white .plan-features li {
    color: var(--bg-dark);
    font-weight: 500;
}

.theme-white .plan-price span {
    color: #6a5345;
}

.theme-white .text-muted {
    color: #6a5345 !important;
}

/* Responsive Mobile Styles */
@media (max-width: 900px) {
    nav {
        display: flex;
        justify-content: space-between;
        padding: 15px 5%;
    }
    
    .menu-btn {
        display: block !important;
    }
    
    .nav-links {
        display: none !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        border-bottom: 1px solid var(--border-color);
        padding: 20px 0;
        gap: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        display: flex !important;
    }
    
    .logo img {
        height: 45px !important;
    }
    
    .hero h1 {
        font-size: 2.2rem !important;
    }
    
    .hero p {
        font-size: 0.95rem !important;
    }
    
    .section-container {
        padding: 60px 5% 40px;
    }
    
    .cards-grid, .categories-grid, .pricing-grid {
        grid-template-columns: 1fr !important;
    }
    
    .profile-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .desktop-only {
        display: none !important;
    }
}

/* Footer Styles */
.footer {
    background: #fdf8f5;
    color: var(--bg-dark);
    padding: 60px 5% 20px;
    border-top: 1px solid #e2d5c8;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--bg-dark);
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #6a5345;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
}

.footer-col p i {
    margin-top: 4px;
    color: var(--primary);
}

.footer-col a {
    display: block;
    color: #6a5345;
    text-decoration: none;
    margin-bottom: 15px;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    box-shadow: 5px 5px 10px #e6e6e6, 
               -5px -5px 10px #ffffff;
    color: var(--bg-dark);
    border: 1px solid #fcfcfc;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-bottom: 0;
    text-decoration: none;
}

.footer-socials a:hover {
    background: var(--bg-dark);
    color: #ffffff;
    border-color: var(--bg-dark);
    box-shadow: inset 3px 3px 6px rgba(0,0,0,0.2), 
                inset -3px -3px 6px rgba(255,255,255,0.4);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2d5c8;
    padding-top: 20px;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.85rem;
    color: #6a5345;
}

.footer-bottom-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-bottom-links a {
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 6px;
    border: 1px solid #6a5345;
    color: #6a5345;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
}

.footer-bottom-links a:hover {
    background: #6a5345;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(106, 83, 69, 0.2);
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Animated Gradient Text */
.animated-gradient-text {
    background-image: linear-gradient(to right, #40ffaa, #4079ff, #40ffaa, #4079ff, #40ffaa);
    background-size: 300% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent !important;
    animation: gradientTextAnim 3s linear infinite alternate;
    display: inline-block;
}

@keyframes gradientTextAnim {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Scroll Float */
.scroll-float {
    overflow: hidden;
}

.scroll-float-text {
    display: inline-block;
    font-size: inherit;
    text-align: center;
    line-height: 1.5;
}

.char {
    display: inline-block;
}

/* --- Styles migrated for games library --- */
/* Swiper 3D Coverflow */
.library-section {
    padding: 80px 0;
    overflow: hidden;
    background: transparent;
    position: relative;
    min-height: 600px;
}

.library-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.swiper-button-next, .swiper-button-prev {
    background: var(--bg-surface);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    color: var(--primary) !important;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    transform: scale(1.1);
    background: var(--primary);
    color: #ffffff !important;
}

.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 1.2rem !important;
    font-weight: 900;
}

.swiper {
    width: 100%;
    padding-top: 40px;
    padding-bottom: 60px;
}

.swiper-slide {
    width: 280px;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border: 2px solid #ffffff;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1), -5px -5px 15px rgba(255,255,255,0.8), inset 2px 2px 5px rgba(255,255,255,1), inset -2px -2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    transform-style: preserve-3d;
}

.swiper-slide-active .slide-inner {
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(17,17,17,0.2), inset 2px 2px 5px rgba(255,255,255,1), inset -2px -2px 5px rgba(0,0,0,0.05);
}

.burst-animate {
    z-index: 100 !important;
}

.slide-inner i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(233,182,94,0.5));
}

.slide-inner h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    font-weight: 700;
}

/* Game Modal */
.game-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -40%);
    width: 90%;
    max-width: 500px;
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    z-index: 10000;
    padding: 40px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 30px rgba(233,182,94,0.15);
}

.game-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

.close-modal-btn {
    position: absolute;
    top: 15px; right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal-btn:hover {
    color: var(--primary);
}

.game-modal-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.game-modal-stats i {
    color: var(--primary);
    margin-right: 5px;
}

.game-modal-desc {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
}

/* Filter Styles */
.game-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto 30px auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.filter-group {
    flex: 1 1 200px;
    position: relative;
}

.filter-group .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.game-filters input, .game-filters select {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 15px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
    appearance: none;
}

.game-filters input {
    padding-left: 40px;
}

.game-filters select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23e9b65e%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
    padding-right: 40px;
}

.game-filters input:focus, .game-filters select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(233,182,94,0.2);
}

@media (max-width: 768px) {
    .game-filters { flex-direction: column; padding: 0 10px; }
    .game-filters > * { width: 100%; margin-bottom: 10px; }
    .filter-group { flex: 1 1 100%; }
    .swiper-slide { width: 220px; height: 320px; }
    .slide-inner i { font-size: 3rem; }
    .slide-inner h3 { font-size: 1.2rem; }
    .game-modal { padding: 25px 15px; width: 95%; }
}

/* Custom Pill Nav Links for Games Page */
.pill-nav-links {
    display: flex;
    position: relative;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50px;
    padding: 5px;
    gap: 5px;
    align-items: center;
    justify-self: center;
}
.pill-nav-links a {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 24px;
    border-radius: 50px;
    position: relative;
    z-index: 2;
    font-weight: 600;
    transition: color 0.3s;
}
.pill-nav-links a.active, .pill-nav-links a:hover {
    color: var(--primary);
}
.pill-nav-hover {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 0;
    background: #ffffff;
    border-radius: 50px;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
}

/* Social icons & navigation actions for games page */
.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}
.social-icons a {
    color: var(--text-main);
    border: 1px solid var(--text-main);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}
.social-icons a:hover {
    background: var(--text-main);
    color: var(--bg-surface);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.6rem;
    color: var(--text-main);
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.3s ease;
}
.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

/* Mobile Nav Overlay styling */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    display: flex;
    justify-content: flex-end;
}
.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}
.mobile-nav-menu {
    width: 300px;
    height: 100%;
    background: var(--bg-surface);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
}
.mobile-nav-overlay.active .mobile-nav-menu {
    transform: translateX(0);
}
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}
.close-mobile-menu {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--text-main);
    cursor: pointer;
    transition: color 0.3s ease;
}
.close-mobile-menu:hover {
    color: #ff4757;
}
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.mobile-nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}
.mobile-nav-links a:hover, .mobile-nav-links a.active {
    background: rgba(225, 166, 66, 0.1);
    color: var(--text-main);
    transform: translateX(5px);
}

@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex;
    }
    .pill-nav-container {
        display: none;
    }
}

/* About Section Styles */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.story-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 2px solid var(--primary);
}

.story-content h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.story-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.value-card {
    background: var(--bg-surface);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.value-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .story-grid {
        grid-template-columns: 1fr;
        padding: 30px 20px !important;
    }
    .value-card { 
        padding: 30px 20px; 
    }
}

