/* ================================== */
/* CSS VARIABLES & GLOBAL SETUP       */
/* ================================== */
:root {
    --primary-red: #e50914;
    --primary-red-hover: #f6121d;
    --primary-black: #000;
    --primary-white: #fff;
    --text-grey-light: #ccc;
    --text-grey-dark: #aaa;
    --border-grey: #ccc;
    --bg-dark-grey: #111;
    --text-dark: #1a1a1a;

    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
}
html {
    scroll-behavior: smooth;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--primary-black);
    color: var(--primary-white);
    font-family: var(--font-heading);
}

/* ================================== */
/* HEADER & NAVIGATION BAR            */
/* ================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-black);
    padding: 15px 5%; 
    z-index: 1000;
    border-bottom: 1px solid #222;
}
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    flex-direction: column; 
    align-items: flex-start;
}

.logo img {
    height: 100%;
    width: 120px;
    margin-bottom: 1px;
}
.logo .tagline {
    font-size: 0.8rem;
    color: var(--text-grey-dark);
    font-family: var(--font-body);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 5px;
}
.nav-links ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--primary-white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.3s ease;
    display: flex; /* Added to align caret */
    align-items: center; /* Added to align caret */
}

.nav-links a:hover {
    color: var(--primary-red);
}

.contact-btn {
    background-color: var(--primary-red);
    color: var(--primary-white);
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.contact-btn:hover {
    background-color: var(--primary-red-hover);
}
/* ================================== */
/* DROPDOWN MENU STYLES (CLICK-BASED) */
/* ================================== */
.dropdown {
    position: relative; /* This is the parent for the absolute positioned menu */
}

.dropdown-menu {
    /* Hiding and positioning */
    display: block; 
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: calc(100% + 10px); /* Position below the parent link with a small gap */
    left: 0;
    z-index: 1001;
    
    /* Styling */
    background-color: var(--primary-black);
    min-width: 200px;
    padding: 10px 0;
    border: 1px solid #333;
    border-radius: 4px; 
    list-style: none; /* Removes bullet points from the ul */

    /* Animation */
    transform: translateY(10px); /* Start slightly lower */
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

/* Show the dropdown menu when hovering over the .dropdown list item */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Move to final position */
}

/* Styling for links within the dropdown */
.dropdown-menu li a {
    padding: 10px 20px; 
    display: block; /* Make the entire area clickable */
    white-space: nowrap;
    font-weight: 700;
    color: var(--primary-white); /* Ensure text is white */
}

.dropdown-menu li a:hover {
    background-color: var(--text-dark);
    color: var(--primary-red); /* Keep the red hover effect */
}

/* Styling the dropdown arrow */
.caret {
    margin-left: 8px;
    font-size: 0.8em; /* Make it a bit smaller than text */
    transition: transform 0.3s ease;
}

/* Rotate caret on hover */
.dropdown:hover > a .caret {
    transform: rotate(180deg);
}

/* ================================== */
/* HERO CAROUSEL                      */
/* ================================== */
.carousel-container {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    width: 100%;
    height: 100vh;
}
.carousel-container::-webkit-scrollbar {
    display: none;
}

.slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 8% 0 8%;
}

.slide-content {
    flex-basis: 50%; 
}

.slide-content h1 {
    font-size: clamp(2.2rem, 3.8vw, 4rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 25px;
}

.slide-content p {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.4vw, 1.4rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-grey-light);
    margin-bottom: 35px;
    max-width: 90%;
}

.cta-button {
    background-color: var(--primary-red);
    color: var(--primary-white);
    padding: 12px 35px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--primary-red-hover);
}

.slide-image {
    flex-basis: 45%; 
    text-align: center;
}

.slide-image img {
    max-width: 100%;
    height: auto;
}

/* ================================== */
/* GET STARTED SECTION                */
/* ================================== */
.get-started-section {
    background-color: var(--primary-white);
    padding: 80px 5%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 40vh;
}

.get-started-section h2 {
    color: var(--primary-black);
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 40px;
}

