/* 
   uipro (UI/UX Pro Max) Design System
   Parallis: AI Dream Simulator - Official Web Showcase
   Palette: Dark Obsidian, Glassmorphism, Luxury Gold Gradients & 528Hz Quantum Glow
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-main: #07070A;
    --bg-surface: #0E0E14;
    --bg-card: rgba(18, 18, 26, 0.72);
    --bg-card-hover: rgba(28, 28, 40, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.04);
    
    --gold-primary: #D4AF37;
    --gold-light: #FCE881;
    --gold-dark: #997A15;
    --gold-gradient: linear-gradient(135deg, #FFF099 0%, #D4AF37 50%, #997A15 100%);
    --gold-glow: rgba(212, 175, 55, 0.35);
    --purple-glow: rgba(147, 51, 234, 0.3);
    
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.78);
    --text-muted: rgba(255, 255, 255, 0.48);
    
    --border-gold: rgba(212, 175, 55, 0.25);
    --border-subtle: rgba(255, 255, 255, 0.08);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 9999px;
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-gold: 0 12px 40px -10px rgba(212, 175, 55, 0.35);
    --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.65);
    --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* RTL Support for Arabic */
[dir="rtl"] {
    font-family: 'Outfit', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
[dir="rtl"] .nav-links {
    margin-right: auto;
    margin-left: 0;
}
[dir="rtl"] .hero-badge i,
[dir="rtl"] .btn i {
    margin-left: 8px;
    margin-right: 0;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 528Hz Interactive Quantum Canvas */
#quantum-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.65;
}

/* Background Glowing Orbs */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.22;
}

.bg-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--gold-primary);
    top: -120px;
    left: -120px;
}

.bg-orb-2 {
    width: 500px;
    height: 500px;
    background: #7E22CE;
    bottom: -100px;
    right: -100px;
}

/* Navigation Bar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 7, 10, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 14px 0;
    transition: var(--transition);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-icon-img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--gold-glow);
}

.logo-badge {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.45rem;
    font-weight: 900;
}

.logo span.sub {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-light);
    border: 1px solid var(--border-gold);
    padding: 2px 7px;
    border-radius: var(--radius-pill);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    white-space: nowrap;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}

.nav-links a:hover {
    color: var(--gold-light);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-gradient);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

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

/* Language Switcher */
.lang-dropdown {
    position: relative;
    flex-shrink: 0;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.lang-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--gold-light);
    box-shadow: 0 0 15px var(--gold-glow);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #12121A;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card), 0 0 20px rgba(0,0,0,0.8);
    min-width: 170px;
    display: none;
    flex-direction: column;
    padding: 6px;
    z-index: 1001;
    backdrop-filter: blur(20px);
}

[dir="rtl"] .lang-menu {
    right: auto;
    left: 0;
}

.lang-menu.show {
    display: flex;
    animation: fadeInDown 0.25s ease-out;
}

.lang-option {
    padding: 10px 14px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-option:hover {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--transition);
    border: none;
    line-height: 1.2;
}

.btn-gold {
    background: var(--gold-gradient);
    color: #000000;
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 45px -8px rgba(212, 175, 55, 0.55);
    filter: brightness(1.08);
}

.btn-glass {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    color: var(--text-primary);
    backdrop-filter: blur(12px);
}

.btn-glass:hover {
    background: var(--bg-card-hover);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    color: var(--gold-light);
}

/* Hero Section */
.hero {
    position: relative;
    z-index: 1;
    padding: 150px 0 90px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid var(--border-gold);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    color: var(--gold-light);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.18);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5.2vw, 4rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 22px;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 .highlight {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 760px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Feature Spec Bar */
.hero-specs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.spec-item i {
    color: var(--gold-primary);
}

/* 8K Interactive Simulation Showcase */
.section {
    position: relative;
    z-index: 1;
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 3.8vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.section-title p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto;
}

/* Showcase Tabs */
.showcase-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.showcase-tab {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.showcase-tab:hover {
    border-color: var(--border-gold);
    color: var(--text-primary);
}

.showcase-tab.active {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold-primary);
    color: var(--gold-light);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}

/* Showcase Display Card */
.showcase-display {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card), 0 0 50px rgba(212, 175, 55, 0.15);
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    min-height: 520px;
    align-items: stretch;
}

