/* General Body and Font Styles */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, #000 0%, #1a1a1a 50%, #000 100%);
    color: #fff; /* White text by default */
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
    box-shadow: inset 0 0 100px rgba(255, 215, 0, 0.05);
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #FFD700; /* Gold for headings */
    text-align: center;
    margin-bottom: 20px;
}

p {
    text-align: center;
    color: #ccc; /* Lighter grey for paragraph text */
}

.landing-page {
    width: 430px; /* iPhone 14 Pro Max exact width */
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 50%, #000 100%);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4), inset 0 0 20px rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    overflow: hidden;
}

/* Header Section */
.header {
    background-color: #000;
    padding: clamp(10px, 2vw, 20px) clamp(15px, 3vw, 25px); /* Responsive padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #FFD700;
    min-height: clamp(50px, 8vh, 80px); /* Responsive height */
}

.logo img {
    max-width: clamp(100px, 25vw, 150px); /* Responsive logo size */
    height: auto;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: logoFloat 3s ease-in-out infinite;
}

/* Logo floating animation */
@keyframes logoFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1); 
    }
    50% { 
        transform: translateY(-2px) scale(1.02); 
    }
}

/* Logo hover animation */
.logo img:hover {
    transform: translateY(-5px) scale(1.05);
    filter: drop-shadow(0 5px 15px rgba(255, 215, 0, 0.4));
}

.tagline p {
    color: #FFD700;
    font-size: clamp(0.9em, 2vw, 1.3em); /* Responsive font size */
    font-weight: bold;
    margin: 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    text-align: center;
    padding: 0;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 50%, #000 100%);
    overflow: hidden;
    min-height: clamp(500px, 80vh, 800px); /* Responsive height */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 50px rgba(255, 215, 0, 0.1);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    backface-visibility: hidden;
    perspective: 1000px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: heroZoom 10s ease-in-out infinite, imageParallax 15s ease-in-out infinite;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    filter: contrast(1.1) saturation(1.2) brightness(0.9) blur(3px);
    will-change: transform, filter;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Enhanced hero background zoom animation */
@keyframes heroZoom {
    0%, 100% { 
        transform: scale(1);
        filter: contrast(1.1) saturation(1.2) brightness(0.9) hue-rotate(0deg) blur(0px);
    }
    25% { 
        transform: scale(1.02);
        filter: contrast(1.15) saturation(1.3) brightness(1.05) hue-rotate(5deg) blur(0.5px);
    }
    50% { 
        transform: scale(1.05);
        filter: contrast(1.2) saturation(1.4) brightness(1.1) hue-rotate(0deg) blur(0px);
    }
    75% { 
        transform: scale(1.02);
        filter: contrast(1.15) saturation(1.3) brightness(1.05) hue-rotate(-5deg) blur(0.5px);
    }
}

/* Parallax subtle movement animation */
@keyframes imageParallax {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
    }
    25% { 
        transform: scale(1.01) rotate(0.2deg);
    }
    50% { 
        transform: scale(1.02) rotate(0.1deg);
    }
    75% { 
        transform: scale(1.01) rotate(-0.2deg);
    }
}

.hero-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: clamp(150px, 25vh, 250px); /* Responsive height */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(255, 215, 0, 0.1) 30%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    z-index: 2;
    animation: overlayShimmer 8s ease-in-out infinite;
}

/* Dynamic overlay shimmer effect */
@keyframes overlayShimmer {
    0%, 100% { 
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(255, 215, 0, 0.1) 30%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    }
    50% { 
        opacity: 0.95;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(255, 215, 0, 0.15) 30%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 85%; /* Slightly more space for friendly feel */
    max-width: clamp(300px, 65vw, 450px); /* Comfortable max width */
    padding: clamp(20px, 5vw, 35px) clamp(20px, 4vw, 30px); /* More generous padding for friendly feel */
    margin-top: clamp(250px, 40vh, 400px); /* Reduced margin for smaller block */
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%); /* Subtle gradient for depth */
    border-radius: 20px; /* More rounded for friendliness */
    border: 1px solid rgba(255, 215, 0, 0.2); /* Subtle golden border */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4), /* Softer shadow */
        0 0 60px rgba(255, 215, 0, 0.15); /* Gentle golden glow */
}

.hero-content h1 {
    font-size: clamp(2.2em, 4.5vw, 3.5em);
    margin-bottom: 25px;
    text-shadow: 
        0 0 12px rgba(255, 215, 0, 0.6), /* Softer golden glow for smooth readability */
        2px 2px 5px rgba(0, 0, 0, 0.8); /* Clear but not excessive shadow */
    color: #FFE55C;
    font-weight: 500; /* Lighter weight for smoothness */
    letter-spacing: 0.6px; /* More natural letter spacing */
    line-height: 1.3;
}

