/* ====================================
   HERO SECTION
   ==================================== */
.hero-section {
    min-height: 100vh;
    background:
        var(--accent-section-strip-bg) no-repeat left / calc(var(--accent-section-corner-width) - var(--accent-section-block-size)) 100%,
        linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    /* Account for fixed header height */
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--accent-section-corner-height);
    background:
        linear-gradient(180deg, #5CCFF7, #4ABDE5) no-repeat left calc(var(--accent-section-corner-width) - var(--accent-section-block-size)) top 0 / var(--accent-section-block-size) var(--accent-section-block-size),
        linear-gradient(180deg, #7B79F2, #6F6CEF) no-repeat left 0 top var(--accent-section-block-size) / var(--accent-section-corner-width) var(--accent-section-bar-height),
        var(--accent-section-bar-bg) no-repeat right 0 top var(--accent-section-block-size) / calc(100% - var(--accent-section-corner-width)) var(--accent-section-bar-height);
    z-index: 1;
    pointer-events: none;
}

/* Globe container */
.globe-container {
    position: absolute;
    top: 35%;
    left: 88%;
    transform: translate(-50%, -50%);
    width: 180%;
    height: 180%;
    min-width: 1100px;
    min-height: 1100px;
    z-index: 1;
    opacity: 0;
    transition: opacity 1s ease;
}

.globe-container.globe-ready {
    opacity: 0.25;
}

.globe-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Fallback when WebGL is not available */
.hero-section.globe-fallback::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../static/images/index/globe.jpg') center/cover;
    opacity: 0.15;
    z-index: 1;
}

[dir="rtl"] .hero-section.globe-fallback::before {
    transform: scaleX(-1);
}

[dir="rtl"] .hero-section {
    background:
        var(--accent-section-strip-bg) no-repeat right / calc(var(--accent-section-corner-width) - var(--accent-section-block-size)) 100%,
        linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

[dir="rtl"] .hero-section::after {
    left: auto;
    right: 0;
    background:
        linear-gradient(180deg, #5CCFF7, #4ABDE5) no-repeat right calc(var(--accent-section-corner-width) - var(--accent-section-block-size)) top 0 / var(--accent-section-block-size) var(--accent-section-block-size),
        linear-gradient(180deg, #7B79F2, #6F6CEF) no-repeat right 0 top var(--accent-section-block-size) / var(--accent-section-corner-width) var(--accent-section-bar-height),
        var(--accent-section-bar-bg) no-repeat left 0 top var(--accent-section-block-size) / calc(100% - var(--accent-section-corner-width)) var(--accent-section-bar-height);
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: var(--spacing-3xl) var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    place-items: center start;
    position: relative;
}

.hero-text {
    color: white;
    position: relative;
    z-index: 2;
    max-width: 650px;
}

/* Hero entrance animations */
.hero-text .hero-lead,
.hero-text .hero-accent,
.hero-text .hero-context,
.hero-text > .hero-subtitle,
.hero-text > .hero-description,
.hero-text > .hero-cta {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 0.6s ease forwards;
}

.hero-text .hero-lead { animation-delay: 0.3s; }
.hero-text .hero-accent { animation-delay: 0.5s; }
.hero-text .hero-context { animation-delay: 0.7s; }
.hero-text > .hero-subtitle { animation-delay: 0.9s; }
.hero-text > .hero-description { animation-delay: 1.1s; }
.hero-text > .hero-cta { animation-delay: 1.3s; }

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

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-lead {
    display: block;
    font-size: 0.55em;
    font-weight: 500;
    opacity: 0.85;
    letter-spacing: 0.02em;
    margin-bottom: 0.15em;
}

.hero-accent {
    display: block;
    color: var(--accent-color);
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(92, 207, 247, 0.25);
}

.hero-context {
    font-size: 0.5em;
    font-weight: 400;
    opacity: 0.8;
    letter-spacing: 0.01em;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    margin-bottom: var(--spacing-2xl);
    opacity: 0.9;
    line-height: 1.7;
}

.hero-cta {
    margin-bottom: var(--spacing-xl);
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    background: #0EA5E9;
    color: white;
    text-decoration: none;
    padding: var(--spacing-md) var(--spacing-2xl);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1.125rem;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.cta-button::after {
    content: '\2192';
    display: inline-block;
    margin-left: 0;
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button:hover::after {
    margin-left: 8px;
    width: 16px;
    opacity: 1;
}

.cta-button:hover {
    background: #0284C7;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: none;
    backdrop-filter: blur(4px);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: white;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.12);
}


.vision-2030-container {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.vision-2030-logo {
    width: 120px;
    height: auto;
    filter: brightness(0) invert(1);
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 3;
}

/* RTL positioning for Arabic version */
[dir="rtl"] .vision-2030-logo {
    right: auto;
    left: 30px;
}

.vision-text {
    color: white;
    font-size: 1.125rem;
    font-weight: 500;
    opacity: 0.9;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-2xl);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    opacity: 0.8;
    animation: bounce 2s infinite;
    transition: opacity 0.3s ease;
    will-change: opacity;
}

.scroll-indicator span {
    display: block;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-xs);
}

.scroll-indicator i {
    font-size: 1.25rem;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

