/* ===== Global Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f8f8f8;
    color: #333;
    line-height: 1.6;
}

/* ===== Navigation ===== */
#navbar {
    background-color: #333;
    padding: 15px;
}

#navbar .nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 20px;
}

#navbar a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 5px 10px;
    border-radius: 4px;
}

#navbar a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.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: 3; /* Ensure the menu toggle is above the hero content */
}

.menu-toggle .bar {
    height: 3px;
    width: 25px;
    background-color: #c9302c;
    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;
    background: url('../images/honours-mockup.jpg') no-repeat center center;
    background-size: cover;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: white;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
}

.hero-text {
    position: relative;
    z-index: 1;
}

.hero-text h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero-text h3 {
    font-weight: normal;
}

/* ===== Main Layout ===== */
.main-content {
    display: flex;
    gap: 30px;
    padding: 20px;
}

.sidebar {
    width: 25%;
    background-color: #333;
    padding: 20px;
    color: white;
    min-height: 100vh; /* Changed to min-height to allow content to push it */
    position: sticky; /* Makes sidebar sticky */
    top: 0; /* Sticks to the top of the viewport */
    align-self: flex-start; /* Ensures it aligns at the start of the flex container */
    /* Add a max-width if you find it too wide on very large screens */
    max-width: 300px; /* Example: Limit sidebar width */
}

.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; /* Make links block for better click area */
    padding: 5px 0;
}

.sidebar a:hover {
    text-decoration: underline;
}

.content {
    flex: 1;
}

/* ===== Section Layouts ===== */
.side-by-side {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 2rem;
}

.side-by-side .text {
    flex: 2;
}

.side-by-side img {
    max-width: 100%;
    border-radius: 10px;
}

.intro-content {
    margin-bottom: 20px; /* Space between the heading and the boxes */
}

#intro .container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px; /* Add some space above the container if needed */
}

#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);
}

.bulletpoint {
    list-style: disc;
    margin-left: 1.5rem;
}

/* ===== Slider ===== */
.slider {
    position: relative;
    overflow: hidden;
}

.slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dots span {
    width: 10px;
    height: 10px;
    background-color: #888;
    border-radius: 50%;
    cursor: pointer;
}

.dots span.active {
    background-color: #333;
}

/* ===== Images ===== */
.honours_logo {
    display: block;
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin: 0 auto;
}

.colour-scheme-image,
.asset-image,
.prototype-image,
.game-image,
.honours-poster-image {
    display: block;
    max-width: 90%;
    margin: 1rem auto;
    border-radius: 8px;
}

/* ===== Persona Blocks ===== */
/* Styling for each individual persona block */
.persona-block {
    display: flex; /* Use flexbox for layout */
    align-items: center; /* Vertically align items in the middle */
    margin-bottom: 40px; /* Space between persona blocks */
    padding: 20px;
}

/* Styling for the text content within a persona block */
.persona-text {
    flex: 1; /* Allow text to take up available space */
    padding: 0 20px; /* Padding around the text */
}

/* Styling for the image within a persona block */
.persona-img {
    flex-shrink: 0; /* Prevent image from shrinking */
    width: 600px; /* Fixed width for images */
    height: 400px; /* Fixed height for images */
}

.persona-img img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove extra space below image */
}

/* Specific styles for blocks where the image is on the right */
.right-image .persona-text {
    order: -1; /* Move text to the left */
}

/* ===== Frame Wrapper ===== */
.frame-wrapper-centered {
  position: relative;
  width: 100%;
  max-width: 1000px; /* wider to show more of the prototype */
  aspect-ratio: 16 / 9;
  margin: 20px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  background: #fff;
}

.adobe-prototype {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== Footer ===== */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
}

.footercontainer h4 {
    margin-bottom: 10px;
}

.social-links a {
    color: white;
    margin: 0 8px;
    font-size: 1.5rem;
}

.social-links a:hover {
    color: #900; /* Example hover color for social links */
}

/* ===== Lightbox ===== */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding: 2rem;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-modal img {
    display: block;
    max-width: 80%;
    margin: auto;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        position: static;
    }
    iframe {
        width: 100%;
    }
}

@media (max-width: 768px) {
        .menu-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        position: absolute; /* stays in place */
        top: 10px;
        left: 10px;
        z-index: 9999; /* always on top */
    }

    .nav-list {
        position: absolute;
        z-index: 1000; /* below toggle */
    }

    nav {
        background: none;
    }

    .nav-list {
        top: 60px;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease-in-out;
    }

    .nav-list.active {
        left: 0;
    }

    .nav-list li {
        margin: 20px 0;
    }

        .nav-list li a {
        background-color: transparent; /* Removes the red background */
        border-radius: 0; /* Optional: Makes the links rectangular instead of rounded */
        padding: 10px; /* Optional: Adjusts padding for the new style */
    }
    
    .hero {
        height: 40vh;
    }
    .hero-text h2 {
        font-size: 1.5rem;
    }
      #results {
    flex-direction: column;
    gap: 20px;
  }
  
  .frame-wrapper-centered {
    max-width: 100%;
    aspect-ratio: 9 / 16; /* Taller ratio for mobile */
  }
}

@media (max-width: 480px) {
    .hero {
        height: 30vh;
    }
    .hero-text h2 {
        font-size: 1.2rem;
    }
}
