/* ====================================
   RETRO MINIMALIST PORTFOLIO STYLES
   ==================================== */

/* FONTS - Retro minimalist aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=IBM+Plex+Mono:wght@300;400;500&display=swap');

/* CSS VARIABLES */
:root {
    /* Colors - Retro minimalist palette */
    --color-cream: #F5F1E8;
    --color-charcoal: #2C2C2C;
    --color-rust: #B8725C;
    --color-rust-2: #c45b3b;
    --color-sage: #8C9A7B;
    --color-tan: #D4C4B0;
    --color-black: #050505;
    --color-white: #FFFFFF;
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'IBM Plex Mono', monospace;
    
    /* Spacing */
    --section-padding: 6rem 2rem;
    --max-width: 1200px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-cream);
    color: var(--color-charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ====================================
   LOADING SCREEN
   ==================================== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 0.5s ease 1.5s forwards;
}

.loading-logo {
    width: 200px;
    height: auto;
    animation: logoScale 1.5s ease-in-out;
}

@keyframes logoScale {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* MAIN CONTENT */
#main-content {
    opacity: 0;
    animation: fadeIn 0.5s ease 2.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ====================================
   NAVIGATION
   ==================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--color-cream);
    z-index: 1000;
}

#desktop-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    /* No max-width - nav spans full width */
}

.logo {
    display: flex;
    align-items: center;
}

.av-logo {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--color-charcoal);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-rust);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* HAMBURGER MENU */
#hamburger-nav {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
}

.hamburger-menu {
    position: relative;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 20px;
    width: 28px;
    cursor: pointer;
}

.hamburger-icon span {
    width: 100%;
    height: 2px;
    background-color: var(--color-charcoal);
    transition: var(--transition);
}

.menu-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--color-cream);
    width: 200px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    margin-top: 1rem;
}

.menu-links.open {
    max-height: 300px;
}

.menu-links ul {
    list-style: none;
    padding: 1rem 0;
}

.menu-links a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-charcoal);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.menu-links a:hover {
    background-color: var(--color-tan);
    padding-left: 2rem;
}

.hamburger-icon.open span:first-child {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.open span:last-child {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ====================================
   SECTION CONTAINER (MAX WIDTH)
   ==================================== */
section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--section-padding);
}

/* ====================================
   HERO SECTION
   ==================================== */
#hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 100px;
    position: relative;
    background-image: url('./assets/04.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

/* Overlay to slightly tint the background if needed */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(71, 63, 49, 0.147); /* Slight cream overlay for readability */
    z-index: 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: 100%;
    max-width: var(--max-width);
    position: relative;
    z-index: 1;
}

.hero-image {
    flex-shrink: 0;
}

.hero-image img {
    width: 400px;
    height: 400px;
    object-fit: cover;
}

.hero-text {
    flex: 1;
    text-align: center;
}

.hero-greeting {
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 500;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: .5rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 500;
    color: var(--color-tan);
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* BUTTONS */
.btn {
    font-family: var(--font-body);
    font-size: 1.10rem;
    font-weight: 450;
    padding: 1.1rem 3rem;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--color-rust-2);
    color: var(--color-cream);
}

.btn-primary:hover {
    background-color: var(--color-charcoal);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--color-tan);
    color: var(--color-charcoal);
}

.btn-secondary:hover {
    background-color: var(--color-charcoal);
    color: var(--color-cream);
    transform: translateY(-2px);
}

/* ====================================
   SECTION HEADERS
   ==================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--color-rust-2);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3.75rem;
    font-weight: 700;
    color: var(--color-black);
}

/* ====================================
   ABOUT SECTION
   ==================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.about-image img {
    width: 100%;
    height: auto;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-box {
    background-color: var(--color-white);
    border: 1px solid var(--color-tan);
    padding: 2rem 1.5rem;
    text-align: center;
}

.stat-box img {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
}

.stat-box h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 0.5rem;
}

.stat-box p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-black);
    line-height: 1.5;
}

.about-bio p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-black);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ====================================
   SKILLS/EXPERIENCE SECTION
   ==================================== */
.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.skills-box {
    background-color: var(--color-white);
    border: 1px solid var(--color-tan);
    padding: 2.5rem 2rem;
}

.skills-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-black);
    text-align: center;
    margin-bottom: 2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.skill-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.skill-item img {
    width: 24px;
    height: 24px;
    margin-top: 4px;
    flex-shrink: 0;
}

.skill-info h4 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-black);
    margin-bottom: 0.25rem;
}

.skill-info p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-black);
}

/* ====================================
   PROJECTS SECTION
   ==================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-item {
    cursor: pointer;
    transition: var(--transition);
}

.project-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: var(--color-white);
    border: 1px solid var(--color-tan);
    margin-bottom: 1rem;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

/* HOVER EFFECT - Only darkening */
.project-item:not(.view-more):hover .project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-black);
    text-align: center;
}

/* VIEW MORE CARD */
.view-more .project-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--color-tan);
}

.view-more-content {
    text-align: center;
}

.view-more-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 1rem;
}

.view-more-arrow {
    font-size: 3rem;
    color: var(--color-rust-2);
}

.view-more:hover .project-image {
    background-color: var(--color-rust-2);
}

.view-more:hover .view-more-text,
.view-more:hover .view-more-arrow {
    color: var(--color-white);
}

/* ====================================
   CONTACT SECTION
   ==================================== */
.contact-container {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    background-color: var(--color-white);
    border: 1px solid var(--color-tan);
    padding: 3rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-black);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.75rem;
    border: 1px solid var(--color-tan);
    background-color: var(--color-cream);
    color: var(--color-charcoal);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-rust);
}

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

.btn-submit {
    width: 100%;
    margin-top: 1rem;
}

/* ====================================
   FOOTER
   ==================================== */
footer {
    background-color: var(--color-charcoal);
    color: var(--color-cream);
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-socials a,
.email-icon-container {
    display: inline-block;
    transition: var(--transition);
}

.footer-socials img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.email-icon-container img {
    width: 30px;
    height: 30px;
    filter: brightness(1) invert(1);
}

.footer-socials a:hover img,
.email-icon-container:hover img {
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(330deg);
    transform: translateY(-3px);
}

.email-icon-container {
    cursor: pointer;
    position: relative;
}

.footer-copyright {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--color-tan);
    letter-spacing: 1px;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

/* Tablet */
@media screen and (max-width: 1024px) {
    :root {
        --section-padding: 4rem 2rem;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-image img {
        width: 350px;
        height: 350px;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    #desktop-nav {
        display: none;
    }
    
    #hamburger-nav {
        display: flex;
    }
    
    .hero-image img {
        width: 280px;
        height: 280px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .footer-socials {
        gap: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-image img {
        width: 250px;
        height: 250px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .loading-logo {
        width: 150px;
    }
}