/* =============================================
   Cloud Horizons Research & Studies Center
   مركز آفاق السحاب للبحوث والدراسات
   Global Styles
   ============================================= */

/* ---------- CSS Custom Properties ---------- */
:root {
    --color-bg-primary: #0B1929;
    --color-bg-secondary: #0F2135;
    --color-bg-tertiary: #132A42;
    --color-bg-card: #142D47;
    --color-accent: #5AAFCC;
    --color-accent-light: #7CC5DD;
    --color-accent-dark: #3D8FAF;
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #B0C4D8;
    --color-text-muted: #6A8AA5;
    --color-border: rgba(90, 175, 204, 0.15);
    --color-border-hover: rgba(90, 175, 204, 0.35);
    --color-glass: rgba(11, 25, 41, 0.75);
    --color-glass-light: rgba(90, 175, 204, 0.08);
    --color-success: #4ADE80;
    --color-warning: #FBBF24;
    --color-error: #F87171;

    --font-primary: 'Inter', 'Tajawal', sans-serif;
    --font-arabic: 'Tajawal', 'Inter', sans-serif;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(90, 175, 204, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent-dark) var(--color-bg-primary);
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--color-accent-dark);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* ---------- Utility Classes ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-text-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 600px;
}

.text-center {
    text-align: center;
}

.text-accent {
    color: var(--color-accent);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: var(--color-bg-primary);
    box-shadow: 0 4px 15px rgba(90, 175, 204, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(90, 175, 204, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn-outline:hover {
    background: var(--color-accent);
    color: var(--color-bg-primary);
    transform: translateY(-2px);
}

/* ---------- Glass Card ---------- */
.glass-card {
    background: var(--color-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all var(--transition-normal);
}

.glass-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

/* ---------- Floating Particles Background ---------- */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0.15;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.15;
    }
    90% {
        opacity: 0.15;
    }
    100% {
        transform: translateY(-100px) rotate(720deg);
        opacity: 0;
    }
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease forwards;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Placeholder Page Styles (for team members) ---------- */
.placeholder-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}

.placeholder-content {
    max-width: 600px;
}

.placeholder-content .icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.placeholder-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-text-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.placeholder-content p {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.placeholder-content .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    background: var(--color-glass-light);
    border: 1px solid var(--color-border);
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 500;
}

.placeholder-content .status-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-warning);
    animation: pulse 2s infinite;
}

.placeholder-sections {
    margin-top: 3rem;
    text-align: left;
}

.placeholder-sections h3 {
    font-size: 1.1rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.placeholder-sections ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.placeholder-sections li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text-secondary);
    padding: 0.75rem 1rem;
    background: var(--color-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.placeholder-sections li .check {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }

    .section {
        padding: 3rem 0;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }
}

/* ---------- RTL Global Support ---------- */
[dir="rtl"] body {
    font-family: var(--font-arabic);
}

[dir="rtl"] .placeholder-sections {
    text-align: right;
}

[dir="rtl"] .footer-column h4::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .footer-column ul li a:hover {
    padding-left: 0;
    padding-right: 5px;
}

[dir="rtl"] .footer-column ul li a .arrow {
    transform: scaleX(-1);
}

