/* Premium Design System - Emlak */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&family=Outfit:wght@300;400;600;700;800&display=swap');

:root {
    /* Premium Color Palette */
    --primary-main: #3b82f6;
    /* Vibrant Blue */
    --primary-glow: #60a5fa;
    --secondary-main: #8b5cf6;
    /* Violet */
    --accent-gold: #f59e0b;
    /* Premium Gold */
    --accent-glow: #fbbf24;

    /* Backgrounds - Deep Space Theme */
    --bg-dark: #020617;
    /* Slate 950 */
    --bg-card: rgba(15, 23, 42, 0.6);
    /* Slate 900 + Opacity */
    --bg-card-hover: rgba(30, 41, 59, 0.8);

    /* Typography */
    --font-en: 'Outfit', sans-serif;
    --font-ar: 'Cairo', sans-serif;
}

/* Global Styles */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: white;
    font-family: var(--font-en);
    overflow-x: hidden;
}

[dir="rtl"] body {
    font-family: var(--font-ar);
}

/* Glassmorphism Utilities */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
    transform: translateY(-5px);
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Navbar */
.nav-blur {
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center top, rgba(59, 130, 246, 0.2), transparent 60%);
    z-index: -1;
}

/* Phone Mockup Container */
.phone-mockup-wrapper {
    perspective: 1000px;
}

.phone-mockup {
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.5);
    border-radius: 55px;
    /* Updated for iPhone 15 Pro Max roundness */
    /* Border is often handled by utility classes, but we can enforce here if needed */
    overflow: hidden;
}

.phone-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.dynamic-island {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 95px;
    height: 26px;
    background-color: #000;
    border-radius: 999px;
    z-index: 30;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Button Upgrades */
.btn-premium {
    background: linear-gradient(135deg, var(--primary-main), var(--secondary-main));
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--secondary-main), var(--primary-main));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-premium:hover::before {
    opacity: 1;
}

.btn-premium:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    transform: scale(1.02);
}

/* Service Page Specifics */
.service-icon-lg {
    font-size: 3rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Smart App Banner */
.app-install-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    display: none;
    /* Managed by JS */
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.app-install-banner.show {
    transform: translateY(0);
    display: flex;
    justify-content: space-between;
}

body.banner-active {
    padding-top: 64px;
}

/* Family ID Section */
.family-id-section {
    position: relative;
    overflow: hidden;
}

.family-qr-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.3), transparent 70%);
    filter: blur(40px);
    z-index: 0;
}