/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    padding: 0;
    overflow-x: hidden;
    background-color: #2a2a2a;
    color: #fff;
    font-family: "Tajawal", sans-serif;
    font-optical-sizing: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 15px;
}

/* Navbar */
nav {
    background-color: transparent;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 10px 0;
    background-color: rgba(0, 0, 0, 0.9);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
}

.logo i {
    color: #fff;
    font-size: 28px;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.logo span {
    font-size: 22px;
    color: #fff;
    font-weight: bold;
}

.logo:hover i {
    transform: rotate(180deg);
    text-shadow: 0 0 10px rgba(0,123,255,0.5);
}

/* Hamburger Menu */
#hamburger-menu {
    display: none;
    cursor: pointer;
    font-size: 28px;
    color: #fff;
    z-index: 2000;
    padding: 5px;
    transition: all 0.3s ease;
}

#hamburger-menu:hover {
    color: #007bff;
    transform: scale(1.1);
}

/* Navigation Menu */
nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    position: relative;
    padding: 8px 0;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
}

nav ul li a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #007bff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav ul li a:hover {
    color: #007bff;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}

.slider-arrow:hover {
    background: rgba(0, 123, 255, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.left-arrow {
    right: 20px;
}

.right-arrow {
    left: 20px;
}

/* Welcome Content */
.welcome-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 5;
    width: 80%;
    max-width: 800px;
    background: rgba(0, 0, 0, 0.5);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    transition: all 0.5s ease;
}

.welcome-content:hover {
    transform: translate(-50%, -50%) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.welcome-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    display: inline-block;
}

.welcome-content h1::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #007bff;
    border-radius: 3px;
}

.welcome-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
}

/* Quick Navigation Buttons */
.quick-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background: rgba(0, 123, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
}

.btn:hover {
    background: rgba(0, 123, 255, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border-color: #007bff;
}

/* About Section */
.about-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,123,255,0.1) 0%, transparent 70%);
    z-index: 0;
}

.section-header {
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
}

.title-container {
    text-align: right;
    padding-right: 20px;
}

.section-header h1 {
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-header h1::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 80px;
    height: 4px;
    background: #007bff;
    border-radius: 2px;
}

.description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.description p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    position: relative;
}

.about-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-item {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    height: 280px;
    display: flex;
    align-items: center;
}

.about-item::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0,123,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.about-item:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border-color: rgba(0,123,255,0.3);
}

.about-item:hover::before {
    animation: shine 1.5s;
}

@keyframes shine {
    0% {
        left: -50%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 150%;
        opacity: 0;
    }
}

.item-content {
    width: 100%;
    text-align: center;
}

.item-icon {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.about-item:hover .item-icon {
    transform: scale(1.1);
    text-shadow: 0 0 15px rgba(0,123,255,0.5);
}

.item-content h2 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.item-content h2::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #007bff;
    transition: all 0.3s ease;
}

.about-item:hover .item-content h2::after {
    width: 80px;
}

.item-details p {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    transition: all 0.3s ease;
}

.about-item:hover .item-details p {
    color: rgba(255,255,255,0.9);
}

/* Religious Landmarks Section */
.religious-landmarks-section {
    padding: 60px 15px;
    background: #222;
    color: #fff;
}

.religious-landmarks-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}


.landmark-card {
    background-color: transparent;
    height: 300px;
    perspective: 1000px;
}

.landmark-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.landmark-card:hover .landmark-card-inner {
    transform: rotateY(180deg);
}

.landmark-card-front,
.landmark-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
}

.landmark-card-front {
    background-color: #333;
    color: white;
}

.landmark-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landmark-card-front h3 {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 1.5rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 5px;
}

.landmark-card-back {
    background-color: #007bff;
    color: white;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.landmark-card-back img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(5px);
    z-index: -1;
}

.landmark-card-back-content {
    padding: 20px;
}

.landmark-card-back h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.landmark-card-back p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Historical and Natural Landmarks Section */
.historical-natural-landmarks-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.historical-natural-landmarks-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,123,255,0.1) 0%, transparent 70%);
    z-index: 0;
}

.historical-natural-landmarks-section .section-header {
    margin-bottom: 60px;
}

.historical-natural-landmarks-section .section-header h1 {
    color: #fff;
}

.historical-natural-landmarks-section .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.landmarks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.historical-natural-landmarks-section .landmark-card {
    background: #333;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.historical-natural-landmarks-section .landmark-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.historical-natural-landmarks-section .landmark-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.historical-natural-landmarks-section .landmark-card:hover img {
    filter: blur(2px) brightness(0.8);
    transform: scale(1.05);
}

.historical-natural-landmarks-section .landmark-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-sizing: border-box;
}

.historical-natural-landmarks-section .landmark-card:hover .overlay {
    opacity: 1;
}

.historical-natural-landmarks-section .landmark-card .overlay h3 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.historical-natural-landmarks-section .landmark-card .overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.historical-natural-landmarks-section .landmark-card .content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* City Life Section */
.city-life-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.city-life-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,123,255,0.1) 0%, transparent 70%);
    z-index: 0;
}

