/* Global styles */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #6b17e6;
    --accent-color: #ff5757;
    --text-color: #2d3436;
    --background-color: #ffffff;
    --section-padding: 8rem 2rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
    --container-padding: 0 4rem;
    --side-padding: 4rem;
}

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

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

/* Header styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8); /* Transparent white background */
    backdrop-filter: blur(8px); /* Blur effect for better readability */
    -webkit-backdrop-filter: blur(8px); /* For Safari support */
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1.5rem var(--side-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Pacifico', cursive;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 0;
    display: flex;
    align-items: center;
    text-shadow: 0.3px 0 0 currentColor;
}

.logo-first, .logo-last {
    display: inline-block;
}

.logo:hover {
    color: var(--secondary-color);
}

.logo:hover .logo-first {
    transform: translateX(-2px);
}

.logo:hover .logo-last {
    transform: translateX(2px);
}

.logo-first, .logo-last {
    transition: var(--transition);
}

.logo img {
    width: 40px;
    height: auto;
    transition: var(--transition);
}

/* Navigation styles */
.nav-menu {
    position: relative;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

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

.nav-list a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    opacity: 0.8;
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.nav-list a.active {
    color: var(--primary-color);
}

.nav-list a:hover {
    color: var(--secondary-color);
    opacity: 1;
}

/* Hero section */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
    position: relative;
}

.hero-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--side-padding);
    width: 100%;
    transform: translateY(-60px);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin: 0;
}

.title-line {
    display: block;
    white-space: nowrap;
    overflow: visible;
    margin-bottom: 1rem;
}

.title-line:last-child {
    white-space: normal;
    margin-bottom: 0;
}

.highlight {
    color: var(--secondary-color);
}

.animated-text-container {
    display: inline;
    white-space: nowrap;
}

.animated-text {
    display: inline;
    position: relative;
    min-width: auto;
    white-space: nowrap;
    opacity: 1 !important;
}

.animated-text::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: var(--primary-color);
    margin-left: 2px;
    animation: blink 0.7s infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-symbols {
    margin-top: 24px;
    display: flex;
    gap: 16px;
}

.symbol {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* Work section */
.work-container,
.about-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--side-padding);
    width: 100%;
}

.work-header,
.about-header {
    margin-bottom: 24px;
}

.work-intro,
.about-intro {
    width: 100%;
    margin-bottom: 24px;
}

.work-intro h2,
.about-intro h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    padding: 0;
}

.work-content,
.about-content {
    width: 100%;
}

.projects-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* Remove any conflicting styles */
.section h2,
.work-section > h2,
.about-section > h2,
.work-header,
.about-header {
    max-width: none;
    margin: 0;
    padding: 0;
}

.project-card {
    width: 100%;
    position: relative;
    background: none;
    border: none;
    transition: var(--transition);
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: var(--transition);
}

.project-link:hover {
    transform: translateY(-8px);
}

.project-link:hover .project-image img {
    transform: scale(1.05);
}

