/* iOS-Inspired Homepage Design with Animated Wave Background */

/* Import San Francisco-like font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

/* Global iOS-style variables */
:root {
    --ios-primary: #007AFF;
    --ios-secondary: #5856D6;
    --ios-success: #34C759;
    --ios-warning: #FF9500;
    --ios-danger: #FF3B30;
    --ios-info: #5AC8FA;
    --ios-gray: #8E8E93;
    --ios-light-gray: #F2F2F7;
    --ios-dark-gray: #1C1C1E;
    --ios-background: #FFFFFF;
    --ios-card-bg: #FFFFFF;
    --ios-border: #E5E5EA;
    --ios-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --ios-shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --ios-radius: 12px;
    --ios-radius-lg: 16px;
    --ios-radius-xl: 20px;
}

/* ===== ANIMATED WAVE BACKGROUND ===== */
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--ios-dark-gray);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fixed animated gradient background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(315deg, rgba(101,0,94,1) 3%, rgba(60,132,206,1) 38%, rgba(48,238,226,1) 68%, rgba(255,25,25,1) 98%);
    animation: gradient 15s ease infinite;
    background-size: 400% 400%;
    z-index: -2;
}

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

/* Wave Background Container */
.wave-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.wave {
    background: rgb(255 255 255 / 25%);
    border-radius: 1000% 1000% 0 0;
    position: fixed;
    width: 200%;
    height: 12em;
    animation: wave 10s -3s linear infinite;
    transform: translate3d(0, 0, 0);
    opacity: 0.8;
    bottom: 0;
    left: 0;
    z-index: -1;
}

.wave:nth-of-type(2) {
    bottom: -1.25em;
    animation: wave 18s linear reverse infinite;
    opacity: 0.8;
}

.wave:nth-of-type(3) {
    bottom: -2.5em;
    animation: wave 20s -1s reverse infinite;
    opacity: 0.9;
}

