:root {
    --primary-color: #00f2fe;
    --primary-light: #4facfe;
    --secondary-color: #1e293b;
    --accent-color: #fe7f2d;
    --text-dark: #f8f9fa;
    --text-light: #94a3b8;
    --bg-color: #0f172a;
    --glass-bg: rgba(15, 23, 42, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glassmorphism Utilities */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition);
}

.glass-nav.scrolled {
    padding: 0.5rem 5%;
    box-shadow: var(--glass-shadow);
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.logo-text {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.logo-sub {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(43, 122, 120, 0.3);
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(43, 122, 120, 0.4);
}

/* Sections */
.section {
    padding: 100px 5%;
    position: relative;
}

.bg-light {
    background-color: var(--secondary-color);
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color), #17252a);
    color: var(--text-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-header.text-white h2 {
    color: white;
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--accent-color);
    margin: 0 auto;
    border-radius: 2px;
}

.divider.white {
    background-color: var(--primary-light);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 5% 0;
    background: radial-gradient(circle at top left, var(--secondary-color), transparent 70%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 2;
    padding-left: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-image-container {
    flex: 1;
    position: relative;
    z-index: 1;
}

.hero-img {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    position: relative;
    z-index: 2;
    border: 1px solid var(--glass-border);
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 60%);
    opacity: 0.5;
    filter: blur(40px);
    z-index: 1;
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
}

.vision-card {
    text-align: center;
    font-size: 1.3rem;
}

.vision-card p {
    margin-bottom: 1.5rem;
}

.vision-card strong {
    color: var(--accent-color);
}

/* Grid & Features */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.text-block h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.text-block p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.feature-highlight {
    display: flex;
    justify-content: center;
}

.highlight-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 8px solid white;
    position: relative;
    transition: var(--transition);
}

.highlight-circle:hover {
    transform: rotate(5deg) scale(1.05);
}

.highlight-circle span {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Pillars Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.pillar-card {
    background: var(--secondary-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-top: 5px solid var(--primary-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(43, 122, 120, 0.15);
}

.pillar-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

.pillar-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.idea-list {
    list-style: none;
}

.idea-list li {
    margin-bottom: 0.8rem;
    padding-right: 1.5rem;
    position: relative;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.idea-list li:hover {
    color: var(--accent-color);
}

.idea-list li::before {
    content: '←';
    position: absolute;
    right: 0;
    top: 0;
    color: var(--accent-color);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: rgba(255,255,255,0.2);
    top: 0;
    bottom: 0;
    right: 50%;
    margin-right: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    right: 0;
}

.timeline-item:nth-child(even) {
    right: 50%;
}

.time-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--accent-color);
    border: 4px solid var(--primary-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even) .time-dot {
    right: -10px;
}

.time-content {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.time-content h4 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: right;
    color: var(--text-dark);
}

.close-btn {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--accent-color);
}

.modal-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpAnim 0.8s forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeInAnim 1s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInAnim {
    to { opacity: 1; }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   NEW UX SECTIONS (Sandbox, ROI, Roadmap, CTAs)
   ========================================= */

/* 1. Sandbox */
.sandbox-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: center;
}
.sandbox-room {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    border: 2px solid var(--primary-light);
}
.room-bg {
    width: 100%;
    display: block;
    filter: brightness(0.9);
}
.hotspot {
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(254, 127, 45, 0.8);
    z-index: 10;
}
.hotspot .pulse {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--accent-color);
    border-radius: 50%;
    animation: hotspotPulse 2s infinite;
    z-index: -1;
}
@keyframes hotspotPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}
.sandbox-info {
    padding: 2rem;
}
.sandbox-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* 2. ROI Calculator */
.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.calc-group {
    margin-bottom: 2rem;
}
.calc-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--primary-color);
}
.calc-group input[type="range"] {
    width: 100%;
    accent-color: var(--accent-color);
    height: 8px;
    border-radius: 5px;
    outline: none;
}
.calc-results {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.result-box {
    background: rgba(43, 122, 120, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--primary-light);
}
.result-box.accent {
    background: rgba(254, 127, 45, 0.1);
    border-color: var(--accent-color);
}
.result-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0.5rem 0;
}
.result-box.accent .result-number {
    color: var(--accent-color);
}

