@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Staatliches&display=swap');

/* Reset & Base Styles */
* {
    border: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}  

body {
    align-items: center;
    animation: color-change-2x 15s linear infinite alternate both;
    background-color: #000000;
    color: white;
    display: flex;
    font-family: 'Roboto', sans-serif;
    height: 100vh;
    justify-content: center;
    overflow: hidden;
    width: 100%;
}

.page {
    align-items: center;
    display: flex;
    height: 100vh;
    justify-content: center;
    width: 100vw;
}

/* Typography */
.title {
    color: whitesmoke;
    font-size: 2rem;
    font-weight: 500;
    margin: 10px 0;
    text-align: center;
    text-shadow: 1px 2px #364b0b;
}

.subtitle {
    color: white;
    font-size: 1.25rem;
    font-weight: 400;
    margin: 10px 0;
    text-shadow: 1px 2px #1a097b;
}

/* Landing Page */
.page-landing {
    align-items: center;
    background-color: #494747;
    border: 1px solid black;
    border-radius: 10%;
    display: flex;
    flex-direction: column;
    filter: drop-shadow(0 0 0.75rem #77ED98);
    height: 700px;
    justify-content: flex-start;
    position: relative;
    width: 600px;
}

.page-landing-cover {
    border-radius: 10% 10% 0 0;
    height: 40%;
    overflow: hidden;
    position: absolute;
    top: 0;
    width: 100%;
}

.page-landing-cover img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.page-landing-body {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 20%;
    padding: 0 13px;
    z-index: 1;
}

.profile-photo {
    border: 4px solid #77ED98;
    border-radius: 50%;
    height: 250px;
    object-fit: cover;
    width: 250px;
}

.profile-card-subtitle {
    font-family: 'Roboto', monospace;
    font-size: 16px;
    font-style: italic;
    font-weight: 100;
    padding: 15px 0;
    text-align: center;
}

.page-landing-nav {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: space-around;
    margin: 70px 0;
    width: 80%;
}

/* Buttons */
.button {
    background-color: #48c774;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 25px;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.button.rounded {
    border-radius: 10%;
    height: 80px;
    width: 80px;
}

.button:hover {
    background-color: #ffdd57;
    transform: scale(1.1);
}

.button[data-glow="github"]:hover {
    filter: drop-shadow(0 0 0.75rem #4078c0);
}

.button[data-glow="linkedin"]:hover {
    filter: drop-shadow(0 0 0.75rem #2867B2);
}

.button[data-glow="projects"]:hover {
    filter: drop-shadow(0 0 0.75rem #F03C5F);
}

.button[data-glow="contact"]:hover {
    filter: drop-shadow(0 0 0.75rem #F0E748);
}

/* Projects Page */
.projects-carousel {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.nav-arrow {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 30px;
    padding: 20px;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    color: #ffdd57;
    transform: scale(1.2);
}

.nav-arrow:disabled {
    color: #666;
    cursor: not-allowed;
    opacity: 0.5;
}

.project-card {
    align-items: center;
    background-color: #494747;
    border: 1px solid black;
    border-radius: 10%;
    display: flex;
    flex-direction: column;
    filter: drop-shadow(0 0 0.75rem #F03C5F);
    height: 700px;
    justify-content: flex-start;
    position: relative;
    width: 600px;
}

.project-card-cover {
    border-radius: 10% 10% 0 0;
    height: 50%;
    overflow: hidden;
    position: absolute;
    top: 0;
    width: 100%;
}

.project-card-cover img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.project-card-body {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 60%;
    padding: 0 40px;
    z-index: 1;
}

.project-card-purpose {
    margin: 15px 0;
    text-align: center;
}

.project-card-purpose h5 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.project-card-purpose p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.project-card-nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 10px 0;
    width: 100%;
}

.project-card-nav .button {
    font-size: 14px;
    padding: 8px 16px;
}

.project-card-footer {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 20px 0 0 0;
    width: 100%;
}

.project-card-footer .button {
    font-size: 16px;
    padding: 10px 24px;
}

/* Contact Page */
.contact-main {
    align-items: center;
    background-color: #494747;
    border: 1px solid black;
    border-radius: 10%;
    display: flex;
    filter: drop-shadow(0 0 0.35rem #F0E748);
    gap: 40px;
    height: 500px;
    justify-content: center;
    padding: 40px;
    width: 700px;
}

.contact-textContent {
    border-style: dashed;
    border-width: 0 0 0 4px;
    height: 88%;
    margin-right: 5%;
    text-align: center;
    transform: scale(-1, -1);
    writing-mode: vertical-rl;
}

.contact-textContent h3 {
    font-size: 35px;
    font-weight: 100;
    margin: 0 5px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 50%;
}

.control {
    position: relative;
}

.control.has-icons-left .input {
    padding-left: 2.5em;
}

.control .icon {
    align-items: center;
    color: #999;
    display: flex;
    height: 100%;
    justify-content: center;
    position: absolute;
    top: 0;
    width: 2.5em;
}

.control .icon.is-left {
    left: 0;
}

.input,
.textarea {
    background-color: white;
    border: 1px solid #dbdbdb;
    border-radius: 4px;
    color: #363636;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    padding: 10px 12px;
    width: 100%;
}

.input:focus,
.textarea:focus {
    border-color: #48c774;
    outline: none;
}

.textarea {
    min-height: 120px;
    resize: vertical;
}

.send-btn {
    background-color: #48c774;
    font-size: 16px;
    margin-top: 10px;
    padding: 12px 24px;
}

.send-btn:disabled,
.send-btn.is-loading {
    cursor: not-allowed;
    opacity: 0.7;
}

.send-btn.is-loading::after {
    animation: spinAround 500ms infinite linear;
    border: 2px solid #fff;
    border-radius: 50%;
    border-right-color: transparent;
    border-top-color: transparent;
    content: "";
    display: block;
    height: 1em;
    width: 1em;
}

/* Back Button */
.back-button {
    background-color: #48c774;
    border: none;
    border-radius: 8px;
    bottom: 40px;
    color: white;
    cursor: pointer;
    font-size: 16px;
    left: 40px;
    padding: 12px 24px;
    position: fixed;
    transition: all 0.3s ease;
    z-index: 100;
}

.back-button:hover {
    background-color: #ffdd57;
    transform: scale(1.05);
}

/* Animations */
.fade-in {
    animation: fade-in 1.2s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}

.fade-out {
    animation: fade-out 300ms ease-out both;
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fade-out {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes color-change-2x {
    0% {
        background: #000000;
    }
    100% {
        background: #033564;
    }
}

@keyframes spinAround {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(359deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-landing,
    .project-card {
        height: 600px;
        width: 90vw;
        max-width: 450px;
    }

    .profile-photo {
        height: 180px;
        width: 180px;
    }

    .title {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .contact-main {
        flex-direction: column;
        height: auto;
        width: 90vw;
        max-width: 500px;
    }

    .contact-textContent {
        border-width: 0 0 4px 0;
        height: auto;
        margin: 0;
        transform: none;
        width: 100%;
        writing-mode: horizontal-tb;
    }

    .contact-form {
        width: 100%;
    }

    .nav-arrow {
        font-size: 24px;
        padding: 10px;
    }

    .back-button {
        bottom: 20px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .page-landing-nav {
        gap: 10px;
    }

    .button.rounded {
        height: 50px;
        width: 50px;
        font-size: 20px;
    }

    .project-card-body {
        padding: 0 20px;
    }
}
