/* Custom Home Page Styles - Rummy Empire Blue Theme */
:root {
    --primary-color: #363E69;
    --dark-color: #1A263B;
    --primary-light: #4A5678;
    --primary-gradient: linear-gradient(135deg, #363E69 0%, #1A263B 50%, #4A5678 100%);
    --primary-light-gradient: linear-gradient(135deg, #363E69 0%, #5A6B8A 100%);
    --primary-blue-gradient: linear-gradient(135deg, #363E69 0%, #4A5678 50%, #5A6B8A 100%);
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --light-gray: #E9ECEF;
    --dark: #1A1A1A;
    --text-dark: #1A263B;
}

* {
    scroll-behavior: smooth;
}

/* ============================================
   STICKY HEADER - Smooth Transform on Scroll
   ============================================ */

#sticky-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    background: transparent;
}

/* Fixed position when scrolled - smooth transition */
#sticky-header.is-sticky {
    position: fixed;
    top: 0;
    transform: translateY(0);
    background: linear-gradient(135deg, rgba(26, 38, 59, 0.95) 0%, rgba(54, 62, 105, 0.95) 50%, rgba(26, 38, 59, 0.95) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slide down animation for sticky header */
@keyframes slideDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Additional background enhancement when scrolled further */
#sticky-header.scrolled {
    background: linear-gradient(135deg, rgba(26, 38, 59, 0.98) 0%, rgba(54, 62, 105, 0.98) 50%, rgba(26, 38, 59, 0.98) 100%);
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.5);
}

/* Transparent header at top */
.tg-header__area.transparent-header {
    background: transparent;
}

/* Header content padding transitions */
#sticky-header .tg-header__area {
    padding: 20px 0;
    transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#sticky-header.is-sticky .tg-header__area {
    padding: 12px 0;
}

#sticky-header.scrolled .tg-header__area {
    padding: 10px 0;
}

/* Center HOME link in navigation */
.tgmenu__navbar-wrap {
    justify-content: center;
}

.tgmenu__navbar-wrap ul {
    margin: 0 auto !important;
}

/* Smooth transitions for all header elements */
#sticky-header * {
    transition: all 0.3s ease;
}

/* Logo scale animation when sticky */
#sticky-header.is-sticky .logo img {
    transform: scale(0.9);
}

#sticky-header.scrolled .logo img {
    transform: scale(0.85);
}

.logo img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   FIX SIDEBAR Z-INDEX - Above Header
   ============================================ */

/* Mobile Menu - Ensure it's above sticky header */
.tgmobile__menu {
    z-index: 99999 !important;
}

.tgmobile__menu-backdrop {
    z-index: 99998 !important;
}

/* OffCanvas Sidebar - Ensure it's above sticky header */
.offCanvas__wrap {
    z-index: 99999 !important;
}

.offCanvas__overlay {
    z-index: 99998 !important;
}

/* Ensure close buttons are clickable and visible */
.tgmobile__menu .close-btn,
.offCanvas__wrap .offCanvas__toggle {
    position: relative;
    z-index: 100000 !important;
    cursor: pointer;
    pointer-events: auto !important;
}

.tgmobile__menu .close-btn i,
.offCanvas__wrap .offCanvas__toggle i {
    pointer-events: auto !important;
    cursor: pointer;
}

/* Ensure nav logo in mobile menu doesn't block close button */
.tgmobile__menu .nav-logo {
    z-index: 1;
}

/* When mobile menu is active, ensure proper stacking */
.mobile-menu-visible .tgmobile__menu {
    z-index: 99999 !important;
}

body.offCanvas-menu .offCanvas__wrap {
    z-index: 99999 !important;
}

/* Lower header z-index when sidebar/menu is open */
.mobile-menu-visible #sticky-header,
body.offCanvas-menu #sticky-header {
    z-index: 9998 !important;
}

/* Ensure menu toggle buttons are always clickable */
.mobile-nav-toggler,
.offCanvas__toggle {
    position: relative;
    z-index: 99999;
    cursor: pointer;
}

/* Remove card behind logo in navigation */
.logo,
.logo a,
.logo img {
    background: none !important;
    background-image: none !important;
}

.logo::before,
.logo::after,
.logo a::before,
.logo a::after {
    display: none !important;
    content: none !important;
}

/* Hide any card elements in the logo SVG */
.logo img[src*="LOGO.svg"],
.logo svg {
    overflow: visible;
}

/* Target specific paths that might represent a card - adjust based on visual inspection */
.logo svg path:first-child {
    /* This targets the first large path - uncomment if it's the card */
    /* display: none; */
}

/* Navigation Download Buttons - Standard App Store Style */
.nav-download-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-download-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    color: white;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    border: none;
    cursor: pointer;
    min-width: 140px;
    justify-content: flex-start;
}

/* App Store Button Styling - Dark Highlighted */
.nav-download-btn.app-store {
    background: linear-gradient(135deg, #0051D5 0%, #003A9E 50%, #0051D5 100%);
    box-shadow: 0 4px 15px rgba(0, 81, 213, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-download-btn.app-store::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-radius: 8px;
    z-index: 0;
}

/* Play Store Button Styling - Dark Highlighted */
.nav-download-btn.play-store {
    background: linear-gradient(135deg, #009624 0%, #00B843 50%, #009624 100%);
    background-size: 200% 200%;
    animation: playStoreGradient 3s ease infinite;
    box-shadow: 0 4px 15px rgba(0, 150, 36, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes playStoreGradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Button Content */
.nav-download-btn-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.nav-download-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.nav-download-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.nav-download-text {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

/* App Store Icon Styling */
.nav-download-btn.app-store .nav-download-icon {
    filter: brightness(1.1);
}

/* Play Store Icon Styling - Already colorful */
.nav-download-btn.play-store .nav-download-icon {
    filter: brightness(1.05);
}

/* Hover Effects - Enhanced Highlight */
.nav-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.nav-download-btn.app-store:hover {
    background: linear-gradient(135deg, #0066FF 0%, #0048CC 50%, #0066FF 100%);
    box-shadow: 0 8px 25px rgba(0, 81, 213, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-download-btn.play-store:hover {
    background-size: 200% 200%;
    box-shadow: 0 8px 25px rgba(0, 150, 36, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-download-btn:hover .nav-download-icon {
    transform: scale(1.1);
}

/* Active/Focus States */
.nav-download-btn:active {
    transform: translateY(0);
}

.nav-download-btn:focus {
    outline: none;
}

.nav-download-btn.app-store:focus {
    box-shadow: 0 0 0 3px rgba(0, 81, 213, 0.5), 0 4px 15px rgba(0, 81, 213, 0.6);
}

.nav-download-btn.play-store:focus {
    box-shadow: 0 0 0 3px rgba(0, 150, 36, 0.5), 0 4px 15px rgba(0, 150, 36, 0.6);
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-download-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .nav-download-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
        font-size: 0.85rem;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .nav-download-btn {
        padding: 9px 18px;
        font-size: 0.8rem;
        gap: 10px;
    }

    .nav-download-icon {
        width: 22px;
        height: 22px;
    }
}

/* Hero Section */
.rummy-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 0 0;
    margin-bottom: 0;
    background: linear-gradient(135deg, #1A263B 0%, #050917 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

.rummy-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="cardPattern" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><text x="50" y="50" font-size="40" fill="rgba(255,255,255,0.05)" text-anchor="middle" dominant-baseline="middle">♠</text></pattern></defs><rect width="100" height="100" fill="url(%23cardPattern)"/></svg>');
    opacity: 0.3;
    animation: floatBackground 20s ease-in-out infinite;
    z-index: 1;
}

.rummy-hero::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: particleMove 30s linear infinite;
    opacity: 0.4;
    z-index: 1;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Floating Particles Container */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* Floating Rummy Coin Icons */
.floating-coin {
    position: absolute;
    width: 50px;
    height: 50px;
    background-image: url('../img/icons/Rummy-Coin.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    filter: drop-shadow(0 0 10px rgba(54, 62, 105, 0.5));
    animation: floatCoin 15s infinite ease-in-out;
    pointer-events: none;
    z-index: 1;
}

@keyframes floatCoin {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.4;
    }

    25% {
        transform: translate(80px, -100px) rotate(90deg) scale(1.1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-60px, -180px) rotate(180deg) scale(0.9);
        opacity: 0.3;
    }

    75% {
        transform: translate(120px, -150px) rotate(270deg) scale(1.05);
        opacity: 0.5;
    }
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(54, 62, 105, 0.8), 0 0 40px rgba(54, 62, 105, 0.4);
    animation: floatParticle 20s infinite ease-in-out;
}

.particle-card {
    position: absolute;
    width: 30px;
    height: 42px;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    filter: drop-shadow(0 0 10px rgba(54, 62, 105, 0.6));
    animation: floatParticleCard 25s infinite ease-in-out;
}

@keyframes floatParticle {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }

    25% {
        transform: translate(50px, -100px) scale(1.2);
        opacity: 0.8;
    }

    50% {
        transform: translate(-30px, -200px) scale(0.8);
        opacity: 0.4;
    }

    75% {
        transform: translate(100px, -150px) scale(1.1);
        opacity: 0.7;
    }
}

@keyframes floatParticleCard {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }

    25% {
        transform: translate(80px, -120px) rotate(15deg);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50px, -250px) rotate(-10deg);
        opacity: 0.2;
    }

    75% {
        transform: translate(150px, -180px) rotate(20deg);
        opacity: 0.4;
    }
}

@keyframes floatBackground {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-20px, -20px);
    }
}

@keyframes particleMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.hero-content:hover .hero-title {
    transform: translateZ(20px) rotateY(-2deg);
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3), 0 0 40px rgba(54, 62, 105, 0.7);
}

.hero-content:hover .hero-tagline {
    transform: translateZ(15px);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3), 0 0 30px rgba(54, 62, 105, 0.5);
    animation: fadeInUp 1s ease-out;
    letter-spacing: -1px;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), text-shadow 0.6s ease;
    transform-style: preserve-3d;
}

.hero-tagline {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.2s both;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), text-shadow 0.6s ease;
    transform-style: preserve-3d;
}

.hero-buttons {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
    align-items: center;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 40px;
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-align: center;
    flex-direction: row;
    line-height: 1;
}

.hero-btn .btn-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    line-height: 1;
    vertical-align: middle;
    margin: 0;
    padding: 0;
}

.hero-btn .btn-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    transition: all 0.4s ease;
    vertical-align: middle;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.hero-btn .btn-text {
    position: relative;
    z-index: 2;
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
}

/* Primary Button - Play Now */
.hero-btn-primary {
    background: white;
    color: #1A263B;
    box-shadow: 0 10px 35px rgba(54, 62, 105, 0.5),
        0 0 25px rgba(90, 107, 138, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-btn-primary::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;
}

.hero-btn-primary:hover::before {
    left: 100%;
}

.hero-btn-primary::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50px;
    background: linear-gradient(135deg, #4A5678, #5A6B8A, #363E69, #4A5678);
    background-size: 300% 300%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-btn-primary:hover {
    transform: translateY(-8px) scale(1.05);

    background: linear-gradient(135deg, #4A5678 0%, #5A6B8A 50%, #363E69 100%);
}

.hero-btn-primary:hover::after {
    opacity: 1;
}

.hero-btn-primary:hover .btn-icon {
    transform: scale(1.2) translateX(4px);
}

.hero-btn-primary:active {
    transform: translateY(-4px) scale(1.02);
}

/* Secondary Button - Download App */
.hero-btn-secondary {
    background: white;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: #1A263B;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.hero-btn-secondary:hover::before {
    left: 100%;
}

.hero-btn-secondary::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.4));
    background-size: 300% 300%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: borderGlow 3s ease infinite;
    filter: blur(8px);
}

@keyframes borderGlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-8px) scale(1.05);
}

