/* ===== CSS Variables & Reset ===== */
:root {
    --bg-dark: #020617;
    --bg-light: #0f172a;
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #8b5cf6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --panel-bg: rgba(15, 23, 42, 0.4);
    --panel-border: rgba(255, 255, 255, 0.1);
    
    /* Brand Colors */
    --c-insta: #e1306c;
    --c-whatsapp: #25D366;
    --c-facebook: #1877F2;
    --c-store: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    height: 100vh;
    height: 100dvh; /* For mobile browsers */
    width: 100vw;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    direction: rtl;
}

/* ===== Background Effects ===== */
#techCanvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.ambient-glow {
    position: absolute;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.4;
    pointer-events: none;
    animation: float 10s ease-in-out infinite alternate;
}

.glow-1 {
    top: -20%;
    right: -10%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.glow-2 {
    bottom: -20%;
    left: -10%;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(5%, 10%); }
}

/* ===== Main Hub ===== */
.hub-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    height: 100%;
    max-height: 850px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--panel-border);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    animation: panelEnter 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform: translateY(20px);
    opacity: 0;
}

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

/* ===== Header ===== */
.hub-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 0.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.official-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.2));
}

.logo-ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    border-top-color: var(--primary);
    border-bottom-color: var(--secondary);
    animation: spin 8s linear infinite;
    z-index: 1;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.brand-title {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(to left, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    margin-bottom: 0.2rem;
}

.brand-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.separator {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 80%;
    margin: 1.2rem auto 0;
}

.separator .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

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

/* ===== Links Navigation ===== */
.links-nav {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex: 1;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-15px);
    animation: btnEnter 0.5s forwards;
    animation-delay: calc(var(--i) * 0.1s + 0.3s);
}

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

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

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

.nav-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.15);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 20px -10px rgba(0,0,0,0.5);
}

.nav-btn:hover::before { opacity: 1; }
.nav-btn:hover .btn-icon { transform: scale(1.1); color: #fff; }

/* Platform specific hovers */
.btn-insta:hover .btn-icon { background: var(--c-insta); box-shadow: 0 0 15px rgba(225,48,108,0.4); }
.btn-insta-alt:hover .btn-icon { background: var(--secondary); box-shadow: 0 0 15px rgba(139,92,246,0.4); }
.btn-whatsapp:hover .btn-icon { background: var(--c-whatsapp); box-shadow: 0 0 15px rgba(37,211,102,0.4); }
.btn-facebook:hover .btn-icon { background: var(--c-facebook); box-shadow: 0 0 15px rgba(24,119,242,0.4); }
.btn-store:hover .btn-icon { background: var(--c-store); box-shadow: 0 0 15px rgba(16,185,129,0.4); }

.nav-btn:active {
    transform: scale(0.98);
}

/* ===== Footer ===== */
.hub-footer {
    text-align: center;
    margin-top: 0.5rem;
}

.hub-footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* Responsive adjustments for extremely small screens */
@media (max-height: 700px) {
    .logo-container { width: 160px; height: 160px; margin-bottom: 0; }
    .glass-panel { padding: 1.5rem 1.2rem; gap: 1rem; }
    .brand-title { font-size: 1.4rem; }
    .nav-btn { padding: 0.8rem 1rem; }
    .btn-icon { width: 32px; height: 32px; }
    .btn-icon svg { width: 18px; height: 18px; }
}