@keyframes wave {
    2% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-25%);
    }
    50% {
        transform: translateX(-50%);
    }
    75% {
        transform: translateX(-25%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Content wrapper to sit above wave background */
section, header, footer {
    position: relative;
    z-index: 1;
}

/* Typography scale */
h1, .display-1, .display-2, .display-3, .display-4 {
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

h2, .display-5, .display-6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.lead {
    font-weight: 400;
    font-size: 1.125rem;
    color: var(--ios-gray);
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.9) 0%, rgba(88, 86, 214, 0.9) 100%);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-section .lead {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-section .btn {
    padding: 16px 32px;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: var(--ios-radius);
    box-shadow: var(--ios-shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.hero-section .btn-light {
    background: rgba(255,255,255,0.95);
    color: var(--ios-primary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.hero-section .btn-light:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.hero-section .btn-outline-light {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.hero-section .btn-outline-light:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.hero-image {
    animation: float 3s ease-in-out infinite;
}

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

.hero-image .display-1 {
    font-size: 8rem;
    color: rgba(255,255,255,0.8);
    text-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.hero-image .badge {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
}

/* Banner Slider Section */
.banner-slider {
    position: relative; /* required for buttons on top */
    margin-bottom:-50px;
}

.banner-slider img {
    max-height: 400px; /* keep limited area */
    max-width: 700px;
    width: auto; /* keep original aspect ratio */
    display: block;
    margin: 0 auto; /* center horizontally */
}

/* Carousel buttons on top of the image */
.banner-slider .carousel-control-prev,
.banner-slider .carousel-control-next {
    position: absolute;
    top: 50%; /* vertically center */
    transform: translateY(-50%);
    z-index: 2; /* on top of image */
    width: 50px;
    height: 50px;
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slider .carousel-control-prev:hover,
.banner-slider .carousel-control-next:hover {
    background-color: rgba(0,0,0,0.5);
}


/* Games Section */
.games-section {
    padding: 100px 0;
    background: transparent;
}

.games-section h2 {
    color: white;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.games-section .lead {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* Game Cards */
.game-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--ios-border);
    border-radius: var(--ios-radius-lg);
    box-shadow: var(--ios-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

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

.game-card:hover {
    border-color: #007AFF !important;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2),
                0 20px 40px rgba(0, 0, 0, 0.1),
                0 8px 16px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.game-card .card-img-top {
    background: linear-gradient(135deg, var(--ios-light-gray) 0%, #FAFAFA 100%);
    border-radius: var(--ios-radius) var(--ios-radius) 0 0;
    position: relative;
    overflow: hidden;
}

.game-card .card-img-top img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

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

.game-card .card-body {
    padding: 24px;
    position: relative;
    z-index: 2;
}

.game-card .card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ios-dark-gray);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.game-card .card-text {
    color: var(--ios-gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.game-card .badge {
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
}

.game-card .badge.bg-success {
    background: linear-gradient(135deg, var(--ios-success) 0%, #30D158 100%) !important;
    border: none;
    color: white;
    box-shadow: 0 2px 8px rgba(52,199,89,0.3);
}

.game-card .badge.bg-secondary {
    background: linear-gradient(135deg, var(--ios-gray) 0%, #A1A1A6 100%) !important;
    border: none;
    color: white;
}

.game-card .btn {
    border-radius: var(--ios-radius);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.game-card .btn-primary {
    background: linear-gradient(135deg, var(--ios-primary) 0%, #0051D5 100%);
    box-shadow: 0 4px 12px rgba(0,122,255,0.4);
}

.game-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,122,255,0.5);
    background: linear-gradient(135deg, #0051D5 0%, var(--ios-primary) 100%);
}

.game-card .btn-secondary {
    background: linear-gradient(135deg, var(--ios-gray) 0%, #A1A1A6 100%);
    color: white;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: transparent;
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255,255,255,0.08) 0%, transparent 50%);
}

.features-section .container {
    position: relative;
    z-index: 1;
}

.features-section h2 {
    font-weight: 800;
    color: #1C1C1E;
    margin-bottom: 1rem;
    text-shadow: none;
}

.features-section .lead {
    color: #495057;
    margin-bottom: 4rem;
    text-shadow: none;
}

.feature-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem 1rem;
    border-radius: var(--ios-radius-lg);
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.feature-icon {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--ios-shadow);
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 50%;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.feature-icon.bg-primary {
    background: linear-gradient(135deg, var(--ios-primary) 0%, #0051D5 100%) !important;
}

.feature-icon.bg-success {
    background: linear-gradient(135deg, var(--ios-success) 0%, #30D158 100%) !important;
}

.feature-icon.bg-info {
    background: linear-gradient(135deg, var(--ios-info) 0%, #32ADE6 100%) !important;
}

.feature-icon.bg-warning {
    background: linear-gradient(135deg, var(--ios-warning) 0%, #FF9F0A 100%) !important;
}

.feature-item h5 {
    font-weight: 600;
    color: #1C1C1E;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.feature-item p {
    color: #495057;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Call to Action Section */
.cta-section {
    padding: 100px 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.3) 0%, transparent 50%);
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cta-section .lead {
    color: rgba(255,255,255,0.8);
    margin-bottom: 3rem;
    font-size: 1.25rem;
}

.cta-section .btn {
    padding: 16px 32px;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: var(--ios-radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.cta-section .btn-light {
    background: rgba(255,255,255,0.95);
    color: var(--ios-dark-gray);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--ios-shadow-lg);
}

.cta-section .btn-light:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.cta-section .btn-outline-light {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.cta-section .btn-outline-light:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-3px);
}

/* === MOBILE HERO SECTION ADJUSTMENT === */
@media (max-width: 768px) {
    /* Hide all hero content by default */
    .hero-section h1,
    .hero-section p,
    .hero-section .hero-image,
    .hero-section .lead,
    .hero-section .badge,
    .hero-section .other-content {
        display: none !important;
    }

    /* Show only welcome message */
    .hero-section h1 {
        display: block !important;
        font-size: 1.5rem !important;
        text-align: center;
        margin-bottom: 1rem;
    }

    /* Show only the two main buttons */
    .hero-section .btn-light,
    .hero-section .btn-outline-light {
        display: inline-block !important;
        margin: 0.5rem auto;
    }

    /* Center everything */
    .hero-section .container {
        text-align: center;
    }

    /* Remove extra padding */
    .hero-section {
        padding: 30px 0 !important;
    }
}

/*