/* ================================
   CSS RESET & VARIABLES
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --header-height: 110px;
    --bg-main: #f4f6f9;
    --bg-alt: #eef2f7;
    --primary: #1e88e5;
    --text-dark: #2c3e50;
    --text-light: #555;
    --card-bg: #ffffff;
    --border-soft: #dcdfe4;
}

/* ================================
   BASE STYLES
================================ */
html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.7;
}

/* ================================
   CONTAINER
================================ */
.container {
    width: 100%;
}

/* ================================
   HEADER & NAVIGATION
================================ */
header {
    position: sticky;
    top: 0;
    height: var(--header-height);
    background: var(--card-bg);
    padding: 20px;
    z-index: 100;
    border-bottom: 1px solid var(--border-soft);
}

header h1 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: var(--text-dark);
    text-align: start;
}

/* Desktop nav */
nav {
    display: flex;
    justify-content: center;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* ================================
   PAGE / SECTION LAYOUT (DESKTOP)
================================ */
main,
section {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    column-gap: 60px;
    row-gap: 20px;
    padding: calc(var(--header-height) - 45px) 10% 80px;
    scroll-margin-top: calc(var(--header-height) - 50px);
}

/* Alternating background */
main,
#contributions {
    background-color: var(--bg-main);
}

#expectations,
#motivations,
#hindrances {
    background-color: var(--bg-alt);
}

/* ================================
   TEXT CONTENT
================================ */
h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 520px;
}

/* ================================
   IMAGE PLACEHOLDERS
================================ */
.intro_image,
.expect_image,
.motiv_image,
.contrib_image,
.hinder_image {
    width: 100%;
    height: 360px;
    border-radius: 14px;
    border: 2px dashed var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        rgba(0,0,0,0.02),
        rgba(0,0,0,0.05)
    );
    overflow: hidden;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

/* ================================
   FOOTER
================================ */
footer {
    text-align: start;
    padding: 30px 20px;
    background: var(--card-bg);
    border-top: 1px solid var(--border-soft);
    font-size: 0.9rem;
    color: #666;
}

/* ================================
   TABLET
================================ */
@media (max-width: 1024px) {
    main,
    section {
        padding: calc(var(--header-height) + 20px) 6% 70px;
    }
}

/* ================================
   MOBILE (HORIZONTAL SCROLL NAV)
================================ */
@media (max-width: 768px) {

    :root {
        --header-height: 70px;
    }

    header {
        height: auto;
        padding: 12px 16px;
    }

    /* Horizontal scroll nav */
    nav {
        justify-content: flex-start;
        gap: 16px;
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: none;          /* Firefox */
        -ms-overflow-style: none;       /* IE */
    }

    nav::-webkit-scrollbar {
        display: none;                  /* Chrome/Safari */
    }

    nav a {
        font-size: 0.95rem;
        flex-shrink: 0;
    }

    main,
    section {
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: calc(var(--header-height) + 20px) 20px 50px;
        row-gap: 24px;
    }

    h2 {
        font-size: 1.6rem;
    }

    p {
        font-size: 1rem;
        max-width: 100%;
    }

    .intro_image,
    .expect_image,
    .motiv_image,
    .contrib_image,
    .hinder_image {
        height: 200px;
    }
}

/* ================================
   SMALL PHONES
================================ */
@media (max-width: 480px) {

    header h1 {
        font-size: 1.3rem;
        text-align: center;
    }

    nav a {
        font-size: 0.9rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .intro_image,
    .expect_image,
    .motiv_image,
    .contrib_image,
    .hinder_image {
        height: 180px;
        border-radius: 10px;
    }
}