.project-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    margin-top: 1.5rem;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.project-tags {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.tag {
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    background-color: #f0f0f0;
    border-radius: 100px;
    color: var(--text-color);
}

/* About section */
.about-section {
    padding-top: 0;
    padding-bottom: 80px;
}

.about-text {
    max-width: 800px;
    font-size: 1.25rem;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.values {
    max-width: 800px;
    margin: 3rem auto 0;
    display: flex;
    justify-content: space-between;
    gap: 4rem;
}

.value-item {
    text-align: center;
    flex: 1;
}

.value-symbol {
    font-size: 2rem;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 1rem;
}

.value-text {
    font-weight: 500;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: #fff;
    color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    color: var(--secondary-color);
}

.social-link svg {
    width: 22px;
    height: 22px;
    transition: var(--transition);
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    margin-top: 40px;
    position: relative;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--side-padding);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-content p {
    color: var(--text-color);
    font-size: 0.875rem;
    opacity: 0.8;
    margin: 0 auto;
}

.footer-back-to-top {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    transition: var(--transition);
    margin-left: 1rem;
}

.footer-back-to-top:hover {
    background: var(--primary-color);
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .footer-back-to-top {
        position: static;
        margin-top: 1rem;
        margin-left: 0;
    }
}

/* Responsive design */
@media (max-width: 1024px) {
    :root {
        --container-padding: 0 3rem;
        --side-padding: 3rem;
    }

    .header-container {
        padding: 1.5rem 3rem;
    }

    footer {
        padding: 3rem;
    }
}

@media (max-width: 1200px) {
    .title-line {
        white-space: normal;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 6rem 2rem;
        --container-padding: 0 2rem;
        --side-padding: 2rem;
    }

    .header-container {
        padding: 1.5rem 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .projects-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .values {
    flex-direction: column;
    align-items: center;
        gap: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    text-align: center;
}

    .footer-left {
        text-align: center;
    }

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

    footer {
        padding: 3rem 2rem;
    }

    .title-line {
        margin-bottom: 0.75rem;
    }

    .work-section {
        padding-top: 20px;
    }

    .about-section {
        padding-top: 0;
        padding-bottom: 60px;
    }

    .projects-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-content {
        flex-direction: column;
        gap: 40px;
    }

    .about-text-container,
    .values {
        max-width: 100%;
        width: 100%;
    }
}

/* Page specific styles */
.work-section h1,
.about-section h1 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* Adjust spacing for standalone pages */
.work-section,
.about-section {
    padding-top: 120px;
}

/* Resume link */
.nav-list a[href$=".pdf"] {
    color: var(--secondary-color);
    font-weight: 600;
}

.nav-list a[href$=".pdf"]:hover {
    opacity: 0.8;
}

/* About Page Styles */
.about-intro-flex {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 60px;
}

.profile-image-container {
    flex-shrink: 0;
}

.profile-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.about-intro-content {
    text-align: left;
    flex-grow: 1;
}

.about-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.about-details {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
}

.detail-value {
    font-size: 1rem;
    font-weight: 500;
}

.about-text-section {
    max-width: 800px;
}

.about-text-section p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 24px;
    color: #333;
}

.experience-toolkit-container {
    display: flex;
    gap: 4rem;
    margin-top: 60px;
    max-width: var(--container-width);
    padding: 0;
}

.experience-section {
    flex: 1;
}

.experience-section h2 {
    font-size: 1.75rem;
    margin-bottom: 32px;
    font-weight: 600;
    padding: 0;
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.experience-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.experience-date {
    font-size: 0.875rem;
    color: #666;
    min-width: 120px;
}

.experience-details h3 {
    font-size: 1.125rem;
    margin-bottom: 4px;
    font-weight: 500;
}

.experience-details p {
    color: #666;
}

.toolkit-section {
    flex: 1;
}

.toolkit-section h2 {
    font-size: 1.75rem;
    margin-bottom: 32px;
    font-weight: 600;
    padding: 0;
}

.toolkit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.toolkit-column h3 {
    font-size: 1.125rem;
    margin-bottom: 16px;
    font-weight: 500;
}

.toolkit-column ul {
    list-style: none;
    padding: 0;
}

.toolkit-column li {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #333;
}

@media (max-width: 768px) {
    .about-intro-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
        gap: 40px;
    }

    .about-intro-content {
        text-align: center;
    }

    .about-details {
        justify-content: center;
    }

    .about-intro h1 {
    font-size: 2.5rem;
    }

    .experience-toolkit-container {
        flex-direction: column;
        gap: 2rem;
    }

    .experience-item {
        flex-direction: column;
        gap: 8px;
    }

    .experience-date {
        min-width: auto;
    }

    .toolkit-grid {
        grid-template-columns: 1fr;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    display: none;
}

/* Main container styles */
.hero-content,
.work-container,
.about-container,
.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: var(--side-padding);
    padding-right: var(--side-padding);
    width: 100%;
}

.work-container,
.about-container {
    padding-top: 120px;
    padding-bottom: 60px;
}

.work-header,
.about-header {
    margin-bottom: 24px;
}

.work-content,
.about-content {
    width: 100%;
}

.projects-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 40px;
    margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    :root {
        --side-padding: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --side-padding: 2rem;
    }
    
    .projects-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Section headings */
.work-intro h2,
.about-intro h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* About section layout */
.about-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    margin-top: 0;
}

.about-text-container {
    flex: 1;
    max-width: 600px;
    margin-top: 0;
}

.about-text {
    font-size: 1.25rem;
    line-height: 1.8;
    margin: 0;
}

.values {
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 0;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.value-symbol {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.value-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .work-intro h2,
    .about-intro h2 {
        font-size: 2rem;
    }

    .about-content {
        flex-direction: column;
        gap: 40px;
        align-items: flex-start;
    }

    .about-text-container,
    .values {
        max-width: 100%;
    width: 100%;
    }
}

/* Section headings alignment */
.work-intro h2,
.about-intro h2,
.hero-title,
.projects-container {
    max-width: var(--container-width);
    margin-left: 0;
}

/* Consistent section spacing */
.section {
    width: 100%;
}

.work-section,
.about-section {
    padding-top: 120px;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        gap: 40px;
        align-items: flex-start;
    }

    .about-text-container,
    .values {
        max-width: 100%;
    width: 100%;
    }
}

/* Project section styles */
.work-intro {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: var(--side-padding);
    padding-right: var(--side-padding);
    width: 100%;
}

.work-intro h2 {
    margin: 0;
    text-align: left;
}

/* Projects grid container */
.projects-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

/* About section specific */
.about-header {
    margin-bottom: 24px;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    margin-top: 0;
}

/* Remove any conflicting margins */
.about-text-container {
    margin-top: 0;
}

.about-text {
    margin: 0;
}

/* Work section adjustments */
.work-section {
    padding-top: 0;
    padding-bottom: 80px;
    margin-top: -140px;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
    }

    .hero-content {
        transform: translateY(-40px);
    }

    .work-section {
        margin-top: -100px;
    }
}

