body {
    font-family: "VT323";
    display: flex;
    flex-flow: row wrap;
    justify-content: left;
    width: 100vw;
    height: 100vh;
    margin: 0;
    overscroll-behavior: none;
}

p {
    margin: 0;
}

svg {
    transform: rotate(180deg);
}

.about-heading {
    font-size: 3rem;
    width: 8em;
    margin: 0 0 1rem;
}

#main-body-wrapper {
    display: flex;
    flex-flow: row wrap;
}

/* landing page starts */

#first-page {
    width: 100vw;
    height: 100vh;
    position: absolute;
}

#arran {
    content: url(assets/photos/arran.webp);
    z-index: -100;
    width: 100vw;
    height: 100vh;
    position: fixed;
    object-fit: cover;
}

#introduction {
    padding-top: 6vh;
    padding-left: 8vw;
    padding-right: 8vw;
    display: flex;
    flex-flow: column wrap;
    position: absolute;
    z-index: 1;
}

#textHeading {
    order: 1;
    font-size: 3em;
    width: 8em;
}

#textBody {
    order: 2;
    font-size: 1.5em;
    width: 25vw;
    padding-top: .2em;
    text-align: justify;
}

.links {
    order: 3;
    padding-top: .2em;
    font-size: x-large;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 10;
}

.links a {
    margin-right: 1rem;
    color: inherit;
    text-decoration: none;
}

/* landing page ends */

/* scrolled up about section starts */

#more-information {
    display: flex;
    flex-flow: row wrap;
    align-content: flex-start;
    justify-content: center;
    background: #333333FF;
    color: white;
    z-index: 2;
    font-size: 2em;
    margin-top: 100vh;
    width: 100vw;
    min-height: 100vh;
    height: auto;
    overflow: hidden;
}

#more-information #projects img {
    aspect-ratio: 1 / 1;
    width: 200px;
    height: 200px;
}

#about-container {
    display: flex;
    flex-flow: row wrap;
    width: inherit;
    padding: 5rem;
    justify-content: center;
}

#about-container-text {
    display: flex;
    flex-flow: row wrap;
    width: 40vw;
    padding-left: 2rem;
    align-content: flex-start;
}

#profile-pic {
    height: 500px;
    border-radius: 10px;
    object-fit: cover;
}

#about-extended {
    font-size: 1.5rem;
    text-align: justify;
    padding-bottom: 1rem;
    border-bottom: 1px solid #adb759
}

#tab-titles {
    display: flex;
    margin: 1rem 0 1rem;
    flex-wrap: wrap;
}

#tab-container {
    display: flex;
    flex-flow: column wrap;
}

.tab-links {
    margin-right: 2rem;
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
}

.tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    background-color: #adb759;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: width 0.3s ease-in;
}

.tab-links.active-link::after {
    width: 50%;
}

.tab-contents ul {
    padding: 0;
    margin: 0;
}

.tab-contents ul li {
    list-style: none;
    margin: 10px 0;
    font-size: 1rem;
}

.tab-contents ul li span {
    color: #939c4f;
    font-size: 2rem;
}

.tab-contents {
    display: none;
}

.tab-contents.active-tab {
    display: block
}

#wave-divider {
    width: 100vw;
    height: 50px;
    display: block;
}

#projects-container {
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-content: flex-start;
    width: 100vw;
    height: auto;
    padding: 4rem;
    color: #ffffff;
}

.about-heading {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    width: 100%;
}

#project-card-container {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    justify-self: center;
    align-content: space-between;
    margin-left: 4rem;
    margin-right: 4rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 280px;
    margin-bottom: 2rem;
    margin-right: 1rem;
}

.project-card img {
    height: 272px;
    aspect-ratio: 4/3;
    width: auto;
    border: 4px solid #939c4f;
    border-radius: 10px;
    object-fit: cover;
}

.project-card-layer {
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0,0,0,0.6), #adb759);
    border-radius: 10px;
    position: absolute;
    bottom: 0;
    left: 0;
    overflow: hidden;
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: center;
    transition: height 0.3s ease-in-out;
    cursor: pointer;
}

.project-card-layer h3 {
    height: 20%;
    color: #ffffff;
    font-size: 1.3rem;
    margin-top: 3rem;
    margin-bottom: 0;
}

.project-card-layer p {
    height: 20%;
    color: #ffffff;
    font-size: 1.3rem;
    text-align: justify;
    margin: 0 2rem 0 2rem;
}

.project-card:hover .project-card-layer {
    height: 100%;
}

/* contact me section */

