* {
    box-sizing: border-box;
}

:root[data-theme="light"] {
    --text: #020708;
    --background: #f6fbfe;
    --item-bg: #e7e7e7ab;
    --primary: #2f93bb;
    --secondary: #a290e9;
    --accent: #8e55dd;
    --border: hsla(0, 0%, 35%, 0.212);
    --shadow: rgba(0, 0, 0, 0.25);
}

:root[data-theme="dark"] {
    --text: #e8e8e8;
    --background: #0f0f1a;
    --item-bg: #1a1a2eab;
    --primary: #4fe3f7;
    --secondary: #ca7fe0;
    --accent: #dc79e6;
    --border: hsla(0, 0%, 70%, 0.12);
    --shadow: rgba(255, 255, 255, 0.075);
}

body {
    color: var(--text);
    background-color: var(--background);
    font-family: "Fira Sans", sans-serif;
    transition: all 0.3s ease-in-out;
    margin: 0;
    background-image: radial-gradient(rgba(133, 133, 133, 0.521) 1.7px, transparent 0);
    background-size: 40px 40px;
    background-position: -19px -19px;
}

header {
    top: 0;
    margin: 0 auto;
    z-index: 999;
    display: flex;
    align-items: center;
    position: sticky;
    color: var(--text);
    padding: 8px 40px;
    text-align: center;
    font-size: 1rem;
    font-weight: 400;
    backdrop-filter: blur(8px);
    box-shadow: 0 25px 50px -12px var(--shadow);
    border: solid 1px var(--border);
    background-color: var(--item-bg);
    box-shadow: 2px 2px 10px var(--shadow);
}

#logoarea {
    flex: 1;
    display: flex;
    align-items: center;
    text-decoration: none;
}

nav {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

#social-links {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

#logoarea h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.3rem;
}

#logo {
    width: 45px;
    height: 45px;
    margin-right: 15px;
}

nav a {
    color: #888;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 5px;
    transition: 0.1s all;
    font-weight: 500;
}

nav a:hover {
    color: var(--text);
    font-weight: 700;
}

#social-links a {
    color: #888;
    text-decoration: none;
    font-size: 1.2rem;
    transition: 0.1s all;
}

#social-links a:hover {
    color: var(--text);
}

#theme-toggle {
    background: none;
    border: none;
    color: #888;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    transition: 0.1s all;
}

#theme-toggle:hover {
    color: var(--text);
}

.current_page_link {
    font-weight: 700;
    color: var(--text);
}

.hidden {
    display: none;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    margin-left: 1rem;
}

#mobile-menu {
    background-color: var(--item-bg);
    backdrop-filter: blur(8px);
    border-bottom: solid 1px var(--border);
    padding: 1rem 1.5rem;
}

#mobile-menu nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

#mobile-menu nav a {
    display: block;
    width: 100%;
    text-align: center;
    color: #888;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 500;
    transition: 0.1s all;
}

#mobile-menu nav a:hover,
#mobile-menu nav a.current_page_link {
    color: var(--text);
    font-weight: 700;
}

#mobile-menu .mobile-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: solid 1px var(--border);
    margin-top: 0.5rem;
}

#mobile-menu .mobile-socials a {
    color: #888;
    font-size: 1.2rem;
    text-decoration: none;
    transition: 0.1s all;
}

#mobile-menu .mobile-socials a:hover {
    color: var(--text);
}

#hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 95vh;
    background-image: url('assets/bg-day.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    /* border: solid 1px; */
}

[data-theme="dark"] #hero-section {
    background-image: url('assets/bg-night.jpg');
}

.dynamic-background {
    position: relative;
    background-image: url('assets/bg-day.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow: hidden;
}

[data-theme="dark"] .dynamic-background {
    background-image: url('assets/bg-night.jpg');
}

#hero-container {
    margin-top: 10rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    /* border: solid 1px; */
    width: 100%;
}

#window {
    position: relative;
    object-fit: contain;
    top: 0;
    min-width: 20px;
    margin: 0 auto;
    height: auto;
    max-width: 90%;
    z-index: 0;
    box-shadow: 2px 2px 10px var(--shadow);
}

#hero-box {
    position: relative;
    width: 700px;
    max-width: 90%;
    text-align: center;
    color: var(--text);
    backdrop-filter: blur(4px);
    padding: 3rem 4.2rem;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px var(--shadow);
    border: solid 1px var(--border);
    background-color: color-mix(in srgb, var(--background) 70%, transparent);
    z-index: 100;
}

#hero-box h1 {
    font-size: 30pt;
}

.fancy-text {
    color: var(--accent);
}

#gradient_overlay {
    position: absolute;
    width: 100%;
    height: 6%;
    bottom: 0;
    z-index: 1;
    background: linear-gradient(to bottom, transparent, var(--background));
}