.nav-download-icon-1 {
    width: 50px;
    height: 50px;
}

.hero-btn-secondary:hover::after {
    opacity: 1;
}

.hero-btn-secondary:hover .btn-icon {
    transform: scale(1.2) translateY(2px);
}

.hero-btn-secondary:active {
    transform: translateY(-4px) scale(1.02);
}

/* Remove old button styles */
.hero-btn.secondary {
    display: none;
}

.hero-visual {
    position: relative;
    z-index: 2;
    animation: fadeInRight 1s ease-out 0.3s both;
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* 4 Cards Fanned Out - Joker, Ace, King, Queen */
.card-stack {
    position: relative;
    width: 650px;
    height: 380px;
    margin: 0 auto;
    transform-style: preserve-3d;
    perspective: 1500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-3d {
    position: absolute;
    width: 180px;
    height: 260px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.15);
    backface-visibility: hidden;
    will-change: transform;
    transform-style: preserve-3d;
    animation-fill-mode: both;
    transition: transform 3s cubic-bezier(0.4, 0, 0.2, 1),
        filter 3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 3s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 3s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ace of Spades - Leftmost */
.card-3d:nth-child(1) {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-28deg) translateX(-100px) translateY(25px) translateZ(0px);
    z-index: 1;
    opacity: 0.88;
    filter: contrast(0.96) saturate(0.92) brightness(0.93);
}

/* King of Spades */
.card-3d:nth-child(2) {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-18deg) translateX(-50px) translateY(15px) translateZ(5px);
    z-index: 2;
    opacity: 0.92;
    filter: contrast(0.99) saturate(0.95) brightness(0.95);
}

/* Queen of Spades */
.card-3d:nth-child(3) {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-8deg) translateX(0px) translateY(5px) translateZ(10px);
    z-index: 3;
    opacity: 0.96;
    filter: contrast(1.02) saturate(0.98) brightness(0.97);
}

/* Joker - Fully visible, prominent on right */
.card-3d:nth-child(4) {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(5deg) translateX(60px) translateY(-8px) translateZ(20px);
    z-index: 4;
    opacity: 1;
    filter: contrast(1.1) saturate(1.05) brightness(1.02) drop-shadow(0 8px 20px rgba(54, 62, 105, 0.4));
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 5px 20px rgba(0, 0, 0, 0.3), 0 0 30px rgba(54, 62, 105, 0.2);
}


@keyframes floatCard1 {

    0%,
    100% {
        transform: translate(-50%, -50%) rotate(-28deg) translateX(-100px) translateY(25px) translateZ(0px);
    }

    50% {
        transform: translate(-50%, -50%) rotate(-28deg) translateX(-100px) translateY(20px) translateZ(0px);
    }
}

@keyframes floatCard2 {

    0%,
    100% {
        transform: translate(-50%, -50%) rotate(-18deg) translateX(-50px) translateY(15px) translateZ(5px);
    }

    50% {
        transform: translate(-50%, -50%) rotate(-18deg) translateX(-50px) translateY(10px) translateZ(5px);
    }
}

@keyframes floatCard3 {

    0%,
    100% {
        transform: translate(-50%, -50%) rotate(-8deg) translateX(0px) translateY(5px) translateZ(10px);
    }

    50% {
        transform: translate(-50%, -50%) rotate(-8deg) translateX(0px) translateY(0px) translateZ(10px);
    }
}

@keyframes floatCard4 {

    0%,
    100% {
        transform: translate(-50%, -50%) rotate(5deg) translateX(60px) translateY(-8px) translateZ(20px);
    }

    50% {
        transform: translate(-50%, -50%) rotate(5deg) translateX(60px) translateY(-13px) translateZ(20px);
    }
}

.card-3d:nth-child(1) {
    animation: floatCard1 10s ease-in-out infinite 0s;
    animation-fill-mode: both;
}

.card-3d:nth-child(2) {
    animation: floatCard2 10s ease-in-out infinite 0.3s;
    animation-fill-mode: both;
}

.card-3d:nth-child(3) {
    animation: floatCard3 10s ease-in-out infinite 0.6s;
    animation-fill-mode: both;
}

.card-3d:nth-child(4) {
    animation: floatCard4 10s ease-in-out infinite 0.9s;
    animation-fill-mode: both;
}


.card-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.card-shape {
    position: absolute;
    width: 100px;
    height: 140px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(54, 62, 105, 0.2);
    opacity: 0.6;
    animation: floatCard 8s ease-in-out infinite;
    transition: transform 0.3s ease-in-out;
}

.card-shape {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
        opacity 0.4s ease,
        box-shadow 0.4s ease;
}

.card-shape:hover {
    opacity: 0.9;
    transform: scale(1.15) rotateY(180deg) translateZ(20px);
    box-shadow: 0 15px 40px rgba(54, 62, 105, 0.5), 0 0 30px rgba(74, 86, 120, 0.4);
    z-index: 10;
}

.card-shape:nth-child(1) {
    top: 15%;
    left: 5%;
    animation-delay: 0s;
    transform: rotate(-15deg);
}

.card-shape:nth-child(2) {
    top: 20%;
    right: 10%;
    animation-delay: 1.5s;
    transform: rotate(20deg);
}

.card-shape:nth-child(3) {
    bottom: 10%;
    right: 25%;
    animation-delay: 3s;
    transform: rotate(-10deg);
}

.card-shape:nth-child(4) {
    bottom: 25%;
    right: 8%;
    animation-delay: 2s;
    transform: rotate(15deg);
}

.card-shape:nth-child(5) {
    top: 10%;
    right: 25%;
    animation-delay: 4s;
    transform: rotate(-25deg);
}

.card-shape:nth-child(6) {
    bottom: 10%;
    left: 15%;
    animation-delay: 2.5s;
    transform: rotate(12deg);
}

.card-shape:nth-child(7) {
    top: 60%;
    right: 5%;
    animation-delay: 5s;
    transform: rotate(-18deg);
}

.card-shape:nth-child(8) {
    bottom: 5%;
    right: 30%;
    animation-delay: 3.5s;
    transform: rotate(22deg);
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0) rotate(var(--rotation, 0deg));
    }

    50% {
        transform: translateY(-40px) rotate(calc(var(--rotation, 0deg) + 10deg));
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* About Section - Clean White Design */
.rummy-about {
    padding: 0 0 100px 0;
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
    min-height: auto;
    margin-top: 0;
}

/* Background Suit Icons */
.rummy-about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
}

.rummy-about::after {
    content: '♠ ♣';
    position: absolute;
    top: 10%;
    left: 5%;
    font-size: 25rem;
    color: rgba(0, 0, 0, 0.02);
    font-family: serif;
    font-weight: 300;
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
}

