:root {
    --header-height: 60px;
}

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

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 100;
    color: white;
}

.header__logo {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.header__logo img {
    height: 30px;
    margin-right: 10px;
}

/* Menu Toggle */
.menu-toggle {
    width: 30px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* Navigation Panel */
.nav-panel {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: rgba(20, 20, 20, 0.95);
    z-index: 90;
    transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    padding-top: calc(var(--header-height) + 40px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nav-panel.active {
    right: 0;
}

.nav-panel ul {
    list-style: none;
}

.nav-panel ul li a {
    display: block;
    padding: 15px 30px;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    transition: background-color 0.2s;
}

.nav-panel ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.lang-switcher {
    padding: 30px;
    text-align: center;
}

.lang-switcher a {
    color: #888;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 5px;
}

.lang-switcher a.active {
    color: white;
    font-weight: bold;
}

/* Slider */
.slider-container {
    height: 100%;
    width: 100vw;
    position: relative;
    cursor: grab;
}

.slider-container.grabbing {
    cursor: grabbing;
}

.slider-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.slide {
    position: relative;
    flex-shrink: 0;
    width: 100vw; /* Use viewport width for consistency */
    height: 100%;
    background-size: cover;
    background-position: center;
    user-select: none;
    display: flex;
    justify-content: flex-end; /* Align content to the bottom */
    flex-direction: column;
    align-items: flex-start; /* Align content to the left */
}

.slide__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.slide__content-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 30px 100px 30px; /* Bottom padding above buttons */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.slide__text {
    color: #ffffff;
    font-size: 6rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.slide__description {
    color: #ffffff;
    font-size: 1.5rem;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
    margin-top: 10px;
}

.slide__button {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    padding: 10px 30px;
    background-color: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    text-decoration: none;
    font-size: 1.4rem;
    transition: background-color 0.2s, color 0.2s;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: pointer;
    border-radius: 25px;
}

.slide__button:hover {
    background-color: #ffffff;
    color: #000000;
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    bottom: 20px;
    background-color: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-arrow::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
}

.slider-arrow:hover {
    background-color: #ffffff;
    color: #000000;
}

.slider-arrow:hover::before {
    border-top: 2px solid #000000;
    border-left: 2px solid #000000;
}

.slider-arrow.prev {
    right: 80px;
}

.slider-arrow.prev::before {
    transform: rotate(-45deg);
    margin-left: 4px;
}

.slider-arrow.next {
    right: 20px;
}

.slider-arrow.next::before {
    transform: rotate(135deg);
    margin-right: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .slide__text {
        font-size: 3.5rem;
    }
    .slide__description {
        font-size: 1.2rem;
    }
}
