
* {
    box-sizing: border-box;
}

@font-face {
    font-family: 'Gothic 821';
    src: url('../fonts/goth821c.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

html {
    background-color: #E1D2B3;
}

/*...............................................LOADING SCREEN...............................................................*/

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #E1D2B3;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-stars {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.loading-star-element {
    position: absolute;
    pointer-events: none;
}

.loading-anim {
    position: relative;
    width: 15vw;
    height: auto;
    z-index: 2;
}

/*...............................................TYPOGRAPHY...............................................................*/

.lexend-regular {
  font-family: "Lexend", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

h1 {
    font-family: "Gothic 821";
    font-size: 4rem;
    letter-spacing: 3px;
    line-height: 70px;
    color: #2A2A2A;
    margin-bottom: 1rem;
}

h2 {
    font-family: "Lexend";
    font-size: 1.5rem;
    line-height: 50px;
    letter-spacing : 0.54px;
    font-weight: 400;
    color: #2A2A2A;
    margin-bottom: 0.75rem;
}

h2 b {
    font-weight: 700;
}

p {
    font-family: "Lexend";
    font-optical-sizing: auto;
    font-size: 1rem;
    line-height: 50px;
    letter-spacing : 0.54px;
    color: #2A2A2A;
    margin-top: 0;
    margin-bottom: 1rem;
}
/*...............................................NAVBAR...............................................................*/

.burger-menu {
    position: fixed;
    top: 3rem;
    right: 3rem;
    z-index: 2000;
    cursor: pointer;
    transition: right 0.4s ease;
}

.burger-menu.active {
    right: calc(7.5vw - 20px);
}

.burger-icon {
    width: 40px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.burger-icon span {
    width: 100%;
    height: 4px;
    background-color: #2A2A2A;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-icon.active span:nth-child(1) {
    transform: translateY(13px) rotate(45deg);
}

.burger-icon.active span:nth-child(2) {
    opacity: 0;
}

.burger-icon.active span:nth-child(3) {
    transform: translateY(-13px) rotate(-45deg);
}

.navbar {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 1500;
    background-color: #E1D2B3;
    width: 15vw;
    height: 100vh;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.navbar.active {
    transform: translateX(0);
}

.nav-item {
    position: relative;
    text-decoration: none;
    padding: 0.8rem;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-item p {
    position: relative;
    z-index: 2;
    color: #2A2A2A;
    transition: color 0.3s ease;
    margin: 0;
    text-align: center;
}

.nav-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 150%;
    height: 60%;
    background-color: #DEBE78;
    border-radius: 999px;
    transition: transform 0.4s ease;
    z-index: 1;
}

.nav-item:hover .nav-bg {
    transform: translate(-50%, -50%) scale(1);
}

.nav-item:hover p {
    color: #2A2A2A;
}

/*...............................................HOME SECTION...............................................................*/


.home {
    height: 100vh;
    display: flex;
    flex-direction: row;
    padding-top: 10%;
    padding: 5%;
    background-color: #E1D2B3;
    color: #2A2A2A;
    position: relative;
    z-index: 1;
}

.home-content {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    left: 2%;
    top: 10%;
   
}

.home-star {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40vw;
    z-index: -1;
}

.stars {
    position: absolute;
    width: 100%;
    height: 90%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.star-element {
    position: absolute;
    pointer-events: none;
}

.hello-container {
    position: relative;
    display: inline-block;
    width: fit-content;
}

.about-card {
    position: relative;
    flex: 1;
    display: flex;
    align-self: center;
    justify-content: center;
    perspective: 1000px;
    height: fit-content;
    width: fit-content;
    z-index: 2;
}

.home-base {
    border: 0.15rem solid #2A2A2A;
    border-radius: 15px;
}


.card-inner {
    position: relative;
    transform-style: preserve-3d;
    z-index: 1;
}

.card-front,
.card-back {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.card-front img,
.card-back img {
    height: 60vh;
    border-radius: 15px;
    display: block;
  
}

.card-back {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotateY(180deg);
    transform-style: preserve-3d;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.card-back h1 {
    position: relative;
    z-index: 1;
    font-size: clamp(2rem, 5vh, 3rem);
    text-align: center;
    margin: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.heading-1 {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, 4vh);
    width: max-content;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.heading-2 {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 50vh);
    width: max-content;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.card-back .falling {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: auto;
    z-index: 10;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.card-back .shoe {
    position: absolute;
    bottom: 10%;
    left: 32%;
    transform: translateX(-50%);
    width: 12%;
    top: 35%;
    height: auto;
    rotate: 58deg;
    z-index: 20;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.card-back .headphones {
    position: absolute;
    top: 45%;
    left: 71%;
    rotate: 58deg;
    transform: translateX(-50%);
    width: 12%;
    height: auto;
    z-index: 15;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/*...............................................FALLING ANIMATION SECTION...............................................................*/

.detached {
    position: fixed;
    z-index: 99;
    pointer-events: none;
}

.fall-section {
    position: relative;
    width: 100vw;
    min-height: 200vh;
    z-index: 3;
    display: flex;
    flex-direction: column;
}

.about-me {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    padding: 5%;
    padding-top: 10%;
    z-index: 101;
    overflow: visible;
}

.about-me h1,
.about-me h2 {
    position: relative;
    margin: 0%;
    z-index: 100;
}

.about-me-header {
    position: relative;
    left: 5vw;
}

.header-star {
    position: absolute;
    top: 3.5em;
    left: 14em;
    width: 4em;
    height: auto;
    z-index: 1;
}

.about-me-text  {
    position: relative;
    left: 10vw;
    width: 25vw;
    z-index: 100;
    
}


.keychain {
    position: absolute;
    height: 25.5em;
    width: auto;
    top: 5.7em;
    left: -103px;
    z-index: 90;
    will-change: transform;
}

.thylacine {
    position: absolute;
    width: 25vh;
    height: auto;
    z-index: 90;
    right: 10vw;
}

.rock {
    position: absolute;
    width: 8vw;
    right: 20vw;
    z-index: 80;
}

.about-description {
    position: relative;
    width: 100vw;
    height: auto;
    padding: 10% 35%;
    font-size: 1.2rem;
    line-height: 1.6rem;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-description p {
    width: 50vw;
    text-align: left;
}

.roomba-and-ghoul {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    width: 100vw;
    height: 100vh;
    padding: 5% 20%;
    z-index: 100;
}

.roomba {
    position: relative;
    height: 7vh;
    top: 5%;
}

.ghoul-container {
    position: relative;
    display: inline-block;
}

.ghoul{
    position: relative;
    height: 40vh;
    display: block;
    z-index: 10;
}

.ghoul-star {
    position: absolute;
    height: 5vh;
    width: auto;
    top: 18%;
    right: 10%;
}

/*...............................................SKILLS SECTION.............................................*/

.skills {
    position: relative;
    min-height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: row;
    gap: 5vw;
    padding: 5%;
    box-sizing: border-box;
    overflow: visible;
}

.skills-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3vh;
    padding: 5%;
    overflow: visible;
}

.faceplant {
    position: relative;
    max-height: 90%;
    max-width: 90%;
    height: auto;
    width: auto;
    object-fit: contain;
}

.skills-shoe {
    position: absolute;
    height: 13%;
    width: auto;
    bottom: 18%;
    left: 38%;
    transform: rotate(-125deg);
    object-fit: contain;
}

.skills-headphones{
    position: absolute;
    height: 13%;
    width: auto;
    top: 79%;
    left: 18%;
    transform: rotate(-90deg);
    object-fit: contain;
}

.skills-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3vh;
    padding: 5%;
    overflow: visible;
}

.skills h1 {
    margin: 0 0 1rem 0;
}

.skills-text {
    flex: 0 0 auto;
}

.software-skills {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2vh;
    max-width: 100%;
}

.software-skills h2 {
    margin: 0;
}

.icons-row1,
.icons-row2 {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 2vw;
    flex: 1;
}

.icons-row1 img,
.icons-row2 img {
    height: 5vh;
    width: auto;
    width: auto;
    object-fit: contain;
}


/*...............................................PROJECTS SECTION.............................................*/

.projects {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    background-color: #E1D2B3;
    color: #2A2A2A;
    z-index: 2;
    box-sizing: border-box;
}

.projects h1,
.projects p,
.projects h2 {
    margin: 0;
}

.projects-spacer {
    height: 500vh;
    position: relative;
    z-index: 1;
    margin-bottom: -500vh;
}

.project-title {
    position: absolute;
    top: 5%;
    left: 5%;
    margin-bottom: 5%;
    display: flex;
    flex-direction: column;
    z-index: 100;

}

.project-title p {
    margin: 1rem 0 0 0;
    font-size: 1rem;
    line-height: 1;
}

.scroll-prompt {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.scroll-arrow {
    animation: bounce-right 2s ease-in-out infinite;
}

@keyframes bounce-right {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
}

.title-star {
    position: absolute;
    top: 5rem;
    left: 0;
    width: 3.5rem;
    z-index: 101;
}

.title-star img {
    width: 100%;
}

.project-content h1 {
    margin: 0;
    opacity: 1;
}

.contact-spacer {
    height: 5vh;
    position: relative;
}

.cards-container {
    display: grid;
    justify-items: center;
    gap: 5%;
    position: relative;
    margin-top: 15vh;
    z-index: 3;
}

.project-card {
    position: absolute;
    width: 330px;
    height: 490px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    top: 50%;
    left: 50%;
    opacity: 0;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
}

.glare {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    opacity: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.33), rgba(0, 0, 0, 0.06));
    pointer-events: none;
    z-index: 10;
    border-radius: 15px;
}



/*...............................................CONTACT SECTION.........................................................*/


.contact {
    position: relative;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #E1D2B3;
    color: #2A2A2A;
    padding: 5%;
    gap: 2rem;
    z-index: 1;
}

.contact h1,
.contact h2 {
    margin: 0;
    z-index: 3;
}

.contact p {
    margin: 0;
}

.contact-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.contact-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.contact-star {
    position: absolute;
    width: 60%;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: -2;
}

.contact-card {
    position: relative;
    perspective: 1000px;
    width: fit-content;
    height: fit-content;
    z-index: 2;
}

.contact-card-inner {
    position: relative;
    transform-style: preserve-3d;
}

.contact-card-front,
.contact-card-back {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.contact-card-front img,
.contact-card-back img {
    height: 60vh;
    border-radius: 15px;
    display: block;
}

.contact-card-back {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotateY(180deg);
    width: 100%;
    height: 100%;
}

.contact-card-back img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

#contactForm {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 400px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: "Lexend", sans-serif;
    font-size: 1rem;
    color: #2A2A2A;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid #2A2A2A;
    border-radius: 8px;
    background-color: rgba(225, 210, 179, 0.9);
    font-family: "Lexend", sans-serif;
    font-size: 1rem;
    color: #2A2A2A;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

#contactForm button {
    padding: 1rem 2rem;
    background-color: #2A2A2A;
    color: #E1D2B3;
    border: none;
    border-radius: 8px;
    font-family: "Lexend", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#contactForm button:hover {
    background-color: #DEBE78;
    color: #2A2A2A;
    transform: scale(1.05);
}


.showreel {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    z-index: 1000;
}

.showreel h1 {

    margin-bottom: 3rem;
    font-size: 4rem;
}

.showreel-container {
    width: 80%;
    max-width: 1200px;
    position: relative;
    padding-top: 50%; 
}

.showreel-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/*...............................................PROJECT NAVIGATION.........................................................*/

.project-nav {
    position: relative;
    width: 100%;
    height: 20vh;
    padding: 3rem 5%;
    gap: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-nav a {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    text-decoration: none;
    color: #2A2A2A;
    transition: opacity 0.3s ease;
}

.project-nav a:hover {
    opacity: 0.7;
}

.project-nav .nav-arrow {
    width: 2rem;
    height: auto;

}

.project-nav .next-project .nav-arrow {
    transform: rotate(180deg);
}

.project-nav .nav-text {
    display: flex;
    flex-direction: column;


}

.project-nav .nav-label {
    font-family: "Lexend", sans-serif;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.5;
}

.project-nav .nav-title {
    font-family: "Lexend", sans-serif;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    line-height: 1.5;
}

.project-nav .prev-project {
    text-align: left;
}

.project-nav .next-project {
    text-align: right;
}

.project-nav .next-project .nav-text {
    align-items: flex-end;
}

/*...............................................FOOTER.........................................................*/

.footer {
    position: relative;
    width: 100%;
    padding: 2rem 5%;
    background-color: #2A2A2A;
    color: #E1D2B3;
    z-index: 10;
    bottom: 0;
    box-shadow: 0 50vh 0 50vh #2A2A2A;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #E1D2B3;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #E1D2B3;
    text-decoration: none;
    font-family: "Lexend", sans-serif;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #DEBE78;
}

.footer-icon-link img,
.copy-email-btn img {
    width: 1.2rem;
    height: 1.2rem;
    transition: filter 0.3s ease;
}

.footer-icon-link:hover img,
.copy-email-btn:hover img {
    filter: brightness(1.2) sepia(1) saturate(2) hue-rotate(-10deg);
}

.copy-email-btn {
    background: none;
    border: none;
    color: #E1D2B3;
    font-family: "Lexend", sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-email-btn:hover {
    color: #DEBE78;
}

.copy-email-btn.copied {
    color: #DEBE78;
}

/*...............................................MEDIA QUERY.....................................................*/


.mobile-block {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #2A2A2A;
    color: #E1D2B3;
    z-index: 9999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.mobile-block img {
    width: 40vw;
    height: auto;
    z-index: 10;
}


@media (max-width: 768px) {
    body {
        overflow: hidden;
        height: 100vh;
    }
    
    .mobile-block {
        display: flex;
    }
}