/* CSS Document */

/* Ensure the slider container takes up full height */
.main-1-slider {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
	max-height:750px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Each slide also takes full height */
.main-1-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.main-1-item .container {
	margin: auto;
	width:100%;
	max-width:1320px;
	top: 50%;
	transform: translateY(-50%);
	position: absolute;
}

.main-1-item.active {
    opacity: 1;
    z-index: 2;
}

@media (max-width: 780px) {
.main-1-item .container {
	padding-left: 40px;
    padding-right: 40px;
	top:60%;
}	
	
}

/* Background image handling */
.parallax {
    position: absolute; /* Ensure the parallax element is positioned relative to its container */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    will-change: transform; /* Optimise performance for transform changes */
    z-index: -1; /* Ensure the parallax element is behind content */
    background-position: center;
    background-size: cover;
	opacity: 0.6;
}

.slidebtn {
    display: inline-block;
    text-decoration: none;
    margin: 0 30px 0px 0px;
    transition: background 0.3s ease;
    text-transform: uppercase;
	font-weight: 600;
    text-align: center;
    padding: 6px 35px;
    margin: 0 auto 20px;
    border-radius: 32px;
    color: var(--contrast);
    background-color: var(--accent);
}

.slidebtn:hover {
    background: #ffffff;
}

/* hero nav */

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(176, 174, 174, .1);
    color: #fff;
    padding: 10px 15px 5px 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 14px;
    display: none;
    user-select: none;
	transition: all 0.5s ease-in-out;
}

.hero-nav-prev {
    left: 10px;
	transition: all 0.5s ease-in-out;
}

.hero-nav-next {
    right: 10px;
	transition: all 0.5s ease-in-out;
}

.hero-nav-prev svg, .hero-nav-next svg {
    height: 30px;
    fill: #ffffff;
    opacity: 0.6;
}

/* Show navigation buttons on hover */
.main-1-slider:hover .hero-nav {
    display: block;
}

/* Timeline container */
.slider-timeline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(0, 0, 0, 0);
    z-index: 10;
}

/* Timeline progress bar */
.timeline-progress {
    height: 100%;
    width: 0%;
    background: #cccccc;
    transition: width linear;
}

/* text colours */
h2.title-part-1 {
    font-size: 62px;
    color: #ffffff;
	margin-bottom: 0px;
	line-height: 62px;
}
h2.title-part-2 {
    color: #ffffff;
    font-size: 62px;
	line-height: 62px;
}
h2.title-part-2 .highlight {
    color: var(--accent); /* Choose your desired highlight colour */
}

p.subtitle {
    margin-bottom: 0px;
    color: #ffffff;
	    font-size: 22px;
}
p.subtitle-2 {
    color: #ffffff;
	    font-size: 22px;
}

@media (max-width: 780px) {
h2.title-part-1 {
    font-size: 34px;
    color: #ffffff;
	margin-bottom: 0px;
	line-height: 34px;
}
h2.title-part-2 {
    color: #cccccc;
    font-size: 34px;
	line-height: 34px;
}

p.subtitle {
    display:inline;
}
p.subtitle-2 {
    display:inline;
	margin-bottom:20px;
}	
	
.slidebtn {
    padding: 10px 20px;
	margin: 20px 10px 0px 0px;
	display: block;
}
	
}



/* General animation styles */
.fade-in-down {
    animation: fadeInDown 1s forwards;
}

.fade-out-up {
    animation: fadeOutUp 1s forwards;
}

.fade-in-left {
    animation: fadeInLeft 1s forwards;
}

.fade-out-left {
    animation: fadeOutLeft 1s forwards;
}

.fade-in-right {
    animation: fadeInRight 1s forwards;
}

.fade-out-right {
    animation: fadeOutRight 1s forwards;
}

/* Keyframes for animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-100px);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100px);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* Parrlax before */

.parallax-before:before {
    transition: transform 0.1s linear; /* Smooth animation */
    transform: translateY(var(--before-translate, 0)); /* Use custom property for transform */
}