﻿/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Apply the background color to the very bottom layer (html) to stop the white bounce */
html {
    background-color: #e2ece9;
}

/* Apply the scroll locks and fonts ONLY to the body to prevent breaking desktop scroll wheels */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #111;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Background Gradients */
.hero-section {
    background: linear-gradient(to bottom, #e2ece9 0%, #dbe7eb 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
}

.bg-uxui {
    background: linear-gradient(to bottom, #dbe7eb 0%, #daebd0 100%);
}

.bg-branding {
    background: linear-gradient(to bottom, #daebd0 0%, #eccdc9 100%);
}

.bg-gamedev {
    background: linear-gradient(to bottom, #eccdc9 0%, #dec2ed 100%);
}

.bg-multimedia {
    background: #dec2ed;
}

/* Sticky Header Navigation */
.nav-header {
    display: none;
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 40px;
    background-color: rgba(235, 242, 243, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

    .nav-header nav {
        color: #9cb0c2;
    }

    .nav-header a {
        text-decoration: none;
        color: #9cb0c2;
        font-size: clamp(1rem, 1.2vw, 1.2rem);
        font-weight: 500;
        margin: 0 15px;
        transition: color 0.2s;
    }

        .nav-header a:hover {
            color: #5a738a;
        }

/* Floating Back Button for Project Pages */
.back-btn {
    position: fixed;
    top: 30px;
    left: 20px;
    z-index: 1000;
    background-color: rgba(235, 242, 243, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: 0;
    text-decoration: none;
}

/* Hero Content Specifics */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1300px;
    gap: 40px;
    width: 100%;
}

.hero-text h1 {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
}

/* Hero Image Container (Shrunk for mobile) */
.profile-pic-container {
    width: 80%;
    max-width: 280px;
    aspect-ratio: 1 / 1.1;
    height: auto;
    flex-shrink: 0;
    position: relative;
    margin: 0 auto;
}

/* Styling for your actual profile picture */
.real-profile-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 25% 50%;
    border: 8px solid #fff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* Portfolio Layouts */
.portfolio-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

.section-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    max-width: 1300px;
    width: 100%;
}

.text-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 2.5vw, 30px);
}

    .text-block h2 {
        font-size: clamp(2.5rem, 6vw, 5.5rem);
        font-weight: 500;
    }

    .text-block p {
        font-size: clamp(1.1rem, 1.8vw, 1.8rem);
        line-height: 1.6;
        color: #333;
    }

/* Buttons */
.btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: clamp(12px, 1.5vw, 18px) clamp(24px, 3vw, 36px);
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: clamp(1rem, 1.3vw, 1.3rem);
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s;
}

    .btn:hover {
        background-color: rgba(255, 255, 255, 0.8);
        transform: translateY(-2px);
    }

/* Image blocks */
.image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Placeholder Graphic */
.placeholder-img {
    width: 100%;
    height: 100%;
    max-width: 280px;
    aspect-ratio: 1 / 1.1;
    background-color: #f1f0f5;
    border: 8px solid #fff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #bbb;
    position: relative;
}

/* Speech Bubble */
.speech-bubble {
    position: absolute;
    top: -20px;
    right: -10px;
    background-color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #111;
    z-index: 10;
    filter: drop-shadow(0px 8px 12px rgba(0, 0, 0, 0.08));
    opacity: 0;
    transform: scale(0.5);
    animation: popInBubble 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.3s;
}

    .speech-bubble::after {
        content: '';
        position: absolute;
        bottom: -6px;
        left: 20px;
        width: 16px;
        height: 16px;
        background-color: #fff;
        transform: rotate(45deg);
        border-bottom-right-radius: 4px;
        z-index: -1;
    }

@keyframes popInBubble {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(15px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ==========================================================================
   PROJECT PAGE SPECIFIC LAYOUT (e.g., findflora.html)
   ========================================================================== */

.project-details-section {
    min-height: 100vh;
    /* Increased top padding from 120px to 180px to safely clear the nav bar */
    padding: 160px 30px 80px;
    display: flex;
    justify-content: center;
    /* Forces the content to start at the top so it doesn't accidentally float upward */
    align-items: flex-start;
}

.project-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* 1. Top Media Box */
.project-hero-media {
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    /* INCREASED SIZES BELOW */
    max-width: 1100px; /* Widened from 900px so it spans more of the screen */
    height: 55vh; /* Increased from 40vh to give it more vertical room */
    min-height: 350px; /* Increased the minimum height */

    margin: 0 auto;
    opacity: 0;
    transform: scale(0.8);
    animation: autoPopIn 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes autoPopIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.media-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 20px;
}

.project-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 2. Header Area (Title, Role, Tags) */
.project-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    color: #444;
    font-weight: 500;
    font-size: 1.1rem;
}

.project-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: bold;
    line-height: 1.2;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.tag {
    background-color: rgba(0, 0, 0, 0.08);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
}

/* 3. Text Grid underneath */
.project-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.grid-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

    .grid-column h4 {
        font-size: 1.2rem;
        font-weight: 500;
        color: #444;
    }

    .grid-column p, .grid-column li {
        font-size: 1.05rem;
        line-height: 1.6;
        color: #222;
    }

    .grid-column ul {
        padding-left: 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

/* Footer styling */
.footer-section {
    background-color: #dec2ed;
    padding: 60px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

    .footer-content a {
        color: #666;
        text-decoration: none;
        font-size: 18px;
    }

        .footer-content a:hover {
            color: #111;
        }

/* ANIMATION CLASSES */
.reveal-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-pop {
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-pop.active {
    opacity: 1;
    transform: scale(1);
}

/* ==========================================================================
   MEDIA QUERY: iPads, Laptops & Desktop Screens
   ========================================================================== */
@media (min-width: 768px) {

    .nav-header {
        display: block;
        max-width: 800px;
        width: fit-content;
        white-space: nowrap;
    }

    .back-btn {
        left: 40px;
    }

    .section-container {
        flex-direction: row;
    }

        .section-container.row-reverse {
            flex-direction: row-reverse;
        }

    .hero-content {
        flex-direction: row;
        text-align: left;
        gap: 60px;
    }

    .hero-text h1 {
        text-align: left;
    }

    .btn-group {
        justify-content: flex-start;
    }

    .footer-section {
        text-align: left;
    }

    .profile-pic-container {
        width: 100%;
        max-width: 480px;
    }

    .placeholder-img {
        max-width: 650px;
    }

    .speech-bubble {
        right: -50px;
        padding: 18px 36px;
        border-radius: 40px;
        font-size: 28px;
    }

        .speech-bubble::after {
            bottom: -10px;
            left: 30px;
            width: 26px;
            height: 26px;
            border-bottom-right-radius: 5px;
        }

    /* Project Content Grid for Desktop */
    .project-content-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 60px;
    }
}
