/* UPI Withdrawal Games - Main Styles */

/* CSS Variables */
:root {
    --black: #000000ff;
    --russian-violet: #3a0057ff;
    --lilac: #d1b2e0ff;
    --white: #ffffffff;
    --canary: #fff200ff;
    --gold: #f9d402ff;
    --shadow: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background: linear-gradient(135deg, var(--white), var(--lilac));
    /* background-color: #d1b2e0; */
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='152' height='152' viewBox='0 0 152 152'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='temple' fill='%233a0057' fill-opacity='0.04'%3E%3Cpath d='M152 150v2H0v-2h28v-8H8v-20H0v-2h8V80h42v20h20v42H30v8h90v-8H80v-42h20V80h42v40h8V30h-8v40h-42V50H80V8h40V0h2v8h20v20h8V0h2v150zm-2 0v-28h-8v20h-20v8h28zM82 30v18h18V30H82zm20 18h20v20h18V30h-20V10H82v18h20v20zm0 2v18h18V50h-18zm20-22h18V10h-18v18zm-54 92v-18H50v18h18zm-20-18H28V82H10v38h20v20h38v-18H48v-20zm0-2V82H30v18h18zm-20 22H10v18h18v-18zm54 0v18h38v-20h20V82h-18v20h-20v20H82zm18-20H82v18h18v-18zm2-2h18V82h-18v18zm20 40v-18h18v18h-18zM30 0h-2v8H8v20H0v2h8v40h42V50h20V8H30V0zm20 48h18V30H50v18zm18-20H48v20H28v20H10V30h20V10h38v18zM30 50h18v18H30V50zm-2-40H10v18h18V10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    position: relative;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--russian-violet), var(--black));
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1rem;
}

/* Hide close button on desktop */
.nav-menu .close-btn {
    display: none;
}

.nav-item {
    list-style: none;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 5px;
    position: relative;
    border: 2px solid transparent;
    display: inline-block;
    padding: 0.5rem 0.5rem;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--canary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 242, 0, 0.3);
}

.nav-menu .nav-item .nav-link.active,
.nav-menu .nav-link.active {
    background: linear-gradient(135deg, var(--lilac), var(--russian-violet)) !important;
    color: var(--white) !important;
    box-shadow: 0 4px 20px rgba(209, 178, 224, 0.4) !important;
    transform: translateY(-2px) !important;
    border: 2px solid var(--canary) !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Button Styles */
.nav-link.login-btn, 
.nav-link.register-btn {
    background: var(--lilac);
    color: var(--white);
    padding: 0.5rem 0.5rem;
    border-radius: 25px;
    transition: var(--transition);
    border: 2px solid transparent;
    font-weight: 600;
    margin-left: 0.5rem;
}

.nav-link.login-btn:hover, 
.nav-link.register-btn:hover {
    background: var(--russian-violet);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(209, 178, 224, 0.4);
    border-color: var(--canary);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    outline: none;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--russian-violet), var(--black));
    color: var(--white);
    padding: 4rem 2rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-text {
    text-align: left;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--canary);
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--white);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: 500px;
    border-radius: 20px;
    /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); */
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-btn {
    background: var(--canary);
    color: var(--black);
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.hero-btn:hover {
    background: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 212, 2, 0.4);
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.section {
    margin-bottom: 4rem;
}

.section h2 {
    color: var(--russian-violet);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--black);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(58, 0, 87, 0.2);
    border-color: var(--lilac);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--canary);
}

.feature-card h3 {
    color: var(--russian-violet);
    margin-bottom: 1rem;
}

/* Custom Stats Grid Styles */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(58, 0, 87, 0.2);
    border-color: var(--lilac);
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(209, 178, 224, 0.2), transparent);
    transition: left 0.5s;
}

.stat:hover::before {
    left: 100%;
}

.stat h3 {
    font-size: 3rem;
    font-weight: bold;
    color: var(--canary);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.stat p {
    color: var(--russian-violet);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
}

/* AOS Animation Classes */
.aos-stagger {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.aos-stagger.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.aos-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.aos-fade-in.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Count Up Animation */
.count-up {
    display: inline-block;
    font-size: 3rem;
    font-weight: bold;
    color: var(--canary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--canary);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--canary);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--russian-violet);
}

.footer-bottom p {
    color: var(--white);
    margin: 0;
}

.footer-bottom a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--canary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .hero-content {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--russian-violet);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s ease-in-out;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 1rem 0;
        gap: 0.5rem;
        overflow: hidden;
        z-index: 999;
    }
    
        /* Close button for mobile menu */
    .nav-menu .close-btn {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1.5rem;
        font-size: 1.5rem;
        color: var(--white);
        cursor: pointer;
        font-weight: bold;
        z-index: 1000;
        background: none;
        border: none;
        padding: 0.5rem;
        line-height: 1;
    }
    
    .nav-menu .close-btn:hover {
        color: var(--canary);
        transform: scale(1.1);
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        width: 100%;
        margin: 0.5rem 1rem;
    }
    
    .nav-link {
        /* display: block; */
        /* padding: 0.75rem 1.5rem; */
        width: calc(100% - 2rem);
        font-size: 1rem;
        /* margin: 0.25rem 0; */
    }
    
    /* Special spacing for login and register buttons */
    .nav-item:last-child,
    .nav-item:nth-last-child(2) {
        margin: 1rem 1rem 0.5rem 1rem;
    }
    
    .nav-item:nth-last-child(2) {
        margin-bottom: 0.5rem;
    }
    
    .hero {
        padding: 2rem 1rem;
        min-height: auto;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
        order: 2;
    }
    
    .hero-image {
        order: 1;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .hero {
        padding: 1.5rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        gap: 0.75rem;
    }
    
    .hero-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .nav-menu .close-btn {
        top: 0.5rem;
        right: 1rem;
        font-size: 1.2rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.nav-link:focus,
.hero-btn:focus {
    outline: 3px solid var(--canary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --lilac: #ffffff;
        --canary: #ffff00;
    }
} 

/* Breadcrumb Navigation Styles */
.breadcrumb {
    background: var(--white);
    padding: 1rem 2rem;
    margin: 0;
    border-bottom: 1px solid var(--russian-violet);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.breadcrumb-item:not(:last-child)::after {
    content: "›";
    margin: 0 0.5rem;
    color: var(--black);
    font-weight: bold;
    font-size: 1.2rem;
}

.breadcrumb-link {
    color: var(--black);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.breadcrumb-link:hover {
    color: var(--russian-violet);
    background: rgba(58, 0, 87, 0.1);
}

.breadcrumb-current {
    color: var(--russian-violet);
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    background: rgba(58, 0, 87, 0.1);
    border-radius: 4px;
}

/* Responsive breadcrumb */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 0.75rem 1rem;
    }
    
    .breadcrumb-list {
        font-size: 0.9rem;
    }
    
    .breadcrumb-item:not(:last-child)::after {
        margin: 0 0.25rem;
        font-size: 1rem;
    }
} 