/* General */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: rgb(20, 20, 20);
    color: white;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
}

section {
    padding: 80px 40px;
    min-height: 100vh;
    text-align: center;
}

h1 {
    text-align: center;
}

/* Headers */
#big-header {
    position: absolute;
    width: 100%;
    top: 30px;
    text-align: center;
    z-index: 15;
}

#big-header a {
    color: white;
    margin: 0 20px;
    font-size: 24px;
    letter-spacing: 2px;
    text-decoration: none;
    padding: 5px 8px;
}

#big-header a:hover {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

#small-header {
    position: fixed;
    top: -80px;
    width: 100%;
    background: rgb(10, 10, 10);
    text-align: center;
    padding: 16px 0;
    z-index: 80;
    transition: top 0.3s;
}

#small-header.show {
    top: 0;
}

#small-header a {
    color: white;
    font-size: 16px;
    font-weight: bold;
    background-color: rgb(40, 40, 40);
    border-radius: 8px;
    padding: 5px 8px;
    text-decoration: none;
    margin: 0 10px;
    display: inline-flex;
}

#small-header a:hover {
    background-color: rgb(100, 100, 100);
}

/* HOME */
#home {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

#home h1 {
    font-size: 80px;
    margin: 0;
    letter-spacing: 4px;
}

#home h2 {
    font-size: 22px;
    margin-top: 20px;
    letter-spacing: 2px;
    color: #ddd;
}

/* Video Slideshow */
.bg-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    z-index: -2;
}

/* Dark overlay */
.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

/* Fade Effects */
.fade-in {
    opacity: 0;
    transition: opacity 1.5s ease;
}

.fade-in.show {
    opacity: 1;
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* PROJECTS TIMELINE */
.timeline {
    position: relative;
    width: 100%;
    margin-top: 80px;
}

/* Vertical line */
.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    width: 6px;
    background: rgb(100, 100, 100);
    top: 32px;
    bottom: 0px;
    transform: translateX(-50%);
}

/* Project cards */
.project {
    width: 50%;
    padding-bottom: 70px;
    position: relative;
}

.project.left {
    left: 0%;
    padding-right: 50px;
    text-align: right;
}

.project.right {
    left: 50%;
    padding-left: 50px;
    text-align: left;
}

.description {
    position: absolute;
    top: 0px;
    width: 420px;
    text-align: left;
    font-size: 16px;

    background: rgba(255, 255, 255, 0.04);
    padding: 0 20px 0 20px;
    border-radius: 16px;

    display: inline-block;
}

.project.left .description {
    left: 100%;
    transform: translateX(50px);
}

.project.right .description {
    right: 100%;
    transform: translateX(-50px);
}

.project .content {
    background: rgba(255, 255, 255, 0.2);
    border: 4px solid white;
    padding: 20px;
    border-radius: 16px;
    display: inline-block;
    box-shadow: 20px 20px 10px 2px rgba(0, 0, 0, 0.5);
}

.project .content h2 {
    margin: 0 0 0 0;
    font-size: 26px;
}

.date {
    color: lightgray;
    margin: 5px 0 15px 0;
    font-size: 16px;
}

/* Thumbnail */
.project img {
    width: 380px;
    height: auto;
    border-radius: 20px;
    border: 4px solid white;
    box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.5);
}

/* Connectors */
.project.left::after,
.project.right::after {
    content: "";
    position: absolute;
    top: 5%;
    width: 24px;
    height: 24px;
    background: rgb(100, 100, 100);
    border-radius: 50%;
}

.project.left::after {
    right: -12px;
}

.project.right::after {
    left: -12px;
}

.end {
    font-size: 30px;
    background: rgba(255, 255, 255, 0.04);
    border: 4px solid rgb(100, 100, 100);
    border-radius: 50%;
    align-items: center;
    text-align: center;
    width: 220px;
    height: 220px;
    padding: 20px;
    margin-top: 0;
    display: inline-flex;
}

/* RESUME */
.resume a {
    text-decoration: none;
}

/* ABOUT */
.about p {
    text-align: left;
    margin-left: 20%;
    margin-right: 20%;
    font-size: 20px;
}

.about img {
    width: 460px;
    height: auto;
    border-radius: 20px;
    border: 4px solid white;
}

/* CONTACT */
.contact {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;

    background: rgb(30, 30, 30);
    padding: 8px;
    border-radius: 16px;
}

.contact a {
    color: white;
    font-size: 24px;
    font-weight: bold;
    padding: 16px 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.contact a:hover {
    background-color: rgb(100, 100, 100);
    border-radius: 8px;
}

/* Icons */
.icon {
    width: 30px;
    height: 30px;
}

/* Responsive */
@media (max-width: 900px) {
    .timeline::before {
        left: 20px;
    }

    .project {
        width: 100%;
        padding-left: 60px;
        text-align: left;
    }

    .project.left,
    .project.right {
        left: 0;
    }

    .project.left::after,
    .project.right::after {
        left: 12px;
    }
}