/* ========================================
   FINAL PS1 - INNER PAGES
   Vandal Hearts aesthetic with menu box frames
   ======================================== */

/* ========== PAGE CONTAINER ========== */
.page-container {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    animation: fade-in 1s ease-out;
}

/* Allow scrolling on all pages */
body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    min-height: 100vh;
    height: auto !important;
}

/* ========== PAGE HEADER ========== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 25px 40px;
    background: linear-gradient(135deg, rgba(30, 40, 80, 0.9) 0%, rgba(20, 30, 60, 0.9) 100%);
    border: 4px solid;
    border-image: linear-gradient(135deg, #8b5a2b, #daa520, #b8860b, #8b5a2b) 1;
    position: relative;
    box-shadow: 
        0 0 20px rgba(218, 165, 32, 0.3),
        inset 0 0 30px rgba(139, 90, 43, 0.2);
}

/* Corner decorations */
.page-header::before,
.page-header::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-style: solid;
    border-color: #daa520;
    border-width: 0;
}

.page-header::before {
    top: -2px;
    left: -2px;
    border-top-width: 4px;
    border-left-width: 4px;
}

.page-header::after {
    top: -2px;
    right: -2px;
    border-top-width: 4px;
    border-right-width: 4px;
}

.page-title::before,
.page-title::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-style: solid;
    border-color: #daa520;
    border-width: 0;
}

.page-title::before {
    bottom: -2px;
    left: -2px;
    border-bottom-width: 4px;
    border-left-width: 4px;
}

.page-title::after {
    bottom: -2px;
    right: -2px;
    border-bottom-width: 4px;
    border-right-width: 4px;
}

.back-link {
    background: rgba(220, 80, 100, 0.5);
    padding: 10px 20px;
    font-size: 0.7rem;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
}

.back-link:hover {
    background: rgba(220, 80, 100, 0.7);
    transform: translateX(-5px);
}

.page-title {
    font-size: 2rem;
    letter-spacing: 6px;
    color: #ffffff;
    text-shadow: 
        0 0 15px rgba(255, 107, 122, 0.6),
        3px 3px 0px rgba(0, 0, 0, 0.8);
}

/* ========== SHARED STYLES ========== */
@keyframes card-entrance {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: #ff6b7a;
    margin-bottom: 20px;
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 107, 122, 0.5);
}

.bio-text {
    font-size: 0.7rem;
    line-height: 1.8;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.8);
}

/* ========== PORTFOLIO PAGE ========== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.project-box {
    padding: 30px 35px;
    background: linear-gradient(135deg, rgba(30, 40, 80, 0.9) 0%, rgba(20, 30, 60, 0.9) 100%);
    border: 4px solid;
    border-image: linear-gradient(135deg, #8b5a2b, #daa520, #b8860b, #8b5a2b) 1;
    position: relative;
    animation: card-entrance 0.6s ease-out backwards;
    box-shadow: 
        0 0 20px rgba(218, 165, 32, 0.3),
        inset 0 0 30px rgba(139, 90, 43, 0.2);
    transition: transform 0.3s ease;
}

.project-box:nth-child(1) { animation-delay: 0.1s; }
.project-box:nth-child(2) { animation-delay: 0.2s; }
.project-box:nth-child(3) { animation-delay: 0.3s; }
.project-box:nth-child(4) { animation-delay: 0.4s; }
.project-box:nth-child(5) { animation-delay: 0.5s; }
.project-box:nth-child(6) { animation-delay: 0.6s; }

/* Corner decorations */
.project-box::before,
.project-box::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-style: solid;
    border-color: #daa520;
    border-width: 0;
}

.project-box::before {
    top: -2px;
    left: -2px;
    border-top-width: 4px;
    border-left-width: 4px;
}

.project-box::after {
    top: -2px;
    right: -2px;
    border-top-width: 4px;
    border-right-width: 4px;
}

.project-box > *:last-child::before,
.project-box > *:last-child::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-style: solid;
    border-color: #daa520;
    border-width: 0;
}

.project-box > *:last-child::before {
    bottom: -2px;
    left: -2px;
    border-bottom-width: 4px;
    border-left-width: 4px;
}