/* Decorative Card Suits Behind Text */
.about-background-suits {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

.suit-decoration {
    position: absolute;
    font-size: 35rem;
    font-family: serif;
    font-weight: 300;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
    line-height: 1;
    display: block !important;
    visibility: visible !important;
    color: rgba(128, 128, 128, 0.15);
}

.suit-spade-dec {
    top: -8%;
    left: 2%;
    transform: rotate(-10deg);
    color: rgba(128, 128, 128, 0.12);
    opacity: 0.08;
    font-size: 40rem;
}

.suit-heart-dec {
    top: 8%;
    right: 5%;
    transform: rotate(15deg);
    color: rgba(128, 128, 128, 0.1);
    opacity: 0.06;
    font-size: 28rem;
}

.suit-diamond-dec {
    bottom: 8%;
    left: 8%;
    transform: rotate(20deg);
    color: rgba(128, 128, 128, 0.1);
    opacity: 0.06;
    font-size: 34rem;
}

.custom-container {
    padding-bottom: 15px;
}

.suit-club-dec {
    top: 45%;
    right: 2%;
    transform: rotate(-15deg);
    color: rgba(128, 128, 128, 0.12);
    opacity: 0.08;
    font-size: 38rem;
}

/* Hide background suits on tablet and smaller screens */
@media (max-width: 992px) {
    .about-background-suits {
        display: none !important;
    }

    .suit-decoration {
        display: none !important;
    }
}

.rummy-about .container {
    position: relative;
    z-index: 1;
    padding-top: 100px;
}

/* About Header */
.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.rummy-about .section-title {
    font-size: 3rem;
    font-weight: 900;
    color: #363E69;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 1;
    transform: translateY(0);
    background: linear-gradient(135deg, rgba(54, 62, 105, 1) 0%, rgba(90, 107, 138, 1) 50%, rgba(54, 62, 105, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: none;
    position: relative;
}

.rummy-about .section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 2px;
    transition: width 0.8s ease;
    box-shadow: 0 0 10px rgba(54, 62, 105, 0.5);
}

.rummy-about .section-title.visible::after {
    width: 120px;
}

/* Fallback for browsers that don't support background-clip */
@supports not (-webkit-background-clip: text) {
    .rummy-about .section-title {
        -webkit-text-fill-color: #363E69;
        color: #363E69;
    }
}

.section-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    color: #666;
    text-align: center;
    margin-top: 1.5rem;
    font-style: italic;
    letter-spacing: 0.5px;
}

/* About Content */
.about-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.about-content .highlight {
    color: #363E69;
    font-weight: 700;
}

/* About Cards - Premium 3D Design with Tailwind-style classes */
.about-icons-3d {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    perspective: 1000px;
    padding: 40px 20px;
    position: relative;
    min-height: 280px;
}

/* 3D Interactive Cards */
.card-3d-interactive {
    width: 160px;
    height: 224px;
    position: relative;
    transform-style: preserve-3d;
    cursor: pointer;
    margin: 0 -20px;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    backface-visibility: hidden;
    will-change: transform;
    opacity: 1 !important;
    --base-rotation: 0deg;
    --tilt-y: 0deg;
    --tilt-x: 0deg;
}

/* Initial fan spread positions with base Y-axis rotations */
.card-3d-interactive[data-rotation="-3"] {
    --base-rotation: -3deg;
    transform: perspective(1000px) rotateY(-3deg) translateZ(0);
    z-index: 1;
    animation: cardFadeUp3D 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s forwards;
}

.card-3d-interactive[data-rotation="0"] {
    --base-rotation: 0deg;
    transform: perspective(1000px) rotateY(0deg) translateZ(0);
    z-index: 2;
    animation: cardFadeUp3D 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
}

.card-3d-interactive[data-rotation="3"] {
    --base-rotation: 3deg;
    transform: perspective(1000px) rotateY(3deg) translateZ(0);
    z-index: 3;
    animation: cardFadeUp3D 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
}

.card-3d-interactive[data-rotation="6"] {
    --base-rotation: 6deg;
    transform: perspective(1000px) rotateY(6deg) translateZ(0);
    z-index: 4;
    animation: cardFadeUp3D 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards;
}

@keyframes cardFadeUp3D {
    from {
        opacity: 1;
        transform: perspective(1000px) translateY(50px) rotateX(20deg) rotateY(0deg);
    }

    to {
        opacity: 1;
        transform: perspective(1000px) translateY(0) rotateX(0deg);
    }
}

/* Card Front Container */
.card-3d-front {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    box-shadow:
        0 15px 35px rgba(54, 62, 105, 0.25),
        0 5px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Card Image */
.card-3d-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

/* Glow Effect */
.card-3d-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    opacity: 0;
    background: linear-gradient(135deg,
            rgba(54, 62, 105, 0.2) 0%,
            transparent 50%,
            rgba(54, 62, 105, 0.1) 100%);
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

/* Hover Effects */
.card-3d-interactive:hover {
    z-index: 10 !important;
    filter: brightness(1.1);
}

.card-3d-interactive:hover .card-3d-front {
    box-shadow:
        0 25px 60px rgba(54, 62, 105, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(54, 62, 105, 0.3),
        inset 0 0 40px rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.9);
}

.card-3d-interactive:hover .card-3d-image {
    transform: scale(1.02);
}

.card-3d-interactive:hover .card-3d-glow {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-icons-3d {
        gap: 20px;
        padding: 30px 10px;
        min-height: auto;
    }

    .card-3d-interactive {
        width: 140px;
        height: 196px;
        margin: 0;
        transform: none !important;
        animation: cardFadeUpMobile 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
    }

    .card-3d-interactive[data-rotation="-3"],
    .card-3d-interactive[data-rotation="0"],
    .card-3d-interactive[data-rotation="3"],
    .card-3d-interactive[data-rotation="6"] {
        transform: none !important;
    }

    .card-3d-interactive[data-rotation="-3"] {
        animation-delay: 0.1s;
    }

    .card-3d-interactive[data-rotation="0"] {
        animation-delay: 0.2s;
    }

    .card-3d-interactive[data-rotation="3"] {
        animation-delay: 0.3s;
    }

    .card-3d-interactive[data-rotation="6"] {
        animation-delay: 0.4s;
    }
}

@keyframes cardFadeUpMobile {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .card-3d-interactive {
        width: 120px;
        height: 168px;
    }
}

@keyframes cardFadeUp {
    from {
        opacity: 0;
        transform: translateY(50px) rotateX(20deg);
    }

    to {
        opacity: 1;
    }
}

@keyframes cardFadeUp1 {
    from {
        opacity: 0;
        transform: translateY(50px) rotateX(20deg);
    }

    to {
        opacity: 1;
        transform: translate(-30px, 0) rotate(-8deg);
    }
}

@keyframes cardFadeUp2 {
    from {
        opacity: 0;
        transform: translateY(50px) rotateX(20deg);
    }

    to {
        opacity: 1;
        transform: translate(-10px, 0) rotate(-4deg);
    }
}

@keyframes cardFadeUp3 {
    from {
        opacity: 0;
        transform: translateY(50px) rotateX(20deg);
    }

    to {
        opacity: 1;
        transform: translate(10px, 0) rotate(4deg);
    }
}

@keyframes cardFadeUp4 {
    from {
        opacity: 0;
        transform: translateY(50px) rotateX(20deg);
    }

    to {
        opacity: 1;
        transform: translate(30px, 0) rotate(8deg);
    }
}

/* Initial fan spread positions */
.about-card:nth-child(1) {
    transform: translate(-30px, 0) rotate(-8deg);
    z-index: 1;
}

.about-card:nth-child(2) {
    transform: translate(-10px, 0) rotate(-4deg);
    z-index: 2;
}

.about-card:nth-child(3) {
    transform: translate(10px, 0) rotate(4deg);
    z-index: 3;
}

.about-card:nth-child(4) {
    transform: translate(30px, 0) rotate(8deg);
    z-index: 4;
}

/* Hover effects - lift, tilt, and glow */
.about-card:hover {
    transform: translateY(-25px) rotateY(10deg) rotateX(-5deg) scale(1.08) !important;
    z-index: 10 !important;
    filter: brightness(1.1);
}

.about-card:hover .card-front {
    box-shadow:
        0 20px 60px rgba(54, 62, 105, 0.4),
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(255, 255, 255, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}

.about-card:hover .card-reflection {
    opacity: 1;
}

.about-card:not(:hover) {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Subtle continuous floating animation - preserves fan spread */
.about-card:nth-child(1):not(:hover) {
    animation: cardFadeUp1 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s forwards,
        subtleFloat1 4s ease-in-out 1s infinite;
}

.about-card:nth-child(2):not(:hover) {
    animation: cardFadeUp2 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards,
        subtleFloat2 4s ease-in-out 1.5s infinite;
}

.about-card:nth-child(3):not(:hover) {
    animation: cardFadeUp3 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards,
        subtleFloat3 4s ease-in-out 2s infinite;
}

.about-card:nth-child(4):not(:hover) {
    animation: cardFadeUp4 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards,
        subtleFloat4 4s ease-in-out 2.5s infinite;
}

@keyframes subtleFloat1 {

    0%,
    100% {
        transform: translate(-30px, 0) rotate(-8deg);
    }

    50% {
        transform: translate(-30px, -8px) rotate(-8deg);
    }
}

@keyframes subtleFloat2 {

    0%,
    100% {
        transform: translate(-10px, 0) rotate(-4deg);
    }

    50% {
        transform: translate(-10px, -8px) rotate(-4deg);
    }
}

@keyframes subtleFloat3 {

    0%,
    100% {
        transform: translate(10px, 0) rotate(4deg);
    }

    50% {
        transform: translate(10px, -8px) rotate(4deg);
    }
}

@keyframes subtleFloat4 {

    0%,
    100% {
        transform: translate(30px, 0) rotate(8deg);
    }

    50% {
        transform: translate(30px, -8px) rotate(8deg);
    }
}

.about-card.flipped {
    transform: rotateY(180deg);
}

.about-card .card-front,
.about-card .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.about-card .card-front {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow:
        0 15px 35px rgba(54, 62, 105, 0.25),
        0 5px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.6);
    z-index: 2;
}

/* Light reflection effect */
.about-card .card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transition: left 0.6s ease;
    z-index: 3;
    pointer-events: none;
}

.about-card:hover .card-front::before {
    left: 100%;
    transition: left 0.6s ease;
}

/* Card reflection overlay */
.card-reflection {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.3) 0%,
            transparent 50%,
            rgba(54, 62, 105, 0.1) 100%);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 4;
}