#contact-me-container {
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-content: center;
    align-items: center;
    justify-items: center;
    width: 100vw;
    height: auto;
    color: #ffffff;
    margin-bottom: 0;
    padding: 4rem 4rem 0;
}

.contact-description {
    text-align: justify;
    width: 30%;
    padding-bottom: 3rem;
}

contact-container-footer {
    display: flex;
    flex-flow: row wrap;
}

#contact-footer p {
    font-size: 1rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

#contact-me-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

#contact-me-buttons a {
    text-decoration: none;
}

#container-for-scroll {
    position: absolute;
    display: flex;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    z-index: -2;
}

#scroll {
    position: absolute;
    width: 42px;
    height: 42px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    animation: down 1.5s infinite;
    -webkit-animation: down 1.5s infinite;
    z-index: 1;
}

#scroll::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 13px;
    width: 14px;
    height: 14px;
    border-left: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(135deg);
}

@keyframes down {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translateY(-15px);
    }
    40% {
        transform: translate(0);
    }
}
@-webkit-keyframes down {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translateY(-15px);
    }
    40% {
        transform: translate(0);
    }
}

/* Mobile Responsive Styles */
@media only screen and (max-width: 768px) {
    #textHeading {
        font-size: 2.5em;
        width: auto;
    }

    #textBody {
        font-size: 1.3em;
        width: 80vw;
        padding-top: .2em;
        text-align: justify;
    }

    #introduction {
        padding-top: 6vh;
        padding-left: 5vw;
        padding-right: 5vw;
    }

    #about-container {
        flex-direction: column;
        align-items: center;
        padding: 2rem 1rem;
    }

    #about-container-text {
        width: 100%;
        padding-left: 0;
        padding-top: 2rem;
    }

    #profile-pic {
        height: 300px;
        width: 200px;
    }

    #about-extended {
        font-size: 1.2rem;
    }

    .tab-links {
        font-size: 1.2rem;
        margin-right: 1rem;
        margin-bottom: 1rem;
    }

    .tab-contents ul li {
        font-size: 0.9rem;
    }

    .tab-contents ul li span {
        font-size: 1.5rem;
    }

    .about-heading {
        font-size: 2.5rem;
        width: auto;
        text-align: center;
    }

    #projects-container {
        padding: 2rem 1rem;
    }

    #project-card-container {
        margin-left: 0;
        margin-right: 0;
        justify-content: center;
    }

    .project-card {
        aspect-ratio: 4/3;
        max-width: 400px;
        margin-right: 0;
    }

    .project-card img {
        max-width: 392px;
    }

    #contact-me-container {
        padding: 2rem 1rem 0;
    }

    .contact-description {
        width: 90%;
        text-align: center;
    }

    #contact-me-buttons {
        gap: 1.5rem;
    }

    #arran {
        content: url(assets/photos/arran_mobile.webp);
    }
}

/* Extra small mobile devices */
@media only screen and (max-width: 480px) {
    #textHeading {
        font-size: 2em;
    }

    #textBody {
        font-size: 1.1em;
        width: 85vw;
    }

    #introduction {
        padding-top: 4vh;
        padding-left: 3vw;
        padding-right: 3vw;
    }

    #about-container {
        padding: 1rem 0.5rem;
    }

    #profile-pic {
        height: 250px;
        width: 170px;
    }

    #about-extended {
        font-size: 1rem;
    }

    .tab-links {
        font-size: 1rem;
        margin-right: 0.5rem;
    }

    .tab-contents ul li {
        font-size: 0.8rem;
    }

    .tab-contents ul li span {
        font-size: 1.2rem;
    }

    .about-heading {
        font-size: 2rem;
    }

    #projects-container {
        padding: 1rem 0.5rem;
    }

    .project-card {
        aspect-ratio: 4/3;
        max-width: 300px;
        margin-right: 0;
    }

    .project-card img {
        max-width: 292px;
    }

    .project-card-layer h3 {
        font-size: 1rem;
        margin-top: 1rem;
    }

    .project-card-layer p {
        font-size: 0.9rem;
    }

    #contact-me-container {
        padding: 1rem 0.5rem 0;
    }

    .contact-description {
        width: 95%;
        font-size: 0.9rem;
    }

    #contact-me-buttons {
        gap: 1rem;
    }

    #contact-me-buttons i {
        font-size: 2.5rem !important;
    }
}

/* Landscape orientation for mobile */
@media only screen and (max-height: 600px) and (orientation: landscape) {
    #introduction {
        padding-top: 2vh;
    }

    #textHeading {
        font-size: 2em;
    }

    #textBody {
        font-size: 1.2em;
        width: 60vw;
    }

    #container-for-scroll a {
        margin-top: 80vh;
    }
}