/*{
    border: solid red 2px;
}*/

body {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: lightgray;
    overflow-x: hidden;
    position: relative;
}

body::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to bottom, #1c0713 0%, transparent 200px),
        url('static/PaperTexture.jpeg');
    background-repeat: no-repeat, repeat-y;
    opacity: 0.4;
    mix-blend-mode: multiply;
    z-index: -1;
    pointer-events: none;
    animation: materialize 0.8s ease-out;
}

@keyframes materialize {
    from {
        filter: brightness(0.1) contrast(1.5);
        opacity: 1;
    }
    to {
        filter: brightness(1) contrast(1);
        opacity: 0.4;
    }
}

a{
    color: black;
}

a:visited{
    color: black;
}

#typewriter{
    display: inline-block;
    background-color: white;
    border: 2px solid black;
    padding-left: 30px;
    padding-right: 20px;
    width: auto;
    width: 100%;
    box-sizing: border-box;
}

#home-button{
    width: 50px;
    height: 50px;
    border: 2px solid black;
    background-color: white;
    color: black;
    box-shadow: 10px 40px 50px gray;
    display: inline-block;
    align-content: center;
    text-align: center;
    font-size: 32px;
    cursor:pointer;

    position: relative;
    top:5px;
}

#home-button:hover{
    background-color: black;
    color: white;
}

/* Portfolio Styling */
    /* Portfolio Container */

    .portfolio {
        max-width: 1400px;
        margin: 0 auto;
        padding: 40px 20px;
    }

    /* Portfolio Header Section */
    .portfolio-header {
        margin-bottom: 90px;
    }

    .portfolio-title {
        max-width: 100%;
        display: inline;
        position: relative;
        left: 40px;
        z-index: 1;
        bottom:0;
    }

    .portfolio-subtitle {
        font-size: 1.1rem;
        color: #666;
        max-width: 600px;
        margin: 0 auto;
        font-style: italic;
    }

    /* Grid Layout - Masonry style */
    .portfolio-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 40px;
        margin: 40px;
        margin-bottom: 60px;
    }

    /* Responsive grid adjustments */
    @media (min-width: 768px) {
        .portfolio-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (min-width: 1200px) {
        .portfolio-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    .project-description{
        margin-left: 40px;
        padding: 10px;
        width: 50%;
        height: fit-content;
        background-color: white;
        border: 2px solid black;
        box-shadow: 10px 40px 50px rgba(0, 0, 0, 0.15);
    }

    /* Work card */
    .work {
        position: relative;
        background-color: transparent;
        box-sizing: border-box;
        width: 100%;
        height: fit-content;
        margin: 0;
        box-shadow: 10px 40px 50px rgba(0, 0, 0, 0.15);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        cursor: pointer;
    }

    .work:hover {
        transform: translateY(-5px);
        box-shadow: 15px 45px 60px rgba(0, 0, 0, 0.2);
    }

    .work-header {
        background-image: url('static/tornoutpaper.png');
        width: 100%;
        height: 25px;
        box-sizing: border-box;
        background-repeat: repeat-x;
        background-size: auto 100%;
        position: relative;
        background-color: #ddd;
    }

    .work-img {
        background-color: white;
        object-fit: contain;
        width: 100%;
        height: auto;
        border: 2px solid black;
        border-top: none;
        box-sizing: border-box;
        position: relative;
        display: block;
    }

    .work-label {
        background-color: white;
        padding: 10px 15px;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
        position: relative;
        border: 2px solid black;
        border-top: none;
    }

    .work-title {
        font-size: 1rem;
        font-weight: 400;
        margin: 0 0 3px 0;
        font-style: italic;
    }

    .work-description {
        font-size: 0.85rem;
        color: #666;
        margin: 0;
        line-height: 1.3;
    }

    /* Category filters */
    .portfolio-filters {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-bottom: 40px;
        flex-wrap: wrap;
    }

    .filter-btn {
        padding: 8px 20px;
        border: 2px solid black;
        background-color: white;
        cursor: pointer;
        font-size: 0.95rem;
        transition: all 0.3s ease;
        font-family: 'Georgia', serif;
    }

    .filter-btn:hover,
    .filter-btn.active {
        background-color: black;
        color: white;
    }

    /* Section dividers */
    .portfolio-section {
        margin-bottom: 80px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
        padding-bottom: 15px;
        border-bottom: 3px solid black;
        font-weight: 400;
        letter-spacing: 1px;
    }

/* Index */
#index-body{
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    background-image: url('static/Sequence 01.gif');
    background-size: cover;
    flex-direction: column;
    align-items: flex-start;
}

#index-menu{
    width: 30vw;
    margin: 65px;

    border-radius: 2px;
    border: 2px solid #fff8d8;
    box-shadow: 0px 0px 20px #94b0da
}

.collapsible{
    background-color: #94b0da;
    color: black;
    cursor:pointer;
    padding: 15px;
    width: 30vw;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
}

.active, .collapsible:hover{
    background-color: black;
    color:#94b0da;
}

.collapsible-content{
    padding-left: 30px;
    display: block;
    overflow: hidden;
    background-color: #94b0da;
    max-height: 0px;
    transition: max-height 0.2s ease-out;
    box-sizing: border-box;
}

.collapsible-content > *{
    width: 100%;
    display: block;
    padding: 5px 0;
}

#line-target-menu{
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #fff8d8;
    left: 50.5vw;
    bottom: 9vh;
    background-color: #94b0da;
}

#line-target-type{
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid black;
    left: 65vw;
    animation: type-print 3s forwards;
    background-color: #fff8d8;
}

@keyframes type-print{
    from{bottom: 30vh}
    to{bottom: 55vh}
}

/* 3D Works */
#lejos-header{
    position: relative;
    display: inline-block;
    bottom: 40px;

    font-family: 'Great Vibes Regular', cursive;
    color: lightblue;
    text-shadow: 2px 2px 1px black;
    font-size: 80px;
    margin: -40px;
}

#biscuit-header{
    display: inline;
    position: relative;
    width: 75%;
    margin-bottom: -100px;
    bottom: 60px;
    right: 60px;
}

#threed-header{
    background-color: lightgray; 
    margin-bottom: -1000px;
}

/* Fonts */
@font-face {
    font-family: "Great Vibes Regular";
    src: url(static/Fonts/GreatVibes-Regular.ttf);
}