/*
Theme Name: Instafer 2026 Perfect Responsive Theme
Theme URI: https://instafer.com
Author: Instafer Dev Team
Description: 100% Mobile Pixel-Perfect Responsive Theme with zero horizontal overflow.
Version: 5.0.0
Text Domain: instafer-theme
*/

:root {
    --primary: #794aff;
    --primary-gradient: linear-gradient(135deg, #794aff 0%, #532df5 100%);
    --accent: #f7c948;
    --accent-gradient: linear-gradient(135deg, #f7c948 0%, #ffd966 100%);
    --dark-bg: #090d16;
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --emerald: #10b981;
    --font-heading: 'Plus Jakarta Sans', 'Cairo', -apple-system, sans-serif;
    --font-body: 'Inter', 'Cairo', -apple-system, sans-serif;
    --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    position: relative;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Header Navbar */
.uicore-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(9, 13, 22, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    padding: 12px 0;
    width: 100%;
}

.uicore-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    color: #fff;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-menu a:hover, .nav-menu .current-menu-item a {
    color: var(--accent);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.lang-switch {
    display: flex;
    gap: 6px;
    list-style: none;
}

.lang-switch a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    transition: all 0.2s ease;
}

.lang-switch a:hover, .lang-switch .current-lang a {
    color: #000;
    background: var(--accent);
    border-color: var(--accent);
}

.btn-cta {
    background: var(--accent-gradient);
    color: #090d16;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(247, 201, 72, 0.3);
    transition: transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-cta:hover {
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
    margin-left: 6px;
}

/* Mobile Slide-in Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #090d16;
    border-left: 1px solid var(--card-border);
    z-index: 1001;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
}

.mobile-drawer.active {
    right: 0;
}

.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 36px;
}

.mobile-nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    display: block;
}

/* Hero Section */
.hero-wrapper {
    position: relative;
    padding: 130px 0 60px;
    background: radial-gradient(circle at 50% -20%, rgba(121, 74, 255, 0.2), transparent 60%);
    width: 100%;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
}

.pill-dot {
    width: 8px;
    height: 8px;
    background: var(--emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--emerald);
}

.hero-heading {
    font-family: var(--font-heading);
    font-size: clamp(28px, 5vw, 50px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
    word-break: break-word;
}

.hero-heading span {
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: clamp(14px, 2.2vw, 17px);
    color: var(--text-secondary);
    margin-bottom: 28px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.store-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent);
}

/* Phone Mockup */
.mockup-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.phone-mockup {
    position: relative;
    width: 280px;
    max-width: 85vw;
    height: 560px;
    background: #000;
    border-radius: 40px;
    border: 8px solid #1e293b;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

.phone-screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.floating-card {
    background: rgba(15, 23, 42, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    padding: 12px 16px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.floating-card-1 {
    position: absolute;
    top: 12%;
    left: -20px;
}

.floating-card-2 {
    position: absolute;
    bottom: 12%;
    right: -20px;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
}

.card-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 28px 20px;
    transition: all 0.3s ease;
    width: 100%;
}

.card-box:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

/* Footer */
.uicore-footer {
    padding: 40px 0;
    border-top: 1px solid var(--card-border);
    background: var(--dark-bg);
    width: 100%;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
}

.footer-copy {
    color: var(--text-secondary);
    font-size: 13px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--accent);
}

/* RTL Mobile Adjustment */
body.rtl {
    direction: rtl;
}

body.rtl .mobile-drawer {
    right: auto;
    left: -100%;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.rtl .mobile-drawer.active {
    left: 0;
}

body.rtl .floating-card-1 { left: auto; right: -20px; }
body.rtl .floating-card-2 { right: auto; left: -20px; }

/* 📱 MOBILE BREAKPOINTS (Zero Overflow & Single Column Stack) */
@media (max-width: 991px) {
    .nav-menu { display: none !important; }
    .mobile-menu-toggle { display: block !important; }
    .btn-cta { padding: 8px 14px; font-size: 12px; }
    
    .hero-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn-cta, .hero-actions .store-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .floating-card-1, .floating-card-2 {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        margin-top: 12px;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .grid-3, .grid-2 {
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }
}

@media (max-width: 576px) {
    .uicore-container { padding: 0 16px !important; }
    .brand-name { font-size: 18px; }
    .brand-logo { height: 30px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-nav { justify-content: center; }
}
