html { scroll-behavior: smooth; }

/* --- הגדרות בסיס --- */
:root {
    --primary: #4F46E5;
    --accent: #F59E0B;
    --success: #10B981;
    --dark-bg: #0f172a;
    --text-dark: #1e293b;
    --text-light: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rubik', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* --- סמן קסם (Cursor Trail) --- */
.cursor-trail {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: fadeOut 0.8s linear forwards;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

@keyframes fadeOut {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -80px) scale(0); opacity: 0; }
}

/* --- אנימציית רקע (מספרים) --- */
.background-animation {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden; z-index: -1; pointer-events: none;
}

.background-animation span {
    position: absolute;
    display: block;
    color: rgba(79, 70, 229, 0.05); /* מספרים מאוד שקופים */
    font-size: 4rem;
    font-weight: bold;
    animation: animateNums 20s linear infinite;
    bottom: -150px;
}
/* מיקומים אקראיים למספרים */
.background-animation span:nth-child(1) { left: 10%; animation-duration: 15s; }
.background-animation span:nth-child(2) { left: 20%; animation-duration: 12s; font-size: 2rem; }
.background-animation span:nth-child(3) { left: 50%; animation-duration: 25s; }
.background-animation span:nth-child(4) { left: 70%; animation-duration: 18s; }
.background-animation span:nth-child(5) { left: 85%; animation-duration: 10s; font-size: 3rem; }
.background-animation span:nth-child(6) { left: 35%; animation-duration: 22s; }

@keyframes animateNums {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-1000px) rotate(720deg); opacity: 0; }
}

/* --- הדר דביק וכהה (Sticky Dark Header) --- */
.site-header {
    position: sticky; /* נדבק לחלק העליון של המסך */
    top: 0;           /* המיקום שבו הוא נדבק */
    background-color: var(--dark-bg); /* צבע כחול כהה (כמו הפוטר) */
    width: 100%;
    padding: 0.8rem 2rem; /* קצת יותר צר כדי שיהיה אלגנטי */
    z-index: 1000;    /* מוודא שהוא תמיד מעל הכל (כולל הילד והסמן) */
    display: flex;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3); /* צל כדי להפריד אותו מהרקע בגלילה */
    border-bottom: 1px solid #334155; /* קו הפרדה עדין כמו בפוטר */
}
.header-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px; /* גובה הלוגו */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: color 0.3s;
}

.main-nav a:hover { color: var(--accent); }

.main-nav a.nav-active {
    color: var(--accent);
    position: relative;
}
.main-nav a.nav-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    animation: navUnderline 0.25s ease forwards;
}
@keyframes navUnderline {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* flash overlay during scroll */
.page-scrolling::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.08);
    pointer-events: none;
    z-index: 9999;
    animation: scrollFlash 0.55s ease forwards;
}
@keyframes scrollFlash {
    0%   { opacity: 1; }
    100% { opacity: 0; }
}

.btn-login {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}
.btn-login:hover { background: white; color: var(--primary); }