/* 3. Horizontal Roadmap */
.horizontal-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding-top: 40px;
}
.horizontal-timeline::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.2);
    z-index: 1;
}
.ht-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 10px;
}
.ht-icon {
    width: 50px;
    height: 50px;
    background: var(--text-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: -40px auto 1rem;
    border: 4px solid var(--primary-color);
    transition: var(--transition);
}
.ht-step.active .ht-icon, .ht-step:hover .ht-icon {
    background: var(--accent-color);
    transform: scale(1.1);
}
.ht-content h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* 4. Partnerships */
.partner-logos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.partner-placeholder {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed var(--primary-light);
    border-radius: 15px;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 200px;
    transition: var(--transition);
}
.partner-placeholder:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

/* 5. CTAs */
.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.cta-card {
    text-align: center;
    border-top: 5px solid var(--primary-color);
}
.cta-card.investor { border-color: #2b7a78; }
.cta-card.govt { border-color: #fe7f2d; }
.cta-card.parents { border-color: #3aafa9; }

/* Footer */
footer {
    background-color: #111;
    color: #aaa;
    text-align: center;
    padding: 3rem 5%;
}

footer p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 992px) {
    .grid-2-col {
        grid-template-columns: 1fr;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }
    
    .hero-content {
        padding-left: 0;
        margin-bottom: 3rem;
    }
    
    .hero p {
        margin: 0 auto 2rem;
    }
}

@media (max-width: 768px) {
    .glass-nav {
        flex-direction: column;
        padding: 10px 5%;
        gap: 8px;
    }
    .logo {
        align-items: center;
    }
    .logo-text {
        font-size: 1.5rem;
    }
    .nav-links {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        gap: 8px;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    .nav-links a {
        font-size: 0.65rem;
        white-space: nowrap;
    }
    .btn-lang {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
    .nav-login-btn {
        padding: 4px 8px !important;
        font-size: 0.65rem !important;
    }
    .logout-btn-red {
        background: #dc3545 !important;
        border-color: #dc3545 !important;
        color: white !important;
    }
    
    .timeline::after {
        right: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-right: 70px;
        padding-left: 20px;
    }
    
    .timeline-item:nth-child(even) {
        right: 0;
    }
    
    .timeline-item:nth-child(even) .time-dot, 
    .timeline-item:nth-child(odd) .time-dot {
        right: 21px;
    }
    
    .hero {
        padding: 130px 5% 1.5rem;
        min-height: auto;
    }
    
    .hero h1 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 0.75rem;
        margin-bottom: 1.2rem;
        line-height: 1.4;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .section-header h2 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .glass-card {
        padding: 1rem;
    }
    
    .glass-card p, .vision-card p, .feature-card p {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .feature-card h3 {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-text {
        font-size: 0.7rem;
    }
    
    .hero-img {
        max-width: 100%;
    }
}

/* Accessibility Tools */
.accessibility-panel {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
}

#a11y-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

#a11y-btn:hover {
    transform: scale(1.1);
    background-color: var(--primary-light);
}

.a11y-menu {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 200px;
    padding: 1rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    text-align: right;
}

.a11y-menu.show {
    display: flex;
    animation: fadeInAnim 0.3s forwards;
}

.a11y-menu h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.a11y-action {
    padding: 0.5rem;
    border: 1px solid var(--primary-light);
    background: transparent;
    color: var(--text-dark);
    cursor: pointer;
    border-radius: 5px;
    transition: var(--transition);
    font-family: inherit;
    font-weight: 600;
}

.a11y-action:hover {
    background: var(--primary-light);
    color: white;
}

/* High Contrast Mode */
body.high-contrast {
    --primary-color: #000;
    --primary-light: #333;
    --secondary-color: #fff;
    --accent-color: #ffcc00;
    --text-dark: #000;
    --text-light: #fff;
    --bg-color: #fff;
    --glass-bg: #fff;
    --glass-border: #000;
    background-color: #fff;
}

body.high-contrast * {
    box-shadow: none !important;
}

body.high-contrast .glass-card {
    border: 3px solid #000;
}

body.high-contrast .btn-primary {
    background: #000;
    color: #ffcc00;
    border: 2px solid #ffcc00;
}