.hero-content .subtitle {
    font-size: clamp(1.1em, 2.5vw, 1.5em);
    margin-bottom: 35px;
    color: #FFE55C;
    text-shadow: 
        0 0 8px rgba(255, 215, 0, 0.5), /* Softer, more readable glow */
        1px 1px 2px rgba(0, 0, 0, 0.7); /* Simple shadow for clarity */
    font-weight: 400; /* Normal weight for smooth reading */
    letter-spacing: 0.3px; /* Natural letter spacing */
    line-height: 1.4;
}

.cta-button {
    background: linear-gradient(135deg, #FFE55C 0%, #FFB84D 50%, #FFE55C 100%); /* Warmer, friendlier gradient */
    color: #000;
    padding: clamp(18px, 4vw, 26px) clamp(36px, 8vw, 52px); /* More generous padding for friendly feel */
    border: 2px solid #FFB84D; /* Warmer border color */
    border-radius: 28px; /* More rounded for friendliness */
    font-size: clamp(1.3em, 3vw, 1.7em); /* Slightly larger for welcome feeling */
    font-weight: 600; /* Slightly softer weight */
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smoother, friendlier transition */
    box-shadow: 
        0 0 25px rgba(255, 215, 0, 0.9), /* Enhanced warm glow */
        0 0 50px rgba(255, 165, 0, 0.6), /* Warmer orange glow */
        inset 0 3px 8px rgba(255, 255, 255, 0.4), /* Brighter inner highlight */
        0 6px 25px rgba(0, 0, 0, 0.4); /* Enhanced friendly shadow */
    text-transform: none; /* Friendly, readable text */
    letter-spacing: 1px; /* More generous spacing for warmth */
    font-family: 'Montserrat', sans-serif;
    width: auto;
    max-width: clamp(240px, 75vw, 350px); /* Slightly larger for welcoming feel */
    text-shadow: 
        0 0 4px rgba(255, 255, 255, 0.8), /* Softer white glow */
        1px 1px 2px rgba(0, 0, 0, 0.7); /* Simple definition */
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-align: center;
    filter: brightness(1.05); /* Minimal enhancement for smoothness */
}

/* Motion-friendly hover effects */
.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:active {
    transform: translateY(1px) scale(0.98);
    transition: all 0.1s ease;
    animation: scaleBounce 0.3s ease-in-out;
}

.cta-button:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 50%, #FFA500 100%); /* Enhanced gradient on hover */
    border-color: #FFA500;
    color: #000; /* Ensure text stays dark and clear */
    transform: translateY(-5px) scale(1.05); /* More prominent hover effect */
    box-shadow: 
        0 0 40px rgba(255, 215, 0, 1.2), /* Much stronger glow on hover for clarity */
        0 0 80px rgba(255, 165, 0, 0.8), /* Extended orange glow for friendliness */
        inset 0 4px 12px rgba(255, 255, 255, 0.5), /* Brighter inner highlight */
        0 12px 35px rgba(0, 0, 0, 0.5); /* Stronger shadow for better definition */
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy, friendly transition */
    animation: shimmer 2s ease-in-out infinite, wiggle 0.8s ease-in-out infinite;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 1.2), /* Even stronger white glow on hover */
        3px 3px 6px rgba(0, 0, 0, 1); /* Extra strong black shadow for text clarity */
    filter: contrast(1.2) brightness(1.1); /* Enhanced clarity on interaction */
}

/* Motion-friendly pulse effect for CTA button */
@keyframes pulse {
    0% { 
        transform: scale(1);
        box-shadow: 
            0 0 15px rgba(255, 215, 0, 0.6),
            0 3px 10px rgba(0, 0, 0, 0.2);
    }
    50% { 
        transform: scale(1.025);
        box-shadow: 
            0 0 20px rgba(255, 215, 0, 0.8),
            0 4px 12px rgba(0, 0, 0, 0.3);
    }
    100% { 
        transform: scale(1);
        box-shadow: 
            0 0 15px rgba(255, 215, 0, 0.6),
            0 3px 10px rgba(0, 0, 0, 0.2);
    }
}

.pulse-effect {
    animation: pulse 2.5s ease-in-out infinite; /* Smoother timing function */
}

/* Enhanced button entrance animation */
.cta-button.animate-entrance {
    animation: float 3s ease-in-out infinite, bounceIn 1s ease-out;
}

