/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal overflow */
}

/* Navbar Styles */
#navbar {
    background-color: #333;
    padding: 15px;
    text-align: center;
    position: relative; /* needed for menu toggle positioning */
}

/* Navigation List */
.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.nav-list li {
    display: inline;
}

.nav-list a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-list a:hover {
    text-decoration: underline;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hamburger Menu - initially hidden */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    top: 10px;
    left: 10px; /* Position the hamburger menu on the top left */
    z-index: 10000; /* On top */
}

.menu-toggle .bar {
    height: 3px;
    width: 25px;
    background-color: red;
    margin: 4px 0;
    transition: 0.4s;
}

.menu-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url('../images/mock_ups.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 20px;
    color: white;
    text-align: center;
}

/* Main Content Layout */
.main-content {
    display: flex;
    padding: 20px;
    gap: 30px;
    flex-direction: row;
}

.sidebar {
    width: 25%;
    background-color: #333;
    padding: 20px;
    color: white;
    min-height: 100vh;
    position: sticky;
    top: 0;
    align-self: flex-start;
    max-width: 300px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin: 10px 0;
}

.sidebar a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    display: block;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.sidebar a:hover {
    text-decoration: underline;
}

/* Content Section */
.content {
    flex: 1;
    padding: 20px;
}

.side-by-side {
    display: flex;
    margin-bottom: 50px;
    gap: 40px;
    align-items: flex-start;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.side-by-side .text {
    flex: 1;
    min-width: 300px;
}

.intro-content {
    margin-bottom: 20px;
}

#intro .container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

#intro .column {
    flex: 1;
    min-width: 150px;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-content-area {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
}

.persona-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 8px;
}

.persona-block {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px;
}

.persona-text {
    flex: 1;
    padding: 0 20px;
}

.persona-img {
    flex-shrink: 0;
    width: 550px;
    height: 400px;
}

.persona-img img {
    width: 100%;
    height: 100%;
    display: block;
}

.right-image .persona-text {
    order: -1;
}

.journey-map-image {
    width: 100%;
    height: auto;
    max-width: 1000px;
    margin: 0 auto;
    display: block;
}

.wireframe-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    margin: 20px 0;
}

.wireframe-text {
    flex: 1;
}

.wireframe-img {
    max-width: 400px;
    flex-shrink: 0;
}

.wireframe-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

#results {
    max-width: 1000px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}

.text-section {
    flex: 1;
    min-width: 300px;
}

.frame-wrapper-centered {
    position: relative;
    width: 400px;
    height: 860px;
    flex-shrink: 0;
    margin-top: 20px;
    margin-bottom: 20px;
    order: 2;
}

.figma-prototype {
    position: absolute;
    top: 42px;
    left: 20px;
    width: 360px;
    height: 815px;
    border: none;
    border-radius: 30px;
    z-index: 1;
    overflow: hidden;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
}

.lightbox-modal img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #ccc;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: 50px;
}

.footercontainer h4 {
    margin-bottom: 15px;
}

.social-links a {
    color: white;
    font-size: 24px;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #007bff;
}

/* Responsive Design */

/* Medium screens and smaller tablets */
@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
        gap: 20px;
        padding: 10px;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        text-align: center;
        padding: 15px;
        max-width: unset;
    }

    .sidebar ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .content {
        width: 100%;
        padding: 0 10px;
    }

    .side-by-side {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 0 10px;
    }

    .side-by-side .gallery-container {
        order: -1;
    }

    #intro .container {
        flex-direction: column;
    }

    #results {
        flex-direction: column;
        text-align: center;
        padding: 0 10px;
    }
    
    #results .text-section {
        min-width: unset;
        text-align: center;
    }

    .frame-wrapper-centered {
        width: 80vw;
        height: auto;
        margin-left: auto;
        margin-right: auto;
    }

    .figma-prototype {
        top: 10.5%;
        left: 5%;
        width: 90%;
        height: 79%;
        border-radius: 3.5%;
    }
}

/* Smaller tablets and large phones */
@media (max-width: 768px) {

    /* Show hamburger menu */
    .menu-toggle {
        display: flex;
    }

    /* Hide nav by default */
    .nav-list {
        position: fixed;
        z-index: 9999;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: left 0.3s ease-in-out;
        padding: 0;
        margin: 0;
    }

    /* When active (menu open) */
    .nav-list.active {
        left: 0;
    }

    /* Nav list items */
    .nav-list li {
        margin: 0;
    }

    .nav-list li a {
        font-size: 22px;
        padding: 10px 20px;
        background-color: transparent;
        border-radius: 0;
        color: white;
        display: block;
        transition: background-color 0.3s ease;
    }

    .nav-list li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* Remove nav background from navbar */
    nav {
        background: none;
        position: relative;
        z-index: 10000;
    }

    /* Hero adjustments */
    .hero {
        height: 50vh;
        padding: 10px;
        background-size: contain;
    }

    .hero-text h2 {
        font-size: 1.3em;
        margin-bottom: 0.4em;
    }

    .hero-text h3 {
        font-size: 0.95em;
        line-height: 1.3;
    }

    .sidebar ul {
        flex-direction: column;
        gap: 15px;
        padding: 0;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .main-content {
        padding: 5px;
    }

    .hero {
        height: 38vh;
        padding: 8px;
    }

    .hero-text {
        padding: 8px;
    }

    .hero-text h2 {
        font-size: 1.1em;
    }

    .hero-text h3 {
        font-size: 0.85em;
    }

    .nav-list {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .nav-list li {
        flex-basis: auto;
        margin-bottom: 5px;
    }

    .nav-list a {
        font-size: 16px;
    }

    .persona-img {
        width: 100%;
        height: auto;
    }

    .side-by-side {
        flex-direction: column;
        gap: 20px;
    }

    .wireframe-container {
        flex-direction: column;
        align-items: center;
    }

    .wireframe-img {
        max-width: 90%;
    }

    .frame-wrapper-centered {
        width: 90vw;
        height: auto;
        margin: 0 auto 20px auto;
        order: 0;
    }

    .figma-prototype {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        border-radius: 20px;
    }
}