@font-face {
    font-family: 'TitleFont';
    src: url('title font.ttf') format('truetype');
}

@font-face {
    font-family: 'TextFont';
    src: url('texte font.otf') format('opentype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    min-height: 100vh;
}

body {
    min-height: 100vh;
    background: linear-gradient(to bottom, #f6eee2 0%, #591b32 100%);
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('bg.png') repeat;
    pointer-events: none;
    z-index: -1;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    background: linear-gradient(to bottom, #e8e0d4, #d4cdc2);
    z-index: 1000;
    direction: rtl;
    transition: transform 0.3s ease;
}

.navbar-hidden {
    transform: translateY(-100%);
}

.logo img {
    height: 100px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    direction: rtl;
}

.main-menu,
.alt-menu {
    display: flex;
    gap: 0.5rem;
}

.alt-menu {
    display: none;
}

.navbar.menu-switched .main-menu {
    display: none;
}

.navbar.menu-switched .alt-menu {
    display: flex;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    color: #5a5a5a;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.5);
    color: #333;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.icon-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Content Styles */
.content {
    padding-top: 130px;
}

.video-container {
    width: 100%;
}

.video-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    line-height: 0;
}

.video-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Sub Navigation Bar */
.sub-nav {
    width: 100%;
    margin-top: -5px;
    position: relative;
    z-index: 999;
}

.sub-nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.sub-nav-accent {
    height: 6px;
    background: #00e5d4;
    width: 100%;
}

.sub-nav-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 1rem 2rem;
    background: rgba(200, 190, 175, 0.7);
    direction: rtl;
}

.sub-nav-link {
    color: #5a5a5a;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.sub-nav-link:hover,
.sub-nav-link.active {
    background: rgba(255, 255, 255, 0.5);
    color: #333;
}

/* Title Section */
.title-section {
    text-align: center;
    padding: 3rem 2rem;
    direction: rtl;
}

.main-title {
    font-family: 'TitleFont', serif;
    font-size: 5rem;
    color: #000;
    margin-bottom: 1rem;
}

.sub-title {
    font-family: 'TitleFont', serif;
    font-size: 4rem;
    color: #000;
}

/* Image Section */
.image-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    gap: 3rem;
}

.section-text {
    flex: 1;
    font-family: 'TextFont', serif;
    font-size: 2rem;
    color: #000;
    line-height: 2;
    text-align: justify;
    direction: rtl;
}

.section-text p {
    margin-bottom: 1.5rem;
}

.featured-image {
    width: 400px;
    flex-shrink: 0;
}

.featured-image img {
    width: 100%;
    height: auto;
}

.image-section-reverse {
    flex-direction: row-reverse;
}

/* Centered Image Section */
.centered-image-section {
    display: flex;
    justify-content: center;
    padding: 3rem 2rem;
}

.large-image {
    max-width: 100%;
    height: auto;
}

/* Centered Text Section */
.centered-text-section {
    text-align: right;
    padding: 2rem 4rem;
    direction: rtl;
}

.centered-text-section p {
    font-family: 'TextFont', serif;
    font-size: 2rem;
    color: #000;
    line-height: 2;
    text-align: right;
}

.read-more-btn {
    display: inline-block;
    margin-top: 1.5rem;
    margin-right: 20rem;
    padding: 1rem 2.5rem;
    background: #5a1b32;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: #7a2b42;
    transform: scale(1.05);
}

/* Types Section */
.types-section {
    text-align: center;
    padding: 3rem 2rem;
    direction: rtl;
}

.types-title {
    font-family: 'TitleFont', serif;
    font-size: 4rem;
    color: #000;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: #591b32;
    padding: 3rem 4rem;
    direction: rtl;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.footer-logo {
    text-align: center;
}

.footer-logo img {
    height: 220px;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    align-items: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.social-icon:hover {
    transform: scale(1.1);
}

.footer-links {
    text-align: right;
}

.footer-links h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-links a {
    display: flex;
    align-items: center;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    transition: color 0.3s ease;
    gap: 1rem;
}

.link-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(-5px);
}

.footer-contact {
    text-align: right;
}

.footer-contact h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-contact p {
    color: #ccc;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Aligns to right in RTL */
    gap: 0.8rem;
}

.contact-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* Responsive Styles */
@media (max-width: 900px) {
    .main-title {
        font-size: 3rem;
    }

    .sub-title {
        font-size: 2.5rem;
    }

    .section-text,
    .centered-text-section p {
        font-size: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links,
    .footer-contact {
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-menu {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        justify-content: center;
    }

    .main-menu,
    .alt-menu {
        justify-content: center;
    }

    .sub-nav-bar {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem;
    }

    .image-section {
        flex-direction: column;
        padding: 2rem 1rem;
        text-align: center;
    }

    .image-section-reverse {
        flex-direction: column;
    }

    .featured-image {
        width: 100%;
        max-width: 400px;
    }

    .read-more-btn {
        margin-right: 0;
        margin-top: 2rem;
    }

    .centered-text-section {
        padding: 2rem 1rem;
        text-align: center;
    }

    .centered-text-section p {
        text-align: center;
    }

    .types-section {
        padding: 2rem 1rem;
    }

    .types-title {
        font-size: 2.5rem;
    }

    .footer {
        padding: 2rem 1rem;
    }
}