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

:root {
    --primary: #A179F3;    /* Purple */
    --secondary: #FDD901;  /* Yellow */
    --accent: #FF6E47;     /* Coral */
    --dark: #161616;       /* Deep Black */
    --white: #FFFFFF;
    --bg-soft: #F4F4F4;
    --text-dark: #161616;
    --text-muted: #666666;
    --border-radius: 2rem;
    --btn-radius: 6.25rem;
    --section-padding: 8rem 0;
    --font-ar: 'Tajawal', sans-serif;
    --font-en: 'Raleway', sans-serif;
}

/* --- Bootstrap Overrides --- */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.text-accent { color: var(--accent) !important; }
.bg-accent { background-color: var(--accent) !important; }
.btn-primary { background-color: var(--primary) !important; border-color: var(--primary) !important; color: var(--dark) !important; }
.btn-outline-primary { border-color: var(--primary) !important; color: var(--primary) !important; }
.btn-outline-primary:hover { background-color: var(--primary) !important; color: var(--dark) !important; }

body {
    font-family: var(--font-en);
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

body.rtl {
    font-family: var(--font-ar);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-en);
    font-weight: 800;
    letter-spacing: -0.03em;
}

body.rtl h1, body.rtl h2, body.rtl h3, body.rtl h4, body.rtl h5, body.rtl h6 {
    font-family: var(--font-ar);
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-yellow { color: var(--secondary) !important; }
.text-coral { color: var(--accent) !important; }
.bg-dark-noetic { background-color: var(--dark) !important; color: var(--white) !important; }

/* --- Premium Background Effects --- */
.bg-mesh {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: 
        radial-gradient(at 0% 0%, rgba(161, 121, 243, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(253, 217, 1, 0.1) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(255, 110, 71, 0.05) 0px, transparent 50%);
    pointer-events: none;
}

/* --- Organic Shapes --- */
.organic-shape {
    position: absolute;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.3;
}

/* --- Navbar --- */
.navbar {
    padding: 1.5rem 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(22, 22, 22, 0.9) !important;
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .logo-dark { display: none !important; }
.navbar.scrolled .logo-light { display: block !important; }

.navbar.scrolled .nav-link { color: rgba(255,255,255,0.8) !important; }

/* --- Nav Links Premium Hover --- */
.nav-link {
    position: relative;
    font-weight: 700;
}

.nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 5px;
    left: 50%;
    background-color: var(--secondary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 10px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.lang-switcher .nav-link::after {
    display: none;
}

.fs-7 { font-size: 0.8rem; }

/* --- Buttons --- */
.btn-premium {
    background: var(--primary);
    color: var(--dark) !important;
    padding: 1rem 3rem;
    border-radius: var(--btn-radius);
    font-weight: 800;
    border: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 0px 0px rgba(161, 121, 243, 0.3);
}

.btn-premium:hover {
    transform: translateY(-5px);
    background: var(--secondary);
    box-shadow: 0 15px 0px 0px rgba(253, 217, 1, 0.3);
}

.btn-coral {
    background: var(--accent);
    box-shadow: 0 10px 0px 0px rgba(255, 110, 71, 0.3);
}

/* --- Cards --- */
.noetic-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem;
    border: 2px solid var(--dark);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    box-shadow: 10px 10px 0px 0px var(--dark);
}

.noetic-card:hover {
    transform: translate(-8px, -8px) rotate(-1deg);
    box-shadow: 18px 18px 0px 0px var(--primary);
    border-color: var(--dark);
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Section Heading --- */
.section-tag {
    background: var(--secondary);
    color: var(--dark);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-weight: 800;
    font-size: 0.75rem;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 2px solid var(--dark);
}

/* --- Footer --- */
.footer-noetic {
    background: var(--dark);
    color: var(--white);
    padding: 8rem 0 3rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-link:hover {
    color: var(--secondary);
}

.social-circle {
    width: 50px;
    height: 50px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-circle:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
    transform: rotate(10deg) scale(1.1);
}

/* --- Custom Spacing --- */
section {
    padding: 10rem 0;
}

.mt-100 { margin-top: 6rem; }

.grayscale {
    filter: grayscale(1);
    transition: all 0.3s ease;
}

.grayscale:hover {
    filter: grayscale(0);
}

/* --- Custom Cursor --- */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 999999;
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
    opacity: 1 !important; /* Force visibility */
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary);
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

.cursor-hover .cursor-dot {
    width: 12px;
    height: 12px;
    background-color: var(--secondary);
}

.cursor-hover .cursor-outline {
    width: 60px;
    height: 60px;
    border-color: var(--secondary);
    background-color: rgba(253, 217, 1, 0.1);
}

/* Hide default cursor on desktop */
@media (min-width: 992px) {
    body, a, button, .btn, .clickable {
        cursor: none !important;
    }
}

/* --- Scroll Progress Bar --- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 99999;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px var(--primary);
    transition: width 0.1s linear;
}

/* --- Footer --- */
.footer-noetic {
    background-color: var(--dark);
    padding: 3.5rem 0 2rem;
    color: white;
    border-top: 4px solid var(--dark);
}

.footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 6px 0;
    transition: all 0.25s ease;
}

.footer-link:hover {
    color: var(--primary);
    padding-left: 4px;
}

.social-circle {
    width: 42px;
    height: 42px;
    border-radius: 0.75rem;
    border: 2px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255,255,255,0.05);
}

.social-circle:hover {
    background: var(--primary);
    border-color: var(--dark);
    color: var(--dark);
    box-shadow: 4px 4px 0 var(--primary);
    transform: translate(-2px, -2px);
}

/* --- Back To Top Button --- */
.back-to-top {
    position: fixed;
    right: 40px;
    bottom: 40px;
    width: 65px;
    height: 65px;
    background: var(--primary);
    border: 4px solid var(--dark);
    border-radius: 1.5rem;
    box-shadow: 8px 8px 0 var(--dark);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 99999;
    opacity: 1;
    pointer-events: all;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    transform: translateY(-5px) rotate(-5deg);
    box-shadow: 10px 10px 0 var(--dark);
    background: var(--secondary);
}

/* --- Marquee Banner --- */
.marquee-container {
    background: var(--secondary);
    border-top: 4px solid var(--dark);
    border-bottom: 4px solid var(--dark);
    padding: 18px 0;
    overflow: hidden;
    display: flex;
    position: relative;
    z-index: 5;
}
.marquee-content {
    display: inline-flex;
    align-items: center;
    animation: marquee-scroll 28s linear infinite;
    white-space: nowrap;
    will-change: transform;
}
.marquee-container:hover .marquee-content { animation-play-state: paused; }
.marquee-text {
    font-family: 'Raleway', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    text-transform: uppercase;
    color: var(--dark);
    margin: 0 2rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}
.marquee-text::after {
    content: '★';
    color: var(--primary);
    font-size: 1rem;
}
@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* --- Branded Text Selection --- */
::selection {
    background-color: var(--secondary);
    color: var(--dark);
}
::-moz-selection {
    background-color: var(--secondary);
    color: var(--dark);
}
