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

body {
    font-family: 'Inter', sans-serif;
    color: #fff;
    background-color: #000;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.logo,
.up-next-label {
    font-family: 'Montserrat', sans-serif;
}

/* Hero Section Base */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* High quality image of Norway farms */
    background-image: url('../images/photo_1.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: background-image 1.5s ease-in-out;
}

/* Gradients for readability */
.overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0) 100%),
        linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 35%);
    pointer-events: none;
    z-index: 1;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 5rem;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.nav-left,
.nav-right,
.nav-icons {
    display: flex;
    align-items: center;
}

.nav-left {
    gap: 5rem;
}

.nav-right {
    gap: 3.5rem;
}

.logo {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    color: #fff;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.65;
    transition: opacity 0.3s;
    position: relative;
}

.nav-links li a:hover {
    opacity: 1;
}

/* Active Nav Indicator */
.main-links li a.active {
    opacity: 1;
    font-weight: 500;
}

.main-links li a.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
}

/* Nav Icons */
.nav-icons {
    gap: 1.5rem;
}

.nav-icons button {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    padding: 0;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.nav-icons button:hover {
    opacity: 1;
}

/* Main Content Wrapper */
.content-container {
    flex: 1;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    padding: 0 5rem;
    margin-top: 1rem;
}

/* Left Hero Content */
.main-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 2rem;
    letter-spacing: -1.5px;
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.85;
    font-weight: 400;
    max-width: 480px;
}

.slider-preview {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) scale(0.5);
    transform-origin: right center;
    height: 480px;
    display: flex;
}

.black-card {
    width: 350px;
    background-color: #030303;
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.up-next-label {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #777;
    font-weight: 600;
}

.up-next-info .arrow-icon {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.up-next-info h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}

.up-next-info p {
    color: #888;
    font-size: 1rem;
    margin: 0;
}

.image-peek {
    aspect-ratio: 16 / 9;
    height: 100%;
    /* A different Norway landscape for the next slide */
    background-image: url('../images/photo_2.jpg');
    background-size: cover;
    background-position: center;
    transition: background-image 1.5s ease-in-out;
}

/* Bottom Footer */
.hero-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 10;
}

.bottom-info {
    display: flex;
    gap: 6rem;
    margin-bottom: 0.8rem;
}

.info-block {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.info-block strong {
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    letter-spacing: 0.3px;
}

.info-block span {
    font-size: 0.95rem;
    opacity: 0.75;
    font-weight: 300;
}

/* Bottom Controls */
.bottom-controls {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.pagination .current,
.pagination .total {
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.progress-bar {
    width: 140px;
    height: 2px;
    background: rgba(255, 255, 255, 0.25);
    position: relative;
    border-radius: 2px;
}

.progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 25%;
    background: #fff;
    border-radius: 2px;
}

.slider-buttons {
    display: flex;
    gap: 1rem;
}

.slider-buttons button {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #000;
    border: none;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-buttons button:hover {
    background-color: #222;
}

/* Responsive adjustments */
@media (max-width: 1200px) {

    .content-container,
    .navbar,
    .hero-bottom {
        padding-left: 3rem;
        padding-right: 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 900px) {
    .slider-preview {
        display: none;
    }

    .main-content {
        max-width: 100%;
    }

    .bottom-info {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 3rem;
    }

    .bottom-controls {
        width: 100%;
        justify-content: space-between;
    }
}