.article-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.article-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.article-item:nth-child(even) .article-image {
    order: 2;
}

.article-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.article-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.article-content h2 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.article-content h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60px;
    height: 3px;
    background: #007bff;
    border-radius: 2px;
}

.article-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

/* Gallery Section */
.gallery-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 2D Gallery Styles */
.gallery-2d-container {
    position: relative;
    width: 80%;
    max-width: 800px;
    margin: 50px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    padding: 20px;
    flex-direction: column;
}

#gallery-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 20px;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 123, 255, 0.7);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.gallery-nav-btn:hover {
    background-color: #0056b3;
    transform: translateY(-50%) scale(1.1);
}

#prev-image {
    left: 10px;
}

#next-image {
    right: 10px;
}

#gallery-info {
    text-align: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    width: 90%;
}

#gallery-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #fff;
}

#gallery-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Custom Cursor */
#custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease;
    z-index: 9999;
}

#custom-cursor::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#custom-cursor.hover {
    width: 50px;
    height: 50px;
    border: 2px solid #007bff;
}

#custom-cursor.hover::after {
    background: #007bff;
}

/* Scroll-to-top Button */
#scroll-to-top-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    border: none;
    outline: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s ease;
}

#scroll-to-top-btn:hover {
    background-color: #0056b3;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.8);
}

.frameMap {
    justify-content: center;
    align-items: center;
    display: flex;
    width: 100%;
    height: 100%;
    margin: 100px auto;
}

/* Footer Styles */
.site-footer {
    background-color: #1a1a1a;
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,123,255,0.05) 0%, transparent 70%);
    z-index: 0;
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: #007bff;
}

.footer-section p {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-bottom: 15px;
}

.phonenumber {
    direction: ltr;
    text-align: right;
}



.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.footer-section ul li a:hover {
    color: #007bff;
    transform: translateX(-5px);
}

.footer-section .social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-section .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    backdrop-filter: blur(6px); /* زجاجي */
    transition: all 0.3s ease;
}

.footer-section .social-links a:hover {
    background: rgba(0, 123, 255, 0.3); 
    transform: translateY(-5px) scale(1.2); 
    box-shadow: 0 0 15px #007bff, 0 0 30px #007bff; 
    border: 1px solid rgba(255, 255, 255, 0.2);
}


.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    #hamburger-menu {
        display: block;
    }

    nav ul {
        flex-direction: column;
        width: 95%;
        max-height: 0;
        overflow: hidden;
        background: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        padding: 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        z-index: 1000;
        transition: all 0.4s ease;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255,255,255,0.1);
    }

    nav ul.show {
        max-height: 500px;
        padding: 10px 0;
        transform: translateX(-50%) scaleY(1);
        opacity: 1;
    }

    nav ul li {
        text-align: center;
        margin: 10px 0;
        transform: scale(0.9);
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    nav ul.show li {
        transform: scale(1);
        opacity: 1;
        transition-delay: 0.1s;
    }
    
    nav ul li a {
        color: #fff;
        padding: 10px 20px;
        display: block;
    }

    .about-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-nav {
        grid-template-columns: 1fr;
    }

    .article-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* شاشات أصغر (تابلت) */
@media (max-width: 768px) {
    .welcome-content h1 {
        font-size: 2.2rem;
    }

    .welcome-content p {
        font-size: 1rem;
    }

    .about-items {
        grid-template-columns: 1fr;
    }

    .religious-landmarks-container,
    .landmarks-grid {
        grid-template-columns: 1fr;
    }

    .article-container {
        gap: 40px;
    }

    .article-content h2 {
        font-size: 1.6rem;
    }

    .landmark-card {
        min-height: 250px; /* Ensure a minimum height for the card */
    }
    .landmark-card-front img,
    .landmark-card-back img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .landmark-card-inner {
        transform: none !important; /* Disable flip */
        transform-style: flat !important; /* Ensure flat rendering */
    }

    .landmark-card-front,
    .landmark-card-back {
        position: static !important; /* Remove absolute positioning */
        backface-visibility: visible !important; /* Make both sides visible */
        transform: none !important; /* Remove any lingering transforms */
    }

    .landmark-card-back {
        display: none !important; /* Hide the back by default on mobile if not flipping */
    }
}

/* شاشات صغيرة جدًا (موبايل) */
@media (max-width: 576px) {
    .logo {
        font-size: 18px;
    }

    .logo i {
        font-size: 22px;
    }

    .welcome-content {
        padding: 20px;
        width: 95%;
    }

    .welcome-content h1 {
        font-size: 1.8rem;
    }

    .welcome-content p {
        font-size: 0.9rem;
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .phonenumber {
        text-align: center;
    }
    .religious-landmarks-section {
        padding: 40px 10px;
    }
    #gallery-title {
        font-size: 2rem; /* Make gallery title bigger on mobile */
    }
}
