/* =======================
   CSS Variables & Reset
======================= */
:root {
    /* Color Palette */
    --bg-dark: #050508;
    --bg-surface: #0e0e14;
    --bg-surface-lighter: #16161f;
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    
    /* Neons & Accents */
    --neon-blue: #00f3ff;
    --neon-blue-dim: rgba(0, 243, 255, 0.15);
    --neon-violet: #b026ff;
    --neon-violet-dim: rgba(176, 38, 255, 0.15);
    
    /* Glass & Borders */
    --glass-bg: rgba(22, 22, 31, 0.45);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 16px;
    
    /* Typography */
    --font-primary: 'Cairo', sans-serif;
    
    /* Spacing */
    --section-pad: 100px 0;
    --container-max: 1280px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    direction: rtl; /* Enforce RTL globally */
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #2a2a35;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-blue);
}

/* =======================
   Typography & Gradients
======================= */
h1, h2, h3, h4 {
    color: var(--text-main);
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-violet));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

p {
    color: var(--text-muted);
    font-weight: 300;
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition-smooth);
}

/* =======================
   Layout & Utility
======================= */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.section {
    padding: var(--section-pad);
    position: relative;
}

.bg-dim {
    background-color: rgba(10, 10, 15, 0.6);
}

/* Background Ambient Glows */
.ambient-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
}
.glow-blue {
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, var(--neon-blue-dim), transparent 60%);
}
.glow-violet {
    top: 30%;
    right: -20%;
    background: radial-gradient(circle, var(--neon-violet-dim), transparent 60%);
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.glass-panel-flat {
    background: rgba(14, 14, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    backdrop-filter: blur(10px);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-dark);
}

.btn-primary:hover, .glow-btn:hover {
    box-shadow: 0 0 25px var(--neon-blue-dim), 0 0 10px var(--neon-blue);
    transform: translateY(-2px);
    background: var(--text-main);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-small {
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* =======================
   Navigation
======================= */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 100;
    padding: 0;
    border-radius: 30px;
    transition: var(--transition-smooth);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.logo span {
    color: var(--neon-blue);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}
.nav-links a {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-muted);
    position: relative;
}
.nav-links a:hover {
    color: var(--text-main);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--neon-blue);
    transition: var(--transition-smooth);
}
.nav-links a:hover::after {
    width: 100%;
}

/* =======================
   Hero Section
======================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg .bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-bg .video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--bg-dark), rgba(5,5,8,0.5), var(--bg-dark));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    max-width: 650px;
    margin-bottom: 20px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* =======================
   Gallery Section
======================= */
.section-header {
    margin-bottom: 60px;
}
.section-header.center {
    text-align: center;
}
.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 16px;
}
.section-desc {
    font-size: 1.1rem;
    max-width: 600px;
}
.section-header.center .section-desc {
    margin: 0 auto;
}

/* Masonry Fallback to CSS Columns */
.masonry-wrap {
    column-count: 3;
    column-gap: 24px;
}

@media (max-width: 1024px) {
    .masonry-wrap { column-count: 2; }
}
@media (max-width: 640px) {
    .masonry-wrap { column-count: 1; }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 24px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-surface);
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.item-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    border-radius: 12px;
}

.item-info h3 {
    font-size: 1.1rem;
    font-weight: 500;
}

.play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--text-main);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.play-icon {
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-left: 10px solid var(--bg-dark);
    border-bottom: 6px solid transparent;
    margin-left: 3px;
}

.masonry-item:hover img {
    transform: scale(1.05);
}

.masonry-item:hover .item-info {
    opacity: 1;
    transform: translateY(0);
}

.play-btn:hover {
    background: var(--neon-blue);
    box-shadow: 0 0 15px var(--neon-blue);
}

/* =======================
   Concepts Section
======================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.concept-card {
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--neon-violet-dim);
    filter: blur(60px);
    top: -50px;
    right: -50px;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.concept-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
}

.concept-card:hover .card-glow {
    background: var(--neon-blue-dim);
    transform: scale(1.2);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.card-text {
    margin-bottom: 24px;
    color: var(--text-muted);
}

.card-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.card-link:hover {
    color: var(--text-main);
    text-shadow: 0 0 8px var(--neon-blue);
}

/* =======================
   Vision / About
======================= */
.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.vision-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 24px;
    color: var(--text-main);
}