.get-started-btn {
    background-color: var(--primary-red);
    color: var(--primary-white);
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.get-started-btn:hover {
    background-color: var(--primary-red-hover);
}

/* ================================== */
/* ABOUT AJA SECTION                  */
/* ================================== */
.about-section {
    background-color: var(--primary-black);
    padding: 120px 8%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden; /* Prevents content from showing before animation */
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 8%;
}

/* New style for the image container */
.about-image {
    flex: 0 0 40%;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* New container for all the text content */
.about-text-content {
    flex: 0 0 52%;
}

.about-text-content h2 {
    color: var(--primary-red);
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 25px;
}

.about-text-content p {
    color: var(--text-grey-dark);
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ================================== */
/* ABOUT AJA ANIMATION STYLES         */
/* ================================== */

/* Set the initial (hidden) state for all animating elements */
.about-section .about-image,
.about-section .about-text-content h2,
.about-section .about-text-content p {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Set the starting positions before animation */
.about-section .about-image {
    transform: translateX(-50px); /* Starts to the left */
}

.about-section .about-text-content h2 {
    transform: translateY(-30px); /* Starts above */
    transition-delay: 0.3s;       /* Animates AFTER the image */
}

.about-section .about-text-content p {
    transform: translateY(30px); /* Starts below */
    transition-delay: 0.5s;      /* Animates AFTER the heading */
}

/* The final (visible) state triggered by JavaScript */
.about-section.is-visible .about-image,
.about-section.is-visible .about-text-content h2,
.about-section.is-visible .about-text-content p {
    opacity: 1;
    transform: translate(0, 0);
}
/* ================================== */
/* TESTIMONIAL SECTION                */
/* ================================== */
.testimonial-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fdf497 0%, #fde360 100%);
    padding: 80px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orb {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f4c5 0%, #fadb45 100%);
}
.orb-1 { width: 400px; height: 400px; top: -100px; left: 70%; }
.orb-2 { width: 400px; height: 400px; top: 40%; left: -10px; }
.orb-3 { width: 300px; height: 300px; bottom: 5%; right: -10px; }
.orb-4 { width: 250px; height: 250px; top: 0; left: 15%; }

.testimonial-slider-container {
    width: 100%;
    position: relative;
    z-index: 2;
}

.testimonial-slides {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.testimonial-slides::-webkit-scrollbar {
    display: none;
}

.testimonial-slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 0 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-snap-align: center;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 25px;
    padding: 40px 50px;
    max-width: 75%;
    color: var(--text-dark);
    text-align: center;
}

.testimonial-card .quote {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    line-height: 1.6;
    margin-bottom: 30px;
}

.testimonial-card .attribution {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1rem, 1.6vw, 1.3rem);
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: var(--primary-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
    z-index: 3;
}

.testimonial-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.testimonial-nav.prev-btn {
    left: 2%;
}

.testimonial-nav.next-btn {
    right: 2%;
}

/* ================================== */
/* NEWSLETTER SECTION                 */
/* ================================== */
.newsletter-section {
    position: relative;
    background-color: var(--primary-white);
    padding: 100px 5%;
    padding-bottom: 0px;
    text-align: center;
    overflow: hidden;
}



.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #fde360;
}

.newsletter-section h2 {
    color: var(--primary-black);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 50px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto 100px;
}

.newsletter-form input {
    width: 100%;
    padding: 15px 25px;
    border: 1px solid var(--border-grey);
    border-radius: 30px;
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
}

.newsletter-form button {
    padding: 15px 40px;
    border: none;
    background-color: var(--primary-red);
    color: var(--primary-white);
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background-color: var(--primary-red-hover);
}

.marquee-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
}

.marquee-text {
    display: flex;
    white-space: nowrap;
    color: rgba(0, 0, 0, 0.2);
    font-family: var(--font-body);
    font-size: 1rem;
    animation: scroll-left 30s linear infinite;
}

@keyframes scroll-left {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(-50%);
    }
}

/* ================================== */
/* CONTACT SECTION (REVISED)          */
/* ================================== */
.contact-section {
    position: relative;
    overflow: hidden;
    padding: 100px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--primary-white); /* Ensures a white base */
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-image: url('https://i.imgur.com/g0n2XfM.jpg'); /* Crumpled paper background */
    background-size: cover;
    z-index: 1;
    animation: pan-background 40s linear infinite alternate;
}

@keyframes pan-background {
    from { transform: translate(0, 0); }
    to { transform: translate(10%, 10%); }
}

