:root {
    --color-green-dark: #124634;
    --color-green-darker: #0d3225;
    --color-cream: #FFF3E2;
    --color-orange: #F07F29;
    --font-heading: "adapter-arabic-display", sans-serif;
    --font-body: "adapter-arabic-display", sans-serif;
    --font-main: "adapter-arabic-display", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-cream);
    color: var(--color-green-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Layout */
.layout {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar */
.sidebar {
    width: 38%;
    background-color: var(--color-green-dark);
    color: var(--color-cream);
    padding: 4rem 3rem 4rem 4rem;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    clip-path: polygon(0 0, 100% 0, 75% 100%, 0 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.logo img {
    max-width: 280px;
    height: auto;
    width: 100%;
}

.social-links {
    margin: auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 300;
    line-height: 16px;
    text-transform: capitalize;
}

.social-links a {
    color: var(--color-cream);
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
}
.social-links a:hover { 
    color: var(--color-orange);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-text {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 800;
    line-height: 19px;
    letter-spacing: 0.5px;
}

/* Main Content Area */
.content {
    flex: 1;
    position: relative;
    margin-left: 38%;
    width: 62%;
}

/* Fixed Visuals Container */
.fixed-visuals {
    position: fixed;
    top: 0;
    left: 38%;
    width: 62%;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

.top-badge {
    position: fixed;
    top: 4rem;
    right: 4rem;
    text-align: right;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    line-height: 1.3;
    z-index: 15;
    color: var(--color-green-dark);
}
.top-badge span { color: var(--color-orange); }

.orange { color: var(--color-orange); }
.underline { text-decoration: underline; text-underline-offset: 4px; }


/* Text Stage */
.text-stage {
    position: absolute;
    top: 22%;
    left: 6%;
    width: min(76%, calc(94% - 20rem));
    height: 42%;
    z-index: 10;
    display: flex;
    align-items: center;
}

.text-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    font-size: 32px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0;
    visibility: hidden;
}

.text-slide h2 {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    margin-bottom: 1.5rem;
}
.text-slide p { margin-bottom: 1.5rem; }

/* Video Stage */
.video-stage {
    position: absolute;
    bottom: 0;
    left: 5%;
    width: 90%;
    height: 38%; /* Keep video restricted to bottom 38% */
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.video-stage video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensure it scales within the 45% height without distorting */
    mix-blend-mode: multiply;
}

/* Scroll Track */
.scroll-track {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 850vh; /* Increased distance for comfortable reading and smooth transitions */
}

/* Form Section */
.form-section {
    position: relative;
    z-index: 10; /* Goes over the fixed visuals */
    min-height: 100vh;
    background-color: var(--color-cream);
    padding: 15vh 10% 10vh 10%;
}

.form-section h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 3rem;
}

.form-line {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 2.2;
    margin-bottom: 2rem;
}

.inline-input {
    background: transparent;
    border: none;
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-green-dark);
    padding: 0;
    outline: none;
    width: auto;
    min-width: 150px;
    text-align: center;
    field-sizing: content;
}
.inline-input::placeholder {
    color: var(--color-orange);
    font-weight: 600;
    opacity: 1;
}
.select-input {
    appearance: none;
    cursor: pointer;
    color: var(--color-orange);
    font-weight: 600;
    font-family: var(--font-body);
}
.select-input:focus { color: var(--color-green-dark); }

.form-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    align-items: flex-start;
}

.submit-btn {
    background: transparent;
    border: none;
    color: var(--color-orange);
    font-family: var(--font-main);
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 1rem;
    text-align: left;
    transition: opacity 0.2s;
}
.submit-btn:hover { opacity: 0.8; }
.disclaimer { font-size: 1.1rem; font-weight: 500; line-height: 1.4; }

.contact-person .name { font-weight: 700; font-size: 1.2rem; }
.contact-person .role { font-weight: 700; font-size: 0.9rem; margin-bottom: 1rem; }
.contact-person .details { font-weight: 500; font-size: 1.1rem; }

/* Responsiveness */
@media (max-width: 1024px) {
    .layout { flex-direction: column; }
    .sidebar {
        width: 100%;
        max-width: none;
        height: 100px; /* Fixed height */
        position: fixed; 
        top: 0;
        left: 0;
        padding: 1rem 2rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        clip-path: none;
        z-index: 20;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }
    .footer-text { display: none; } /* Hide the big side text to free up header space */
    .logo img {
        max-width: 180px;
    }
    .social-links {
        flex-direction: row; 
        gap: 1.5rem;
        margin: 0;
        font-size: 15px;
    }
    .content {
        margin-left: 0;
        width: 100%;
    }
    .fixed-visuals {
        left: 0;
        width: 100%;
        height: calc(100vh - 100px); 
        top: 100px; 
    }
    .top-badge { display: none; } 
    .text-stage { 
        width: 90%; 
        left: 5%; 
        top: 3%; 
        height: 52%; 
        align-items: center; /* Center the text vertically as requested */
        margin-top: 0;
        z-index: 10;
    }
    .video-stage { 
        width: 90%; 
        left: 5%; 
        bottom: 2%; 
        height: 38%;
        z-index: 2;
    }
    
    .form-section {
        padding: calc(100px + 5vh) 10% 10vh 10%; 
    }
    .form-line { line-height: 2.8; }
    .inline-input { font-size: 1.3rem; min-width: 150px; }
    .form-footer { flex-direction: column; gap: 3rem; }
}

@media (max-width: 768px) {
    .sidebar {
        padding: 1rem;
        height: 110px; /* Taller to fit stacked layout */
        flex-direction: column; /* Stack logo and links vertically */
        justify-content: center;
        gap: 0.8rem;
    }
    .logo img {
        max-width: 150px;
    }
    .social-links {
        font-size: 13px;
        gap: 1rem;
        width: 100%;
        justify-content: center; /* Center the links */
        flex-wrap: wrap; /* Let them wrap if screen is very narrow */
    }
    .fixed-visuals {
        height: calc(100vh - 110px);
        top: 110px; /* Offset to match the taller header */
    }
    .form-section {
        padding: calc(110px + 5vh) 5% 10vh 5%;
    }
    .text-slide h2 {
        font-size: 24px;
        margin-bottom: 1rem;
    }
    .text-slide p, .text-slide .sentence {
        font-size: 22px;
        margin-bottom: 1rem;
    }
    .text-stage {
        top: 2%;
    }
    .form-section h2 {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }
    .form-line { 
        font-size: 1.2rem;
        line-height: 2; 
    }
    .inline-input { 
        font-size: 1.2rem; 
        min-width: 100px; 
        width: 100%; 
        margin-top: 0.5rem;
        border-bottom: 1px solid var(--color-green-dark);
        border-radius: 0;
    }
    .submit-btn {
        font-size: 1.5rem;
    }
}