.project-box > *:last-child::after {
    bottom: -2px;
    right: -2px;
    border-bottom-width: 4px;
    border-right-width: 4px;
}

.project-box:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 0 30px rgba(255, 107, 122, 0.4),
        inset 0 0 30px rgba(139, 90, 43, 0.2);
}

.project-title {
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: #ff6b7a;
    margin-bottom: 12px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
}

.project-type {
    font-size: 0.6rem;
    color: #daa520;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.8);
}

.project-desc {
    font-size: 0.65rem;
    line-height: 1.7;
    color: #ffffff;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.8);
}

/* ========== ABOUT PAGE ========== */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 30px;
    margin-bottom: 40px;
}

/* About Boxes - Custom Vandal Hearts Style Frame */
.about-box {
    padding: 35px 40px;
    background: linear-gradient(135deg, rgba(30, 40, 80, 0.9) 0%, rgba(20, 30, 60, 0.9) 100%);
    border: 4px solid;
    border-image: linear-gradient(135deg, #8b5a2b, #daa520, #b8860b, #8b5a2b) 1;
    position: relative;
    animation: card-entrance 0.6s ease-out backwards;
    box-shadow: 
        0 0 20px rgba(218, 165, 32, 0.3),
        inset 0 0 30px rgba(139, 90, 43, 0.2);
}

/* Corner decorations */
.about-box::before,
.about-box::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-style: solid;
    border-color: #daa520;
    border-width: 0;
}

.about-box::before {
    top: -2px;
    left: -2px;
    border-top-width: 4px;
    border-left-width: 4px;
}

.about-box::after {
    top: -2px;
    right: -2px;
    border-top-width: 4px;
    border-right-width: 4px;
}

/* Bottom corners using pseudo-elements on children */
.about-box > *:last-child::before,
.about-box > *:last-child::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-style: solid;
    border-color: #daa520;
    border-width: 0;
}

.about-box > *:last-child::before {
    bottom: -2px;
    left: -2px;
    border-bottom-width: 4px;
    border-left-width: 4px;
}

.about-box > *:last-child::after {
    bottom: -2px;
    right: -2px;
    border-bottom-width: 4px;
    border-right-width: 4px;
}

/* Bio Box - Spans full left column */
.bio-box {
    grid-column: 1;
    grid-row: 1 / 3;
    animation-delay: 0.1s;
}

.bio-box .bio-text {
    font-size: 0.7rem;
    line-height: 1.8;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.8);
}

.bio-box .bio-text:last-child {
    margin-bottom: 0;
}

/* Image Box */
.image-box {
    grid-column: 2;
    grid-row: 1;
    animation-delay: 0.2s;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(218, 165, 32, 0.5);
}

.image-placeholder p {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    color: #daa520;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
}

/* Disciplines Box */
.disciplines-box {
    grid-column: 2;
    grid-row: 2;
    animation-delay: 0.3s;
}

.disciplines-box .section-title {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #ff6b7a;
    margin-bottom: 20px;
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 107, 122, 0.5);
}

.disciplines-box .tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.disciplines-box .tag {
    background: rgba(220, 80, 100, 0.3);
    padding: 8px 15px;
    font-size: 0.55rem;
    color: #ffffff;
    letter-spacing: 1px;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.8);
    transition: all 0.2s ease;
    border: 1px solid rgba(220, 80, 100, 0.5);
}

.disciplines-box .tag:hover {
    background: rgba(220, 80, 100, 0.5);
    transform: scale(1.05);
    border-color: rgba(220, 80, 100, 0.8);
}

/* Responsive About Grid */
@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        display: flex;
        flex-direction: column;
    }
    
    /* Image first on mobile */
    .image-box {
        order: 1;
        min-height: 250px;
    }
    
    /* Bio second */
    .bio-box {
        order: 2;
    }
    
    /* Skills third */
    .disciplines-box {
        order: 3;
    }
}