.showcase-image-wrapper {
    position: relative;
    overflow: hidden;
    min-height: 380px;
}

.showcase-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.showcase-display:hover .showcase-image-wrapper img {
    transform: scale(1.03);
}

.showcase-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.75) 100%);
    pointer-events: none;
}

.showcase-badge-8k {
    position: absolute;
    top: 18px;
    left: 18px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid var(--gold-primary);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    color: var(--gold-light);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

.showcase-content {
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(20,20,28,0.95) 0%, rgba(12,12,18,0.98) 100%);
    box-sizing: border-box;
}

.showcase-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-primary);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.showcase-content h3 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.25;
}

.showcase-content p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.showcase-prompt-box {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border-subtle);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.prompt-label {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.prompt-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.45;
}

/* iPhone 16 Pro Mockup Section */
.mockup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 30px;
}

.mockup-phone {
    position: relative;
    width: 310px;
    height: 620px;
    margin: 0 auto;
    background: #000000;
    border-radius: 52px;
    border: 8px solid #2B2B36;
    box-shadow: 0 25px 60px rgba(0,0,0,0.8), 0 0 40px var(--gold-glow);
    padding: 10px;
    overflow: hidden;
}

.mockup-screen {
    width: 100%;
    height: 100%;
    border-radius: 40px;
    background: #0B0B0F;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.mockup-island {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 86px;
    height: 22px;
    background: #000000;
    border-radius: 20px;
    z-index: 10;
}

.mockup-ui-card {
    margin: 36px 12px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 18px;
    padding: 16px;
    text-align: center;
}

.mockup-portal-orb {
    width: 110px;
    height: 110px;
    margin: 8px auto;
    border-radius: 50%;
    background: radial-gradient(circle, #FFE066 0%, #D4AF37 40%, #7E22CE 100%);
    box-shadow: 0 0 35px var(--gold-glow);
    animation: rotatePortal 8s linear infinite;
}

@keyframes rotatePortal {
    0% { transform: rotate(0deg) scale(0.96); }
    50% { transform: rotate(180deg) scale(1.04); }
    100% { transform: rotate(360deg) scale(0.96); }
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 20px;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px 26px;
    backdrop-filter: blur(16px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-gold);
    transform: translateY(-6px);
    box-shadow: var(--shadow-gold);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold-gradient);
    opacity: 0;
    transition: var(--transition);
}

.glass-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    font-size: 1.3rem;
}

.glass-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
}

.glass-card p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.6;
}

/* Desktop QR Code Modal */
.qr-floating-box {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    background: rgba(18, 18, 26, 0.94);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 14px;
    box-shadow: var(--shadow-card), 0 0 30px rgba(0,0,0,0.8);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeInUp 0.4s ease-out;
}

[dir="rtl"] .qr-floating-box {
    right: auto;
    left: 24px;
}

.qr-code-img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: #FFFFFF;
    padding: 4px;
}

.qr-info h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 2px;
}

.qr-info p {
    font-size: 0.76rem;
    color: var(--text-muted);
}

.qr-close {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-left: 4px;
    transition: var(--transition);
}

.qr-close:hover {
    color: #FFFFFF;
}

/* FAQ Section */
.faq-list {
    max-width: 840px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--border-gold);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.faq-icon {
    font-size: 0.85rem;
    color: var(--gold-primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.65;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Footer */
footer {
    position: relative;
    z-index: 1;
    background: #040406;
    border-top: 1px solid var(--border-subtle);
    padding: 50px 0 35px;
    margin-top: 50px;
}

.footer-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 20px;
    list-style: none;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold-light);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Media Queries */
@media (max-width: 1080px) {
    .nav-links {
        gap: 14px;
    }
    .nav-links a {
        font-size: 0.85rem;
    }
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .showcase-display {
        grid-template-columns: 1fr;
    }
    .mockup-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 820px) {
    .nav-links {
        display: none;
    }
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .qr-floating-box {
        display: none;
    }
    .hero {
        padding: 110px 0 50px;
    }
    .showcase-content {
        padding: 24px 18px;
    }
}