.vision-p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.stats-row {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
}

.stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    background: linear-gradient(90deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* Visual Orb Animation */
.visual-orb {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orb-core {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--neon-blue), var(--neon-violet));
    border-radius: 50%;
    box-shadow: 0 0 60px var(--neon-violet), inset 0 0 30px #fff;
    animation: orbPulse 4s infinite alternate;
}

.orb-ring {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.ring-1 {
    width: 300px;
    height: 300px;
    border-top-color: var(--neon-blue);
    animation: ringSpin 10s linear infinite;
}

.ring-2 {
    width: 450px;
    height: 450px;
    border-bottom-color: var(--neon-violet);
    animation: ringSpin 15s linear infinite reverse;
}

@keyframes orbPulse {
    0% { transform: scale(0.9); box-shadow: 0 0 40px var(--neon-violet); }
    100% { transform: scale(1.1); box-shadow: 0 0 80px var(--neon-blue); }
}

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

@media (max-width: 900px) {
    .vision-grid { grid-template-columns: 1fr; }
    .visual-orb { max-width: 400px; margin: 0 auto; }
}

/* =======================
   Footer
======================= */
.border-top {
    border-top: 1px solid var(--glass-border);
}

.footer {
    padding: 80px 0 30px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 350px;
}

.footer-desc {
    margin: 20px 0;
    font-size: 0.95rem;
}

.footer-email {
    font-size: 1.1rem;
    font-weight: 500;
}

.footer-links-group h4 {
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 1px;
}

.footer-links-group a {
    display: block;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links-group a:hover {
    color: var(--neon-blue);
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =======================
   Animations & Reveals
======================= */
.reveal {
    opacity: 0;
}

.reveal.active {
    opacity: 1;
}

.fade-up {
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.fade-up.active {
    transform: translateY(0);
}

.fade-left {
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.fade-left.active {
    transform: translateX(0);
}

.fade-right {
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.fade-right.active {
    transform: translateX(0);
}

.scale-in {
    transform: scale(0.95);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.scale-in.active {
    transform: scale(1);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 2.5rem; }
    .section { padding: 60px 0; }
}

/* =======================
   Pricing Section
======================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    padding: 50px 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: center;
    border-radius: 24px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-header {
    margin-bottom: 30px;
}

.package-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.price-amount {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 20px;
}

.price-amount .currency {
    font-size: 1.5rem;
    font-weight: 500;
    margin-top: 5px;
    margin-right: 5px;
    color: var(--text-muted);
}

.price-amount .amount {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    color: var(--text-main);
    background: linear-gradient(90deg, #fff, var(--neon-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.package-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    text-align: right;
    margin-bottom: 40px;
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 16px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    color: var(--text-main);
}

.check-icon {
    color: var(--neon-blue);
    margin-left: 12px;
    font-weight: bold;
    font-size: 1.2rem;
}

.full-width {
    width: 100%;
}

/* Premium Package Styling */
.premium-card {
    border-color: rgba(176, 38, 255, 0.4);
    box-shadow: 0 10px 50px rgba(176, 38, 255, 0.1);
}

.premium-card:hover {
    border-color: var(--neon-violet);
}

.premium-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-violet));
    color: #fff;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(176, 38, 255, 0.4);
}

.premium-glow {
    top: -80px;
    right: 50%;
    transform: translateX(50%);
    width: 250px;
    height: 250px;
    background: var(--neon-violet-dim);
    filter: blur(80px);
}

.premium-card .glow-check {
    color: var(--neon-violet);
    text-shadow: 0 0 10px var(--neon-violet);
}

/* Updated List styles for Concepts / Services */
.service-list {
    list-style: none;
    margin-top: 16px;
    text-align: right;
    color: var(--text-muted);
}

.service-list li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* =======================
   Floating Support Bubble
======================= */
.support-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px; /* Right aligned, even in RTL it usually stays bottom-right or bottom-left depending on preference. Right is standard for WP. */
    width: 60px;
    height: 60px;
    background: #25D366; /* WhatsApp Green */
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulseGlow 2s infinite;
}

.support-bubble:hover {
    transform: scale(1.1) rotate(5deg);
    color: #fff;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.support-bubble svg {
    display: block;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .support-bubble {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .support-bubble svg {
        width: 24px;
        height: 24px;
    }
}
