/* General */
body {
    margin: 0;
    background: rgb(15,15,15);
    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;
    }

        #big-header a:hover {
            color: cyan;
        }

#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: white;
        top: 32px;
        bottom: 0px;
        transform: translateX(-50%);
    }

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

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

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

    .project .content {
        background: rgba(255,255,255,0.05);
        border: 0px solid white;
        padding: 20px;
        border-radius: 16px;
        display: inline-block;
    }

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

.date {
    color: lightgray;
    margin-bottom: 15px;
    font-size: 24px;
}

/* Thumbnail */
.project img {
    width: 460px;
    height: auto;
    border-radius: 20px;
    border: 4px solid white;
}

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

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

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

.end {
    font-size: 30px;
}

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

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

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

/* CONTACT */
.contact a {
    color: white;
    font-size: 30px;
    font-weight: bold;
    background-color: rgb(40,40,40);
    border-radius: 8px;
    padding: 8px 8px;
    text-align: center;
    text-decoration: none;
    margin: 20px 30%;
    display: block;
}

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

/* 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;
            }
}
