/* General Styles */

:root {
    --gold-color: #C69C6D;
    --dark-blue: #001B33;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--dark-blue);
    /* Fallback color */
}

body {
    background-image: url('../img/backgroundN.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'arb', sans-serif;
    color: white;
    padding-top: var(--navbar-height);
    position: relative;
}

[dir="ltr"] body {
    font-family: 'anton', sans-serif;
}


/* Hero Section */

.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: calc(-1 * var(--navbar-height));
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    margin: 0;
    text-transform: none;
    font-family: 'arb', sans-serif;
}

.hero-logo {
    margin: -40px;
    width: 200px;
    height: auto;
}

.hero-logo img {
    width: 100%;
    height: auto;
}

.hero-button {
    background: linear-gradient(135deg, #905f2b, #C69C6D);
    border: none;
    color: white;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(198, 156, 109, 0.3);
}


/* Project Sections */

.project-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    position: relative;
}

.project-content {
    max-width: 1400px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 3rem;
}


/* Center Layout for Specific Projects */

.project-content.center-layout {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
}

.project-content.center-layout .project-image {
    max-width: 800px;
    margin: 0 auto;
}

.project-content.reverse {
    flex-direction: row-reverse;
}

.project-image {
    flex: 0.7;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.project-text {
    flex: 1;
    color: white;
    padding: 1rem;
}

.project-text h2 {
    font-size: 3rem;
    color: var(--gold-color);
    margin-bottom: 1rem;
}

.project-text p {
    font-size: 2.2rem;
    color: #ffffff;
    opacity: 0.9;
}

.coming-soon {
    display: inline-block;
    background: linear-gradient(135deg, #905f2b, #C69C6D);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    font-size: 1.2rem;
}


/* RTL Support */

[dir="rtl"] .project-content.reverse {
    flex-direction: row;
}

[dir="rtl"] .project-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .project-content.center-layout {
    flex-direction: column;
}


/* Responsive Design */

@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    .project-text h2 {
        font-size: 2.5rem;
    }
    .hero-logo {
        width: 180px;
    }
}

@media (max-width: 992px) {
    .project-content {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }
    .project-content.reverse {
        flex-direction: column;
    }
    .project-text {
        text-align: center;
        padding: 1rem;
    }
    .project-image {
        max-width: 100%;
    }
    [dir="rtl"] .project-content,
    [dir="rtl"] .project-content.reverse {
        flex-direction: column;
    }
    .project-section {
        padding: 3rem 1rem;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 40vh !important;
        min-height: auto !important;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-logo {
        width: 120px;
        margin: 0;
    }
    .project-section {
        min-height: auto;
        padding: 3rem 1rem;
    }
    .project-content {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    .project-content,
    .project-content.reverse,
    .project-content.center-layout,
    [dir="rtl"] .project-content,
    [dir="rtl"] .project-content.reverse {
        flex-direction: column !important;
    }
    .project-image {
        width: 100%;
        max-width: 100%;
        order: 1;
    }
    .project-text {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        order: 2;
    }
    .project-text h2 {
        font-size: 2rem;
    }
    .project-text p {
        font-size: 1.2rem;
    }
    .project-section+.project-section {
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 40vh !important;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-logo {
        width: 100px;
    }
    .project-section {
        padding: 2rem 0.5rem;
    }
    .project-text h2 {
        font-size: 1.8rem;
    }
    .project-text p {
        font-size: 1.1rem;
    }
    .project-content {
        gap: 1.5rem;
    }
}


/* Ensure the last section extends to the bottom */

.project-section:last-child {
    margin-bottom: 0;
    padding-bottom: 5rem;
    /* Add some padding at the bottom */
}


/* Ensure footer has no gap */

#footer-placeholder {
    margin-top: 0;
    width: 100%;
}