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

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Ensure all text is visible by default, except animated elements */
h1:not(.animated), h2:not(.animated), h3:not(.animated), 
h4:not(.animated), h5:not(.animated), h6:not(.animated), 
p:not(.animated), span:not(.animated), div:not(.animated) {
    opacity: 1;
    visibility: visible;
}

/* Animated elements are hidden by default */
.animated:not(.animated-visible) {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Header Section */
.header-section {
    background-color: transparent;
    padding: 20px 0;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    width: 100%;
}

.header-logo {
    width: 17%;
    max-width: 427px;
    height: auto;
}

/* Hero Video Section */
.hero-video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    /* margin-top: -115px; */
}

.hero-video-section video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/video-fallback.webp') center center / cover;
    z-index: -1;
}

/* Content Sections */
.content-section {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 0 0;
    gap: 0;
}

.spacer {
    height: 20px;
}

.content-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 55px;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.content-text h2,
.content-text p,
.content-text img {
    position: relative;
    z-index: 1;
    opacity: 1;
    color: inherit;
}

.content-image {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
}

.section-heading {
    font-family: 'Cinzel', serif;
    font-size: 40px;
    font-weight: 500;
    text-transform: uppercase;
    color: rgb(6, 48, 42);
    margin: 0;
    opacity: 1;
    visibility: visible;
}

.section-image-title {
    width: 60%;
    max-width: 601px;
    height: auto;
}

.section-description {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.5px;
    word-spacing: 2px;
    color: rgb(80, 80, 80);
    margin: 0;
    opacity: 1;
    visibility: visible;
}

.section-subheading {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    word-spacing: 2px;
    color: rgb(39, 39, 39);
    padding: 10px 0 0;
    opacity: 1;
    visibility: visible;
}

/* Reverse Layout */
.reverse-mobile {
    flex-direction: row;
}

/* The Promise Section */
.promise-section {
    background-color: rgb(6, 49, 42);
    border-radius: 50px 50px 0 0;
    padding: 30px 0;
    margin-top: 0;
    margin-bottom: -2px;
    text-align: center;
}

.promise-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 15px 0;
}

.promise-divider-left {
    width: 52%;
    margin: 0 auto 0 0;
    text-align: left;
}

.promise-divider-right {
    width: 52%;
    margin: 0 0 0 auto;
    text-align: right;
}

.divider-line {
    border-top: 0.5px solid #BC8E5C;
    flex-grow: 1;
    height: 0;
}

.divider-text {
    color: rgb(188, 142, 92);
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 400;
    padding: 0 15px;
}

.promise-logo {
    width: 13%;
    /* max-width: 427px; */
    height: auto;
    margin: 50 5;
    /* margin: -23px auto 0; */
    padding: 0;
}

/* Carousel Section */
.carousel-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    overflow: hidden;
}

.swiper {
    width: 100%;
    height: 100vh;
    cursor: grab;
    overflow: hidden;
}

.swiper-grabbing {
    cursor: grabbing;
}

.swiper-wrapper {
    display: flex;
    transition-timing-function: ease-in-out;
    will-change: transform;
}

.swiper-slide {
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    flex-shrink: 0;
    transition: transform 0.8s ease-in-out;
}

.swiper-slide-active .carousel-slide {
    opacity: 1;
}

.carousel-slide {
    width: 100%;
    min-height: 100vh;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    opacity: 1;
}

/* Remove opacity rules for slide effect - slides should be visible during transition */
.swiper-slide {
    transition: transform 0.8s ease-in-out;
}