.contact-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 700px;
    text-align: center;
}
.contact-section{
    position: relative;
}
.paper{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.contact-section h2 {
    color: var(--primary-black);
    font-size: clamp(3rem, 6vw, 4.5rem); /* Adjusted size */
    font-weight: 900;
    margin-bottom: 50px; /* Increased space */
}

.contact-form {
    text-align: left;
}

.form-group, .form-group-split {
    margin-bottom: 25px;
}

.form-group label, .form-group-split > label {
    display: block;
    margin-bottom: 8px;
    font-weight: 900; /* Bolder label */
    color: var(--primary-black);
    font-family: var(--font-body);
}

.form-group .required, .form-group-split .required {
    color: var(--primary-red);
}

.form-group-split .split-fields {
    display: flex;
    gap: 20px;
}

.split-fields .field-wrapper {
    flex: 1;
}

.field-wrapper .sub-label {
    font-size: 0.8rem;
    color: #666;
    display: block;
    margin-top: 5px;
    font-family: var(--font-body);
    font-weight: 700;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--primary-white);
    border: 1px solid #555; /* Darker border */
    border-radius: 0; /* Sharp corners */
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.form-submit button {
    background-color: var(--primary-red);
    color: var(--primary-white);
    padding: 15px 50px;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 900; /* Bolder button text */
    font-size: 1.1rem;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-submit button:hover {
    background-color: var(--primary-red-hover);
}

.site-footer {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

.footer-map-section {
    padding: 10rem 5%;
    /* background-image: url('https://i.imgur.com/2Xy5G3V.png');
    background-color: #e3e3e3;  */
    background-size: cover;
    background-position: center;
    position: relative;
    max-width: 100vw;
}
.map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.map > img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
    max-width: 100vw;
    transform: scale(2);
}

.location-markers {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap; /* Allows locations to wrap on smaller screens */
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 10;
    position: relative;
}

.location {
    color: var(--text-dark);
    text-align: center;
    flex-basis: 22%; /* Tries to fit 4 items per row */
    min-width: 250px; /* Ensures readability on smaller screens */
}

.location h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 10px;
    border-bottom: 2px solid var(--primary-red);
    display: inline-block;
    padding-bottom: 5px;
}

.location p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--primary-black);
    font-weight: 700;
}

.footer-bottom-bar {
    background-color: var(--primary-black);
    padding: 5rem 5%;
    border-top: 1px solid #333;
    z-index: 10;
    position: relative;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 900;
}

.footer-link a {
    background-color: var(--primary-red);
    color: var(--primary-white);
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-link a:hover {
    background-color: var(--primary-red-hover);
    color: var(--primary-white); /* Ensures text stays white on hover */
}

.footer-accreditations {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-body);
    font-style: italic;
    color: #ccc;
}

.footer-accreditations img {
    height: 100px; /* Adjust height as needed */
    width: auto;
}

.hero-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-red);
    border: none;
    color: var(--primary-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
    z-index: 3;
}

.hero-carousel-nav:hover {
    background-color: var(--primary-red-hover);
}

.hero-carousel-nav.prev-btn {
    left: 2%;
}

.hero-carousel-nav.next-btn {
    right: 2%;
}
@keyframes scroll-left {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(-100%);
    }
}
.scroller {
    color: black;  
    background-color: white; 
    animation: scroll-left 10s linear infinite;
    white-space: nowrap;
}

.scroller-container{
    width: 99vw;
    display: flex;
    overflow-x: hidden;
    position: relative;
}
.side-blur{
    position: absolute;
    width: 10rem;
    height: 100%;
    z-index: 10;
}
.side-blur-left{
    left: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 60%);
}
.side-blur-right{
    right: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 60%);
}

#about-us-page {
    background-color: var(--primary-white);
    color: var(--primary-black);
    padding: 180px 8% 80px; /* Increased top padding for a gap above the title */
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden; /* Prevents horizontal scrollbar during animation */
}

/* --- Main Heading Style (Moved out of the column) --- */
#about-us-page > h1 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 900;
    color: var(--primary-red);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 60px;
    line-height: 1;
    transform: scale(1, 1.1);
}

/* --- Two-Column Container --- */
.about-us-modern-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5%;
    max-width: 1200px;
    margin: 0 auto 100px auto;
}

/* Renamed to reflect it's a column for an image */
.about-us-image-col {
    flex: 0 0 45%; /* Image column takes up 45% of the width */
}

.about-us-image-col img {
    width: 100%;
    max-width: 500px; /* Prevents image from becoming too large */
    height: auto;
    display: block;
}

/* Renamed to reflect it's a column for content */
.about-us-content-col {
    flex: 1; /* Text column takes the remaining space */
    text-align: left;
}

/* --- Text Styling (More "Website-Like") --- */
.about-us-content-col .intro-paragraph,
.about-us-content-col .location-info {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8; /* Increased line-height for readability */
    margin-bottom: 30px;
    color: #333;
}

.about-us-content-col .benefits-list {
    list-style: none;
    padding-left: 0;
    margin: 30px 0;
}

