:root {
    /* Color Palette */
    --primary-solid: #0A192F;
    --primary-bg: #020c1b;
    --text-main: #ccd6f6;
    --text-muted: #8892b0;
    --accent-gold: #FFC000;
    --accent-gold-glow: rgba(255, 192, 0, 0.3);
    --accent-blue: #64ffda;
    --accent-blue-glow: rgba(100, 255, 218, 0.2);

    /* Glassmorphism */
    --glass-bg: rgba(10, 25, 47, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Typography */
    --font-heading: 'Cairo', sans-serif;
    --font-body: 'Tajawal', sans-serif;

    /* Spacing & Layout */
    --container-max: 1200px;
    --radius-lg: 24px;
    --radius-md: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Background Animations */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 20%, var(--primary-bg) 100%);
    z-index: 2;
    pointer-events: none;
}

.content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
}

/* Reusable Components */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg);
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-gold), #ffde59);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.highlight {
    color: var(--accent-blue);
    font-weight: 600;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container img {
    height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-container:hover img {
    transform: scale(1.05);
}

/* The Afnan logo is black, so it might need a white glow or background to be visible on dark bg */
.bg-white-rounded {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-gold);
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn,
.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent-gold), #ffde59);
    color: #000;
    box-shadow: 0 0 20px var(--accent-gold-glow);
    border: none;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--accent-gold-glow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
}

.btn-outline:hover {
    background: var(--accent-blue-glow);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
}

.hero-content {
    max-width: 900px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.partnership-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.badge-img-wrapper {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.connection-icon {
    font-size: 3rem;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.connection-icon.pulse {
    animation: pulse 2s infinite ease-in-out;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
}

/* Features Section */
.features {
    padding: 100px 20px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-top: 2px solid var(--accent-gold);
    background: rgba(10, 25, 47, 0.8);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    color: var(--accent-blue);
    text-shadow: 0 0 20px var(--accent-blue-glow);
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Footer */
.footer {
    padding: 30px 20px;
    text-align: center;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-width: var(--container-max);
    margin: 0 auto;
    border-bottom: none;
}

.footer-agent {
    margin-top: 10px;
    color: var(--accent-gold);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-phones {
    margin-top: 8px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
}

.footer-phones a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.footer-phones a:hover {
    color: var(--accent-gold);
}

.footer-website {
    margin-top: 8px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
}

.footer-website a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-website a:hover {
    opacity: 0.8;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
        text-shadow: 0 0 20px var(--accent-gold);
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-20deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% {
        left: 200%;
    }
}

/* Reveal Elements on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        display: none;
        /* simple mobile fix, or switch to hamburger */
    }

    .hero {
        padding-top: 160px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .partnership-badges {
        flex-direction: column;
        gap: 15px;
    }

    .connection-icon {
        transform: rotate(90deg);
    }

    .connection-icon.pulse {
        animation: pulseMobile 2s infinite ease-in-out;
    }
}

@keyframes pulseMobile {
    0% {
        transform: scale(1) rotate(90deg);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1) rotate(90deg);
        opacity: 1;
        text-shadow: 0 0 20px var(--accent-gold);
    }

    100% {
        transform: scale(1) rotate(90deg);
        opacity: 0.8;
    }
}