.swiper-wrapper {
    transition-timing-function: ease-in-out;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.carousel-content {
    padding: 80px 0 0;
    max-width: 1300px;
    margin: 0;
    position: relative;
    z-index: 1;
}

.carousel-title,
.carousel-text,
.carousel-divider {
    position: relative;
    z-index: 1;
    opacity: 1;
}

.carousel-title {
    font-family: 'Poppins', sans-serif;
    font-size: 40px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 46px;
    letter-spacing: 3.2px;
    color: rgb(255, 255, 255);
    margin: 0 0 16px 0;
}

.carousel-divider {
    width: 5%;
    border-top: 4px solid #FFFFFF;
    margin: -10px 0 20px 0;
}

.carousel-text {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.7px;
    word-spacing: 2px;
    color: rgb(255, 255, 255);
    margin: -11px 0 0 0;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav-prev {
    left: 10px;
}

.carousel-nav-next {
    right: 10px;
}

.carousel-nav svg {
    width: 100%;
    height: 100%;
    color: #fff;
}

.carousel-nav path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* About Section */
.about-section {
    padding: 60px 0 80px;
    text-align: center;
    position: relative;
    background-image: url('assets/about-parallax.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 0;
}

.about-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.about-divider::before,
.about-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background-color: #BC8E5C;
}

.about-divider-text {
    color: rgb(6, 48, 42);
    font-family: 'Cinzel', serif;
    font-size: 30px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0 20px;
}

.about-text {
    width: 47%;
    max-width: 47%;
    margin: 30px auto 0;
    position: relative;
    z-index: 1;
    /* padding: 30px 0 0; */
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 24px;
    color: rgb(96, 96, 96);
}

/* Team Section */
.team-section {
    background-color: rgb(245, 245, 245);
    padding: 50px 0;
    display: flex;
    flex-direction: row;
    gap: 0;
    flex-wrap: wrap;
}

.team-member {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.team-member img {
    width: 75%;
    max-width: 429px;
    height: auto;
    margin-bottom: 20px;
}

.team-member-name {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 32px;
    color: rgb(96, 96, 96);
    text-align: center;
    margin: 15px 0 10px 0;
}

.team-member-title {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 500;
    line-height: 17px;
    color: rgb(96, 96, 96);
    text-align: center;
    margin: 10px 0 0 0;
}

/* Developments Section */
.developments-section {
    background-color: rgb(6, 49, 42);
    border-radius: 0 0 50px 50px;
    padding: 50px 0;
    display: flex;
    flex-direction: row;
    gap: 0;
}

.developments-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.developments-title {
    font-size: 34px;
    font-family: 'Cinzel', serif;
    font-weight: 400;
    color: rgb(255, 255, 255);
    text-align: center;
    margin-bottom: 20px;
}

.developments-logo {
    width: 28%;
    max-width: 192px;
    height: auto;
    /* margin-bottom: 30px; */
}

.developments-button {
    background-color: rgb(255, 255, 255);
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: rgb(6, 48, 42);
    border-radius: 30px;
    padding: 15px 40px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.developments-image {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-right: 50px;
}

.developments-image img {
    width: 100%;
    height: auto;
    display: block;
}

.contact-container {
    max-width: 1400px;
    /* margin: 0 auto;
    display: flex;
    flex-direction: row; */
    gap: 0;
    padding: 40px 20px;
    border-bottom: 1px solid black;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.contact-title {
    font-family: 'Cinzel', serif;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 1.1px;
    color: rgb(96, 96, 96);
    padding: 0;
    margin: 0 0 7px 0;
}

.contact-company {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgb(77, 77, 77);
    /* margin: 0 0 15px 0; */
}

.contact-address {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.4px;
    word-spacing: 3px;
    color: rgb(81, 81, 81);
    /* margin: 0 0 20px 0; */
    line-height: 1.8;
}

.contact-list {
    list-style: none;
    padding: 0;
    /* margin: 20px 0 0 0; */
}

.contact-list-item {
    display: flex;
    align-items: center;
    margin: 10px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.8px;
    color: rgb(77, 77, 77);
}

.contact-list-item svg {
    width: 14px;
    height: 14px;
    margin-right: 8px;
    fill: rgb(77, 77, 77);
}

.contact-social {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.social-icons {
    display: flex;
    margin-top: -40px;
    /* gap: 25px; */
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgb(188, 142, 92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: rgb(255, 255, 255);
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px 0;
}

.footer-text {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.4px;
    word-spacing: 4px;
    color: rgb(18, 33, 57);
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-100px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(100px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -50px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animated elements start hidden */
.animated {
    opacity: 0;
    visibility: hidden;
}

/* When visible, trigger animation */
.animated.animated-visible {
    opacity: 1;
    visibility: visible;
    animation-duration: 1.25s;
    animation-fill-mode: both;
    animation-timing-function: ease-out;
}

/* Animation classes */
.animated.animated-visible.fadeInLeft {
    animation-name: fadeInLeft;
}

.animated.animated-visible.fadeInRight {
    animation-name: fadeInRight;
}

.animated.animated-visible.fadeInDown {
    animation-name: fadeInDown;
}

.animated.animated-visible.fadeIn {
    animation-name: fadeIn;
}

/* Slow animation variant */
.animated-slow.animated-visible {
    animation-duration: 2s;
}

.elementor-invisible {
    visibility: visible !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-section {
        flex-direction: column;
    }
    
    .content-text {
        padding: 20px 40px;
    }
    
    .carousel-slide {
        min-height: 70vh;
    }
    
    .carousel-content {
        padding: 30px 0 0;
    }
    
    .carousel-title {
        font-size: 18px;
        line-height: 35px;
    }
}

@media (max-width: 767px) {
    .header-logo {
        width: 35%;
    }
    
    /* 1. Make hero section 60% height */
    .hero-video-section {
        min-height: 65vh;
        height: 60vh;
        margin-top: -97px;
    }
    
    .section-heading {
        font-size: 25px;
    }
    
    .section-image-title {
        width: 66%;
    }
    
    .section-description {
        font-size: 10px;
        padding: 0 20px 0 0;
    }
    
    .reverse-mobile {
        flex-direction: column-reverse;
    }
    
    .about-section {
        padding: 40px 0 60px;
        /* Keep background-attachment: fixed from base rule so parallax also works on mobile */
    }
    
    .content-text {
        padding: 0 40px 20px;
    }
    
    /* 2. Add horizontal margin to content section images */
    .content-image {
        margin: 0 20px;
    }
    
    .promise-logo {
        width: 32%;
    }
    
    /* 3. Reduce carousel height to 60% */
    .carousel-slide {
        min-height: 60vh;
    }
    
    .swiper {
        height: 60vh;
    }
    
    .about-text {
        width: 100%;
        max-width: 100%;
        padding: 30px 32px 0;
        font-size: 11px;
        line-height: 26px;
    }
    
    .team-member img {
        width: 75%;
    }
    
    .team-member-name {
        font-size: 18px;
    }
    
    .developments-logo {
        width: 33%;
    }
    
    /* 4. Move developments image below content */
    .developments-section {
        flex-direction: column;
    }
    
    .developments-image {
        margin: 0 20px;
        order: 2;
    }

    .dev-image {
        border-radius: 10px;
    }
    
    .developments-content {
        order: 1;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .contact-social {
        justify-content: flex-end;
        margin-top: -39px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
}