/* Special wiggle animation for special moments */
.cta-button.wiggle-animation {
    animation: wiggle 0.6s ease-in-out !important;
}

/* Special glow animation for excitement */
.cta-button.glow-animation {
    animation: smoothGlow 1s ease-in-out !important;
}

/* Rotate animation for attention */
.cta-button.rotate-animation {
    animation: gentleRotation 2s ease-in-out infinite !important;
}

/* Scale bounce animation for clicks */
.cta-button.scale-bounce {
    animation: scaleBounce 0.3s ease-in-out !important;
}

/* Gradient wave animation */
@keyframes gradientWave {
    0% {
        background-position: 0% 50%;
        background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    }
    25% {
        background: linear-gradient(135deg, #FFA500 0%, #FFD700 50%, #FFA500 100%);
    }
    50% {
        background: linear-gradient(135deg, #FFD700 0%, #FFFF00 50%, #FFD700 100%);
    }
    75% {
        background: linear-gradient(135deg, #FFFF00 0%, #FFA500 50%, #FFFF00 100%);
    }
    100% {
        background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    }
}

.cta-button.wave-animation {
    animation: gradientWave 3s ease-in-out infinite !important;
}

/* Twirling effect */
@keyframes twirl {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.05); }
    100% { transform: rotate(360deg) scale(1); }
}

.cta-button.twirl-animation {
    animation: twirl 2s ease-in-out !important;
}

/* Quick zoom in zoom out animation */
@keyframes zoomInOut {
    0% { transform: scale(1); }
    25% { transform: scale(1.15); }
    50% { transform: scale(0.85); }
    75% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.cta-button.zoom-animation {
    animation: zoomInOut 0.8s ease-in-out !important;
    animation-iteration-count: 1;
}

/* Additional motion-friendly animation */
@keyframes smoothGlow {
    0%, 100% { 
        box-shadow: 
            0 0 15px rgba(255, 215, 0, 0.6),
            inset 0 1px 3px rgba(255, 255, 255, 0.2),
            0 3px 10px rgba(0, 0, 0, 0.2); 
    }
    50% { 
        box-shadow: 
            0 0 20px rgba(255, 215, 0, 0.8),
            inset 0 1px 3px rgba(255, 255, 255, 0.3),
            0 4px 12px rgba(0, 0, 0, 0.3); 
    }
}

/* Bouncy entrance animation */
@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    70% {
        transform: scale(0.9);
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Wiggling animation for call-to-action */
@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-2deg); }
    20% { transform: rotate(2deg); }
    30% { transform: rotate(-1deg); }
    40% { transform: rotate(1deg); }
    50% { transform: rotate(-0.5deg); }
    60% { transform: rotate(0.5deg); }
}

/* Floating animation for continuous movement */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Shimmer effect with color change */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
        background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    }
    20% {
        background: linear-gradient(135deg, #FFA500 0%, #FFD700 50%, #FFA500 100%);
    }
    40% {
        background: linear-gradient(135deg, #FFD700 0%, #FFFF00 50%, #FFD700 100%);
    }
    60% {
        background: linear-gradient(135deg, #FFFF00 0%, #FFD700 50%, #FFFF00 100%);
    }
    80% {
        background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    }
    100% {
        background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    }
}

/* Gentle rotation animation */
@keyframes gentleRotation {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(1deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-1deg); }
    100% { transform: rotate(0deg); }
}

/* Scale bounce animation for interactions */
@keyframes scaleBounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.05); }
    50% { transform: scale(1.1); }
    70% { transform: scale(1.05); }
    100% { transform: scale(1); }
}


/* Promotion Banner */
.promotion-banner {
    background: linear-gradient(135deg, #333 0%, #444 50%, #333 100%);
    padding: 20px;
    text-align: center;
    border-top: 2px solid #FFD700;
    border-bottom: 2px solid #FFD700;
    margin: 20px 0;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.3),
        inset 0 0 20px rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.promotion-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    animation: shimmerBackground 3s ease-in-out infinite;
}

@keyframes shimmerBackground {
    0% { left: -100%; }
    50% { left: 0%; }
    100% { left: 100%; }
}

.promotion-banner h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #FFD700;
}

/* Money animation highlight */
.dollar-highlight {
    font-size: clamp(2em, 5vw, 2.8em);
    font-weight: 600; /* Softer weight for smooth readability */
    color: #FFE55C !important;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.7), /* Softer golden glow */
        1px 1px 3px rgba(0, 0, 0, 0.8); /* Simple clear definition */
    position: relative;
    display: inline-block;
    animation: none; /* Remove heavy animations for smooth text */
    filter: brightness(1.1); /* Minimal enhancement for smoothness */
    text-transform: none;
}