.about-us-content-col .benefits-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 18px;
    font-size: 1.05rem;
    color: #333;
    line-height: 1.6;
}

.about-us-content-col .benefits-list li::before {
    content: '•';
    color: var(--primary-red);
    font-weight: bold;
    font-size: 1.8rem;
    position: absolute;
    left: 0;
    top: -5px; /* Fine-tuned vertical alignment */
}

.about-us-content-col .highlight {
    color: var(--primary-red);
    font-weight: 700;
}

/* --- NEW SEQUENCED ANIMATIONS --- */
/* Set the initial (hidden) state for all animating elements */
#about-us-page > h1,
.about-us-image-col,
.about-us-content-col {
    opacity: 1;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Set the starting positions before animation */
#about-us-page > h1 {
    transform: translateY(-40px);
}
.about-us-image-col {
    transform: translateX(-50px);
    transition-delay: 0.2s; /* Animate AFTER the heading */
}
.about-us-content-col {
    transform: translateX(50px);
    transition-delay: 0.4s; /* Animate AFTER the image */
}

/* The final (visible) state triggered by JavaScript */
#about-us-page.is-visible > h1,
#about-us-page.is-visible .about-us-image-col,
#about-us-page.is-visible .about-us-content-col {
    opacity: 1;
    transform: translate(0, 0);
}

.journey-container {
    text-align: center;
    margin-top: 80px;
}

.journey-container h2 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400; /* Lighter weight like the image */
    color: var(--primary-red);
    text-transform: lowercase;
    margin-bottom: 80px;
    line-height: 1.1;
}

/* --- TIMELINE STYLES --- */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* The vertical line (road) */
.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #e0e0e0;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    margin-bottom: 50px;
}

/* Position left/right items */
.timeline-item[data-side="left"] {
    left: 0;
}

.timeline-item[data-side="right"] {
    left: 50%;
}

/* The date bubble */
.timeline-date {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 90px;
    height: 90px;
    background-color: white;
    border: 5px solid var(--primary-red);
    border-radius: 50%;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    box-shadow: 0 0 0 8px white, 0 5px 20px rgba(0,0,0,0.1);
}

.timeline-item[data-side="left"] .timeline-date {
    right: -45px; /* Half of width */
}

.timeline-item[data-side="right"] .timeline-date {
    left: -45px;
}

/* The content box */
.timeline-content-box {
    padding: 20px 30px;
    background-color: #f7f7f7;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: left;
}

.timeline-content-box p {
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
}

/* Dotted connector line */
.timeline-item::before {
    content: '';
    position: absolute;
    top: 50%;
    height: 2px;
    width: 25px; 
    z-index: 2;
    background-image: linear-gradient(to right, #d32f2f 60%, transparent 40%);
    background-size: 8px 2px;
    background-repeat: repeat-x;
}
.timeline-item[data-side="left"]::before {
    right: 20px;
}
.timeline-item[data-side="right"]::before {
    left: 20px;
}


/* --- TIMELINE ANIMATIONS --- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.timeline-item[data-side="left"].animate-on-scroll {
    transform: translateX(-50px);
}
.timeline-item[data-side="right"].animate-on-scroll {
    transform: translateX(50px);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.about-section .about-text h2,
.about-section .about-placeholder p {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.about-section .about-text h2 {
    transform: translateX(-50px); /* Start heading 50px to the left */
}

.about-section .about-placeholder p {
    transform: translateY(30px); /* Start paragraph 30px down */
    /* Add a delay so it animates AFTER the heading */
    transition-delay: 0.3s; 
}

/* When the .is-visible class is added by JS, move them to their final position */
.about-section.is-visible .about-text h2,
.about-section.is-visible .about-placeholder p {
    opacity: 1;
    transform: translate(0, 0);
}


.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Ensure it's on top of everything */
    
    /* Initially hidden with a fade effect */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Class to make the popup visible */
.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: var(--primary-dark-grey, #1a1a1a);
    color: var(--primary-white, #fff);
    padding: 40px 50px;
    border-radius: 8px;
    border: 1px solid #333;
    text-align: center;
    max-width: 90%;
    width: 500px;
    position: relative;

    /* Pop-in animation */
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-overlay.show .popup-content {
    transform: scale(1);
}

.popup-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-red, #e50914);
    margin-bottom: 20px;
}

.popup-content p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-grey-light, #ccc);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: var(--primary-white, #fff);
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.close-btn:hover {
    opacity: 1;
}

