.wrapper {
    display: grid;
    grid-template-columns: 1fr;
}

.toplanding {
    text-align: center;
    justify-content: center;
    height: 100vh;
    color: rgb(139, 80, 123);
    background-color: rgb(255, 255, 255);
    width: 100%;
    display: flex;
    flex-direction: column;
    font-family: newFont;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    transition: opacity 0.08s linear, transform 0.08s linear;
}

.page-spacer {
    height: 100vh;
}

h1 {
    font-size: 80px;
    font-family: newFont;
    text-align: center;
    line-height: 10px;
}

nav {
    text-align: center;
    position: fixed;
    overflow: visible;
    top: 0px;
    left: 0px;
    background-color: rgb(255, 255, 255);
    width: 100%;
    padding: 15px;
    z-index: 100; 
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: rgb(139, 80, 123);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.nav-dropdown {
    display: none;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    text-align: center;
    padding: 14px 0 6px;
}

.nav-dropdown a {
    font-size: 18px;
}


a {
    text-decoration: none;
    color: #8e8e8e;
}

a:visited {
    color: #8e8e8e;
}

a:hover {
    color: rgb(74, 74, 74);
}

nav a {
    position: relative;
    padding-bottom: 2px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    background-color: rgb(139, 80, 123);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

nav a:hover::after {
    transform: scaleX(1);
}


body {
    background-image: url("../img/backgroundimage.png");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position-x: center;
    background-size: 100%;
}

.stamp {
    display: block;
    transition:
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        filter 0.4s ease;
    filter: drop-shadow(0 0 0px rgba(139, 80, 123, 0));
}

.stamp:hover {
    transform: rotate(6deg) scale(1.08);
    filter: drop-shadow(0 6px 18px rgba(169, 146, 163, 0.29));
}


.projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    justify-items: center;
    gap: 30px;
    padding: 60px 40px;
    padding-top: 300px;
    padding-bottom: 100px;
    min-height: 100vh;
}

.ending {
    text-align: center;
    background-color: white;
    min-height: 100vh;
    z-index: 10;
    justify-content: center;
    align-items: center;
    display: grid;
    grid-template-columns: 1fr;
    color: rgb(139, 80, 123);
    font-family: newFont;
    width: 1fr;
}


.ending h2 {
    transition:
        letter-spacing 0.5s cubic-bezier(0.25, 1, 0.5, 1),
        color 0.4s ease;
    cursor: default;
}

.ending h2:hover {
    letter-spacing: 0.08em;
    color: rgb(180, 110, 160);
}


footer {
    background-color: white;
    width: 100%;
    font-family: myFont;
    color: rgb(139, 80, 123);
    padding: 10px;
    display: grid;
    grid-column: 1fr;
}


@font-face {
    font-family: newFont;
    src: url('../fonts/PPMondwest-Regular.otf');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}



.word {
    display: inline-block;
    opacity: 0;
    transform: translateY(60px);
    animation: wordRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.word-1 { animation-delay: 0.5s; }
.word-2 { animation-delay: 0.7s; }

@keyframes wordRise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-sub {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.7s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.masonry {
    width: 80%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    grid-auto-flow: dense;
}

.masonry-item {
    width: 95%;
    display: block;
    overflow: hidden;
    padding: 5px;
}

p {
    text-align: center;
    font-family: newFont;
}

.bsidesheader {
    text-align: center;
    height: 150px;
    display: flex;
    flex-direction: column;
    padding-top: 50px;
}

.aboutme {
    display: grid;
    gap: 20px;
    margin: 0 auto;
    grid-template-columns: repeat(2, 1fr);
    padding-top: 100px;
    font-size: 20px;
    width: 80%;
}

.center {
    justify-items: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .masonry {
        grid-template-columns: 1fr;
    }
    .projects {
        grid-template-columns: 1fr;
    }
    body {
        background-size: 1200px;
    }
    .aboutme {
        grid-template-columns: 1fr;
    }
    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-toggle {
        display: block;
    }

    .nav-dropdown {
        display: none;
    }

    .nav-dropdown.active {
        display: flex;
    }

    .nav-links {
        display: none; 
    }

    nav > a {
        display: none; 
    }

    

   
}

@media (min-width: 769px) and (max-width: 1024px) {
    .masonry {
        grid-template-columns: repeat(2, 1fr);
    }
    .projects {
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
    }
    .projects a:nth-child(3) {
        grid-column: 1 / -1;
        justify-self: center;
    }
    body {
        background-size: 1200px;
    }
}

.caseheader {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 65px;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 10px;
}

.casecomponents {
    padding: 20px;
    justify-items: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cursor-orb {
    position: fixed;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(139, 80, 123, 0.25);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: multiply;
    transition: width 0.22s ease, height 0.22s ease;
}

.cursor-orbbig {
    width: 36px;
    height: 36px;
    background: rgba(139, 80, 123, 0.13);
}

.tooltip-trigger {
    position: relative;
    display: inline-block;
    cursor: default;
    border-bottom: 1.5px dashed rgb(139, 80, 123);
    color: rgb(139, 80, 123);
}

.tooltip-bubble {
    display: none;
    position: absolute;
    bottom: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%);
    background: rgb(139, 80, 123);
    color: white;
    font-size: 13px;
    font-family: newFont, serif;
    white-space: nowrap;
    padding: 5px 12px;
    border-radius: 6px;
    pointer-events: none;
    z-index: 500;
    box-shadow: 0 4px 14px rgba(139, 80, 123, 0.22);
}

.tooltip-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgb(139, 80, 123);
}