/* Money bounce animation */
@keyframes moneyBounce {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
    }
    25% { 
        transform: scale(1.1) rotate(2deg); 
    }
    50% { 
        transform: scale(1.05) rotate(-1deg); 
    }
    75% { 
        transform: scale(1.08) rotate(1deg); 
    }
}

/* Money glow animation */
@keyframes moneyGlow {
    0%, 100% { 
        text-shadow: 
            0 0 10px rgba(255, 215, 0, 1),
            0 0 20px rgba(255, 215, 0, 0.8),
            0 0 30px rgba(255, 215, 0, 0.6);
    }
    50% { 
        text-shadow: 
            0 0 20px rgba(255, 255, 0, 1),
            0 0 30px rgba(255, 255, 0, 0.9),
            0 0 40px rgba(255, 255, 0, 0.7);
    }
}

/* Enhanced money animation for the banner */
.money-animation {
     animation: moneyGlow 2s ease-in-out infinite, moneyBounce 3s ease-in-out infinite;
    display: inline-block;
    font-size: 1.8em;
    font-weight: 700;
    color: #FFD700;
}

@keyframes moneyFloat {
    0%, 100% { 
        transform: translateY(0px);
    }
    50% { 
        transform: translateY(-3px);
    }
}

/* Khmer text styling with Koulen font */
.khmer-text {
    font-family: 'Koulen', cursive, sans-serif;
    font-size: clamp(0.95em, 2.4vw, 1.15em);
    font-weight: 500; /* Normal weight for smooth readability */
    color: #FFE55C;
    display: inline-block;
    position: relative;
    text-align: center;
    text-shadow: 
        0 0 8px rgba(255, 215, 0, 0.6), /* Softer golden glow */
        1px 1px 2px rgba(0, 0, 0, 0.7); /* Simple clear shadow */
    animation: none; /* Remove animation for smooth, stable text */
    line-height: 1.4; /* Comfortable spacing */
    letter-spacing: 0.8px; /* Good spacing */
    filter: brightness(1.05); /* Subtle enhancement only */
}

/* Khmer text friendly floating animation */
@keyframes khmerFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        text-shadow: 
            0 0 8px rgba(255, 215, 0, 0.8),
            0 0 16px rgba(255, 215, 0, 0.6),
            1px 1px 3px rgba(0, 0, 0, 0.7);
    }
    50% { 
        transform: translateY(-2px) scale(1.02);
        text-shadow: 
            0 0 12px rgba(255, 215, 0, 0.9),
            0 0 20px rgba(255, 215, 0, 0.7),
            2px 2px 4px rgba(0, 0, 0, 0.8);
    }
}

/* Friendly hover effects for Khmer text */
.khmer-text:hover {
    color: #FFFF80;
    animation: khmerBounce 0.6s ease-in-out;
    text-shadow: 
        0 0 15px rgba(255, 255, 128, 0.9),
        0 0 25px rgba(255, 255, 128, 0.7),
        2px 2px 6px rgba(0, 0, 0, 0.9);
}

/* Friendly bounce animation for hover */
@keyframes khmerBounce {
    0% { transform: translateY(0px) scale(1); }
    30% { transform: translateY(-3px) scale(1.05); }
    60% { transform: translateY(-1px) scale(1.02); }
    100% { transform: translateY(0px) scale(1); }
}

/* Dollar sparkle effect */
.dollar-highlight::before {
    content: '$';
    position: absolute;
    top: -10px;
    left: -20px;
    font-size: 0.8em;
    color: #FFD700;
    animation: sparkle 2s ease-in-out infinite;
    opacity: 0.7;
}

.dollar-highlight::after {
    content: '$';
    position: absolute;
    top: -10px;
    right: -20px;
    font-size: 0.8em;
    color: #FFD700;
    animation: sparkle 2s ease-in-out infinite 1s;
    opacity: 0.7;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.8) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

.promotion-banner p {
    font-size: 1.1em;
    color: #eee;
}

/* Game Categories Section */
.game-categories {
    padding: clamp(20px, 4vw, 30px) clamp(10px, 2vw, 15px); /* Responsive padding */
    background-color: #1a1a1a;
}

.game-categories h2 {
    font-size: clamp(1.8em, 4vw, 2.5em); /* Responsive font size */
    margin-bottom: clamp(15px, 3vw, 25px);
    text-align: center; /* Ensure center alignment explicitly */
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns to show all 6 games in 2 rows */
    gap: clamp(5px, 1vw, 10px); /* Smaller gap to fit better */
    margin-top: 20px;
    max-height: none; /* Remove any height restrictions */
    width: 100%;
    padding: 0 5px; /* Small padding to prevent overflow */
}

