/* * Seemenu Games Landing Page Styles
 * Designed with a "Google-Quality" mindset: Clean, Performant, Accessible.
 */

/* --- 1. Font Definition & Global Reset --- */
@font-face {
    font-family: 'Abar';
    src: url('assets/fonts/abar/Abar-VF.woff') format('woff');
    font-weight: 100 900;
    font-display: swap;
}

:root {
    /* Brand Colors */
    --primary: #00b0a4;        /* Seemenu Green */
    --primary-dark: #008f85;   /* Darker shade for hover */
    --primary-light: #e0f7f6;  /* Light tint for backgrounds */
    --dark: #010101;           /* Seemenu Dark */
    --text-body: #3c4043;      /* Google Grey 800 */
    --text-muted: #5f6368;     /* Google Grey 700 */
    
    /* Backgrounds */
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;       /* Google Grey 50 */
    --bg-surface: #ffffff;
    
    /* Accents & Gradients */
    --gradient-primary: linear-gradient(135deg, #00b0a4 0%, #00968b 100%);
    --gradient-hero: linear-gradient(180deg, #f0fdfc 0%, #ffffff 100%);
    --shadow-sm: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Structure */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 50px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Abar', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-white);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- 2. Utility Classes --- */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }
.highlight-text { color: var(--primary); position: relative; display: inline-block; }

/* Underline effect for highlight */
.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(0, 176, 164, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.section { padding: 100px 0; position: relative; }

/* --- 3. Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 176, 164, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 176, 164, 0.4);
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: #fff;
}

.btn-text {
    color: var(--text-muted);
    background: transparent;
}

.btn-text:hover {
    color: var(--primary);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-white {
    background-color: #fff;
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Icon Animation in Button */
.icon-btn-anim i {
    transition: transform 0.3s ease;
}
.icon-btn-anim:hover i {
    transform: translateX(-5px); /* Move left in RTL */
}

/* --- 4. Header --- */
.header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 2rem;
    color: var(--primary);
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-title {
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 600;
    color: var(--text-body);
    font-size: 0.95rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover { color: var(--primary); }
.nav-link:hover::after { width: 100%; }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

/* --- 5. Hero Section --- */
.hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 100px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.emoji-icon.sm { width: 20px; height: 20px; }

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 24px;
    position: relative;
}

.float-emoji-1 {
    position: absolute;
    top: -20px;
    left: 20px;
    width: 50px;
    animation: float 4s ease-in-out infinite;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--dark);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: #e0e0e0;
}

/* Hero Visual & Phone Mockup */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-mockup-wrapper {
    position: relative;
    width: 300px;
    height: 600px;
}

.blob-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,176,164,0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 8s infinite ease-in-out;
}

.phone-mockup {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.3);
    position: relative;
    border: 4px solid #333;
    overflow: hidden;
}

.screen-content {
    background: var(--bg-white);
    width: 100%;
    height: 100%;
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Internal Mockup UI (Simple CSS Shapes) */
.mock-header {
    background: var(--primary);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    color: white;
    font-size: 1.2rem;
}
.mock-game-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.mock-card {
    background: #f1f3f4;
    aspect-ratio: 1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
}
.mock-play-btn {
    margin: auto 20px 30px;
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 12px;
    font-weight: bold;
}

/* Floating Assets */
.floating-asset {
    position: absolute;
    width: 60px;
    z-index: 10;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

.asset-fire {
    top: 15%;
    right: -30px;
    animation: float 5s ease-in-out infinite;
}

.asset-biceps {
    bottom: 20%;
    left: -30px;
    animation: float 6s ease-in-out infinite 1s;
}

.wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

/* --- 6. How It Works Section --- */
.how-it-works {
    background-color: var(--bg-light);
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 60px;
}

.steps-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    position: relative;
}

.step-card {
    flex: 1;
    max-width: 300px;
    text-align: center;
    background: var(--bg-white);
    padding: 40px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform 0.3s ease;
    z-index: 2;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.step-number {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,176,164,0.3);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: var(--primary);
}

.step-emoji { width: 50px; }

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.step-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Connecting Line */
.step-line {
    flex-grow: 1;
    height: 2px;
    background: #e0e0e0;
    margin-top: 80px; /* Align with center of icons */
    display: none; /* Hidden by default, shown on desktop via media query logic if needed, but flex gap is simpler */
}

/* --- 7. Games Section --- */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    padding-top: 20px;
}

.game-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.game-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(0,176,164,0.3);
}