/* --- Hero Section --- */
.hero {
    min-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
       padding: 2rem 2rem 2rem 2rem; 
        position: relative;

    position: relative;
    /* גרדיינט כהה חצי שקוף (0.6/0.5) מעל התמונה */
     background: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.90) 0%, rgba(30, 58, 138, 0.80) 100%),
        url('/img/background.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
/* עדכון: דמות יורדת נמוך יותר */
.character-wrapper {
    position: relative;
    width: 140%; /* דמות גדולה ומרשימה */
    max-width: 850px; 
    
    /* השינויים להורדת התמונה: */
    top: 60px; /* דוחף את התמונה 60 פיקסלים למטה */
    margin-bottom: -200px; /* מגדיל את החפיפה עם הסקשן הבא */
    margin-left: -50px;
    
    z-index: 20;
    pointer-events: none;
}

/* עדכון: רווח גדול יותר לכותרת בסקשן הבא */
.topics-section {
    /* הגדלנו ל-12rem כדי שהילד לא יסתיר את הטקסט */
    padding: 12rem 1rem 4rem 1rem; 
    background: white;
    position: relative;
    z-index: 1;
}


/* במובייל - ביטול השינויים האלו (חשוב!) */
@media (max-width: 900px) {
    .character-wrapper {
        width: 100%;
        max-width: 350px;
        top: 0; /* ביטול ההורדה למטה במובייל */
        margin-bottom: 0;
        margin-left: 0;
        margin-top: 2rem;
    }
    
    .topics-section {
        padding-top: 4rem; /* חזרה לרווח רגיל */
    }
}

.container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Hero Text */
.hero-content { z-index: 2; }

.tagline {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: #bfdbfe;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

h1 span { color: var(--accent); position: relative; }


.sub-headline {
    font-size: 1.3rem; color: #e2e8f0; margin-bottom: 2.5rem; max-width: 90%;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* Buttons */
.cta-buttons { display: flex; gap: 1rem; margin-bottom: 2rem; }

.btn {
    padding: 0.6rem 2rem;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--accent); color: white; border: none;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}
.btn-primary:hover { transform: translateY(-4px); background-color: #fbbf24; }

.btn-ghost {
    background: transparent; color: white; border: 2px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: white; }

.features-row { color: white; font-weight: bold; display: flex; gap: 10px; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.features-row .dot { color: var(--accent); }

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: flex-end; /* מיישר את התמונה לתחתית */
    position: relative;
    z-index: 20; /* שכבה גבוהה */
}.character-wrapper {
    position: relative;
    width: 130%; /* הדמות תהיה רחבה יותר מהעמודה שלה */
    max-width: 800px; /* הגדלה משמעותית (היה 550px) */
    
    /* הטריק לשבירת הגבולות: */
    margin-bottom: -120px; /* דוחף את הדמות למטה לתוך הסקשן הבא */
    margin-left: -50px; /* הזזה קלה שמאלה למרכוז ויזואלי */
    
    z-index: 20; /* חשוב מאוד! כדי שהילד יהיה מעל הסקשן הלבן */
    pointer-events: none; /* כדי שהתמונה הענקית לא תפריע ללחוץ על דברים מסביב */
}

.hero-img {
    width: 100%; height: auto;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
    animation: floatChar 4s ease-in-out infinite;
}

@keyframes floatChar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.game-badge {
    position: absolute; bottom: 20px; right: -10px;
    background: white; color: var(--text-dark);
    padding: 1rem; border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border: 3px solid var(--success);
    animation: floatChar 4s ease-in-out infinite reverse; /* ריחוף הפוך */
}

.topics-section {
    padding: 8rem 1rem 4rem 1rem; /* הגדלתי את הרווח העליון (היה 4rem) כדי שהילד לא יסתיר את הכותרת */
    background: white;
    position: relative;
    z-index: 1; /* נמוך יותר מהילד */
}
.container-topics { max-width: 1100px; margin: 0 auto; }

.topics-header { text-align: center; margin-bottom: 3rem; }
.topics-header h2 { font-size: 2.5rem; color: var(--text-dark); margin-bottom: 0.5rem; }

.topics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 עמודות קבועות */
    gap: 1.5rem;
}

.card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 2rem 1rem;
    text-align: center;
    border: 2px solid transparent;
    transition: transform 0.3s;
    text-decoration: none;
    display: flex; flex-direction: column; align-items: center;
}
.card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); background: white; }

.card-icon {
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: white; margin-bottom: 1rem; font-weight: bold;
}
.card h3 { margin-bottom: 0.5rem; color: var(--text-dark); }
.card p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 1rem; }
.card a { text-decoration: none; font-weight: bold; font-size: 0.9rem; margin-top: auto;}

