*{scroll-behavior: smooth;}/* General Body & Typography */
body {
    font-family: 'Oxanium', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0c0c20;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
    color: #ffffff;
    font-weight: 770;
}

/* Glassmorphism Base Style (Applied directly to elements now) */
.glass-effect {
    background-color: rgba(26, 26, 51, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Header (No change) */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    top: 0;
    width: 90%;
    z-index: 1000;
    background-color: rgba(12, 12, 32, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4em;
    font-weight: bold;
    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
}

.logo i {
    font-size: 1.5em;
    color: #3296ff;
    filter: drop-shadow(0 0 5px #3296ff);
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 30px;
}

nav a {
    color: #a0a0ff;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    font-weight: 600;
}

nav a:hover {
    color: #3296ff;
    text-shadow: 0 0 8px #3296ff;
}

.btn-outline {
    border: 1px solid #3296ff;
    padding: 8px 18px;
    border-radius: 20px;
    color: #3296ff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline:hover {
    background-color: #3296ff;
    color: #ffffff;
    text-shadow: none;
}

/* --- NEW HERO SECTION STYLE --- */


.hero-background-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(12, 12, 32, 0.8) 0%, rgba(12, 12, 32, 0.4) 50%, rgba(12, 12, 32, 0.1) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
    padding: 0 5%;
    text-align: left;
}

.hero-content h1 {
    font-size: 4.5em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.4em;
    margin-bottom: 40px;
    color: #e0e0e0;
    max-width: 500px;
}

.hero-cta-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 35px;
    background-color: #3296ff;
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 15px rgba(50, 150, 255, 0.5);
}

.btn-primary:hover {
    background-color: #5aaeff;
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(50, 150, 255, 0.8);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: rgba(50, 150, 255, 0.2);
    border-color: #3296ff;
    transform: translateY(-5px);
}

.hero-planet-overlay {
    position: absolute;
    width: 600px;
    height: 600px;
    background-image: url('beautiful-planets-space.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    opacity: 0.9;
    filter: drop-shadow(0 0 40px rgba(50, 150, 255, 0.6));
    z-index: 0;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(-50%) translateX(0px); }
    50% { transform: translateY(-55%) translateX(10px); }
    100% { transform: translateY(-50%) translateX(0px); }
}

.pagination-dots {
    display: none;
}

/* --- END NEW HERO SECTION STYLE --- */


/* Sections General (No change) */
section {
    padding: 80px 5%;
    text-align: center;
    position: relative;
}

h2 {
    font-size: 2.8em;
    margin-bottom: 60px;
    color: #ffffff;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background-color: #3296ff;
    border-radius: 3px;
    box-shadow: 0 0 10px #3296ff;
}

/* Mission Highlights Section (No change) */
.mission-highlights-section {
    background-color: #0f0f2a;
    cursor: pointer;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.mission-item {
    background-color: rgba(26, 26, 51, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.mission-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 0 30px rgba(50, 150, 255, 0.8);
    border-color: #3296ff;
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(50, 150, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    color: #3296ff;
    box-shadow: 0 0 15px rgba(50, 150, 255, 0.5);
}

.mission-item h3 {
    font-size: 1.4em;
    margin-bottom: 5px;
    color: #ffffff;
}

.mission-item span {
    font-size: 0.9em;
    color: #a0a0ff;
}

/* --- NEW EXPLORE SECTION --- */
.explore-section {
    background-color: #1a1a33; /* خلفية أغمق قليلاً */
    text-align: left;
    padding: 100px 5%; /* مساحة أكبر للقسم */
}

.explore-content-wrapper {
    display: flex;
    flex-wrap: wrap; /* للسماح للعناصر بالنزول لأسفل في الشاشات الصغيرة */
    gap: 50px;
    max-width: 1400px; /* لجعله أعرض */
    margin: 0 auto;
    align-items: center; /* لمحاذاة العناصر عموديًا في المنتصف */
}

.explore-text-column {
    flex: 1 1 45%; /* سيأخذ 45% من العرض على الشاشات الكبيرة */
    min-width: 350px; /* لا يقل عن هذا العرض */
}

.explore-text-column h2 {
    text-align: left;
    margin-left: 0;
    transform: translateX(0);
    margin-bottom: 30px; /* مسافة أقل بين العنوان والنص */
}
.explore-text-column h2::after {
    left: 0;
    transform: translateX(0);
}

.explore-text-column p {
    font-size: 1.1em;
    color: #a0a0ff;
    margin-bottom: 20px;
    line-height: 1.8;
}

.explore-image-column {
    flex: 1 1 50%; /* سيأخذ 50% من العرض على الشاشات الكبيرة */
    min-width: 400px; /* لا يقل عن هذا العرض */
    height: 500px; /* ارتفاع ثابت للمشاهد */
    position: relative;
    overflow: hidden; /* لإخفاء أي أجزاء خارج نطاق المشاهد */
}

.openseadragon-viewer {
    width: 100%;
    height: 100%;
    background-color: #000; /* خلفية سوداء للمشاهد */
    border-radius: 15px; /* نفس حواف الـ glass-effect */
}
/* --- END NEW EXPLORE SECTION --- */


/* Gallery and Learn Section (No change) */
.gallery-and-learn-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5%;
    background-color: #12122b;
}

.section-column {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: left;
}

.section-column h2 {
    text-align: left;
    margin-left: 0;
    transform: translateX(0);
}
.section-column h2::after {
    left: 0;
    transform: translateX(0);
}

/* Gallery Grid (No change) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    background-color: rgba(26, 26, 51, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 20px rgba(50, 150, 255, 0.7);
    border-color: #3296ff;
}

.gallery-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.gallery-item span {
    font-family: 'Orbitron', sans-serif;
    font-size: 1em;
    color: #ffffff;
    display: block;
    margin-bottom: 5px;
}
.gallery-item p {
    font-size: 0.8em;
    color: #a0a0ff;
    margin: 0;
}


/* Learn Grid (No change) */
.learn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.learn-item {
    background-color: rgba(26, 26, 51, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.learn-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 20px rgba(50, 150, 255, 0.7);
    border-color: #3296ff;
}

.learn-item i {
    font-size: 2.5em;
    color: #3296ff;
    margin-bottom: 15px;
}

.learn-item h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.learn-item p {
    font-size: 0.9em;
    color: #a0a0ff;
}

/* Join Us Section (No change) */
.join-us-section {
    background-color: #0d0d25;
    text-align: center;
    padding: 80px 5%;
    position: relative;
    overflow: hidden;
}

.newsletter-content {
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.newsletter-content h2 {
    margin-bottom: 20px;
}

.newsletter-content p {
    font-size: 1.1em;
    color: #a0a0ff;
    margin-bottom: 40px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.newsletter-form input {
    padding: 15px 20px;
    width: 350px;
    max-width: 70%;
    border: 1px solid #3296ff;
    border-radius: 8px;
    background-color: rgba(26, 26, 51, 0.7);
    color: #ffffff;
    font-size: 1em;
    outline: none;
    box-shadow: inset 0 0 5px rgba(50, 150, 255, 0.3);
}

.newsletter-form button {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    background-color: #3296ff;
    color: white;
    font-size: 1.05em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 0 15px rgba(50, 150, 255, 0.5);
}

.newsletter-form button:hover {
    background-color: #5aaeff;
    transform: translateY(-3px);
}

.social-links {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-links a {
    font-size: 2em;
    color: #a0a0ff;
    transition: color 0.3s ease, transform 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(50, 150, 255, 0.3));
}

.social-links a:hover {
    color: #3296ff;
    transform: translateY(-5px);
    filter: drop-shadow(0 0 15px #3296ff);
}

/* Footer (No change) */
footer {
    padding: 30px 5%;
    background-color: #0c0c20;
    color: #6a6a8a;
    text-align: center;
    font-size: 0.9em;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- NEW EXPLORE SECTION --- */
.explore-section {
    background-color: #1a1a33;
    text-align: left;
    padding: 100px 5%;
}

.explore-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.explore-text-column {
    flex: 1 1 45%;
    min-width: 350px;
}

.explore-text-column h2 {
    text-align: left;
    margin-left: 0;
    transform: translateX(0);
    margin-bottom: 30px;
}
.explore-text-column h2::after {
    left: 0;
    transform: translateX(0);
}

.explore-text-column p {
    font-size: 1.1em;
    color: #a0a0ff;
    margin-bottom: 20px;
    line-height: 1.8;
}

.explore-image-column {
    flex: 1 1 50%;
    min-width: 400px;
    
    /* الكود الجديد هنا */
    aspect-ratio: 4 / 3; /* تحديد نسبة العرض إلى الارتفاع ليتمدد ويتصغر تلقائياً */
    max-height: 500px; /* ضمان ألا يصبح طويلاً جداً على الشاشات الكبيرة */
    
    position: relative;
    overflow: hidden;
}

.openseadragon-viewer {
    width: 100%;
    height: 100%;
    background-color: #000;
    border-radius: 15px;
}
/* --- END NEW EXPLORE SECTION --- */

/* ...بقية الكود... */

/* Responsive Design */
@media (max-width: 1024px) {
    /* ...باقي الأكواد كما هي... */
    .explore-content-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    .explore-text-column, .explore-image-column {
        flex: 1 1 100%;
        min-width: unset;
    }
    .explore-text-column h2 {
        text-align: center;
    }
    .explore-text-column h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .explore-text-column p {
        text-align: center;
    }
    .explore-image-column {
        /* إزالة الارتفاع الثابت وإبقاء الـ aspect-ratio */
        height: auto;
    }
    
    /* ...باقي أكواد الموبايل كما هي... */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.5em;
    }
    .hero-content p {
        font-size: 1.2em;
    }
    .hero-planet-overlay {
        width: 500px;
        height: 500px;
        right: 0%;
        transform: translateY(-50%);
        opacity: 0.7;
    }

    .explore-content-wrapper {
        flex-direction: column; /* جعل الأعمدة تتكدس فوق بعضها */
        gap: 40px;
    }
    .explore-text-column, .explore-image-column {
        flex: 1 1 100%; /* تأخذ عرض كامل */
        min-width: unset; /* إزالة الحد الأدنى للعرض */
    }
    .explore-text-column h2 {
        text-align: center;
    }
    .explore-text-column h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .explore-text-column p {
        text-align: center;
    }
    .explore-image-column {
        height: 400px; /* تعديل الارتفاع على الشاشات الصغيرة */
    }

    .section-column {
        flex: 1 1 100%;
        margin-bottom: 50px;
    }
    .section-column:last-child {
        margin-bottom: 0;
    }
    .section-column h2 {
        text-align: center;
    }
    .section-column h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding-top: 15px;
        padding-bottom: 15px;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .hero-section.new-hero-style {
        text-align: center;
    }
    .hero-content {
        padding: 30px 5%;
        margin: auto;
        max-width: 90%;
    }
    .hero-content h1 {
        font-size: 2.5em;
    }
    .hero-content p {
        font-size: 1em;
    }
    .hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .hero-planet-overlay {
        width: 400px;
        height: 400px;
        right: -50px;
        opacity: 0.5;
    }
    h2 {
        font-size: 2em;
    }
    .mission-item, .gallery-item, .learn-item {
        padding: 25px;
    }
    .newsletter-form {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .newsletter-form input, .newsletter-form button {
        width: 90%;
        max-width: 350px;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8em;
    }
    .hero-content p {
        font-size: 0.9em;
    }
    .logo span {
        font-size: 0.9em;
    }
    nav a {
        font-size: 0.9em;
    }
    .btn-outline {
        padding: 6px 14px;
        font-size: 0.9em;
    }
}