.game-media {
    height: 200px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Card Background Gradients */
.game-card:nth-child(1) .game-media { background: linear-gradient(135deg, #e3f2fd, #bbdefb); } /* Blueish for Chess */
.game-card:nth-child(2) .game-media { background: linear-gradient(135deg, #ffebee, #ffcdd2); } /* Reddish for Ludo */
.game-card:nth-child(3) .game-media { background: linear-gradient(135deg, #fff3e0, #ffe0b2); } /* Orange for Dooz */
.game-card:nth-child(4) .game-media { background: linear-gradient(135deg, #ede7f6, #d1c4e9); }
.game-card:nth-child(5) .game-media { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); }
.game-card:nth-child(6) .game-media { background: linear-gradient(135deg, #e1f5fe, #b3e5fc); }

.game-icon-bg {
    font-size: 8rem;
    color: rgba(0,0,0,0.05);
    position: absolute;
    transform: rotate(-15deg);
}

.game-float-emoji {
    width: 80px;
    z-index: 2;
    transition: transform 0.4s ease;
}

.game-float-emoji.large { width: 100px; }

.game-card:hover .game-float-emoji {
    transform: scale(1.1) rotate(10deg);
}

.game-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    color: var(--text-body);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.game-badge.popular {
    background: var(--primary);
    color: white;
}

.game-details {
    padding: 24px;
}

.game-name {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.game-info {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.game-specs {
    display: flex;
    gap: 15px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.game-specs i { color: var(--primary); }

.btn-play {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--dark);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.btn-play:hover, .game-card:hover .btn-play {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
}

.btn-play.primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* --- 8. Promo / Leaderboard Section --- */
.promo-banner {
    padding-bottom: 100px;
}

.promo-box {
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.promo-content {
    max-width: 500px;
    z-index: 2;
}

.promo-content h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
    font-weight: 900;
}

.promo-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.promo-image {
    position: relative;
    width: 300px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.big-icon {
    font-size: 15rem;
    color: rgba(255,255,255,0.1);
    position: absolute;
    right: -20px;
}

.emoji-winner {
    width: 120px;
    position: relative;
    z-index: 2;
    animation: bounce 2s infinite;
}

/* --- 9. Footer --- */
.footer {
    background-color: var(--dark);
    color: #9aa0a6; /* Google grey 500 for footer text */
    padding-top: 80px;
    font-size: 0.95rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .brand-box {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.footer-brand .brand-box i { color: var(--primary); }

.footer-brand p {
    max-width: 300px;
    line-height: 1.7;
}

.footer-nav h4, .footer-social h4 {
    color: white;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-nav ul li { margin-bottom: 12px; }

.footer-nav ul li a:hover {
    color: var(--primary);
    padding-right: 5px; /* RTL nudge */
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trust-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

/* --- 10. Animations --- */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.8; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Fade Up utility handled by JS + CSS */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }

/* --- 11. Responsive Design --- */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content { align-items: center; display: flex; flex-direction: column; }
    .hero-badge { margin: 0 auto 24px; }
    .hero-buttons { justify-content: center; }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root { --header-height: 60px; }
    
    .header-actions, .nav { display: none; }
    .mobile-toggle { display: block; }
    
    .hero-title { font-size: 2.5rem; }
    
    .steps-grid { flex-direction: column; align-items: center; }
    .step-line { display: none; }
    .step-card { width: 100%; max-width: 100%; }
    
    .promo-box { flex-direction: column; text-align: center; padding: 40px 20px; }
    .promo-image { margin-top: 30px; }
    
    .footer-top { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { align-items: center; display: flex; flex-direction: column; }
    .social-links { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 20px; }
}
