/*
Theme Name: Jose Portfolio
Author: Redesignee
Description: A blank canvas theme designed exclusively for the Redesignee widget library.
Version: 1.0.0
Text Domain: redesignee-jose-portfolio
*/

:root {
    --jp-bg-color: #ffffff;
    --jp-text-color: #111111;
    --jp-font-family: 'Albert Sans', sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: var(--jp-bg-color);
    color: var(--jp-text-color);
    font-family: var(--jp-font-family);
}

/* --- Global Wrappers --- */
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}

/* --- Single Post --- */
.entry-header {
    margin-bottom: 40px;
    text-align: center;
}

/* --- Archive & Blog Feed --- */
.archive-header {
    margin-bottom: 50px;
    text-align: center;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    border: 1px solid #eee;
    padding: 20px;
}

.post-thumbnail {
    margin-bottom: 20px;
}

.post-thumbnail img {
    max-width: 100%;
    height: auto;
    display: block;
}

.post-card .entry-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.post-card .entry-title a {
    text-decoration: none;
    color: inherit;
}

/* --- Kinetic Menu Variables --- */
.rd-menu-kinetic {
    --bg-color: #111111;
    --text-color: #ffffff;
    --accent-color: #ff3333;
    --font-display: inherit;
    font-family: var(--font-display);
}

/* --- Hamburger Button --- */
.rd-menu-kinetic .rd-kin-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    background: var(--bg-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.rd-menu-kinetic .rd-kin-btn:hover {
    transform: scale(1.1);
    border-color: var(--text-color);
}

.rd-menu-kinetic .rd-kin-lines {
    width: 24px;
    height: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rd-menu-kinetic .rd-kin-lines span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-color);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Button Active State */
.rd-menu-kinetic.rd-menu-open .rd-kin-lines span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.rd-menu-kinetic.rd-menu-open .rd-kin-lines span:nth-child(2) {
    transform: rotate(-45deg) translate(3px, -4px);
}

/* --- Fullscreen Overlay --- */
.rd-menu-kinetic .rd-kin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.rd-menu-kinetic.rd-menu-open .rd-kin-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* --- Menu List & Links --- */
.rd-menu-kinetic .rd-kin-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.rd-menu-kinetic .rd-kin-item {
    margin-bottom: 10px;
    overflow: hidden; /* Helps with the upward slide animation */
}

.rd-menu-kinetic .rd-kin-link {
    display: block;
    font-size: 5rem;
    font-weight: 900;
    color: var(--text-color);
    text-decoration: none;
    text-transform: uppercase;
    line-height: 1;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), color 0.3s ease;
}

.rd-menu-kinetic.rd-menu-open .rd-kin-link {
    transform: translateY(0);
}

.rd-menu-kinetic .rd-kin-link:hover {
    color: var(--accent-color);
    transform: translateX(20px);
}

/* Staggered Animation Delays */
.rd-menu-kinetic .rd-kin-item:nth-child(1) .rd-kin-link { transition-delay: 0.05s; }
.rd-menu-kinetic .rd-kin-item:nth-child(2) .rd-kin-link { transition-delay: 0.1s; }
.rd-menu-kinetic .rd-kin-item:nth-child(3) .rd-kin-link { transition-delay: 0.15s; }
.rd-menu-kinetic .rd-kin-item:nth-child(4) .rd-kin-link { transition-delay: 0.2s; }
.rd-menu-kinetic .rd-kin-item:nth-child(5) .rd-kin-link { transition-delay: 0.25s; }

/* --- Footer --- */
.rd-menu-kinetic .rd-kin-footer {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.5s ease 0.5s;
}

.rd-menu-kinetic.rd-menu-open .rd-kin-footer {
    opacity: 1;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .rd-menu-kinetic .rd-kin-link {
        font-size: 3rem;
    }
}


/* --- Portfolio Header Meta --- */
.portfolio-header {
    text-align: center;
    padding: 80px 20px 40px;
}

.portfolio-title {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.portfolio-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-item {
    padding: 5px 15px;
    border: 1px solid #111;
    border-radius: 50px;
}

/* --- The Curtain Reveal Effect --- */

/* The main content needs a solid background and higher z-index to cover the footer */
.portfolio-content-wrapper {
    position: relative;
    z-index: 2;
    background-color: #ffffff; /* Crucial: Must be solid to hide the footer */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Adds a subtle drop shadow over the footer */
}

/* The next project stays fixed at the bottom of the screen while the content scrolls over it */
.next-project-reveal {
    position: sticky;
    bottom: 0;
    z-index: 1;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.next-project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 17, 17, 0.7); /* Darkens the image for text readability */
    transition: background 0.4s ease;
}

.next-project-reveal:hover .next-project-overlay {
    background: rgba(17, 17, 17, 0.4);
}

.next-project-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #ffffff;
    transform: translateY(20px);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.next-project-reveal:hover .next-project-content {
    transform: translateY(0);
}

.next-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

.next-title {
    font-size: 5rem;
    font-weight: 900;
    margin: 10px 0 0;
    text-transform: uppercase;
}

/* Makes the entire block clickable */
.next-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
}