/* Contact section */
.contact-section {
    padding: 20px 0;
    background-color: var(--background-alt);
}

.contact-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--side-padding);
    width: 100%;
}

.contact-content {
    text-align: center;
}

.contact-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.contact-section .social-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 24px;
}

.contact-section .social-link {
    color: var(--text-color);
    transition: all 0.3s ease;
    padding: 12px;
    border-radius: 50%;
    background-color: #f0f0f0;
    border: 1px solid #e0e0e0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-section .social-link:hover {
    color: var(--secondary-color);
    background-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1.5px solid var(--secondary-color);
}

.contact-section .social-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.contact-section .social-link:hover svg {
    transform: scale(1.1);
}

/* Updated footer styles */
footer {
    padding: 40px 0;
    text-align: center;
    margin-top: 40px;
    position: relative;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--side-padding);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-content p {
    color: var(--text-color);
    font-size: 0.875rem;
    opacity: 0.8;
    margin: 0 auto;
}

.footer-back-to-top {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    margin-left: 1rem;
}

.footer-back-to-top:hover {
    background: var(--primary-color);
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .footer-back-to-top {
        position: static;
        margin-top: 1rem;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 60px 0;
    }

    .contact-content h2 {
        font-size: 2rem;
    }

    .contact-section .social-links {
        gap: 20px;
    }

    .contact-section .social-link {
        font-size: 20px;
        width: 40px;
        height: 40px;
    }
}

/* Disable smooth scrolling */
html {
    scroll-behavior: auto;
}

/* Ensure proper spacing after removing work.html */
.work-container {
    padding-top: 0;
}

.projects-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