.game-card {
    background: #1a1a1a; /* Solid dark background as shown in reference */
    border-radius: 15px; 
    padding: 15px; /* More padding for better spacing */
    text-align: center;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.9), /* Deep shadow for card separation */
        0 2px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    border: 3px solid #FFD700; /* Prominent golden border */
    height: clamp(130px, 28vw, 150px); /* Taller for better proportional layout */
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    cursor: pointer;
    min-height: 130px; /* Ensure minimum touch target */
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02); /* Subtle lift */
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.9), /* Deeper shadow */
        0 0 20px rgba(255, 215, 0, 0.6); /* Golden glow */
    border-color: #FFD700; /* Maintain golden border */
    text-decoration: none;
    color: inherit;
    background: #1a1a1a; /* Keep dark background */
}

/* Active state for touch interactions */
.game-card:active {
    transform: translateY(-4px) scale(0.98);
    transition: all 0.1s ease;
    background: #222222; /* Slightly lighter background on press */
}

.game-card img {
    width: 80%; /* Take up less width for more centered look */
    height: clamp(60px, 15vw, 80px); /* Larger height for prominent display */
    object-fit: contain; /* Show complete image */
    margin-bottom: 12px; /* More spacing between icon and text */
    border-radius: 8px; /* Slightly rounded */
    align-self: center;
    box-shadow: 
        0 0 10px rgba(255, 215, 0, 0.4), /* Subtle golden glow */
        0 2px 6px rgba(0, 0, 0, 0.6); /* Strong drop shadow for depth */
    transition: all 0.4s ease;
    animation: gameImageFloat 5s ease-in-out infinite;
    background: transparent; /* No background behind image */
}

/* Game card image floating animation */
@keyframes gameImageFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1); 
    }
    50% { 
        transform: translateY(-1px) scale(1.02); 
    }
}

/* Staggered animation delays for game card images */
.game-card:nth-child(1) img { animation-delay: 0s; }
.game-card:nth-child(2) img { animation-delay: 0.5s; }
.game-card:nth-child(3) img { animation-delay: 1s; }
.game-card:nth-child(4) img { animation-delay: 1.5s; }
.game-card:nth-child(5) img { animation-delay: 2s; }
.game-card:nth-child(6) img { animation-delay: 2.5s; }

.game-card h3 {
    font-size: clamp(1em, 4vw, 1.1em); /* Larger, more prominent sizing */
    margin-bottom: 0; /* Tight spacing */
    color: #ffffff; /* White text as shown in reference */
    line-height: 1.3;
    font-weight: 600; /* Medium weight as shown */
    text-shadow: 
        0 0 6px rgba(0, 0, 0, 0.8), /* Dark shadow for contrast */
        1px 1px 2px rgba(0, 0, 0, 0.9); /* Depth shadow */
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    text-align: center; /* Ensure center alignment */
}

.game-card p {
    display: none; /* Hide description text to match reference layout */
    position: absolute;
    opacity: 0;
}

/* Styling for any additional text elements that appear on cards */
.game-card span {
    color: #ffffff;
    font-size: clamp(0.9em, 3.5vw, 1em);
    text-align: center;
    font-weight: 500;
    text-shadow: 
        0 0 4px rgba(0, 0, 0, 0.8),
        1px 1px 2px rgba(0, 0, 0, 0.9);
}

/* Trust and Security Section */
.trust-security {
    padding: 30px 15px;
    background-color: #000;
    text-align: center;
    border-top: 2px dashed #FFD700;
    border-bottom: 2px dashed #FFD700;
    margin: 20px 0;
}

.trust-security h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.trust-security p {
    font-size: 1em;
    color: #eee;
    margin-bottom: 20px;
}

/* Auto Slideshow Row */
.carousel-container {
    position: relative;
    width: 100%;
    margin: auto;
    overflow: hidden;
    white-space: nowrap;
}

.auto-slide-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    animation: infiniteScroll 20s linear infinite;
    width: max-content;
}

.auto-slide-row img {
    max-width: 70px;
    height: auto;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: securityFloat 5s ease-in-out infinite;
    flex-shrink: 0;
}

/* Infinite scroll animation */
@keyframes infiniteScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Simple hover effects for logos */
.auto-slide-row img:hover {
    transform: translateY(-5px) scale(1.1) rotate(5deg);
    filter: drop-shadow(0 5px 15px rgba(255, 215, 0, 0.9));
}

