/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal overflow */
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Navbar Styles */
#navbar {
    background-color: #333;
    padding: 15px;
    text-align: center;
}

/* Navigation List */
.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.nav-list li {
    display: inline;
}

.nav-list a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 5px 10px;
    border-radius: 4px;
}

.nav-list 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;
  width: 100%;
  height: auto; /* Let content decide height on mobile */
  min-height: 50vh;
  background: url('../images/mockups-acme.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;
  inset: 0;
  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;
    flex-wrap: wrap; /* Allow natural wrapping on smaller widths */
}

/* Sidebar Tweaks */
.sidebar {
    width: 20%; /* reduced from 25% */
    max-width: 240px; /* smaller max width */
    background-color: #333;
    padding: 15px; /* less padding */
    color: white;
    min-height: auto;
    position: sticky;
    top: 0;
    align-self: flex-start;
    font-size: 0.95rem; /* slightly smaller text */
}

.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;
}

.sidebar a:hover {
    text-decoration: underline;
}

/* Content Section */
.content {
    flex: 1;
    padding: 20px;
}

/* Side-by-side Layouts */
.side-by-side {
    display: flex;
    flex-wrap: wrap;
    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;
}

#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);
}

/* Persona Blocks */
.persona-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.persona-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px;
    gap: 20px;
}

.persona-text {
    flex: 1;
    padding: 0 20px;
    min-width: 250px;
}

.persona-img {
    flex-shrink: 0;
    width: 100%;
    max-width: 600px;
}

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

.right-image .persona-text {
    order: -1;
}

.journey-map-image {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: block;
}

/* Storyboard and User Flow */
.storyboard,
.user-flow {
    padding: 30px 20px;
    margin: 40px auto;
    max-width: 800px;
}

.storyboard h3,
.user-flow h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #222;
}

.storyboard p,
.user-flow p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #444;
}

.storyboard-image,
.userflow-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

/* Wireframes */
.wireframe-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.wireframe-text {
  flex: 1;
  min-width: 250px;
}

.wireframe-img {
  max-width: 400px;
  flex-shrink: 0;
}

/* Results */
#results {
    max-width: 1000px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}

.main-content-area {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.text-section {
    flex: 1;
    min-width: 300px;
}

/* Figma Frame */
.frame-wrapper-centered {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 400 / 860;
    margin: 20px auto;
}

.figma-prototype {
    position: absolute;
    top: 42px;
    left: 20px;
    width: calc(100% - 40px);
    height: calc(100% - 62px);
    border: none;
    border-radius: 30px;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.footercontainer h4 {
    margin: 0 0 10px;
}

.social-links {
    display: flex;
    justify-content: center;
}

.social-links a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

.social-links a:hover {
    color: #d9534f;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
        padding: 10px;
    }
    .sidebar {
        width: 200px;
        max-width: 200px;
        font-size: 0.9rem;
    }
    .sidebar ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .content {
        width: 100%;
        padding: 0 10px;
    }
    .side-by-side {
        flex-direction: column;
        text-align: center;
    }
    .frame-wrapper-centered {
        width: 80vw;
    }
}
@media (max-width: 768px) {
    /* Show hamburger menu */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 9999;
    }

    /* Navigation list styling for mobile */
    .nav-list {
        position: absolute;
        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;
        z-index: 1000;
    }

    /* Active nav list slides in */
    .nav-list.active {
        left: 0;
    }

    .nav-list li {
        margin: 20px 0;
    }

    .nav-list li a {
        background-color: transparent;
        border-radius: 0;
        padding: 10px;
    }

    /* Remove black background from navbar */
    #navbar {
        background: none;
    }

    /* Hero section adjustments */
    .hero {
        min-height: 40vh;
        padding: 10px;
        background-size: contain;
    }

    /* Smaller, subtler transparent overlay */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 20; /* smaller height */
    background: rgba(0, 0, 0, 0.7); /* less opaque */
    z-index: 2;
    pointer-events: none;
}


    /* Sidebar full width and centered text */
    .sidebar {
        width: 100%;
        max-width: none;
        padding: 10px;
        font-size: 0.9rem;
        text-align: center;
    }

    .sidebar ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .sidebar ul li {
        margin: 5px 0;
    }

    /* Persona and wireframe blocks stacked and centered */
    .persona-block {
        flex-direction: column;
        text-align: center;
    }

    .wireframe-container {
        flex-direction: column;
        text-align: center;
    }
}


@media (max-width: 480px) {
    .hero {
        min-height: 35vh;
        padding: 8px;
    }
    .hero-text {
        padding: 10px;
    }
    .hero-text h2 {
        font-size: 1.1em;
    }
    .hero-text h3 {
        font-size: 0.85em;
    }
    .main-content {
        padding: 5px;
    }
    .sidebar {
        padding: 8px;
        font-size: 0.85rem;
    }
}
