html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    background-color: #f0f0f0;
    font-family: 'Inter', sans-serif;
}

/* Nav */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #03045E;
    padding: 10px;
    display: flex;
    justify-content: center;
    z-index: 1000;
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-link {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    padding: 5px 10px;
    text-align: center;
}

.nav-link:hover {
    background: #fff;
    color: #03045E;
    border-radius: 8px;
}

.nav-link.active {
    background: #fff;
    color: #03045E;
    border-radius: 8px;
}

/* Hamburger - hidden on large screens */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* -------------------------------------------------------------------------- */

/* Timeline */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* The actual timeline (the vertical ruler) */
.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #03045E;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

/* Container around content */
.container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

/* The circles on the timeline */
.container::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -16px;
    background-color: #f0f0f0;
    border: 6px solid #03045E;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

/* Place the container to the left */
.left {
    left: 0;
}

/* Place the container to the right */
.right {
    left: 50%;
}

/* Add arrows to the left container (pointing right) */
.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid #0077B6;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #0077B6;
}

/* Add arrows to the right container (pointing left) */
.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid #0077B6;
    border-width: 10px 10px 10px 0;
    border-color: transparent #0077B6 transparent transparent;
}

/* Fix the circle for containers on the right side */
.right::after {
    left: -16px;
}

/* The actual content */
.content {
    padding: 20px 30px;
    background-color: #0077B6;
    color: white;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* -------------------------------------------------------------------------- */

/* Dividere sectiuni */
.heading-divider {
    overflow: hidden;
    text-align: center;
    color: #03045E;
    padding-bottom: 50px;
    padding-top: 100px;
}

.heading-divider::before,
.heading-divider::after {
    background-color: #03045E;
    content: "";
    display: inline-block;
    height: 2px;
    position: relative;
    vertical-align: middle;
    width: 50%;
}

.heading-divider::before {
    right: 0.5em;
    margin-left: -50%;
}

.heading-divider::after {
    left: 0.5em;
    margin-right: -50%;
}

/* -------------------------------------------------------------------------- */

/* Hero welcome */
.hero {
    display: flex;
    align-items: top;
    justify-content: center;
    min-height: 100vh;
    padding: 120px 20px 10px;
    gap: 60px;
}

.hero-image {
    flex: 0 0 400px;
}

.hero-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-content {
    max-width: 500px;
}

.hero-name {
    font-size: 42px;
    margin: 0 0 10px;
    font-weight: 700;
    color: #03045E;
}

.hero-title {
    font-size: 20px;
    color: #0077B6;
    margin-bottom: 20px;
}

.hero-text {
    font-size: 16px;
    line-height: 1.6;
    color: #03045E;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: #0077B6;
    color: white;
}

.btn-primary:hover {
    background: #03045E;
}

.btn-outline {
    border: 2px solid #03045E;
    color: #03045E;
}

.btn-outline:hover {
    border: 2px solid #0077B6;
    background: #0077B6;
    color: white;
}

/* -------------------------------------------------------------------------- */

/* Up button */
.up-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: #fff;
    padding: 12px 16px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
    cursor: pointer;

    opacity: 0;
    visibility: hidden;
}

.up-button.show {
    opacity: 1;
    visibility: visible;
}

.up-button:hover {
    background: #0077B6;
    transform: translateY(-3px);
}


/* -------------------------------------------------------------------------- */

/* Typo container */
.typo-container {
    max-width: 1200px;
    margin: auto;
    color: #03045E;
    /*text-align: justify;*/
    text-align: left;
    text-justify: inter-word;
}

.card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.card {
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.number {
    font-weight: bold;
    color: #0077B6;
    margin-right: 8px;
}

.section-title {
    margin-top: 30px;
    font-weight: bold;
    font-size: 18px;
}

/* -------------------------------------------------------------------------- */

/* Media queries - Responsive timeline on screens less than 800px wide */
@media screen and (max-width: 800px) {
    .hero {
        flex-direction: column;
    }

    .hero-content {
        max-width: none;
    }

    .hero-image {
        padding-left: 50px;
        padding-right: 50px;
    }
}

/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {

    /* Place the timelime to the left */
    .timeline::after {
        left: 31px;
    }

    /* Full-width containers */
    .container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    /* Make sure that all arrows are pointing leftwards */
    .container::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent #0077B6 transparent transparent;
    }

    /* Make sure all circles are at the same spot */
    .left::after,
    .right::after {
        left: 15px;
    }

    /* Make all right containers behave like the left ones */
    .right {
        left: 0%;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .heading-divider::before,
    .heading-divider::after {
        display: none;
    }

    h1 {
        font-size: 1.3em;
    }

    .hero {
        padding: 120px 20px 0px;
        gap: 0px;
    }

    .heading-divider {
        padding-bottom: 20px;
        padding-top: 40px;
    }

    .hero-name {
        font-size: 36px;
    }

    .hero-image {
        flex: 0 0 350px;
        padding-left: 20px;
        padding-right: 20px;
    }

    nav {
        display: block;
        padding: 10px;
    }

    .hamburger {
        display: block;
        margin: 0 auto;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        margin: 3px 0;
        padding: 10px;
    }
}