/*
 * RoQay Theme Styles
 * Deep Navy, Electric Blue, Cyan, Soft Purple
 * RTL First Arabic Design
 */

:root {
    /* Colors */
    --clr-navy: #0B132B;
    --clr-navy-light: #1C2541;
    --clr-blue: #1C4ED8;
    --clr-cyan: #06B6D4;
    --clr-purple: #8B5CF6;
    --clr-gold: #F59E0B;
    --clr-white: #FFFFFF;
    --clr-gray-100: #F3F4F6;
    --clr-gray-200: #E5E7EB;
    --clr-gray-600: #4B5563;
    --clr-gray-900: #111827;

    /* Typography */
    --font-primary: 'Cairo', sans-serif;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --section-padding: 80px 0;
    
    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(6, 182, 212, 0.3);
    --transition: all 0.3s ease;
}

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-primary);
    background-color: var(--clr-gray-100);
    color: var(--clr-gray-600);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--clr-gray-900);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
}

a {
    color: var(--clr-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--clr-cyan);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: var(--section-padding);
}

.text-center { text-align: center; }
.mt-5 { margin-top: 3rem; }
.w-100 { width: 100%; }
.bg-light { background-color: var(--clr-white); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--clr-blue), var(--clr-cyan));
    color: var(--clr-white) !important;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--clr-navy) !important;
    border: 2px solid var(--clr-navy);
}

.btn-secondary:hover {
    background-color: var(--clr-navy);
    color: var(--clr-white) !important;
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--clr-white) !important;
    box-shadow: var(--shadow-md);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

/* Header */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.site-title {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--clr-navy), var(--clr-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    color: var(--clr-navy);
    font-weight: 600;
    font-size: 16px;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--clr-cyan);
    transition: var(--transition);
}

.main-navigation a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--clr-navy);
    position: relative;
}
.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--clr-navy);
    right: 0;
}
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Hero Section */
.hero-section {
    position: relative;
    padding: 180px 0 100px;
    background: var(--clr-navy) url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop') center/cover no-repeat;
    color: var(--clr-white);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 19, 43, 0.85); /* Navy overlay */
    z-index: 0;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(6, 182, 212, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.2) 0%, transparent 50%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-title {
    color: var(--clr-white);
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--clr-gray-200);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.hero-actions .btn-secondary {
    border-color: var(--clr-white);
    color: var(--clr-white) !important;
}
.hero-actions .btn-secondary:hover {
    background: var(--clr-white);
    color: var(--clr-navy) !important;
}

/* Mockup Visual */
.dashboard-mockup {
    background: var(--clr-navy-light);
    border-radius: 12px;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(6, 182, 212, 0.2);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    position: relative;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.dashboard-mockup:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.mockup-header {
    background: rgba(0,0,0,0.2);
    padding: 10px 15px;
    display: flex;
    gap: 8px;
    direction: ltr;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #555;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.mockup-body {
    display: flex;
    height: 300px;
}

.mockup-sidebar {
    width: 25%;
    background: rgba(255,255,255,0.02);
    border-right: 1px solid rgba(255,255,255,0.05); /* ltr due to direction */
}

.mockup-content {
    width: 75%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mockup-card {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.line-chart {
    height: 120px;
    background: linear-gradient(to top, rgba(6, 182, 212, 0.2) 0%, transparent 100%);
    border-bottom: 2px solid var(--clr-cyan);
    position: relative;
}

.line-chart::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, var(--clr-cyan) 0%, transparent 60%);
    top: 20px;
    left: 40px;
}

.mockup-row {
    display: flex;
    gap: 15px;
    flex: 1;
}

.stat-card {
    flex: 1;
}

.floating-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 25px;
    border-radius: 8px;
    color: var(--clr-white);
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Sections */
.section-heading {
    margin-bottom: 50px;
}

.section-heading h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--clr-navy);
}

.section-heading p {
    font-size: 1.1rem;
    color: var(--clr-gray-600);
}

/* Why RoQay */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--clr-white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--clr-cyan);
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

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

.product-card {
    background: var(--clr-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--clr-gray-200);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--clr-blue);
}

.product-icon {
    background: linear-gradient(135deg, var(--clr-navy), var(--clr-blue));
    color: var(--clr-white);
    font-size: 3rem;
    text-align: center;
    padding: 40px 0;
}

.product-card-content {
    padding: 30px;
}

.product-card-title {
    margin-bottom: 15px;
}

.product-card-title a {
    color: var(--clr-navy);
}

.product-card-excerpt {
    color: var(--clr-gray-600);
    margin-bottom: 20px;
}

.product-card-link {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* CTA */
.cta-container {
    background: linear-gradient(135deg, var(--clr-blue), var(--clr-navy));
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    color: var(--clr-white);
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    color: var(--clr-white);
    margin-bottom: 20px;
}

/* Footer */
.site-footer {
    background-color: var(--clr-navy);
    color: var(--clr-gray-200);
    padding: 60px 0 20px;
}

.footer-widget-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    color: var(--clr-white);
    margin-bottom: 20px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--clr-cyan) !important;
}

.links-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.links-widget li {
    margin-bottom: 10px;
}

.links-widget a {
    color: var(--clr-gray-200);
}

.links-widget a:hover {
    color: var(--clr-cyan);
    padding-right: 5px;
}

.site-info {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 14px;
}

/* Generic Pages */
.page-header {
    background: var(--clr-navy);
    color: var(--clr-white);
    padding: 150px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-title {
    color: var(--clr-white);
    font-size: 2.5rem;
}

.page-description {
    color: var(--clr-gray-200);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 20px auto 0;
}

.page-container {
    padding: 60px 20px;
    background: var(--clr-white);
    border-radius: 12px;
    margin-top: -40px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-md);
    margin-bottom: 80px;
}

/* Product Single Page */
.product-hero {
    background: var(--clr-navy);
    padding: 150px 0 100px;
    color: var(--clr-white);
    position: relative;
    overflow: hidden;
}

.product-hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    z-index: 2;
    position: relative;
}

.product-badge {
    background: rgba(6, 182, 212, 0.2);
    color: var(--clr-cyan);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid var(--clr-cyan);
}

.product-title {
    color: var(--clr-white);
    font-size: 3rem;
    margin-bottom: 20px;
}

.product-excerpt {
    font-size: 1.1rem;
    color: var(--clr-gray-200);
    margin-bottom: 30px;
}

.lg-mockup {
    height: 400px;
}

.lg-mockup .mockup-body {
    height: 360px;
}

.lg-chart {
    height: 200px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
}

.step-card {
    background: var(--clr-white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid var(--clr-gray-200);
}

.step-num {
    width: 50px;
    height: 50px;
    background: var(--clr-cyan);
    color: var(--clr-navy);
    font-weight: 800;
    font-size: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

/* Forms */
.demo-box {
    background: var(--clr-white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.demo-content {
    background: var(--clr-navy);
    color: var(--clr-white);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.demo-content h2 { color: var(--clr-white); margin-bottom: 20px;}
.demo-form-wrapper { padding: 60px 40px; }

.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--clr-gray-200);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 16px;
    background: var(--clr-gray-100);
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--clr-cyan);
    background: var(--clr-white);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

/* Animations */
.reveal-up, .reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-fade {
    opacity: 0;
    transition: opacity 0.8s ease;
}

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

.is-revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.product-image-container {
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--clr-navy), var(--clr-blue));
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-grid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-grid-img {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container, .product-hero-container, .demo-box {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }

    .main-navigation ul {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--clr-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
    }
    
    .main-navigation ul.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
    
    .header-actions {
        display: none;
    }
}