/* Card Themes */
.theme-green .card-icon { background: var(--success); } .theme-green a { color: var(--success); } .theme-green:hover { border-color: var(--success); }
.theme-blue .card-icon { background: #3B82F6; } .theme-blue a { color: #3B82F6; } .theme-blue:hover { border-color: #3B82F6; }
.theme-orange .card-icon { background: var(--accent); } .theme-orange a { color: var(--accent); } .theme-orange:hover { border-color: var(--accent); }
.theme-purple .card-icon { background: #A855F7; } .theme-purple a { color: #A855F7; } .theme-purple:hover { border-color: #A855F7; }

/* --- Hero Wave --- */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: block;
    z-index: 1;
    height: 120px;
}

/* --- Process Section (Wave + Steps) --- */
.how-it-works-section {
    background: #f8fafc;
    padding: 6rem 1.5rem;
    direction: rtl;
    position: relative;
}

.wave-divider {
    position: absolute; top: -1px; left: 0; width: 100%; overflow: hidden; line-height: 0;
    transform: rotate(180deg);
}
.wave-divider svg { display: block; width: calc(100% + 1.3px); height: 60px; }
.wave-divider .shape-fill { fill: #FFFFFF; }

.container-process { max-width: 1200px; margin: 0 auto; }

.process-header { text-align: center; margin-bottom: 3.5rem; }
.hiw-badge {
    display: inline-block;
    background: #ede9fe;
    color: var(--primary);
    padding: 0.35rem 1.1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.process-header h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--text-dark); margin: 0 0 0.75rem; }
.hiw-sub { color: var(--text-light); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* 4-column flow */
.hiw-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 0;
    align-items: start;
}
.hiw-connector {
    align-self: center;
    font-size: 1.8rem;
    color: #c7d2fe;
    font-weight: bold;
    padding: 0 0.6rem;
    margin-top: 1rem;
}
.hiw-step {
    background: white;
    border-radius: 20px;
    padding: 1.8rem 1.5rem;
    box-shadow: 0 4px 20px rgba(79,70,229,0.08);
    border: 1px solid #e0e7ff;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.hiw-step-icon { font-size: 2.2rem; line-height: 1; }
.hiw-step-num {
    position: absolute;
    top: -14px;
    left: 16px;
    background: var(--primary);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    border: 3px solid #f8fafc;
}
.hiw-step h3 { font-size: 1.05rem; color: var(--text-dark); margin: 0; }
.hiw-step p { color: var(--text-light); font-size: 0.9rem; margin: 0; line-height: 1.5; }

/* Settings preview mockup */
.hiw-settings-preview {
    background: #f8faff;
    border: 1px solid #e0e7ff;
    border-radius: 10px;
    padding: 0.75rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.4rem;
}
.hiw-preview-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.hiw-preview-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    white-space: nowrap;
}
.hiw-tag {
    font-size: 0.72rem;
    padding: 0.15rem 0.55rem;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    color: #64748b;
    background: white;
}
.hiw-tag-active {
    background: #ede9fe;
    color: var(--primary);
    border-color: #c4b5fd;
    font-weight: 700;
}
.hiw-range {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    background: #ede9fe;
    padding: 0.15rem 0.5rem;
    border-radius: 8px;
}

/* Bullet list */
.hiw-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.hiw-list li { font-size: 0.85rem; color: var(--text-dark); }

/* Mini game chips */
.hiw-games-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.3rem;
}
.hiw-game-chip {
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

/* Stats row */
.hiw-stats {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.3rem;
}
.hiw-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8faff;
    border-radius: 10px;
    padding: 0.5rem 0.3rem;
    border: 1px solid #e0e7ff;
    font-size: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
    gap: 0.2rem;
}
.hiw-stat-num { font-size: 1.3rem; }

@media (max-width: 900px) {
    .hiw-flow {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .hiw-connector { display: none; }
}

/* old selectors kept for safety */
.steps-row { display: none; }
.step-item { display: none; }
.step-number { display: none; }
.step-arrow { display: none; }


/* --- Reviews --- */
.reviews-section { background: white; padding: 4rem 1rem; }
.container-reviews { max-width: 1100px; margin: 0 auto; }
.reviews-header { text-align: center; margin-bottom: 3rem; }

.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.review-card {
    background: white; border: 1px solid #e2e8f0; border-radius: 16px;
    padding: 2rem; transition: transform 0.2s;
}
.review-card:hover { transform: translateY(-5px); border-color: #cbd5e1; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.stars { color: var(--accent); margin-bottom: 1rem; }
.review-text { font-style: italic; color: var(--text-dark); margin-bottom: 1.5rem; min-height: 80px; }

.reviewer-info { display: flex; align-items: center; gap: 10px; border-top: 1px solid #f1f5f9; padding-top: 1rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; color: white; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.avatar-pink { background: #EC4899; } .avatar-blue { background: #3B82F6; } .avatar-green { background: #10B981; }
.details { display: flex; flex-direction: column; font-size: 0.9rem; }
.role { font-size: 0.8rem; color: var(--text-light); }

/* --- Final CTA --- */
.final-cta-section {
    background: linear-gradient(135deg, #4F46E5 0%, #3B82F6 100%);
    padding: 5rem 1rem; text-align: center; color: white;
}
.btn-big-white {
    background: white; color: var(--primary); padding: 1.2rem 3rem;
    border-radius: 50px; font-weight: 800; font-size: 1.3rem; text-decoration: none;
    display: inline-block; box-shadow: 0 5px 20px rgba(0,0,0,0.2); transition: transform 0.2s;
}
.btn-big-white:hover { transform: translateY(-3px); }

/* --- Footer --- */
.site-footer { background: var(--dark-bg); color: #e2e8f0; padding: 4rem 1rem 1rem 1rem; }
.footer-container {
    max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 3rem; border-bottom: 1px solid #334155; padding-bottom: 3rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: #cbd5e1; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding-top: 2rem; font-size: 0.9rem; color: #64748b; }

/* --- Footer (simple bar) --- */
.site-footer {
    background: var(--dark-bg);
    color: #94a3b8;
    padding: 1.8rem 2rem;
}
.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: none;
    padding-bottom: 0;
    grid-template-columns: unset;
}
.footer-container p {
    font-size: 0.9rem;
    direction: rtl;
}
nav.footer-links {
    display: flex;
    gap: 1.5rem;
    direction: rtl;
}
nav.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
nav.footer-links a:hover { color: var(--accent); }

/* --- Responsive (Mobile) --- */
@media (max-width: 900px) {
    .hero { text-align: center; padding-top: 7rem; }
    .container { grid-template-columns: 1fr; }
    .site-header { padding: 1rem; }
    .main-nav { display: none; /* מחביא תפריט במובייל */ }
    h1 { font-size: 3rem; }
    
    .reviews-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 900px) {
    .hero {
        text-align: center;
        padding-top: 8rem;
        overflow: hidden; /* במובייל עדיף שהתמונה לא תגלוש */
    }
    
    .character-wrapper {
        width: 100%;
        max-width: 350px; /* גודל רגיל במובייל */
        margin-bottom: 0; /* ביטול הגלישה למטה */
        margin-left: 0;
        margin-top: 2rem;
    }
    
    .topics-section {
        padding-top: 4rem; /* חזרה לרווח רגיל */
    }

    
    /* שאר הקוד של המובייל נשאר אותו דבר... */
}

/* --- Games Section --- */
.games-section {
    padding: 6rem 1.5rem;
    background: #f6f8fb;
    direction: rtl;
}
.games-container {
    max-width: 1100px;
    margin: 0 auto;
}
.games-header {
    text-align: center;
    margin-bottom: 3rem;
}
.games-badge {
    display: inline-block;
    background: #ede9fe;
    color: var(--primary);
    border: 1px solid #c4b5fd;
    padding: 0.35rem 1.1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}
.games-header h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 0.75rem;
}
.games-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.game-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0,0,0,0.35);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.game-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.game-card:hover .game-overlay {
    opacity: 1;
}
.game-name {
    position: absolute;
    top: 12px;
    right: 14px;
    background: rgba(0,0,0,0.35);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    z-index: 2;
}
.game-icon-img {
    width: 80%;
    max-width: 170px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
    transition: transform 0.22s ease;
    z-index: 1;
}
.game-card:hover .game-icon-img {
    transform: scale(1.08);
}
.game-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.22s ease;
    z-index: 3;
}
.game-overlay span {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    border: 2px solid rgba(255,255,255,0.5);
}
@media (max-width: 900px) {
    .games-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .games-grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
}

/* --- Contact Section --- */
.contact-section {
    padding: 6rem 1.5rem;
    background: linear-gradient(160deg, #f6f8fb 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
    direction: rtl;
}

/* --- Info side --- */
.contact-info {
    position: relative;
    padding: 2rem 0;
}

.contact-info-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1.2rem;
    letter-spacing: 0.05em;
}

.contact-info-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.contact-info-desc {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 380px;
}

.contact-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
}

.contact-icon {
    width: 42px;
    height: 42px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e3a8a;
    font-size: 1.1rem;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.12);
    flex-shrink: 0;
}