.security-icons img {
    max-width: 70px;
    height: auto;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: securityFloat 5s ease-in-out infinite;
}

/* Security icons floating animation */
@keyframes securityFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    }
    50% { 
        transform: translateY(-2px) rotate(1deg);
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
    }
}

/* General image shimmer effect */
@keyframes imageShimmer {
    0%, 100% { 
        opacity: 1;
    }
    50% { 
        opacity: 0.9;
        filter: brightness(1.1) contrast(1.05);
    }
}

/* Add shimmer to all images occasionally */
.game-card img:hover {
    animation: imageShimmer 0.6s ease-in-out;
}

/* Staggered animation delays for security icons */
.security-icons img:nth-child(1) { animation-delay: 0s; }
.security-icons img:nth-child(2) { animation-delay: 1.5s; }
.security-icons img:nth-child(3) { animation-delay: 3s; }

/* Security icons hover animation */
.security-icons img:hover {
    transform: translateY(-5px) scale(1.1) rotate(5deg);
    filter: drop-shadow(0 5px 15px rgba(255, 215, 0, 0.9));
}

/* Call to Action Footer */
.cta-footer {
    padding: 40px 20px;
    background: linear-gradient(45deg, #1a1a1a 0%, #333333 100%);
    text-align: center;
    border-top: 2px solid #FFD700;
}

.cta-footer h2 {
    font-size: 2.2em;
    margin-bottom: 10px;
    color: #FFD700;
}

.cta-footer p {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #eee;
}

/* Footer */
.footer {
    background-color: #000;
    padding: 20px;
    text-align: center;
    color: #888;
    font-size: 0.9em;
    border-top: 2px solid #FFD700;
}

.footer p {
    margin: 0 0 10px 0;
    color: #888;
}

.social-media a img {
    width: 25px;
    height: 25px;
    margin: 0 8px;
    filter: grayscale(100%) brightness(0.7) invert(0.8) sepia(1) saturate(5) hue-rotate(15deg); /* To make goldish */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: socialFloat 6s ease-in-out infinite;
}

/* Social media icons floating animation */
@keyframes socialFloat {
    0%, 100% { 
        transform: translateY(0px);
    }
    50% { 
        transform: translateY(-2px);
    }
}

/* Staggered animation delays for social media icons */
.social-media a:nth-child(1) img { animation-delay: 0s; }
.social-media a:nth-child(2) img { animation-delay: 2s; }
.social-media a:nth-child(3) img { animation-delay: 4s; }

.social-media a img:hover {
    transform: translateY(-8px) scale(1.2) rotate(5deg);
    filter: none; /* Remove filter on hover to show original color */
    filter: drop-shadow(0 5px 10px rgba(255, 215, 0, 0.6));
}

/* Mobile Responsive Enhancement */
@media (max-width: 480px) {
    .landing-page {
        width: 100vw;
        max-width: 100vw;
        margin: 0;
        border-radius: 0;
        border: none;
    }
    
    .header {
        padding: clamp(12px, 3vw, 18px) clamp(10px, 3vw, 20px);
        min-height: clamp(50px, 10vw, 65px);
    }
    
    .logo img {
        max-width: clamp(80px, 20vw, 120px);
    }
    
    .tagline p {
        font-size: clamp(0.8em, 2.5vw, 1.1em);
    }
    
    .hero-section {
        min-height: clamp(400px, 80vh, 600px);
    }
    
    .hero-content {
        width: 90%; /* More accessible width for mobile */
        max-width: clamp(280px, 65vw, 400px); /* Slightly wider for friendly feel */
        margin-top: clamp(220px, 40vh, 350px); /* Reduced margin for mobile */
        padding: clamp(15px, 4vw, 22px) clamp(16px, 3vw, 20px); /* Generous mobile padding */
        border-radius: 18px; /* Slightly more rounded for mobile friendliness */
    }
    
    .cta-button {
        padding: clamp(14px, 3.8vw, 20px) clamp(28px, 7vw, 38px);
        font-size: clamp(1.05em, 3vw, 1.35em);
        max-width: 90%;
        text-align: center; /* Ensure center alignment on mobile */
    }
    
    .promotion-banner {
        padding: clamp(15px, 4vw, 20px);
    }
    
    .promotion-banner h2 {
        font-size: clamp(1.3em, 4vw, 1.6em);
        line-height: 1.4;
    }
    
    .khmer-text {
        font-size: 0.8em;
        line-height: 1.3;
        letter-spacing: 0.8px;
        animation: khmerFloat 4.5s ease-in-out infinite;
    }
    
    .dollar-highlight {
        font-size: clamp(1.8em, 6vw, 2.2em);
    }
    
    .game-categories {
        padding: clamp(15px, 4vw, 25px) clamp(8px, 3vw, 15px);
    }
    
    .game-categories h2 {
        font-size: clamp(1.5em, 4vw, 2em);
        margin-bottom: clamp(10px, 3vw, 20px);
        text-align: center; /* Ensure center alignment on mobile */
    }
    
    .khmer-text {
        text-align: center; /* Center align Khmer text specifically */
        display: block; /* Make it a block element for better centering */
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(8px, 2.5vw, 12px); /* More space between cards */
        padding: 0 clamp(8px, 2vw, 15px); /* Side padding for spacing */
    }
    
    .game-card {
        height: clamp(120px, 25vw, 140px);
        padding: clamp(12px, 3vw, 18px);
        min-height: 120px; /* Larger minimum touch target */
        border-radius: 15px; /* Consistent with reference */
        background: #1a1a1a;
        border: 3px solid #FFD700;
    }
    
    .game-card img {
        height: clamp(65px, 14vw, 75px);
        width: 75%; /* Centered narrower width */
        margin-bottom: 10px;
        border-radius: 8px;
        background: transparent;
    }
    
    .game-card h3 {
        font-size: clamp(1em, 4vw, 1.1em);
        margin-bottom: 0;
        color: #ffffff;
        font-weight: 600;
        letter-spacing: 0.3px;
        text-align: center;
    }
    
    .game-card p {
        display: none; /* Hide description text consistently */
    }
    
    /* Ensure better mobile touch targets */
    .category-grid .game-card {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Enhanced mobile hover states */
    .game-card:active {
        transform: translateY(-2px) scale(0.96);
        background: linear-gradient(135deg, #4a4a4a 0%, #5a5a5a 50%, #4a4a4a 100%);
    }
    
    .trust-security {
        padding: clamp(20px, 5vw, 30px) clamp(12px, 3vw, 15px);
    }
    
    .trust-security h2 {
        font-size: clamp(1.4em, 4vw, 1.8em);
        margin-bottom: clamp(8px, 2vw, 12px);
    }
    
    .carousel-container {
        margin: clamp(15px, 4vw, 25px) 0;
    }
    
    .auto-slide-row {
        gap: clamp(8px, 2vw, 20px); /* Tighter gap for mobile */
        padding: 15px 0; /* Reduced padding on mobile */
        animation: infiniteScroll 25s linear infinite; /* Slightly slower on mobile */
    }
    
    .auto-slide-row img {
        max-width: clamp(45px, 10vw, 70px); /* Smaller for mobile fit */
        flex-shrink: 0; /* Prevent images from shrinking */
    }
    
    .cta-footer {
        padding: clamp(30px, 6vw, 40px) clamp(15px, 4vw, 20px);
    }
    
    .cta-footer h2 {
        font-size: clamp(1.6em, 4.5vw, 2.2em);
    }
    
    .footer {
        padding: clamp(15px, 4vw, 20px);
    }
    
    .footer p {
        font-size: clamp(0.8em, 2.5vw, 0.9em);
        margin-bottom: 8px;
    }
    
    .social-media a img {
        width: clamp(20px, 6vw, 25px);
        height: clamp(20px, 6vw, 25px);
        margin: 0 clamp(4px, 1.5vw, 8px);
    }
    
    .hero-image img {
        image-rendering: auto;
        filter: contrast(1.05) saturation(1.1) brightness(0.95) blur(3px);
        animation: heroZoom 8s ease-in-out infinite;
    }
    
    /* Optimize touch interactions on mobile */
    .cta-button {
        touch-action: manipulation;
        min-height: 44px; /* iOS tap target size */
        text-align: center; /* Ensure center alignment for touch optimization */
    }
    
    .game-card {
        touch-action: manipulation;
        min-height: 90px; /* Ensure tap targets are large enough */
    }
    
    /* Reduce animations on mobile for better performance */
    .game-card img {
        animation: gameImageFloat 6s ease-in-out infinite; /* Slower on mobile */
    }
    
    .slide img {
        animation: securityFloat 7s ease-in-out infinite; /* Slower on mobile */
    }
    
    .social-media a img {
        animation: socialFloat 8s ease-in-out infinite; /* Slower on mobile */
    }
    
    /* Optimize text rendering for mobile */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeSpeed;
    }
    
    /* Limit animations for battery savings */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* Small mobile devices (320px - 375px) */
@media (max-width: 375px) {
    .landing-page {
        width: 100vw;
        border-radius: 0;
    }
    
    .category-grid {
        gap: 3px;
    }
    
    .game-card {
        height: clamp(110px, 22vw, 125px);
        padding: 10px;
        min-height: 110px;
        background: #1a1a1a;
        border: 2px solid #FFD700;
        border-radius: 12px;
    }
    
    .game-card img {
        height: clamp(55px, 12vw, 65px);
        width: 75%;
        margin-bottom: 8px;
    }
    
    .game-card h3 {
        font-size: clamp(0.9em, 3.5vw, 1em);
        margin-bottom: 0;
        color: #ffffff;
        font-weight: 600;
    }
    
    .game-card p {
        display: none; /* Hide descriptions on small mobile */
    }
    
    .category-grid {
        gap: 6px;
        padding: 0 10px;
    }
    
    .carousel-container {
        padding: 0 5px; /* Minimal padding for very small screens */
    }
    
    .auto-slide-row {
        gap: clamp(5px, 1.5vw, 15px); /* Even tighter gap for very small screens */
        animation: infiniteScroll 30s linear infinite; /* Slower on very small screens */
    }
    
    .auto-slide-row img {
        max-width: clamp(40px, 8vw, 70px); /* Smaller for very small screens */
    }
    
    .cta-button {
        padding: clamp(12px, 3.2vw, 18px) clamp(22px, 5.5vw, 32px);
        font-size: clamp(0.9em, 2.5vw, 1.1em);
        text-align: center; /* Center align for very small mobile screens */
    }
    
    .promotion-banner h2 {
        font-size: 1.2em;
    }
    
    .khmer-text {
        font-size: 0.75em;
    }
}

@media (min-width: 481px) {
    .khmer-text {
        font-size: 0.9em;
        animation: khmerFloat 3.5s ease-in-out infinite;
    }
}

/* High-quality tablet adjustments */
@media (min-width: 481px) and (max-width: 768px) {
    .hero-image img {
        filter: contrast(1.1) saturation(1.15) brightness(0.9) blur(3px);
    }
}

/* Responsive Adjustments */
@media (min-width: 600px) {
    .landing-page {
        width: 430px; /* Keep iPhone 14 Pro Max width */
        max-width: 430px;
    }
    
    .hero-image img {
        image-rendering: high-quality;
        filter: contrast(1.12) saturation(1.25) brightness(0.88) blur(3px);
    }
}

@media (min-width: 768px) {
    .landing-page {
        width: 430px; /* Keep iPhone 14 Pro Max width */
        max-width: 430px;
    }
    .hero-content h1 {
        font-size: 4em;
    }
    .hero-section {
        min-height: 600px;
    }
    .hero-content .subtitle {
        font-size: 1.5em;
    }
    .hero-image::after {
        height: 250px;
    }
    .category-grid {
        grid-template-columns: repeat(3, 1fr); /* Keep 3 columns for all screen sizes */
        gap: 8px; /* Slightly larger gap on tablets */
    }
    .game-card {
        height: 120px; /* Slightly taller on tablets */
        padding: 10px;
    }
    .game-card img {
        width: 100%; /* Keep full width on tablets */
        height: 65px; /* Slightly taller on tablets */
    }
    .game-card h3 {
        font-size: 0.85em;
    }
    .game-card p {
        font-size: 0.7em;
    }
}

@media (min-width: 1024px) {
    .landing-page {
        width: 430px; /* Keep iPhone 14 Pro Max width */
        max-width: 430px;
    }
    .category-grid {
        grid-template-columns: repeat(3, 1fr); /* Keep 3 columns for all screen sizes */
        gap: 10px; /* Larger gap on desktop */
    }
    .game-card {
        height: 130px; /* Taller on desktop */
        padding: 12px;
    }
    .game-card img {
        width: 100%; /* Keep full width on desktop */
        height: 70px; /* Taller on desktop */
    }
    .game-card h3 {
        font-size: 0.9em;
    }
    .game-card p {
        font-size: 0.75em;
    }
}
/* Payment Icons Section */
.payment-icons {
    display: flex;
    justify-content: center; /* Center the icons horizontally */
    align-items: center;
    gap: 10px; /* Space between icons */
    margin: 30px 0; /* Space above and below the row */
    flex-wrap: wrap;
}

.payment-icons img {
    height: 35px; /* Adjust the height of the icons */
    width: auto;
    transition: transform 0.2s ease;
}

.payment-icons img:hover {
    transform: scale(1.1); /* Slightly enlarge on hover */
}