@media (max-width: 768px) {
    .work-section {
        scroll-margin-top: 100px;
    }
    
    .projects-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Project Detail Page Styles */
.project-detail {
    max-width: 100%;
    margin: 0 auto;
    padding-top: 60px;
}

.project-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero Section */
.project-hero {
    padding: 40px 0;
}

.project-intro {
    margin-bottom: 32px;
    max-width: 800px;
}

.project-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.project-tagline {
    font-size: 1.5rem;
    line-height: 1.6;
    color: #666666; /* Medium gray color that's still very readable */
    margin-bottom: 32px;
    max-width: 900px; /* Slightly wider to accommodate the longer text */
}

.project-cover {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cover-image {
    width: 100vw;
    max-width: 100vw;
    height: 340px;
    object-fit: contain;
    display: block;
    background: #fff;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
}

/* Project Metadata */
.project-metadata {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 32px 0;
    padding: 24px;
    background: var(--background-alt);
    border-radius: 8px;
}

.metadata-group h3 {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.metadata-group p,
.metadata-group li {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.skills-list,
.tools-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Content Sections */
.project-summary,
.project-context,
.project-research,
.project-process,
.project-solution,
.project-reflection {
    padding-top: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.project-summary {
    background: var(--background-alt);
}

.summary-text {
    font-size: 1.25rem;
    line-height: 1.8;
    max-width: 800px;
}

/* Section Headers */
.project-detail h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.project-detail h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

/* Research Section */
.research-content,
.process-steps {
    display: grid;
    gap: 32px;
}

/* Goal section styling */
.goal-content {
    text-align: left;
    margin-top: 16px;
    margin-bottom: 24px;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 32px;
}

/* Special grid for $talk project - 3 cards in one line */
.insights-grid-talk {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.insight-card {
    padding: 24px;
    background: var(--background-alt);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-4px);
}

.insight-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 16px;
    display: block;
}

/* Process Section */
.process-step {
    margin-bottom: 48px;
}

.step-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .step-content {
        grid-template-columns: 1fr 1fr;
    }
}

.step-image {
    border-radius: 8px;
    overflow: hidden;
}

.step-image img {
    width: 450px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Specific styling for MediRoute process images */
.process-step:nth-child(2) .step-image img {
    height: 300px;
    object-fit: cover;
    object-position: center bottom;
}

.process-step:nth-child(3) .step-image img {
    height: 300px;
    object-fit: cover;
}

/* Solution Section */
.solution-showcase {
    margin-top: 32px;
    display: grid;
    gap: 24px;
}

/* Reflection Section */
.reflection-content {
    display: grid;
    gap: 32px;
}

@media (min-width: 768px) {
    .reflection-content {
        grid-template-columns: 2fr 1fr;
    }
}

.next-steps ul {
    list-style: none;
    padding: 0;
}

.next-steps li {
    margin-bottom: 16px;
    padding-left: 24px;
    position: relative;
}

.next-steps li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .project-title {
        font-size: 2.5rem;
    }

    .project-tagline {
        font-size: 1.25rem;
    }

    .project-metadata {
        grid-template-columns: 1fr;
    }

    .project-summary,
    .project-context,
    .project-research,
    .project-process,
    .project-solution,
    .project-reflection {
        padding-top: 16px;
        padding-bottom: 16px;
    }
}

/* Animation */
.project-detail section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure sections animate in sequence */
.project-detail section:nth-child(1) { animation-delay: 0.1s; }
.project-detail section:nth-child(2) { animation-delay: 0.2s; }
.project-detail section:nth-child(3) { animation-delay: 0.3s; }
.project-detail section:nth-child(4) { animation-delay: 0.4s; }
.project-detail section:nth-child(5) { animation-delay: 0.5s; }
.project-detail section:nth-child(6) { animation-delay: 0.6s; }

/* Tighter spacing for project context section */
.project-context {
    padding: 32px 0 32px 0 !important;
}

.project-context .project-container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.project-context .context-content p {
    margin-bottom: 16px;
    margin-top: 0;
}

.project-context .challenge-solution {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 24px;
}

.project-context .challenge,
.project-context .solution {
    flex: 1 1 300px;
    margin-bottom: 0;
}

.project-context h2 {
    margin-bottom: 24px !important;
}

@media (max-width: 768px) {
  .project-context {
    padding: 20px 0 20px 0 !important;
  }
  .project-context .challenge-solution {
        flex-direction: column;
    gap: 20px;
    margin-top: 16px;
  }
  .project-context h2 {
    margin-bottom: 16px !important;
  }
  .project-context .context-content p {
    margin-bottom: 12px;
  }
}

.project-context .challenge ul {
    padding-left: 0;
    margin-left: 0;
    list-style-position: inside;
}

.project-context .challenge li {
    margin-left: 0;
    padding-left: 0;
}

.project-context .challenge p > strong {
        display: block;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 28px;
    margin-top: 8px;
}

.project-video {
    width: 100%;
    max-width: 700px;
    margin: 32px auto 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-video iframe {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    background: #000;
}

@media (max-width: 768px) {
    .project-video {
        max-width: 100%;
        margin-top: 20px;
    }
    .project-video iframe {
        height: 220px;
    }
}

.research-intro h3 {
    margin-bottom: 12px;
}

.research-intro p {
    margin-bottom: 18px;
}

.research-intro ul {
    margin-bottom: 24px;
    padding-left: 36px;
}

.research-intro ul li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.user-persona {
    padding: 48px 0;
    background: var(--background-alt);
    border-bottom: 1px solid var(--border-color);
}

.persona-container {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.persona-image {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.persona-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.persona-details {
    flex: 1;
}

.persona-details h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.persona-details h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.persona-role {
    font-size: 1rem;
    color: #666;
    margin-bottom: 16px;
}

.persona-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: #444;
    margin-bottom: 20px;
    border-left: 4px solid var(--secondary-color);
    padding-left: 16px;
}

.persona-bullets {
    list-style: disc inside;
    padding-left: 0;
    margin: 0;
}

.persona-bullets li {
    margin-bottom: 10px;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .persona-container {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    .persona-image {
        width: 130px;
        height: 130px;
    }
    .persona-details h3 {
        font-size: 1.2rem;
    }
    }

.brainstorming-section {
    padding: 48px 0;
    background: transparent;
    border-bottom: none;
}

.brainstorming-container {
    max-width: 1100px;
    margin: 0 auto;
}

.brainstorming-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: center;
    }

.brainstorming-image-block {
    display: flex;
        flex-direction: column;
    align-items: center;
    max-width: 340px;
    flex: 1 1 320px;
    margin-bottom: 0;
}

.brainstorming-image-block img {
        width: 100%;
    max-width: 700px;
    height: auto;
    margin-bottom: 0;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    background: #fff;
}

.brainstorming-details {
    width: 100%;
    text-align: left;
    }

.brainstorming-details h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.brainstorming-details ul {
    margin-bottom: 18px;
    padding-left: 22px;
}

.brainstorming-details li {
    margin-bottom: 8px;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .brainstorming-content {
        flex-direction: column;
        gap: 28px;
        align-items: center;
    }
    .brainstorming-image-block {
        max-width: 100%;
        width: 100%;
    }
    .brainstorming-image-block img {
        max-width: 100%;
        height: auto;
    }
}

.competitive-analysis {
    padding: 48px 0;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.competitors-container {
    max-width: none;
    margin: 0;
    padding: 0;
}

.competitors-grid {
        display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    }

.competitor-card {
    background: #f8f9fb;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    padding: 32px 28px 24px 28px;
    flex: 1 1 320px;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 260px;
    border: 2px solid #d1d5db;
}



.competitor-logo {
    width: 90px;
    height: 90px;
    object-fit: cover;
    margin-bottom: 18px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.competitor-card h3 {
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    min-height: 32px;
    font-size: 1rem;
    font-weight: 600;
}

.pros-header,
.pros-cons {
    text-align: left;
    width: 100%;
    align-items: flex-start;
    justify-content: flex-start;
}

.pros-cons li {
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .competitors-grid {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
    .competitor-card {
        max-width: 100%;
        width: 100%;
    }
}

.visual-design-flex {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.visual-design-image {
    flex: 0 0 500px;
    max-width: 500px;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.visual-design-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    background: #fff;
    }

.visual-design-details {
    flex: 1;
    width: 100%;
}

@media (max-width: 900px) {
    .visual-design-flex {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
    .visual-design-image,
    .visual-design-image img {
        max-width: 100%;
        width: 100%;
    }
    .visual-design-details {
        width: 100%;
    }
}

/* Common left-aligned image with right text layout */
.image-text-layout {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 48px;
}

.image-text-layout img {
    flex: 0 0 auto;
    max-width: 45%;
    border-radius: 8px;
    object-fit: cover;
}

.image-text-layout .text-content {
    flex: 1;
}

/* Brainstorming section adjustments */
.brainstorming-content {
    flex-direction: column;
    gap: 48px;
}

.brainstorming-image-block {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    max-width: 100%;
    gap: 32px;
}

.brainstorming-image-block img {
    width: 45%;
    max-width: 700px;
    height: auto;
    margin-bottom: 0;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    background: #fff;
}

.brainstorming-details {
    flex: 1;
    padding-top: 8px;
}

/* Process section adjustments */
.step-content {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.step-image {
    flex: 0 0 45%;
}

.step-content p {
    flex: 1;
    margin: 0;
}

/* Visual design section adjustments */
.visual-design-flex {
    flex-direction: row;
    gap: 40px;
}

.visual-design-images {
    flex: 0 0 45%;
    flex-direction: column;
}

.visual-design-details {
    flex: 1;
    padding-top: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .image-text-layout,
    .brainstorming-image-block,
    .step-content,
    .visual-design-flex {
        flex-direction: column;
        gap: 24px;
    }

    .image-text-layout img,
    .brainstorming-image-block img,
    .step-image,
    .visual-design-images {
        max-width: 100%;
        width: 100%;
    }

    .visual-design-images {
        flex-direction: row;
        gap: 16px;
    }
}

/* Section headings left-aligned, but containers remain centered with padding */
.project-detail h2,
.project-detail h3 {
    text-align: left;
}

/* Remove previous forced left alignment for containers */
/* .project-container, .competitors-container, .persona-container {
    margin-left: 0 !important;
    margin-right: auto !important;
} */
/* .project-detail h2, .project-detail h3, .project-detail section, .project-container, .project-detail .section, .project-detail .project-container {
    text-align: left !important;
    align-items: flex-start !important;
} */

.persona-flex {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

@media (max-width: 768px) {
    .persona-flex {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
}

/* Reduce vertical spacing between main sections */
.project-summary,
.project-context,
.project-research,
.project-process,
.project-solution,
.project-reflection,
.user-persona,
.competitive-analysis,
.visual-design-language,
.brainstorming-section {
    padding-top: 24px;
    padding-bottom: 24px;
}

@media (max-width: 768px) {
    .project-summary,
    .project-context,
    .project-research,
    .project-process,
    .project-solution,
    .project-reflection,
    .user-persona,
    .competitive-analysis,
    .visual-design-language,
    .brainstorming-section {
        padding-top: 16px;
        padding-bottom: 16px;
    }
}

.visual-design-language ul {
    padding-left: 2rem;
    margin-left: 0;
}

.visual-design-language li {
    text-indent: 0;
}

.visual-design-language .visual-design-details {
    max-width: 100%;
    width: 100%;
}

.visual-design-language h3:not(:first-child) {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.solution {
    padding: 60px 0;
}

.solution h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.section-intro {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

.final-product {
    padding: 60px 0;
}

.final-product h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.section-intro {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

.features-section {
    margin-top: 40px;
}

.features-section h3 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    color: #333;
}

.feature-container {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.feature-container:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-container:last-child {
    margin-bottom: 0;
}

.feature-image {
    flex: 1;
}

.feature-image img,
.feature-image video {
    width: 800px;
    height: 500px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    background: white;
}

.feature-container:first-child .feature-image img,
.feature-container:first-child .feature-image video {
    width: 800px;
    height: 500px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    background: white;
}

/* MediRoute specific styling for smaller videos */
.mediroute .feature-image img,
.mediroute .feature-image video {
    width: 200px;
    height: 125px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.mediroute .feature-container:first-child .feature-image img,
.mediroute .feature-container:first-child .feature-image video {
    width: 200px;
    height: 125px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* White background for MediRoute YouTube videos */
.mediroute .feature-image iframe {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.mediroute .project-video iframe {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.feature-content {
    flex: 1;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.feature-content:hover {
    transform: translateY(-5px);
}

.feature-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
    text-align: left;
}

.feature-content p {
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .feature-container {
        flex-direction: column !important;
        gap: 30px;
        margin-bottom: 60px;
    }
    
    .feature-image {
        width: 100%;
    }
    
    .feature-image img,
    .feature-image video {
        width: 600px;
        height: 375px;
        object-fit: contain;
        background: white;
    }
    
    .mediroute .feature-image img,
    .mediroute .feature-image video {
        width: 150px;
        height: 90px;
        object-fit: cover;
    }
    
    .feature-content {
        width: 100%;
    }
}

.reflection {
    padding: 80px 0;
    background-color: #f8f9fa;
    margin-bottom: 80px;
}

.reflection h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-align: center;
    color: #333;
}

.reflection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.reflection-item {
    background: #6B4EFF;  /* $talk purple color */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.reflection-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(107, 78, 255, 0.2);
}

.reflection-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.reflection-item p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 1.1rem;
}

.reflection-summary {
    grid-column: 1 / -1;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px;
    background: #6B4EFF;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.reflection-summary p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: 1.2rem;
}

.reflection-summary-list {
    list-style: disc inside;
    color: rgba(255,255,255,0.95);
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: left;
    margin: 0 auto;
    max-width: 700px;
    padding-left: 0;
}

.reflection-summary-list li {
    margin-bottom: 10px;
    padding-left: 0;
    text-align: left;
    text-indent: 5px;
    list-style-position: inside;
    display: list-item;
}

.reflection-icon {
    display: block;
    margin: 0 auto 18px auto;
    width: 150px;
    height: 150px;
    max-width: 90%;
    max-height: 150px;
    object-fit: contain;
}

.reflection-summary-img {
    display: block;
    margin: 0 auto 28px auto;
    width: 800px;
    max-width: 95%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
    object-fit: contain;
}

.thank-you-container {
    text-align: center;
    margin: 40px 0 16px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.thank-you-content {
    flex: 1 1 300px;
    min-width: 280px;
}

.thank-you-classic {
    font-family: 'Pacifico', cursive;
    font-size: 3rem;
    color: #6B4EFF;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.thank-you-subtext {
    font-size: 1.15rem;
    color: #444;
    margin-top: 0;
    font-family: inherit;
    opacity: 0.85;
}

.thank-you-container .social-links {
    margin-top: 20px;
}

.back-to-top-btn {
    display: block;
    margin: 40px auto 0 auto;
    padding: 12px 32px;
    font-size: 1.1rem;
    font-family: inherit;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(34,34,34,0.10);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
    font-weight: 600;
    letter-spacing: 1px;
    align-self: center;
    min-width: 160px;
}

.back-to-top-btn:hover {
    background: #333;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 16px rgba(34,34,34,0.18);
}

@media (max-width: 700px) {
    .thank-you-container {
        flex-direction: column;
        gap: 24px;
    }
    .back-to-top-btn {
        width: 100%;
        min-width: 0;
        margin-top: 16px;
    }
}

.wireframes-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, auto);
    gap: 24px;
    margin-top: 24px;
}
.wireframes-gallery img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    background: #fff;
}
@media (max-width: 900px) {
    .wireframes-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }
}

.competitor-app-name {
    margin-left: 10px;
}

.center-title {
    text-align: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.competitive-analysis-visuals {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
}
.competitive-analysis-main-img {
    max-width: 100%;
    width: 700px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    background: #fff;
}
.competitive-analysis-flex {
    display: flex;
    flex-direction: row;
    gap: 40px;
    width: 100%;
    justify-content: center;
    align-items: stretch;
}
.competitive-analysis-side-img {
    width: 33.33%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    background: #f8f9fb;
    border: 2px solid #d1d5db;
}
.competitive-analysis-captions {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
    min-width: 0;
}
@media (max-width: 900px) {
    .competitive-analysis-flex {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
    .competitive-analysis-side-img {
        width: 100%;
        max-width: 100%;
    }
    .competitive-analysis-captions {
        width: 100%;
    }
    .competitive-analysis-main-img {
        width: 100%;
        max-width: 100%;
    }
}

.wireframes-visuals {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
}
.wireframes-main-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    background: #f8f9fb;
    border: 2px solid #d1d5db;
    display: block;
}
.wireframes-flex {
    display: flex;
    flex-direction: row;
    gap: 40px;
    width: 100%;
    justify-content: center;
    align-items: stretch;
}
.wireframes-side-img {
    width: 33.33%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    background: #f8f9fb;
    border: 2px solid #d1d5db;
}
.wireframes-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
    min-width: 0;
}
@media (max-width: 900px) {
    .wireframes-flex {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
    .wireframes-side-img {
        width: 100%;
        max-width: 100%;
    }
    .wireframes-details {
        width: 100%;
    }
    .wireframes-main-img {
        width: 100%;
        max-width: 100%;
    }
}

/* Wireframes Group Section */
.wireframes-group-section {
    padding: var(--section-padding);
}

.wireframes-group-section h2 {
    margin-bottom: 3rem;
    text-align: left;
}

/* Spacing between subsections */
.wireframes-group-section .wireframes-section,
.wireframes-group-section .style-guide-section,
.wireframes-group-section .high-fidelity-section {
    margin-bottom: 4rem;
}

.wireframes-group-section .wireframes-section:last-child,
.wireframes-group-section .style-guide-section:last-child,
.wireframes-group-section .high-fidelity-section:last-child {
    margin-bottom: 0;
}

/* Subsection headings */
.wireframes-group-section h3 {
    margin-bottom: 2rem;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
}

/* Style Guide Section Styling */
.style-guide-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.style-guide-images {
    flex: 0 0 33.333%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.style-guide-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.style-guide-caption {
    flex: 1;
}

.style-guide-caption h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.style-guide-caption h4:first-child {
    margin-top: 0;
}

.style-guide-caption p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.style-guide-colors {
    margin-top: 2rem;
}

.style-guide-colors ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.style-guide-colors li {
    padding: 0.5rem 1rem;
    background: #f8f8f8;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .style-guide-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .style-guide-images {
        flex: none;
        width: 100%;
    }
    
    .style-guide-colors ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* High-Fidelity Section Styling */
.high-fidelity-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.high-fidelity-images {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.high-fidelity-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

@media (max-width: 900px) {
    .high-fidelity-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .high-fidelity-images {
        flex: none;
        width: 100%;
    }
}

/* Usability Testing Section Styling */
.usability-testing-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-size: 1.3rem;
    font-weight: 600;
}

.usability-testing-content h3:first-child {
    margin-top: 0;
}

.usability-testing-content ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.usability-testing-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Add indentation to wireframes and style guide bullet points */
.wireframes-details ul,
.style-guide-caption ul {
    padding-left: 1.5rem;
}

/* Final Product Section Styling */
.final-product-content {
    margin-bottom: 2rem;
}

.figma-prototype {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.figma-prototype iframe {
    display: block;
    border: none;
    width: 100%;
    height: 900px;
}

/* Reflection Section Styling */
.reflection-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-size: 1.3rem;
    font-weight: 600;
    text-align: left;
    display: block;
    width: 100%;
    float: none;
    clear: both;
}

.reflection-content h3:first-child {
    margin-top: 0;
}

.reflection-content ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    clear: both;
}

.reflection-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Custom Reflection Section Styles for Orbital */
.reflection-caption {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.reflection-caption p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.reflection-caption h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(107, 23, 230, 0.2);
}

.reflection-caption h3:first-child {
    margin-top: 0;
}

.reflection-caption ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.reflection-caption li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: var(--text-color);
    position: relative;
}

.reflection-caption li::before {
    content: "•";
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: -1.2rem;
}

.reflection-caption strong {
    color: var(--primary-color);
    font-weight: 600;
}

.reflection-caption em {
    color: var(--secondary-color);
    font-style: italic;
    font-weight: 500;
}

@media (max-width: 768px) {
    .reflection-caption {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .reflection-caption p {
        font-size: 1rem;
    }
    
    .reflection-caption h3 {
        font-size: 1.2rem;
    }
}

/* Goal & Problem Statement Styling */
.goal-problem-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 24px;
}

.goal-statement,
.problem-statement {
    background: #f8f9fb;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e7eb;
}

.goal-statement h4,
.problem-statement h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.goal-statement p,
.problem-statement p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Target Audience Styling */
.target-audience {
    margin: 60px 0;
}

.target-audience h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.audience-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.primary-audience h4,
.secondary-audience h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.primary-audience ul,
.secondary-audience ul {
    list-style: none;
    padding: 0;
}

.primary-audience li,
.secondary-audience li {
    margin-bottom: 16px;
    padding: 16px;
    background: #f8f9fb;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.primary-audience li strong,
.secondary-audience li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* News Evidence Section Styling */
.news-evidence {
    margin: 60px 0;
}

.news-evidence h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.news-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.news-articles h4,
.news-videos h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.article-examples,
.video-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.article-item,
.video-item {
    background: #f8f9fb;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-item:hover,
.video-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.article-image,
.video-thumbnail {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

/* Specific styling for first and third article images to fit properly */
.article-item:first-child .article-image,
.article-item:nth-child(3) .article-image {
    object-fit: contain;
    background-color: #ffffff;
    padding: 1rem;
    height: 160px;
    width: 100%;
}

/* Visual Design Language Section */
.visual-design-language {
    margin: 4rem 0;
}

.visual-design-content {
    display: grid;
    gap: 3rem;
    margin-top: 2rem;
}

.design-principles ul,
.iconography ul {
    list-style: none;
    padding: 0;
}

.design-principles li,
.iconography li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.design-principles li::before,
.iconography li::before {
    content: "•";
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.color-palette {
    margin: 2rem 0;
}

.color-scheme {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.color-item {
    text-align: center;
}

.color-swatch {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    margin: 0 auto 1rem;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.color-item p {
    font-size: 0.9rem;
    line-height: 1.4;
}

.typography {
    margin: 2rem 0;
}

.type-system {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.type-example {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.type-example h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.type-example p {
    margin: 0;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .color-scheme {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .color-swatch {
        width: 60px;
        height: 60px;
    }
    
    .type-example {
        padding: 1rem;
    }
    
    .type-system {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.video-placeholder {
    position: relative;
    margin-bottom: 16px;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon {
    color: white;
    font-size: 18px;
    margin-left: 2px;
}

.article-details h5,
.video-details h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.article-details p,
.video-details p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.article-link,
.video-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.article-link:hover,
.video-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Responsive Design for Goal & Problem Statement */
@media (max-width: 768px) {
    .goal-problem-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .goal-statement,
    .problem-statement {
        padding: 20px;
    }
    
    .goal-statement h4,
    .problem-statement h4 {
        font-size: 1rem;
    }
    
    .goal-statement p,
    .problem-statement p {
        font-size: 0.95rem;
    }
}

/* Responsive Design for Target Audience */
@media (max-width: 768px) {
    .target-audience {
        margin: 40px 0;
    }
    
    .target-audience h3 {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }
    
    .audience-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .primary-audience h4,
    .secondary-audience h4 {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }
    
    .primary-audience li,
    .secondary-audience li {
        padding: 12px;
        font-size: 0.9rem;
    }
}

/* Responsive Design for News Evidence */
@media (max-width: 768px) {
    .news-evidence {
        margin: 40px 0;
    }
    
    .news-evidence h3 {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }
    
    .news-content {
        gap: 32px;
    }
    
    .article-examples,
    .video-examples {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .article-item,
    .video-item {
        padding: 16px;
    }
    
    .article-image,
    .video-thumbnail {
        height: 120px;
    }
    
    .article-details h5,
    .video-details h5 {
        font-size: 1rem;
    }
    
    .article-details p,
    .video-details p {
        font-size: 0.9rem;
    }
}