.contact-phone-icons .fa-whatsapp {
    color: #16a34a;
    font-size: 1.25rem;
}

.contact-blob {
    position: absolute;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(30,58,138,0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -60px;
    right: -80px;
    pointer-events: none;
}

/* --- Form card --- */
.contact-form-card {
    background: white;
    border: 1px solid rgba(30, 58, 138, 0.1);
    border-radius: 18px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12), 0 2px 16px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.contact-form-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    padding: 0.7rem;
    text-align: center;
    color: white;
    border-bottom: 4px solid var(--accent);
}

.contact-form-header h3 {
    font-size: 1.3rem;
}

.contact-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.45rem 1.7rem 1.7rem;
}

/* Override m.master's height:25px on all inputs/textareas in this section */
.contact-section input[type="text"],
.contact-section textarea {
    height: auto !important;
    min-height: unset !important;
}

/* Wrapper owns the border & background — icon and input are flex children */
.input-wrapper {
    display: flex;
    align-items: center;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    overflow: hidden;
}

.input-wrapper-textarea {
    align-items: flex-start;
}

.input-wrapper:focus-within {
    border-color: #1e3a8a;
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
}

.input-icon {
    flex-shrink: 0;
    width: 40px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.2s;
    padding-top: 0;
    line-height: 1;
}

.input-wrapper-textarea .input-icon {
    padding-top: 1rem;
}

.input-wrapper:focus-within .input-icon {
    color: var(--accent);
}

.contact-input {
    flex: 1;
    min-width: 0;
    padding: 0 !important;
    border: none;
    background: transparent;
    font-family: 'Rubik', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    outline: none;
    direction: rtl;
}

.contact-input::placeholder {
    color: #94a3b8;
}

.contact-textarea {
    resize: none;
    min-height: 96px;
    line-height: 1.5;
}

.contact-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Rubik', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.3);
    letter-spacing: 0.03em;
    margin-top: 0.3rem;
}

.contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(245, 158, 11, 0.42);
}

.contact-status {
    display: block;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    min-height: 1.2em;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info-title {
        font-size: 1.8rem;
    }

    .contact-fields {
        padding: 1.4rem 1.2rem 1.4rem;
    }
}