.about-card .card-back {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 50%, #8B0000 100%);
    transform: rotateY(180deg);
    box-shadow:
        0 15px 35px rgba(54, 62, 105, 0.25),
        0 5px 15px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.about-card:hover .card-image {
    transform: scale(1.05);
}

/* Responsive design */
@media (max-width: 768px) {
    .about-icons {
        gap: 15px;
        padding: 30px 10px;
        min-height: auto;
    }

    .about-card {
        width: 130px;
        height: 182px;
        margin: 0;
    }

    .about-card:nth-child(1),
    .about-card:nth-child(2),
    .about-card:nth-child(3),
    .about-card:nth-child(4) {
        transform: none !important;
        animation: cardFadeUpMobile 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    .about-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .about-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .about-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .about-card:nth-child(4) {
        animation-delay: 0.4s;
    }

    .about-card:hover {
        transform: translateY(-15px) scale(1.05) !important;
    }
}

@keyframes cardFadeUpMobile {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .about-card {
        width: 110px;
        height: 154px;
    }
}

/* Learn More Button */
.learn-more-btn-wrapper {
    text-align: center;
    margin-top: 2rem;
    display: block;
}

.learn-more-btn {
    display: inline-block;
    padding: 16px 45px;
    background: var(--primary-color, #363E69);
    color: white;
    font-weight: 600;
    font-size: 1.15rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(54, 62, 105, 0.3);
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.learn-more-btn:hover {
    background: var(--primary-light, #4A5678);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(54, 62, 105, 0.4);
    color: white;
}

.learn-more-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(54, 62, 105, 0.3);
}

/* Animated Background Suit Icons */
.about-background-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.suit-icon {
    position: absolute;
    font-size: 25rem;
    color: rgba(54, 62, 105, 0.05);
    font-family: serif;
    font-weight: 300;
    opacity: 0;
    animation: floatSuit 20s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(54, 62, 105, 0.3);
}

.suit-spade {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.suit-heart {
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.suit-diamond {
    bottom: 15%;
    left: 15%;
    animation-delay: 10s;
}

.suit-club {
    top: 30%;
    right: 5%;
    animation-delay: 15s;
}

@keyframes floatSuit {

    0%,
    100% {
        opacity: 0;
        transform: translateY(0) rotate(0deg) scale(0.8);
    }

    50% {
        opacity: 0.06;
        transform: translateY(-30px) rotate(10deg) scale(1);
    }
}

/* Subtle Gradient Overlay */
.rummy-about::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 25% 25%, rgba(54, 62, 105, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(90, 107, 138, 0.08) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.rummy-about .container {
    position: relative;
    z-index: 1;
    padding-top: 100px;
}

/* About Header */
.about-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(135deg, #FFFFFF 0%, #90A7BB 50%, #FFFFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    text-transform: uppercase;
    position: relative;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(90, 107, 138, 0.8), transparent);
    border-radius: 2px;
    transition: width 0.8s ease;
    box-shadow: 0 0 20px rgba(90, 107, 138, 0.6);
}

.section-title.visible::after {
    width: 150px;
}

/* Section Tagline */
.section-tagline {
    font-size: 1.6rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin: 0 auto;
    max-width: 600px;
    letter-spacing: 3px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(90, 107, 138, 0.5);
}

.section-tagline.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fix for features section title visibility */
.rummy-features .section-title {
    opacity: 1 !important;
    color: #363E69;
    background: linear-gradient(135deg, rgba(54, 62, 105, 1) 0%, rgba(90, 107, 138, 1) 50%, rgba(54, 62, 105, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(0);
}

/* Fallback for browsers that don't support background-clip */
@supports not (-webkit-background-clip: text) {
    .rummy-features .section-title {
        -webkit-text-fill-color: #363E69;
        color: #363E69;
    }
}

.rummy-features .section-title.visible {
    opacity: 1 !important;
}

.rummy-features .section-subtitle {
    opacity: 1 !important;
    transform: translateY(0);
}

.rummy-features .section-subtitle.visible {
    opacity: 1 !important;
}

/* Thin Purple Underline Animation */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 2px;
    transition: width 0.8s ease;
    box-shadow: 0 0 10px rgba(54, 62, 105, 0.5);
}

.section-title.visible::after {
    width: 120px;
}

.rummy-about:hover .section-title::after {
    width: 200px;
    box-shadow: 0 0 20px rgba(54, 62, 105, 0.8);
}

.rummy-features:hover .section-title::after {
    width: 200px;
    box-shadow: 0 0 20px rgba(54, 62, 105, 0.8);
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    font-style: italic;
    font-weight: 400;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
    font-family: 'Georgia', serif;
}

.section-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced About Content */
.about-content {
    max-width: 950px;
    margin: 0 auto 4rem;
    text-align: center;
    position: relative;
}

.about-content p {
    margin-bottom: 2rem;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-intro {
    font-size: 1.25rem;
    line-height: 1.9;
    color: #333;
    font-weight: 500;
    transition-delay: 0.5s;
}

.about-description {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #555;
    transition-delay: 0.7s;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-content p.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Highlight Key Words */
.about-content p .highlight {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    transition: all 0.3s ease;
}

.about-content p .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(54, 62, 105, 0.3), transparent);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-content p .highlight:hover::after {
    opacity: 1;
}

/* Value Pillars */
.about-value-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto 5rem;
    padding: 0 2rem;
}

.value-pillar {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(54, 62, 105, 0.08),
        0 0 0 1px rgba(54, 62, 105, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(30px);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.value-pillar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.5s ease;
}

.value-pillar:hover::before {
    left: 100%;
}

.value-pillar.visible {
    opacity: 1;
    transform: translateY(0);
}

.value-pillar:nth-child(1) {
    transition-delay: 0.6s;
}

.value-pillar:nth-child(2) {
    transition-delay: 0.8s;
}

.value-pillar:nth-child(3) {
    transition-delay: 1s;
}

.pillar-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(54, 62, 105, 0.2));
    transition: transform 0.3s ease;
}

.value-pillar:hover .pillar-icon {
    transform: scale(1.15) rotateY(10deg);
}

.pillar-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.pillar-text {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.value-pillar:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(54, 62, 105, 0.15),
        0 0 0 1px rgba(54, 62, 105, 0.1);
}

/* Section Tagline */
.section-tagline {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin: 0 auto;
    max-width: 600px;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
    text-transform: uppercase;
}

.section-tagline.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Two-Column Layout */
.about-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Left Column: Content */
.about-content-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-content {
    text-align: left;
}

.about-lead {
    font-size: 1.3rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
}

.about-lead.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-body {
    font-size: 1.15rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease 0.7s, transform 0.8s ease 0.7s;
}

.about-body.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Enhanced Highlight with Icon */
.about-content .highlight {
    color: #90A7BB;
    font-weight: 700;
    position: relative;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(144, 167, 187, 0.4);
}

.highlight-icon-text {
    color: #90A7BB;
    font-weight: 700;
    position: relative;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(144, 167, 187, 0.4);
}

.about-content .highlight::after,
.highlight-icon-text::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(144, 167, 187, 0.5), transparent);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-content .highlight:hover::after,
.highlight-icon-text:hover::after {
    opacity: 1;
}

/* Feature Highlights - Gaming Style */
.about-feature-highlights {
    margin: 3rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease 0.9s, transform 0.8s ease 0.9s;
}

.about-feature-highlights.visible {
    opacity: 1;
    transform: translateX(0);
}

.feature-highlight {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: rgba(26, 31, 58, 0.6);
    border: 1px solid rgba(144, 167, 187, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(144, 167, 187, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feature-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(144, 167, 187, 0.1), transparent);
    transition: left 0.6s ease;
}

.feature-highlight:hover::before {
    left: 100%;
}

.feature-highlight:hover {
    transform: translateX(10px);
    border-color: rgba(144, 167, 187, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(144, 167, 187, 0.3),
        0 0 30px rgba(144, 167, 187, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(54, 62, 105, 0.8) 0%, rgba(90, 107, 138, 0.8) 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(54, 62, 105, 0.4),
        0 0 20px rgba(90, 107, 138, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.feature-highlight:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 25px rgba(54, 62, 105, 0.6),
        0 0 30px rgba(90, 107, 138, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.feature-icon {
    height: 32px;
    color: #90A7BB;
    filter: drop-shadow(0 0 8px rgba(144, 167, 187, 0.6));
    transition: all 0.3s ease;
}

.feature-highlight:hover .feature-icon {
    color: #FFFFFF;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.feature-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin: 0;
}

/* Premium CTA Button */
.about-cta-wrapper {
    margin-top: 2.5rem;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease 1.1s, transform 0.8s ease 1.1s;
}

.about-cta-wrapper.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 50px;
    background: linear-gradient(135deg, #363E69 0%, #4A5678 50%, #5A6B8A 100%);
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 35px rgba(54, 62, 105, 0.5),
        0 0 0 2px rgba(144, 167, 187, 0.2),
        0 0 40px rgba(90, 107, 138, 0.4);
    position: relative;
    border: 2px solid transparent;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.cta-glow {
    position: absolute;
    inset: -2px;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(144, 167, 187, 0.4), rgba(90, 107, 138, 0.4));
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.5s ease;
    z-index: -1;
}

.about-cta-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50px;
    background: linear-gradient(135deg, #363E69, #4A5678, #5A6B8A, #363E69);
    background-size: 300% 300%;
    opacity: 0;
    z-index: -2;
    animation: borderGlow 3s ease infinite;
    transition: opacity 0.5s ease;
}

@keyframes borderGlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.about-cta-btn::after {
    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.6s ease, height 0.6s ease;
}

.about-cta-btn:hover::after {
    width: 400px;
    height: 400px;
}

.about-cta-btn:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 25px 60px rgba(54, 62, 105, 0.8),
        0 0 0 3px rgba(144, 167, 187, 0.4),
        0 0 60px rgba(90, 107, 138, 0.7);
}

.about-cta-btn:hover::before {
    opacity: 1;
}

.about-cta-btn:hover .cta-glow {
    opacity: 1;
}

.cta-text {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.cta-arrow {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.about-cta-btn:hover .cta-arrow {
    transform: translateX(8px);
}

.about-cta-btn:hover .cta-text {
    transform: translateX(-3px);
}

/* Right Column: Card Spread */
.about-visual-column {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.card-spread-container {
    perspective: 1500px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.card-spread {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spread-card {
    position: absolute;
    width: 180px;
    height: 252px;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    opacity: 0;
}

/* Fanned card positions */
.spread-card.card-1 {
    transform: translateX(-180px) rotateY(-15deg) rotateZ(-5deg) translateY(-20px);
    z-index: 1;
}

.spread-card.card-2 {
    transform: translateX(-60px) rotateY(-8deg) rotateZ(-2deg) translateY(-10px);
    z-index: 2;
}

.spread-card.card-3 {
    transform: translateX(60px) rotateY(8deg) rotateZ(2deg) translateY(-10px);
    z-index: 3;
}

.spread-card.card-4 {
    transform: translateX(180px) rotateY(15deg) rotateZ(5deg) translateY(-20px);
    z-index: 4;
}

.spread-card .card-front,
.spread-card .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.spread-card .card-front {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transform: rotateY(0deg);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(54, 62, 105, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
}

.card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    z-index: 2;
}

.spread-card:hover .card-shine {
    left: 100%;
}

.spread-card .card-back {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 50%, #8B0000 100%);
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 20px 50px rgba(139, 0, 0, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.spread-card .card-back::before {
    content: '';
    width: 80%;
    height: 80%;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    box-shadow:
        inset 0 0 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 255, 255, 0.2);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.5s ease;
}

.spread-card:hover {
    transform: translateY(-40px) scale(1.15) !important;
    z-index: 10 !important;
}

.spread-card:hover .card-front,
.spread-card:hover .card-back {
    box-shadow:
        0 35px 80px rgba(54, 62, 105, 0.6),
        0 15px 40px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(90, 107, 138, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.2);
}

.spread-card:hover .card-image {
    transform: scale(1.1);
}

/* Card flip on click */
.spread-card.flipped {
    transform: rotateY(180deg) !important;
}

.learn-more-btn-wrapper {
    margin-top: 4rem;
    text-align: center;
}

/* Responsive Styles - Clean White Design */
@media (max-width: 992px) {
    .rummy-about {
        padding: 80px 0;
    }

    .rummy-about .section-title {
        font-size: 2.5rem;
    }

    .section-subtitle {
        font-size: 1.2rem;
    }

    .about-content p {
        font-size: 1.05rem;
    }

    .about-card {
        width: 120px;
        height: 168px;
    }

    .rummy-about::after {
        font-size: 18rem;
    }
}

@media (max-width: 768px) {
    .rummy-about {
        padding: 70px 0;
    }

    .rummy-about .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .about-content p {
        font-size: 1rem;
    }

    .about-icons {
        gap: 15px;
    }

    .about-card {
        width: 100px;
        height: 140px;
    }

    .learn-more-btn {
        padding: 14px 35px;
        font-size: 1rem;
    }

    .rummy-about::after {
        font-size: 12rem;
    }
}

@media (max-width: 576px) {
    .rummy-about {
        padding: 60px 0;
    }

    .rummy-about .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .about-content p {
        font-size: 0.95rem;
    }

    .about-icons {
        gap: 10px;
    }

    .about-card {
        width: 85px;
        height: 119px;
    }

    .learn-more-btn {
        padding: 12px 30px;
        font-size: 0.95rem;
    }

    .rummy-about::after {
        font-size: 10rem;
    }
}

.learn-more-btn-wrapper {
    margin-top: 4rem;
    text-align: center;
    position: relative;
}

.learn-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 30px;
    background: linear-gradient(135deg, #363E69 0%, #4A5678 50%, #5A6B8A 100%);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(54, 62, 105, 0.4),
        0 0 0 3px rgba(54, 62, 105, 0.1);
    position: relative;
    border: 2px solid transparent;
    overflow: hidden;
    text-align: center;
    letter-spacing: 0.5px;
    transform: translateY(20px);
}

.learn-more-btn.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.2s;
}

.learn-more-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50px;
    background: linear-gradient(135deg, #363E69, #4A5678, #5A6B8A, #363E69);
    background-size: 300% 300%;
    z-index: -1;
    animation: borderGlow 3s ease infinite;
    transition: opacity 0.5s ease;
}

@keyframes borderGlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.learn-more-btn::after {
    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.6s ease, height 0.6s ease;
}

.learn-more-btn:hover::after {
    width: 300px;
    height: 300px;
}

.learn-more-btn:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 20px 50px rgba(54, 62, 105, 0.6),
        0 0 0 4px rgba(54, 62, 105, 0.2),
        0 0 40px rgba(90, 107, 138, 0.4);
}

.learn-more-btn:hover::before {
    opacity: 1;
}

.btn-text {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.btn-arrow {
    position: relative;
    z-index: 1;
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.learn-more-btn:hover .btn-arrow {
    transform: translateX(5px);
}

.learn-more-btn:hover .btn-text {
    transform: translateX(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .section-subtitle {
        font-size: 1.2rem;
    }

    .about-content {
        font-size: 1.05rem;
        line-height: 2;
    }

    .rummy-about::before {
        font-size: 12rem;
        letter-spacing: 60px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .about-icon {
        font-size: 3rem;
    }

    .rummy-about::before {
        font-size: 8rem;
        letter-spacing: 30px;
    }
}

/* Features Section */
.rummy-features {
    padding: 120px 0;
    background: white;
    position: relative;
}

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

.feature-card {
    background: white;
    padding: 50px 35px;
    border-radius: 25px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(54, 62, 105, 0.1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-light-gradient);
    opacity: 0.1;
    transition: left 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 0 25px 60px rgba(54, 62, 105, 0.25);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 5rem;
    margin-bottom: 100px;
    display: block;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 5px 15px rgba(54, 62, 105, 0.2));
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotateY(15deg) rotateZ(-5deg);
    filter: drop-shadow(0 10px 25px rgba(54, 62, 105, 0.4));
}

.feature-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 18px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-description {
    color: #666;
    line-height: 1.8;
    font-size: 1rem;
}

/* Download Section */
.rummy-download {
    padding: 120px 0 120px 0;
    background: var(--primary-gradient);
    color: white;
    text-align: center;
    position: relative;
    overflow: visible;
    min-height: auto;
}

.rummy-download::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: particleMove 30s linear infinite;
    opacity: 0.3;
    pointer-events: none;
}

.rummy-download::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));
    pointer-events: none;
    z-index: 1;
}

.download-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.download-subtitle {
    font-size: 1.3rem;
    margin-bottom: 80px;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 2;
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    overflow: visible;
}

/* Download Buttons - Left Side */
.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 2;
    justify-content: flex-start;
    align-items: flex-start;
    opacity: 1 !important;
    visibility: visible !important;
}

.download-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 24px 42px;
    background: rgba(54, 62, 105, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    width: 400px;
    justify-content: flex-start;
    box-shadow: 0 8px 32px rgba(26, 38, 59, 0.4);
}

/* Theme-matched Blur Background */
.download-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(54, 62, 105, 0.5), rgba(26, 38, 59, 0.4), rgba(74, 86, 120, 0.5));
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: -1;
    transition: all 0.4s ease;
}

/* Remove gradient border */
.download-btn::after {
    display: none;
}

/* Remove shimmer overlay for cleaner design */
.download-btn .shimmer-overlay {
    display: none;
}

/* Hover Effects */
.download-btn:hover {
    transform: translateY(-3px);
    background: rgba(54, 62, 105, 0.5);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 40px rgba(26, 38, 59, 0.5);
}

.download-btn:hover::before {
    background: linear-gradient(135deg, rgba(54, 62, 105, 0.6), rgba(26, 38, 59, 0.5), rgba(74, 86, 120, 0.6));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.download-btn:hover .download-icon-img {
    transform: scale(1.1);
}

/* Button Content */
.download-btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    text-align: center;
    flex-direction: row;
}

.download-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 14px;
    padding: 10px;
    flex-shrink: 0;
    line-height: 1;
}

.download-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    display: block;
    vertical-align: middle;
    margin: 0;
}

.download-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.4;
}

.download-label {
    font-size: 0.85rem;
    opacity: 0.85;
    letter-spacing: 0.5px;
    transition: all 0.3s ease-in-out;
}

.download-platform {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
    position: relative;
}

/* Gradient Reflection on Hover */
.download-btn:hover .download-platform {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.download-btn:hover .download-label {
    opacity: 1;
}

.download-visual {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 1 !important;
    visibility: visible !important;
    width: 100%;
    margin-bottom: 0;
    overflow: visible;
    padding-bottom: 20px;
}

/* Card Game Container - Enhanced */
.card-game-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 10px;
    /* Background removed - using section background only */
    overflow: visible;
    min-height: auto;
    margin-bottom: 0;
}

/* Card Deck Area - Game Layout */
.card-deck {
    position: relative;
    width: 100%;
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    opacity: 1 !important;
    visibility: visible !important;
    /* Background removed - using section background only */
    border-radius: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    flex: 0 1 auto;
    align-content: flex-start;
    max-width: 550px;
    margin: 0 auto;
}

/* Style card-deck scrollbar to be subtle */
.card-deck::-webkit-scrollbar {
    width: 6px;
}

.card-deck::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.card-deck::-webkit-scrollbar-thumb {
    background: rgba(69, 248, 130, 0.3);
    border-radius: 10px;
}

.card-deck::-webkit-scrollbar-thumb:hover {
    background: rgba(69, 248, 130, 0.5);
}

/* Interactive Card - Enhanced */
.game-card {
    position: relative;
    width: 90px;
    height: 126px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    backface-visibility: visible;
    opacity: 1 !important;
    transform: scale(1) rotateY(0deg);
    visibility: visible !important;
    display: block !important;
    z-index: 1;
    border: 2px solid rgba(255, 255, 255, 0.25);
    overflow: hidden;
    flex-shrink: 0;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.game-card.dealt {
    opacity: 1 !important;
    transform: scale(1) rotateY(0deg) !important;
    visibility: visible !important;
    animation: dealCard 0.6s ease-out forwards;
}

.game-card.flipped {
    transform: rotateY(180deg) scale(1.05);
    z-index: 10;
}

.game-card.matched {
    opacity: 0.7;
    transform: scale(0.95);
    border-color: rgba(0, 255, 0, 0.5);
    box-shadow: 0 8px 25px rgba(0, 255, 0, 0.4), 0 0 20px rgba(0, 255, 0, 0.3);
}

@keyframes dealCard {
    from {
        opacity: 0;
        transform: scale(0.3) rotateY(180deg) translateY(80px) rotateZ(-20deg);
    }

    50% {
        transform: scale(1.1) rotateY(90deg) translateY(-10px) rotateZ(5deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotateY(0deg) translateY(0) rotateZ(0deg);
    }
}

@keyframes shuffleCard {

    0%,
    100% {
        transform: rotateY(0deg) scale(1) translateX(0);
    }

    25% {
        transform: rotateY(90deg) scale(0.9) translateX(-20px);
    }

    50% {
        transform: rotateY(180deg) scale(0.85) translateX(20px);
    }

    75% {
        transform: rotateY(270deg) scale(0.9) translateX(-10px);
    }
}

@keyframes cardFlip {
    0% {
        transform: rotateY(0deg) scale(1);
    }

    50% {
        transform: rotateY(90deg) scale(1.1);
    }

    100% {
        transform: rotateY(180deg) scale(1);
    }
}

@keyframes cardMatch {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2) rotateZ(5deg);
    }

    100% {
        transform: scale(0.95);
    }
}

.game-card:hover {
    transform: translateY(-15px) rotateY(5deg) scale(1.08);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.5), 0 0 25px rgba(255, 255, 255, 0.3);
    z-index: 10;
    border-color: rgba(255, 255, 255, 0.5);
}

.game-card.flipping {
    animation: cardFlip 0.6s ease-in-out;
}

.game-card.shuffling {
    animation: shuffleCard 0.8s ease-in-out;
}

.game-card.matching {
    animation: cardMatch 0.5s ease-in-out;
}

/* Game Score/Info Display */
.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 500px;
    padding: 8px 12px;
    background: rgba(54, 62, 105, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2px;
    opacity: 1 !important;
    visibility: visible !important;
}

.game-score {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-score span {
    color: #00FFFF;
    font-size: 1.2rem;
}

/* Card Game Controls */
.card-game-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 1 !important;
    visibility: visible !important;
    margin-top: 8px;
    flex-shrink: 0;
    padding: 8px 0;
    width: 100%;
    position: relative;
    margin-bottom: 0;
}

.card-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(54, 62, 105, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.card-action-btn:hover {
    background: rgba(54, 62, 105, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.card-action-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.card-action-btn span:first-child {
    font-size: 1.3rem;
}

.card-action-btn .btn-text {
    font-size: 0.9rem;
}

/* Card Animations */
@keyframes cardFlip {
    0% {
        transform: rotateY(0deg);
    }

    50% {
        transform: rotateY(180deg) scale(1.1);
    }

    100% {
        transform: rotateY(360deg);
    }
}

@keyframes shuffleCard {

    0%,
    100% {
        transform: translateX(0) rotate(0deg);
    }

    25% {
        transform: translateX(-30px) rotate(-15deg);
    }

    50% {
        transform: translateX(30px) rotate(15deg);
    }

    75% {
        transform: translateX(-20px) rotate(-10deg);
    }
}

@keyframes dealCard {
    0% {
        opacity: 0;
        transform: translateY(-50px) rotateY(180deg) scale(0.5);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotateY(0deg) scale(1);
    }
}

/* Responsive Card Game Styles */
@media (max-width: 992px) {
    .rummy-download {
        padding: 100px 0 100px 0;
    }

    .download-content {
        grid-template-columns: 1fr;
        gap: 50px;
        align-items: center;
        padding: 0 20px;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .download-visual {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding-bottom: 20px;
        overflow: visible;
    }

    .card-game-container {
        padding: 10px;
        gap: 8px;
        width: 100%;
        overflow: visible;
        max-height: none;
    }

    .card-deck {
        padding: 12px;
        gap: 10px;
    }

    .game-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .card-action-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}


@media (max-width: 768px) {
    .rummy-download {
        padding: 80px 0 100px 0;
    }

    .download-title {
        font-size: 2rem;
    }

    .download-subtitle {
        font-size: 1.1rem;
        margin-bottom: 50px;
    }

    .download-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 15px;
    }

    .download-visual {
        gap: 15px;
        padding-bottom: 15px;
        height: auto;
        overflow: visible;
    }

    .card-game-container {
        padding: 8px;
        gap: 6px;
        overflow: visible;
        max-height: none;
    }

    .card-deck {
        padding: 10px;
        gap: 6px;
        height: auto;
    }

    .game-card {
        width: 70px;
        height: 98px;
    }

    .card-action-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .card-action-btn .btn-text {
        display: inline;
        font-size: 0.85rem;
    }

    .game-info {
        padding: 8px 12px;
        margin-bottom: 4px;
    }

    .card-game-controls {
        margin-top: 6px;
        padding: 6px 0;
    }
}

/* Smooth Scroll Animation - Override to make visible by default */
/* Enhanced Scroll Animations with Fade-in Effect */
.fade-in {
    opacity: 0;
    visibility: hidden;
    transform: translateY(60px);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
        transform 1s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 1s;
    display: block !important;
}

.fade-in.visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Section-specific fade-in animations */
section.fade-in {
    opacity: 0;
    visibility: hidden;
    transform: translateY(80px);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
        transform 1.2s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 1.2s;
    display: block !important;
}

section.fade-in.visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Ensure sections maintain display */
.rummy-about,
.rummy-features,
.rummy-download {
    display: block !important;
}

.about-icons-3d {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

/* Ensure all feature cards are visible */
.feature-card {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Scroll Animation Classes - Start hidden, animate on scroll */
.scroll-animate,
.scroll-animate-left,
.scroll-animate-right,
.scroll-animate-scale,
.scroll-animate-fade {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.8s;
}

.scroll-animate {
    transform: translateY(40px);
}

.scroll-animate-left {
    transform: translateX(-40px);
}

.scroll-animate-right {
    transform: translateX(40px);
}

.scroll-animate-scale {
    transform: scale(0.9);
}

.scroll-animate-fade {
    opacity: 0;
}

/* Animated state - when scrolled into view */
.scroll-animate.animated,
.scroll-animate-left.animated,
.scroll-animate-right.animated,
.scroll-animate-scale.animated,
.scroll-animate-fade.animated {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) translateX(0) scale(1) !important;
}

/* Feature cards fade-in */
.feature-card.fade-in {
    opacity: 0;
    visibility: hidden;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.8s;
}

.feature-card.fade-in.visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}

/* Ensure all titles and content are visible */
.section-title,
.section-subtitle,
.about-content,
.about-content p,
.container {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Scroll Animation Classes - Start hidden, animate on scroll */
.scroll-animate,
.scroll-animate-left,
.scroll-animate-right,
.scroll-animate-scale,
.scroll-animate-fade {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.8s;
}

.scroll-animate {
    transform: translateY(40px);
}

.scroll-animate-left {
    transform: translateX(-40px);
}

.scroll-animate-right {
    transform: translateX(40px);
}

.scroll-animate-scale {
    transform: scale(0.9);
}

.scroll-animate-fade {
    opacity: 0;
}

/* Animated state - when scrolled into view */
.scroll-animate.animated,
.scroll-animate-left.animated,
.scroll-animate-right.animated,
.scroll-animate-scale.animated,
.scroll-animate-fade.animated {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) translateX(0) scale(1) !important;
}

/* ============================================
                       SMOOTH SCROLL & ANIMATION CSS
                       ============================================ */

/* 1. Smooth Scroll Behavior */
/* ============================================ */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* 2. Enhanced Animation Keyframes */
/* ============================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* New Animation Types */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
        clip-path: inset(0 0 100% 0);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        clip-path: inset(0 0 0 0);
    }
}

/* 3. Parallax Element Styles */
/* ============================================ */
[data-parallax] {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* 4. Performance Optimizations */
/* ============================================ */
.fade-in,
.scroll-animate,
.scroll-animate-left,
.scroll-animate-right,
.scroll-animate-scale,
.scroll-animate-fade {
    will-change: opacity, transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Ensure hero section is visible */
.rummy-hero {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

/* Global Visibility Override - Ensure ALL elements are visible */
html,
body {
    opacity: 1 !important;
    visibility: visible !important;
    background: var(--tg-common-color-black) !important;
    margin: 0 !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* FIX DOUBLE SCROLLBAR: Only html should have scrollbar */
html {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

body {
    overflow: hidden !important;
    /* No scrollbar on body */
}

/* Style main page scrollbar */
html::-webkit-scrollbar {
    width: 10px;
}

html::-webkit-scrollbar-track {
    background: #1A263B;
}

html::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #363E69 0%, #45F882 50%, #363E69 100%);
    border-radius: 5px;
}

html::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #45F882 0%, #FFBE18 50%, #45F882 100%);
}

/* Make footer the absolute last element */
footer.footer-style-two {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Hide anything after footer */


/* Remove any extra space from main area */
main.main--area {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body>* {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Fix page-revealer and preloader causing blank screen */
.page-revealer {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    z-index: -9999 !important;
    transform: none !important;
}

.tg-preloader {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    z-index: -9999 !important;
}

html.show-preloader body {
    overflow: visible !important;
}

/* Remove any blank space after footer - MOVED TO CRITICAL FIX SECTION */

/* Ensure no extra padding/margin on body after footer */
body>*:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Ensure html doesn't have extra height - REMOVED DUPLICATE */

/* CRITICAL FIX: Remove blank space after footer */
body {
    min-height: 100% !important;
    /* Changed from 100vh to match html height */
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    /* Fix: Clip content at footer bottom */
    position: relative !important;
    /* NO overflow on body - handled by html */
}

/* Clip any overflow beyond visible content */
body::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: transparent !important;
    pointer-events: none !important;
}

main.main--area {
    flex: 1 0 auto !important;
}

/* Force footer to be at the end with NO extra space */
footer.footer-style-two {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    flex-shrink: 0 !important;
}

/* Fix copyright section padding */
.copyright__wrap.-style-two {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 15px !important;
}

/* Decrease Footer Height - Reduce all padding and margins */
footer.footer-style-two {
    padding: 30px 0 0 !important;
}

.footer__country {
    margin: 0 0 25px !important;
}

.footer__two-widgets {
    padding: 25px 0 20px !important;
}

.footer-el-widget {
    margin-bottom: 15px !important;
}

.footer-el-widget:not(.widget_nav_menu) {
    margin-top: 15px !important;
}

.footer-el-logo {
    margin-bottom: 20px !important;
}


/* Removed - handled above */

/* Fix scroll button positioning */
.scroll__top {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 999 !important;
}

/* Additional failsafe: ensure proper positioning */
html {
    position: relative !important;
    height: 100% !important;
}

body {
    position: relative !important;
    min-height: 100% !important;
}

/* Ensure header is in flow */
header {
    flex-shrink: 0 !important;
}

section,
.container,
.section-title,
.section-subtitle,
.download-title,
.download-subtitle,
.about-content,
.about-content p,
.about-header,
.feature-card,
.feature-icon,
.feature-title,
.feature-description,
.download-buttons,
.download-btn,
.card-game-container,
.card-game-controls,
.card-action-btn,
.learn-more-btn-wrapper,
.learn-more-btn,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
button {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure sections are displayed */
section {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure flex containers maintain flex display */
.download-content,
.download-visual,
.about-icons-3d {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure grid containers maintain grid display */
.features-grid {
    display: grid !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure buttons and links are visible */
.download-btn,
.card-action-btn,
.learn-more-btn,
button,
a {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(54, 62, 105, 0.6), transparent);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
    z-index: 9999;
    mix-blend-mode: screen;
}

/* Scoreboard Panel */
.scoreboard-panel {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px 30px;
    z-index: 10;
    animation: fadeInRight 1s ease-out 0.6s both;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(54, 62, 105, 0.3);
}

.scoreboard-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.scoreboard-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #5A6B8A;
    text-shadow: 0 0 20px rgba(90, 107, 138, 0.8), 0 0 40px rgba(74, 86, 120, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Scroll Down Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 3px solid rgba(255, 255, 255, 0.9);
    border-bottom: 3px solid rgba(255, 255, 255, 0.9);
    transform: rotate(45deg);
    filter: drop-shadow(0 0 10px rgba(90, 107, 138, 0.8));
    transition: all 0.3s ease;
}

.scroll-indicator:hover .scroll-arrow {
    border-color: rgba(255, 255, 255, 1);
    filter: drop-shadow(0 0 20px rgba(90, 107, 138, 1));
    transform: rotate(45deg) translateY(5px);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* 3D Deck Hover Effect - Smooth Transitions */
.card-stack {
    transition: transform 3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.card-stack:hover {
    transform: rotateY(-8deg) rotateX(3deg) scale(1.03);
}

.card-stack:hover .card-3d {
    animation-play-state: paused !important;
}

.card-stack:hover .card-3d:nth-child(4) {
    transform: translate(-50%, -50%) rotate(12deg) translateX(80px) translateY(-20px) translateZ(40px) scale(1.05) !important;
    filter: contrast(1.2) saturate(1.15) brightness(1.1) drop-shadow(0 15px 40px rgba(54, 62, 105, 0.6)) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 40px rgba(54, 62, 105, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.card-stack:hover .card-3d:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-5deg) translateX(10px) translateY(8px) translateZ(25px) scale(1.02) !important;
    filter: contrast(1.05) saturate(1.02) brightness(1.02) !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5), 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

.card-stack:hover .card-3d:nth-child(2) {
    transform: translate(-50%, -50%) rotate(-22deg) translateX(-55px) translateY(18px) translateZ(15px) scale(1.01) !important;
    filter: contrast(1.03) saturate(1.01) brightness(1.01) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

.card-stack:hover .card-3d:nth-child(1) {
    transform: translate(-50%, -50%) rotate(-32deg) translateX(-110px) translateY(28px) translateZ(10px) scale(1.01) !important;
    filter: contrast(1.02) saturate(1.01) brightness(1.01) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Responsive Design */
@media (max-width: 992px) {
    .download-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .download-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .download-btn {
        min-width: 200px;
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .rummy-hero {
        padding: 100px 0 60px;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
        gap: 18px;
    }

    .hero-btn {
        padding: 18px 40px;
        font-size: 1.05rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        text-align: center;
    }

    .hero-btn .btn-icon {
        width: 22px;
        height: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-btn .btn-text {
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1.2;
    }

    .download-title {
        font-size: 2.2rem;
    }

    .card-stack {
        width: 500px;
        height: 300px;
    }

    .card-3d {
        width: 150px;
        height: 220px;
    }

    .card-3d:nth-child(1) {
        transform: translate(-50%, -50%) rotate(-28deg) translateX(-85px) translateY(22px) translateZ(0px);
    }

    .card-3d:nth-child(2) {
        transform: translate(-50%, -50%) rotate(-18deg) translateX(-42px) translateY(13px) translateZ(5px);
    }

    .card-3d:nth-child(3) {
        transform: translate(-50%, -50%) rotate(-8deg) translateX(0px) translateY(4px) translateZ(10px);
    }

    .card-3d:nth-child(4) {
        transform: translate(-50%, -50%) rotate(5deg) translateX(50px) translateY(-8px) translateZ(20px);
    }

    .card-shape {
        width: 70px;
        height: 100px;
        opacity: 0.5;
    }

    .scoreboard-panel {
        top: 20px;
        right: 20px;
        padding: 15px 20px;
    }

    .scoreboard-value {
        font-size: 1.4rem;
    }

    .scroll-indicator {
        bottom: 30px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .rummy-hero {
        min-height: auto;
        padding: 80px 0 50px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero-btn {
        width: 100%;
        max-width: 320px;
        padding: 16px 36px;
        font-size: 1rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        text-align: center;
    }

    .hero-btn .btn-icon {
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-btn .btn-text {
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1.2;
    }

    .card-shape {
        width: 60px;
        height: 85px;
        opacity: 0.4;
    }

    .card-shape:nth-child(n+5) {
        display: none;
    }

    .card-stack {
        width: 420px;
        height: 260px;
    }

    .scoreboard-panel {
        top: 15px;
        right: 15px;
        padding: 12px 18px;
        font-size: 0.8rem;
    }

    .scoreboard-label {
        font-size: 0.7rem;
    }

    .scoreboard-value {
        font-size: 1.2rem;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-btn {
        width: 100%;
        max-width: 400px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        text-align: center;
    }

    .hero-btn .btn-icon {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-btn .btn-text {
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1.2;
    }

    .card-3d {
        width: 130px;
        height: 190px;
    }

    /* Download Buttons Mobile Styles */
    .download-btn {
        padding: 20px 32px;
        gap: 18px;
        width: 100%;
        max-width: 400px;
    }

    .download-icon {
        width: 70px;
        height: 70px;
        padding: 8px;
    }

    .download-icon-img {
        width: 100%;
        height: 100%;
    }

    .download-platform {
        font-size: 1.2rem;
    }

    .download-label {
        font-size: 0.75rem;
    }

    /* Reduce glow intensity on mobile for performance */
    .download-btn.app-store {
        animation: pulseGlowAppStoreMobile 3s ease-in-out infinite;
    }

    .download-btn.play-store {
        animation: pulseGlowPlayStoreMobile 3s ease-in-out infinite;
    }

    @keyframes pulseGlowAppStoreMobile {

        0%,
        100% {
            box-shadow:
                0 6px 24px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(255, 255, 255, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.2),
                0 0 15px rgba(54, 62, 105, 0.25);
        }

        50% {
            box-shadow:
                0 6px 24px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(255, 255, 255, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.2),
                0 0 30px rgba(54, 62, 105, 0.4);
        }
    }

    @keyframes pulseGlowPlayStoreMobile {

        0%,
        100% {
            box-shadow:
                0 6px 24px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(255, 255, 255, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.2),
                0 0 15px rgba(52, 168, 83, 0.25);
        }

        50% {
            box-shadow:
                0 6px 24px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(255, 255, 255, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.2),
                0 0 30px rgba(52, 168, 83, 0.4);
        }
    }

    .download-btn:hover {
        transform: translateY(-3px) scale(1.01);
    }

    .download-btn.app-store:hover {
        box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
    }

    .download-btn.play-store:hover {
        box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
    }

    .card-3d:nth-child(1) {
        transform: translate(-50%, -50%) rotate(-28deg) translateX(-72px) translateY(20px) translateZ(0px);
    }

    .card-3d:nth-child(2) {
        transform: translate(-50%, -50%) rotate(-18deg) translateX(-36px) translateY(12px) translateZ(5px);
    }

    .card-3d:nth-child(3) {
        transform: translate(-50%, -50%) rotate(-8deg) translateX(0px) translateY(4px) translateZ(10px);
    }

    .card-3d:nth-child(4) {
        transform: translate(-50%, -50%) rotate(5deg) translateX(42px) translateY(-8px) translateZ(20px);
    }
}

/* ============================================
   COMPREHENSIVE RESPONSIVE LAYOUT
   ============================================ */

/* Extra Large Devices (Large Desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Large Devices (Desktops, 1200px to 1399px) */
@media (max-width: 1399px) {
    .hero-title {
        font-size: 4rem;
    }

    .card-stack {
        width: 550px;
        height: 350px;
    }

    .card-3d {
        width: 160px;
        height: 230px;
    }
}

/* Medium-Large Devices (992px to 1199px) */
@media (max-width: 1199px) {

    /* Hide Navigation Download Buttons (Desktop Nav Only, Keep in Sidebar) */
    .tgmenu__action .nav-download-buttons {
        display: none !important;
    }

    /* Ensure sidebar download buttons remain visible */
    .tgmobile__menu .nav-download-buttons,
    .tgmobile__search .nav-download-buttons {
        display: flex !important;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 20px;
    }

    .tgmobile__menu .nav-download-btn,
    .tgmobile__search .nav-download-btn {
        width: 100%;
        justify-content: center;
        min-width: auto;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-tagline {
        font-size: 1.3rem;
    }

    .card-stack {
        width: 500px;
        height: 320px;
    }

    .card-3d {
        width: 140px;
        height: 210px;
    }

    .rummy-hero {
        padding: 100px 0 80px;
    }

    .about-content p {
        font-size: 1.05rem;
    }

    /* About Section - Reduce Height and Card Size */
    .rummy-about {
        padding: 0 0 60px 0;
    }

    .rummy-about .container {
        padding-top: 60px;
    }

    .about-header {
        margin-bottom: 2rem;
    }

    .about-content {
        margin-bottom: 2rem;
    }

    .about-icons-3d {
        gap: 12px;
        margin-bottom: 2rem;
    }

    .card-3d-interactive {
        width: 130px;
        height: 182px;
    }

    .card-3d-image {
        width: 100%;
        height: 100%;
    }

    .learn-more-btn-wrapper {
        margin-top: 1.5rem;
    }

    /* Download Section Adjustments */
    .download-title {
        font-size: 2.5rem;
    }

    .download-subtitle {
        font-size: 1.15rem;
        margin-bottom: 50px;
    }

    .download-btn {
        width: 360px;
        padding: 20px 36px;
        font-size: 1.05rem;
    }

    .download-icon {
        width: 70px;
        height: 70px;
    }

    .download-icon-img {
        width: 50px;
        height: 50px;
    }

    .download-platform {
        font-size: 1.25rem;
    }

    .card-deck {
        max-width: 520px;
        gap: 7px;
    }

    .game-card {
        width: 80px !important;
        height: 112px !important;
    }
}

/* Tablets and Small Laptops (768px to 991px) */
@media (max-width: 991px) {
    .rummy-hero {
        padding: 200px 0 60px;
        min-height: auto;
    }

    .hero-content {
        text-align: center;
        margin-bottom: 3rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 18px;
        align-items: center;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-btn {
        width: 100%;
        max-width: 380px;
        justify-content: center;
        padding: 16px 36px;
        font-size: 1.05rem;
        gap: 14px;
        border-radius: 50px;
        min-height: 58px;
    }

    .hero-btn .btn-icon {
        width: 24px;
        height: 24px;
    }

    .hero-btn .btn-text {
        font-size: 1.05rem;
        font-weight: 600;
    }

    .hero-visual {
        margin-top: 2rem;
    }

    .card-stack {
        width: 450px;
        height: 280px;
        margin: 0 auto;
        display: none;
    }

    .card-3d {
        width: 130px;
        height: 190px;
    }

    /* About Section - Reduce Height */
    .rummy-about {
        padding: 0 0 50px 0;
    }

    .rummy-about .container {
        padding-top: 50px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .about-header {
        margin-bottom: 1.5rem;
    }

    .about-content {
        margin-bottom: 1.5rem;
    }

    .about-content p {
        font-size: 1rem;
    }

    .about-icons-3d {
        gap: 10px;
        margin-bottom: 1.5rem;
    }

    .card-3d-interactive {
        width: 120px;
        height: 168px;
    }

    .learn-more-btn-wrapper {
        margin-top: 1.5rem;
    }

    /* Features Section */
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .feature-icon {
        font-size: 3rem;
    }

    .feature-title {
        font-size: 1.3rem;
    }

    /* Download Section - Optimized for 990px */
    .rummy-download {
        padding: 60px 0;
        min-height: auto;
    }

    .download-title {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }

    .download-subtitle {
        font-size: 1.05rem;
        margin-bottom: 40px;
    }

    .download-content {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 0 15px;
    }

    .download-buttons {
        order: 2;
        align-items: center;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .download-btn {
        width: 100%;
        max-width: 380px;
        padding: 18px 32px;
        font-size: 1rem;
        gap: 16px;
        border-radius: 14px;
    }

    .download-icon {
        width: 60px;
        height: 60px;
        padding: 8px;
    }

    .download-icon-img {
        width: 44px;
        height: 44px;
    }

    .download-label {
        font-size: 0.75rem;
    }

    .download-platform {
        font-size: 1.15rem;
    }

    .download-visual {
        order: 1;
        max-width: 550px;
        margin: 0 auto;
    }

    .card-game-container {
        max-width: 520px;
        margin: 0 auto;
        padding: 8px;
    }

    .card-deck {
        max-width: 500px;
        padding: 10px;
        gap: 6px;
    }

    .game-card {
        width: 70px !important;
        height: 98px !important;
        border-radius: 8px;
    }

    .card-action-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
        gap: 6px;
    }

    .card-action-btn span:first-child {
        font-size: 1.1rem;
    }

    .card-action-btn .btn-text {
        font-size: 0.9rem;
    }

    .game-info {
        font-size: 0.85rem;
        gap: 12px;
        margin-bottom: 4px;
    }

    .game-score {
        gap: 5px;
        font-size: 0.85rem;
    }

    .game-score span {
        font-size: 0.85rem;
    }
}

/* Small Tablets (576px to 767px) */
@media (max-width: 767px) {
    .rummy-hero {
        padding: 60px 0 40px;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-tagline {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    /* Hero Buttons - Better styling for 768px */
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .hero-btn {
        padding: 14px 32px;
        font-size: 1rem;
        gap: 12px;
        width: 100%;
        border-radius: 50px;
        justify-content: center;
    }

    .hero-btn .btn-icon {
        width: 22px;
        height: 22px;
    }

    .hero-btn .btn-text {
        font-size: 1rem;
        font-weight: 600;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        min-height: 54px;
    }

    /* Learn More Button */
    .learn-more-btn {
        padding: 12px 28px;
        font-size: 0.95rem;
    }

    .card-stack {
        width: 380px;
        height: 240px;
    }

    .card-3d {
        width: 110px;
        height: 165px;
    }

    /* Floating elements - reduce size */
    .floating-particles .particle {
        width: 4px;
        height: 4px;
    }

    .particle-card {
        width: 30px;
        height: 45px;
    }

    .floating-coin {
        width: 25px;
        height: 25px;
    }

    /* About Section */
    .rummy-about {
        padding: 60px 0;
    }

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

    .section-subtitle {
        font-size: 0.95rem;
    }

    .about-content p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .about-icons-3d {
        gap: 15px;
    }

    .card-3d-interactive {
        width: 100px;
        height: 140px;
    }

    /* Features Section */
    .rummy-features {
        padding: 60px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .feature-title {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .feature-description {
        font-size: 0.95rem;
    }

    /* Download Section */
    .rummy-download {
        padding: 60px 0;
        min-height: auto;
    }

    .download-title {
        font-size: 2rem;
    }

    .download-subtitle {
        font-size: 1rem;
    }

    .download-btn {
        padding: 14px 24px;
    }

    .download-icon-img {
        width: 36px;
        height: 36px;
    }

    .download-label {
        font-size: 0.75rem;
    }

    .download-platform {
        font-size: 1.1rem;
    }

    .card-deck {
        max-width: 100%;
        padding: 10px;
        gap: 6px;
    }

    .game-card {
        width: 75px !important;
        height: 105px !important;
    }

    .card-action-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .game-info {
        font-size: 0.85rem;
    }
}

/* Mobile Devices (481px to 575px) */
@media (max-width: 575px) {
    .rummy-hero {
        padding: 50px 0 30px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-tagline {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Hero Buttons - Mobile */
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-btn {
        padding: 12px 28px;
        font-size: 0.95rem;
        gap: 10px;
        width: 100%;
        border-radius: 50px;
        justify-content: center;
        min-height: 50px;
    }

    .hero-btn .btn-icon {
        width: 20px;
        height: 20px;
    }

    .hero-btn .btn-text {
        font-size: 0.95rem;
        font-weight: 600;
    }

    .card-stack {
        width: 320px;
        height: 200px;
    }

    .card-3d {
        width: 90px;
        height: 135px;
    }

    /* Scroll Indicator */
    .scroll-indicator {
        display: none;
    }

    /* About Section */
    .rummy-about {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .about-content p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .about-icons-3d {
        flex-wrap: wrap;
        gap: 10px;
    }

    .card-3d-interactive {
        width: 85px;
        height: 120px;
    }

    .learn-more-btn {
        padding: 12px 30px;
        font-size: 0.95rem;
    }

    /* Features Section */
    .rummy-features {
        padding: 50px 0;
    }

    .feature-card {
        padding: 1.5rem 1.2rem;
    }

    .feature-icon {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }

    .feature-title {
        font-size: 1.1rem;
        margin-bottom: 0.7rem;
    }

    .feature-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Download Section */
    .rummy-download {
        padding: 50px 0;
    }

    .download-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .download-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .download-content-wrapper {
        padding: 1.5rem;
    }

    .download-btn {
        padding: 12px 20px;
    }

    .download-icon-img {
        width: 32px;
        height: 32px;
    }

    .download-label {
        font-size: 0.7rem;
    }

    .download-platform {
        font-size: 1rem;
    }

    .card-game-container {
        padding: 8px;
    }

    .card-deck {
        padding: 8px;
        gap: 5px;
    }

    .game-card {
        width: 65px !important;
        height: 91px !important;
    }

    .card-action-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        gap: 5px;
    }

    .card-action-btn .btn-text {
        font-size: 0.85rem;
    }

    .game-info {
        font-size: 0.8rem;
        gap: 10px;
    }

    .game-score {
        gap: 5px;
    }
}

/* Extra Small Mobile Devices (320px to 480px) */
@media (max-width: 480px) {
    .rummy-hero {
        padding: 180px 0 50px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-tagline {
        font-size: 0.95rem;
    }

    .card-deck {
        min-height: auto !important;
    }

    .footer-el-widget.text-start {
        text-align: center !important;
    }

    .copyright__wrap.-style-two {
        padding-bottom: 72px !important;
    }

    .about-content {
        padding-left: 30px;
        padding-right: 30px;
        text-align: center;
    }

    .scroll-animate {
        flex-direction: column;
    }

    /* Hero Buttons - Extra Small Mobile */
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-btn {
        padding: 11px 24px;
        font-size: 0.9rem;
        gap: 8px;
        width: 100%;
        border-radius: 50px;
        justify-content: center;
        min-height: 48px;
    }

    .hero-btn .btn-icon {
        width: 18px;
        height: 18px;
    }

    .hero-btn .btn-text {
        font-size: 0.9rem;
        font-weight: 600;
    }

    .card-stack {
        width: 280px;
        height: 180px;
    }

    .card-3d {
        width: 75px;
        height: 112px;
    }

    /* Card positions for mobile */
    .card-3d:nth-child(1) {
        transform: translate(-50%, -50%) rotate(-25deg) translateX(-55px) translateY(15px) !important;
    }

    .card-3d:nth-child(2) {
        transform: translate(-50%, -50%) rotate(-15deg) translateX(-28px) translateY(8px) !important;
    }

    .card-3d:nth-child(3) {
        transform: translate(-50%, -50%) rotate(-5deg) translateX(0px) translateY(2px) !important;
    }

    .card-3d:nth-child(4) {
        transform: translate(-50%, -50%) rotate(8deg) translateX(32px) translateY(-6px) !important;
    }

    /* About Section */
    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }

    .about-content p {
        font-size: 0.85rem;
    }

    .card-3d-interactive {
        width: 75px;
        height: 105px;
    }

    .learn-more-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    /* Features Section */
    .feature-card {
        padding: 1.2rem 1rem;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .feature-title {
        font-size: 1rem;
    }

    .feature-description {
        font-size: 0.85rem;
    }

    /* Download Section */
    .download-title {
        font-size: 1.6rem;
    }

    .download-subtitle {
        font-size: 0.9rem;
    }

    .download-btn {
        padding: 10px 16px;
        gap: 10px;
    }

    .download-icon-img {
        width: 28px;
        height: 28px;
    }

    .download-label {
        font-size: 0.65rem;
    }

    .download-platform {
        font-size: 0.95rem;
    }

    .card-deck {
        padding: 6px;
        gap: 4px;
    }

    .game-card {
        width: 58px !important;
        height: 81px !important;
        border-radius: 6px !important;
    }

    .card-action-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
        gap: 4px;
    }

    .card-action-btn span:first-child {
        font-size: 1rem;
    }

    .game-info {
        font-size: 0.75rem;
        gap: 8px;
        flex-direction: column;
        align-items: flex-start;
    }

    .game-score {
        gap: 4px;
    }
}

/* Very Small Devices (Galaxy Fold and similar - 320px and below) */
@media (max-width: 374px) {
    .rummy-hero {
        padding: 35px 0 25px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-tagline {
        font-size: 0.85rem;
    }

    .hero-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        max-width: 260px;
    }

    .card-stack {
        width: 240px;
        height: 150px;
    }

    .card-3d {
        width: 65px;
        height: 95px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .section-subtitle {
        font-size: 0.8rem;
    }

    .about-content p,
    .feature-description {
        font-size: 0.8rem;
    }

    .download-title {
        font-size: 1.4rem;
    }

    .download-subtitle {
        font-size: 0.85rem;
    }

    .card-deck {
        padding: 5px;
        gap: 3px;
    }

    .game-card {
        width: 52px !important;
        height: 73px !important;
    }

    .card-action-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

/* Landscape Orientation Fixes */
@media (max-width: 991px) and (orientation: landscape) {
    .rummy-hero {
        padding: 200px 0 30px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .card-stack {
        display: none;
    }

    .card-3d {
        width: 100px;
        height: 150px;
    }

    .rummy-about,
    .rummy-features,
    .rummy-download {
        padding: 50px 0;
    }
}

/* Tablet Landscape (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .card-stack {
        width: 400px;
        height: 250px;
    }

    .card-3d {
        width: 120px;
        height: 180px;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Contact Page - Rummy Empire Theme */
.contact-simple-header {
    position: relative;
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #1A263B 0%, #050917 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.contact-simple-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.contact-simple-header .container {
    position: relative;
    z-index: 1;
}

.contact-simple-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.rummy-contact-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 160px 0 140px;
    background: linear-gradient(135deg, #1A263B 0%, #050917 100%);
    background-size: 400% 400%;
    animation: gradientShift 18s ease infinite;
    overflow: hidden;
}

.rummy-contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(90, 107, 138, 0.35), transparent 55%),
        radial-gradient(circle at 80% 30%, rgba(54, 62, 105, 0.4), transparent 60%),
        linear-gradient(120deg, rgba(26, 38, 59, 0.7), rgba(5, 9, 23, 0.6));
    opacity: 0.9;
    z-index: 0;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.contact-hero-eyebrow::before {
    content: '';
    width: 36px;
    height: 2px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 1px;
}

.contact-hero-title {
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 0;
}

.contact-hero-description {
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 560px;
    color: rgba(255, 255, 255, 0.82);
}

.contact-hero-highlights {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.contact-highlight-card {
    flex: 1 1 220px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.contact-highlight-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #ffffff;
}

.contact-highlight-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.contact-highlight-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.contact-scroll-btn {
    margin-top: 10px;
    display: inline-flex;
}

.contact-hero-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    padding: 40px;
    color: #ffffff;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.contact-hero-card::after {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
    opacity: 0.7;
}

.contact-hero-card-header {
    margin-bottom: 32px;
}

.contact-hero-card-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-hero-card-header p {
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    font-size: 1rem;
}

.contact-hero-chip,
.contact-form-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 22px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(5, 9, 23, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.contact-info-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
}

.contact-info-item a,
.contact-info-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
}

.contact-info-item a:hover {
    color: rgba(198, 213, 255, 0.95);
}

.contact-info-text {
    display: block;
    line-height: 1.6;
}

.contact-info-footnote {
    margin-top: 30px;
    padding: 18px 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-info-footnote strong {
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.rummy-contact-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(180deg, #f5f7fb 0%, #ffffff 100%);
    overflow: hidden;
}

.contact-section-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.contact-suit {
    position: absolute;
    font-size: 20rem;
    font-family: 'Times New Roman', serif;
    color: rgba(54, 62, 105, 0.08);
}

.contact-suit-spade {
    top: -8%;
    left: 4%;
}

.contact-suit-heart {
    top: 20%;
    right: 6%;
}

.contact-suit-diamond {
    bottom: 12%;
    left: 10%;
}

.contact-suit-club {
    bottom: -4%;
    right: 15%;
}

.contact-section-card {
    position: relative;
    z-index: 1;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(26, 38, 59, 0.12);
    background: rgba(255, 255, 255, 0.95);
}

.contact-info-panel {
    height: 100%;
    padding: 54px 48px;
    background: linear-gradient(145deg, #1A263B 0%, #363E69 60%, #111A2B 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-info-panel h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-info-panel p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 0;
}

.contact-support-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-support-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-support-list li span {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.contact-support-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-support-stats div {
    flex: 1 1 160px;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-support-stats strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.contact-support-stats span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.contact-social-links {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-social-links p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.contact-social-icons {
    display: flex;
    gap: 14px;
}

.contact-social-icons a {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.contact-social-icons a:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.contact-form-panel {
    padding: 54px 56px;
    background: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-form-panel.contact-form-panel-wide {
    width: 100%;
    max-width: 940px;
    margin: 0 auto;
}

.contact-form-header h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 14px 0 10px;
    color: #1A263B;
}

.contact-form-header p {
    font-size: 1rem;
    color: #5A6B8A;
    margin: 0;
}

.contact-form-status {
    display: none;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(54, 62, 105, 0.08);
    border: 1px solid rgba(54, 62, 105, 0.12);
    color: #1A263B;
    font-size: 0.95rem;
    line-height: 1.6;
    box-shadow: inset 0 0 0 1px rgba(90, 107, 138, 0.08);
}

.contact-form-status.active {
    display: flex;
}

.contact-alert {
    border-radius: 14px;
    font-size: 0.95rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-field-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #5A6B8A;
}

.contact-field-input {
    position: relative;
}

.contact-field-input input,
.contact-field-input textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(26, 38, 59, 0.12);
    background: rgba(248, 250, 255, 0.8);
    padding: 16px 18px;
    font-size: 1rem;
    color: #1A263B;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    resize: none;
}

.contact-field-input input::placeholder,
.contact-field-input textarea::placeholder {
    color: rgba(90, 107, 138, 0.6);
}

.contact-field-input input:focus,
.contact-field-input textarea:focus {
    outline: none;
    border-color: rgba(54, 62, 105, 0.9);
    box-shadow: 0 0 0 4px rgba(54, 62, 105, 0.15);
    background: #ffffff;
}

.contact-field-input textarea {
    min-height: 180px;
    line-height: 1.6;
}

.contact-form-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.contact-submit-btn {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #363E69 0%, #5A6B8A 50%, #1A263B 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.6px;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(54, 62, 105, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 60px rgba(54, 62, 105, 0.35);
}

.contact-submit-btn.is-busy {
    opacity: 0.75;
    cursor: wait;
    transform: translateY(0) !important;
    box-shadow: 0 10px 30px rgba(54, 62, 105, 0.25) !important;
}

.contact-submit-btn .btn-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-submit-btn svg {
    width: 100%;
    height: 100%;
    color: #ffffff;
}

.contact-form-assurance {
    font-size: 0.85rem;
    color: #5A6B8A;
    margin: 0;
}

@media (max-width: 1400px) {
    .contact-hero-title {
        font-size: 3.2rem;
    }

    .contact-simple-title {
        font-size: 2.8rem;
    }

    .contact-hero-card {
        padding: 36px;
    }

    .contact-form-panel {
        padding: 48px 44px;
    }
}

@media (max-width: 1199px) {
    .rummy-contact-hero {
        padding: 140px 0 120px;
    }

    .contact-simple-header {
        padding: 100px 0 50px;
    }

    .contact-simple-title {
        font-size: 2.6rem;
    }

    .contact-hero-title {
        font-size: 2.8rem;
    }

    .contact-hero-description {
        font-size: 1.05rem;
    }

    .contact-hero-card {
        margin-top: 20px;
    }

    .contact-form-panel {
        padding: 42px 36px;
    }

    .contact-info-panel {
        padding: 48px 36px;
    }
}

@media (max-width: 992px) {
    .rummy-contact-hero {
        min-height: auto;
        padding: 120px 0 100px;
    }

    .contact-simple-title {
        font-size: 2.4rem;
    }

    .contact-hero-content {
        align-items: flex-start;
    }

    .contact-hero-highlights {
        gap: 14px;
    }

    .contact-highlight-card {
        padding: 16px 18px;
    }

    .contact-hero-card {
        padding: 32px;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .contact-section-card {
        border-radius: 26px;
    }

    .contact-info-panel,
    .contact-form-panel {
        padding: 42px 32px;
    }

    .contact-support-stats {
        gap: 18px;
    }
}

@media (max-width: 767px) {
    .contact-hero-title {
        font-size: 2.4rem;
    }

    .contact-simple-header {
        padding: 80px 0 40px;
    }

    .contact-simple-title {
        font-size: 2.1rem;
    }

    .contact-hero-description {
        font-size: 1rem;
    }

    .contact-highlight-card {
        flex: 1 1 100%;
    }

    .contact-hero-card {
        padding: 28px;
    }

    .contact-info-footnote {
        font-size: 0.9rem;
    }

    .rummy-contact-section {
        padding: 90px 0;
    }

    .contact-section-card {
        border-radius: 22px;
    }

    .contact-info-panel,
    .contact-form-panel {
        padding: 36px 28px;
    }

    .contact-support-list li {
        padding: 10px 12px;
    }

    .contact-form-header h3 {
        font-size: 1.8rem;
    }

    .contact-field-input input,
    .contact-field-input textarea {
        font-size: 0.95rem;
        border-radius: 14px;
        padding: 14px 16px;
    }

    .contact-submit-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .rummy-contact-hero {
        padding: 100px 0 80px;
    }

    .contact-simple-header {
        padding: 70px 0 30px;
    }

    .contact-simple-title {
        font-size: 1.9rem;
    }

    .contact-hero-title {
        font-size: 2.1rem;
    }

    .contact-hero-description {
        font-size: 0.95rem;
    }

    .contact-hero-card {
        padding: 24px;
        border-radius: 22px;
    }

    .contact-info-footnote {
        padding: 14px 18px;
    }

    .rummy-contact-section {
        padding: 80px 0;
    }

    .contact-info-panel,
    .contact-form-panel {
        padding: 32px 24px;
    }

    .contact-support-stats {
        gap: 14px;
    }

    .contact-support-stats div {
        padding: 14px 16px;
    }

    .contact-social-icons a {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .contact-field-label {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }

    .contact-field-input textarea {
        min-height: 160px;
    }

    .contact-form-footer {
        align-items: stretch;
    }

    .contact-form-assurance {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .contact-hero-title {
        font-size: 1.9rem;
    }

    .contact-simple-title {
        font-size: 1.75rem;
    }

    .contact-highlight-card {
        padding: 14px 16px;
    }

    .contact-info-item {
        padding: 14px;
        border-radius: 16px;
    }

    .contact-info-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .contact-support-list li {
        border-radius: 14px;
        padding: 10px;
    }

    .contact-submit-btn {
        padding: 14px 24px;
    }
}

@media (max-width: 420px) {
    .contact-social-icons {
        gap: 10px;
    }

    .contact-social-icons a {
        width: 36px;
        height: 36px;
    }
}

/* Container Padding for All Devices */
@media (max-width: 1199px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 767px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
}