@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Cairo:wght@200..1000&display=swap');

:root {
    /* Modern Vibrant Brand System */
    --primary: #0099ff; /* Vibrant Azure */
    --primary-glow: rgba(0, 153, 255, 0.4);
    --secondary: #050816; /* Deep Midnight Navy */
    --bg-light: #f8fafc; /* Clean White/Gray */
    --bg-dark: #050816;
    --text-main: #1e293b; /* Dark Slate for White BG */
    --text-muted: #64748b;
    --text-white: #ffffff;
    --glass: rgba(5, 8, 22, 0.95);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[dir="ltr"] { --font-main: 'Outfit', sans-serif; }
[dir="rtl"] { --font-main: 'Cairo', sans-serif; }

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

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Premium Preloader --- */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-logo {
    width: 100px;
    animation: loaderPulse 1.5s infinite ease-in-out;
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(0.9); opacity: 0.5; filter: drop-shadow(0 0 0px var(--primary)); }
    50% { transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 30px var(--primary-glow)); }
}

/* --- Hybrid Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    background: transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: var(--glass);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo img { display: none; } /* Removing broken image */

.logo-mark {
    width: 32px;
    height: 32px;
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.brand-text {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-links a:hover, .nav-links a.active {
    opacity: 1;
    color: var(--primary);
}

.btn-contact-nav {
    background: var(--primary);
    color: white !important;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 20px var(--primary-glow);
    opacity: 1 !important;
}

/* --- "Cool" Hero Slider --- */
.hero-slider-wrapper {
    height: 100vh;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.hero-slide {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 180px; /* Refined spacing fix */
    padding-bottom: 60px;
}

/* Artistic: Cinematic Light Leak */
.hero-light-leak {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(0, 153, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
    animation: lightLeakMove 15s infinite alternate linear;
}

@keyframes lightLeakMove {
    0% { transform: scale(1) translate(0, 0); opacity: 0.3; }
    50% { transform: scale(1.2) translate(50px, 30px); opacity: 0.5; }
    100% { transform: scale(1) translate(-30px, -20px); opacity: 0.3; }
}

/* Typewriter Brand Identity */
.hero-brand-line {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 2.5rem;
    display: block;
    position: relative;
    opacity: 0;
}

.hero-brand-line .cursor {
    display: inline-block;
    width: 2px;
    height: 1.1rem;
    background: var(--primary);
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 850px;
    margin-bottom: 3rem; /* Safety from bottom */
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem); /* Elegant Studio Size */
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2rem;
    color: white;
    letter-spacing: -0.01em;
}

.hero-title span {
    color: var(--primary);
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-white);
    opacity: 0.7;
    margin-bottom: 3.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* Slide Parallax Background */
.slide-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) saturate(1.2);
}

/* --- Clean Modern Sections (Practical) --- */
.practical-section {
    padding: 120px 0;
    background: var(--bg-light);
}

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

.section-title-wrapper span {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.section-title-wrapper h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.practical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.practical-card {
    background: white;
    padding: 3.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.03);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}

.practical-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary);
    transform: scaleX(0);
    transition: 0.4s ease;
}

.practical-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 40px 80px rgba(0,0,0,0.08);
}

.practical-card:hover::after {
    transform: scaleX(1);
}

.practical-card i {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 2.5rem;
    display: block;
}

.practical-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.practical-card p {
    color: var(--text-muted);
}

/* Footer Section */
.premium-footer {
    padding: 120px 0 60px;
    background: var(--bg-dark);
    color: white;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 80px;
    border-bottom: 1px solid var(--glass-border);
}

.footer-social {
    display: flex;
    gap: 1.2rem;
    margin-top: 2rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--primary-glow);
    border-color: var(--primary);
}

/* Success Partners Section */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
}

.partner-card {
    background: white;
    padding: 3.5rem 2rem;
    border-radius: 32px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.01);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
}

.partner-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px rgba(0, 153, 255, 0.08); /* Azure Glow */
    border-color: var(--primary);
}

.partner-logo-wrapper {
    height: 90px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.partner-logo {
    max-height: 85px;
    max-width: 90%;
    object-fit: contain;
    transition: 0.5s ease;
    opacity: 0.6;
    filter: grayscale(1);
}

.partner-card:hover .partner-logo {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.1);
}

.partner-info {
    width: 100%;
    transition: 0.4s ease;
}

.partner-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.01em;
}

.partner-region-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    font-weight: 700;
    background: rgba(0, 153, 255, 0.05);
    padding: 6px 16px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
}

.partner-link {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
    position: relative;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.5s ease;
}

.partner-card:hover .partner-link {
    opacity: 1;
    transform: translateY(0);
}

/* Global Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 0.95rem 2.8rem; /* Refined Sleek Size */
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 10px 25px var(--primary-glow);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px var(--primary-glow);
}

.btn-secondary {
    background: transparent;
    color: white;
    text-decoration: none;
    padding: 0.95rem 2.8rem; /* Refined Sleek Size */
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    border: 2px solid rgba(255,255,255,0.2);
    transition: var(--transition);
}

@media (max-width: 1024px) {
    .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .footer-main { grid-template-columns: 1fr; }
    .hero-title { font-size: 3rem; }
}