.cta-button {
    display: inline-block;
    padding: 12px 20px;
    margin-top: 20px;
    background-color: var(--primary);
    color: var(--background);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    border-radius: 1rem;
    transition: background-color 0.1s ease-in-out;
}

.cta-button i {
    margin-right: 10px;
}

.cta-button:hover {
    background-color: #399cc4;
}

.information-section {
    min-height: 100vh;
}

.image_info_pair {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 2rem;
    /* border: solid 1px; */
    padding: 3rem;
    margin: 3rem 0;
    box-sizing: border-box;
    backdrop-filter: blur(8px);
    box-shadow: 0 25px 50px -12px var(--shadow);
    border: solid 1px var(--border);
    background-color: var(--item-bg);
    padding: 2.3rem 4rem;
    border-radius: 1rem;
    border-bottom: solid 3px var(--primary);
}

.info_gallery_item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 4 1 0;
    /* border: solid 1px; */
    overflow: hidden;
    min-width: 0;
    padding: 1rem 2rem;
}

.info_gallery_item h1 {
    margin: 0;
}

.image_gallery_item {
    flex: 2 1 0;
    border-radius: 1rem;
    /* border: solid 1px; */
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.image_gallery_item img {
    width: 100%;
    height: auto;
    display: block;
}

.info_title {
    font-size: 35pt;
}

.padded {
    padding: 8rem 15rem 0 15rem;
}

.split_text_view {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    width: 100%;
    margin-top: 5rem;
    /* border: solid 1px; */
}

.split_text_view > * {
  flex: 1 1 0;
  min-width: 0;
}

.column_text_view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.text_view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.text_view_item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
    min-width: 0;
    backdrop-filter: blur(8px);
    box-shadow: 0 25px 50px -12px var(--shadow);
    border: solid 1px var(--border);
    background-color: var(--item-bg);
    padding: 2.3rem 4rem;
    border-radius: 1rem;
    border-bottom: solid 3px var(--primary);
    transition: 0.3s all;
}

.text_view_item:hover {
    transform: translateY(-3px);
}

.text_view_item i {
    margin: 5px 0 0 0;
}

.text_view_item_plain {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    backdrop-filter: blur(8px);
    box-shadow: 0 25px 50px -12px var(--shadow);
    border: solid 1px var(--border);
    background-color: var(--item-bg);
    padding: 2.3rem 4rem;
    border-radius: 1rem;
    border-bottom: solid 3px var(--secondary);
    transition: 0.3s all;
}

.text_view_item_plain:hover {
    transform: translateY(-3px);
}

.text_view_item_plain h2 {
    margin: 0;
}

.text_view_item_plain p {
    margin: 10px 0 0 0;
}

.text_view_item_text_pair {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.text_view_item_text_pair h2 {
    margin: 0;
}

.text_view_item_text_pair p {
    margin: 10px 0 0 0;
}

footer {
    text-align: center;
    padding: 1.5rem;
    background-color: color-mix(in srgb, var(--text) 8%, transparent);
}

@media screen and (max-width: 1400px) {
    .padded {
        padding: 4rem;
    }

    .split_text_view {
        flex-direction: column;
    }
}

@media screen and (max-width: 900px) {
    .info_gallery_item {
        flex: none;
        width: 100%;
    }

    #hero-box {
        width: 100%;
        padding: 2rem 1rem;
    }

    #hero-box h1 {
        font-size: 25pt;
    }

    .padded {
        padding: 1rem;
    }

    .image_info_pair {
        flex-direction: column;
    }

    .image_gallery_item {
        order: -1;
        flex: none;
        width: 100%;
    }

    header nav,
    #social-links a {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

@media screen and (min-width: 901px) {
    .mobile-menu-btn {
        display: none;
    }

    #mobile-menu {
        display: none !important;
    }
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 100px auto;
}

.timeline-container {
    padding: 10px 20px;
    position: relative;
    width: 50%;
}

.timeline-text-box {
    padding: 20px 50px;   
    backdrop-filter: blur(8px);
    box-shadow: 0 25px 50px -12px var(--shadow);
    border: solid 1px var(--border);
    border-radius: 1rem;
    z-index: 3;
    background-color: color-mix(in srgb, var(--background) 70%, transparent);
}

.timeline-text-box img {
    width: 100%;
}

.left-container {
    left: 0;
}

.right-container {
    left: 50%;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 100%;
    top: 0;
    left: 50%;
    margin-left: -3px;
    z-index: 0;
    background-color: color-mix(in srgb, var(--background) 70%, transparent);
}

.title_group {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0;
}

.title_group img {
    width: auto;
    height: 4rem;
    margin-right: 1rem;
}

@media screen and (max-width: 900px) {
    .timeline {
        margin: 50px auto;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-container {
        width: 100%;
        padding-left: 80px;
        padding-right: 25px;
    }

    .timeline-text-box {
        font-size: 13px;
    }

    .right-container {
        left: 0;
    }
}