/* ========== CONTACT PAGE ========== */
.contact-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-box {
    padding: 35px 40px;
    background: linear-gradient(135deg, rgba(30, 40, 80, 0.9) 0%, rgba(20, 30, 60, 0.9) 100%);
    border: 4px solid;
    border-image: linear-gradient(135deg, #8b5a2b, #daa520, #b8860b, #8b5a2b) 1;
    position: relative;
    animation: card-entrance 0.6s ease-out backwards;
    box-shadow: 
        0 0 20px rgba(218, 165, 32, 0.3),
        inset 0 0 30px rgba(139, 90, 43, 0.2);
}

/* Corner decorations */
.contact-box::before,
.contact-box::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-style: solid;
    border-color: #daa520;
    border-width: 0;
}

.contact-box::before {
    top: -2px;
    left: -2px;
    border-top-width: 4px;
    border-left-width: 4px;
}

.contact-box::after {
    top: -2px;
    right: -2px;
    border-top-width: 4px;
    border-right-width: 4px;
}

.contact-box > *:last-child::before,
.contact-box > *:last-child::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-style: solid;
    border-color: #daa520;
    border-width: 0;
}

.contact-box > *:last-child::before {
    bottom: -2px;
    left: -2px;
    border-bottom-width: 4px;
    border-left-width: 4px;
}

.contact-box > *:last-child::after {
    bottom: -2px;
    right: -2px;
    border-bottom-width: 4px;
    border-right-width: 4px;
}

.intro-box {
    animation-delay: 0.1s;
    text-align: center;
}

.intro-box .bio-text {
    font-size: 0.7rem;
    line-height: 1.8;
    color: #ffffff;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.8);
    margin: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.contact-grid .contact-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.contact-grid .contact-box:nth-child(1) { animation-delay: 0.2s; }
.contact-grid .contact-box:nth-child(2) { animation-delay: 0.3s; }
.contact-grid .contact-box:nth-child(3) { animation-delay: 0.4s; }

.contact-title {
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: #ff6b7a;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
}

.contact-link {
    display: inline-block;
    background: rgba(220, 80, 100, 0.4);
    padding: 10px 25px;
    margin: 6px 0;
    font-size: 0.65rem;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 1px;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.8);
}

.contact-link:hover {
    background: rgba(220, 80, 100, 0.6);
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.availability-box {
    animation-delay: 0.5s;
}

.availability-box .section-title {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #ff6b7a;
    margin-bottom: 20px;
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 107, 122, 0.5);
}

.availability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.availability-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
}

.avail-icon {
    font-size: 1rem;
    color: #ff6b7a;
    text-shadow: 0 0 10px rgba(255, 107, 122, 0.8);
    flex-shrink: 0;
}

.avail-type {
    font-size: 0.7rem;
    color: #ff6b7a;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.8);
}

.avail-desc {
    font-size: 0.6rem;
    color: #ffffff;
    line-height: 1.6;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.8);
}

/* ========== PAGE FOOTER ========== */
.page-footer {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 60px;
    padding-top: 30px;
}

.footer-nav {
    background: rgba(220, 80, 100, 0.4);
    padding: 12px 40px;
    font-size: 0.7rem;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
}

.footer-nav:hover {
    background: rgba(220, 80, 100, 0.6);
    transform: translateY(-3px);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .page-container {
        padding: 20px 15px;
    }

    .page-header {
        flex-direction: column;
        gap: 15px;
        padding: 25px 30px;
    }

    .page-title {
        font-size: 1.5rem;
        letter-spacing: 4px;
    }

    .back-link {
        font-size: 0.6rem;
    }

    .content-frame {
        padding: 30px 35px;
        min-height: 120px;
    }

    .project-frame {
        padding: 25px 30px;
        min-height: 200px;
    }

    .contact-frame {
        padding: 25px 20px;
        min-height: 150px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .availability-grid {
        grid-template-columns: 1fr;
    }

    .page-footer {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .footer-nav {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.2rem;
        letter-spacing: 3px;
    }

    .content-frame {
        padding: 25px;
    }

    .project-frame {
        padding: 20px 25px;
    }

    .bio-text,
    .project-desc,
    .avail-desc {
        font-size: 0.6rem;
    }

    .section-title,
    .project-title,
    .contact-title {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }
}
