/* Main */

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    line-height: 1.5;
}

body {
    min-height: 100%;
}

.container {
    max-width: 768px;
    margin: 0 auto;
    padding: 0;
}

a:link {
    text-decoration: none;
    color:#e3e3e3;
    font-weight: bold;
}

a:hover {
    border-bottom: 2px solid #e3e3e3;
    transform: translateY(-3px);
}

a:visited {
    color:#e3e3e3;
}

/* Header */

header {
    flex: 0 0 auto;
    position: relative;
    z-index: 0;
}

.site-header {
    width: 100%;
    background-color: #121212;
    position: sticky;
    top: 0;
    z-index: 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1920dvw;
    padding: 0.5rem 1rem;
    overflow: hidden;
}

/* Footer */

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 0.5rem 1rem;
    box-sizing: border-box;
}

.footer-right-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.social-icons {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    z-index: 100;
}

.social-icons li a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 4rem;
    width: 4rem;
}

.social-icons i {
    font-size: 3.5rem;
    transition: transform 0.2s ease;
}

.social-icons i:hover {
    transform: scale(1.1);
}

.copyright-text {
    margin: 0;
    font-size: 0.9rem;
}

/* Navigation Bar */

.navigation-bar a {
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.navigation-bar li {
    list-style: none;
    display: inline-block;
    font-size: 1.6rem;
    padding: 0 1rem;
}

/* Header logo */
.nav-logo img {
    width: 96px;
    height: 96px;
    border-radius: 2rem;
    transition: 0.3s ease;
}

.nav-logo img:hover {
    transform: scale(1.05);
    transform-origin: top left;
}

/* Homepage logo */

.hero-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    animation: dropAndGrowLogo 1.4s cubic-bezier(0.35, 0, 0.65, 1.1) 0.5s forwards;
    opacity: 0;
}

.hero-logo img {
    width: 12rem;
    height: 12rem;
    border-radius: 2rem;
}

/* Home Page */

.home-page {
    position: relative;
    overflow: hidden;
    background-color: #e3e3e3;
}

.home-page .main-container {
    display: flexbox;
    flex-direction: column;
}

.home-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 35vw;
    height: 100%;
    background: linear-gradient(85deg, #121212 75%, transparent 75.5%);
    z-index: -1;
    animation: slideIn 1.2s ease-out forwards;
}

.nav-logo.home-hidden {
    visibility: hidden;
    pointer-events: none;
}

.home-page .logo-text {
    color: #e3e3e3;
    font-size: 6rem;
    font-weight: bold;
    white-space: nowrap;
}

/* Personal Introduction */

.home-page .intro {
    color: #e3e3e3;
    font-size: 1.2rem;
    justify-content: center;
    display: block;
    position: relative;
    padding: 1rem 1rem 1rem 2rem;
    width: 28rem;
}

/* Home page showreel */

.showreel-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
}

.showreel-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.home-page {
    background-color: #e3e3e3;
}

/* Blog Page */

.blog-wrapper {
    text-align: center;
    margin-top: 3rem;
    font-family: sans-serif;
}

#title {
    font-size: 4rem;
    color: #000;
    margin-bottom: 4rem;
    font-weight: 800;
}

.post-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.post-item {
    width: 100%;
    max-width: 400px;
}

.post-link {
    display: inline-block;
    font-size: 1.8rem;
    color: #000 !important;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.post-link:hover {
    border-bottom: 2px solid #000;
    transform: translateY(-3px);
    opacity: 0.6;
}

.post-date {
    color: #888;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Blog Post Page */

.post-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.post-wrapper {
    text-align: left;
    max-width: 50rem;
    width: 90%;
}

.post-title {
    font-size: 3rem;
    font-style: italic;
}

.post-wrapper .post-meta {
    font-size: 1.5rem;
    color: #888;
}

.post-wrapper .post-content {
    font-size: 1.2rem;
}

/* Project Page */

.projects-wrapper {
    text-align: center;
    margin-top: 3rem;
    font-family: sans-serif;
}

.projects-title {
    font-size: 4rem;
    color: #000;
    margin-bottom: 4rem;
    font-weight: 800;
}

.project-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Project Item Container */
.project-item {
    width: 100%;
    max-width: 600px; /* Slightly wider to accommodate descriptions */
    margin-bottom: 3rem;
    text-align: left; /* Alignment usually looks better for descriptions */
}

/* Flex header to keep Title and Date on the same line or tight together */
.project-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap; /* Allows date to drop down on very small screens */
}

.project-link {
    display: inline-block;
    font-size: 2rem;
    color: #000 !important;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s ease;
}

.project-date {
    color: #888;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: monospace;
}

/* Description Styling */
.project-description {
    margin-top: 0.5rem; /* Space between the header and description */
    font-size: 1.1rem;
    color: #444;
    line-height: 1.4;
    max-width: 500px;
}

/* Hover effect refinements */
.project-link:hover {
    opacity: 0.6;
    border-bottom: 2px solid #000;
}

/* Project Page */

.project-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.project-wrapper {
    text-align: left;
    max-width: 100rem;
    width: 90%;
}

.project-title {
    font-size: 3rem;
    font-style: italic;
}

.project-wrapper .project-meta {
    font-size: 1.5rem;
    color: #888;
}

.project-wrapper .project-content {
    font-size: 1.2rem;
}

/* Contact Page */
.contact-wrapper {
    text-align: center;
    margin-top: 3rem;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-intro {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.contact-cta {
    font-size: 2.5rem;
    font-weight: 800;
}

.contact-link,
.contact-link:link,
.contact-link:visited {
    color: #121212 !important;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.contact-link:hover {
    border-bottom: 3px solid #121212;
    opacity: 0.7;
    transform: translateY(-3px);
    display: inline-block;
}

/* Animations */

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes dropAndGrowLogo {
    0% {
        opacity: 0;
        transform: translate(-4vw, -20vh) scale(.5);
    }
    100% {
        opacity: 1;
        transform: translate(2vw, 0vh) scale(1);
    }
}