/* Global styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --background-color: #ffffff;
    --text-color: #333;
    --spacing-unit: 2rem;
}

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

body {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    line-height: 1.6;
    letter-spacing: -0.02em;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Navigation */
.nav {
    padding: 1rem var(--spacing-unit);
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease-in-out;
}

.nav--hidden {
    transform: translateY(-100%);
}

.nav-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    font-size: 20pt;
    font-weight: 700;
    text-decoration: none;
    color: var(--primary-color);
    font-family: 'Cormorant Upright', serif;
}

.nav-menu {
    display: flex;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-family: 'Cormorant Upright', serif;
    font-size: 20pt;
    transition: color 0.3s;
}

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

/* Work Dropdown Menu */
.nav-item.has-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 1.5rem;
    width: 600px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.dropdown-projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.nav-item.has-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 16/9;
    color: var(--text-color);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 12pt;
    transition: background-color 0.3s;
    max-width: 220px;
    margin: 0 auto;
}

.dropdown-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.dropdown-item .dropdown-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.dropdown-item:hover img {
    transform: scale(1.05);
    opacity: 0.1;
}

.dropdown-item:hover {
    color: var(--primary-color);
}

.dropdown-item:hover .dropdown-content {
    opacity: 1;
}

.dropdown-title {
    font-family: 'Cormorant Upright', serif;
    font-size: 16pt;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.dropdown-subtitle {
    font-size: 12pt;
    color: var(--text-color);
}

/* Hero section */
.hero {
    height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 var(--spacing-unit);
    margin-top: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content {
    max-width: 1200px;
}

.hh1 {
    font-size: 48pt;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    line-height: 1.2;
    font-family: 'Cormorant Upright', serif;
    font-weight: 700;
}

.hero-title {
    font-size: 42pt;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-family: 'Cormorant Upright', serif;
}

.hero-subtitle {
    composes: b1;
    margin-bottom: 1rem;
}

.hero-keywords {
    font-family: 'Inter', sans-serif;
    font-size: 12pt;
    font-weight: 400;
    color: var(--text-color);
    margin-top: 2rem;
}

/* Project Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-unit);
    padding: 0;
    max-width: 1200px;
    margin: 2rem 0 0;
}

.project-card {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 4px;
    background-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    cursor: pointer;
    z-index: 1;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
    pointer-events: none;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

.project-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

.project-card:hover::after {
    background-color: rgba(0, 0, 0, 0.1);
}

.project-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0);
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.5s ease;
    pointer-events: none;
}

.project-card:hover .project-image {
    opacity: 0.1;
}

.project-card:hover .project-content {
    background: rgba(255, 255, 255, 0.9);
}

.project-title {
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    font-family: 'Cormorant Upright', serif;
    font-size: 32pt;
    font-weight: 700;
    color: var(--primary-color);
}

.project-content p {
    font-family: 'Inter', sans-serif;
    font-size: 14pt;
    font-weight: 400;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.1s;
    color: var(--text-color);
}

.project-card:hover .project-title,
.project-card:hover .project-content p {
    opacity: 1;
    transform: translateY(0);
}

/* Project Page */
.project-hero {
    height: calc(100vh - 80px);
    width: 100%;
    position: relative;
    margin-top: 80px;
}

.project-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-unit);
    position: relative;
}

.project-intro {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 9.6rem;
}

.project-overview {
    padding-top: 0.5rem;
}

.project-metadata {
    background: #f5f5f5;
    padding: 2rem;
}

.metadata-item {
    margin-bottom: 1.5rem;
}

.metadata-item:last-child {
    margin-bottom: 0;
}

.metadata-label {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.project-section {
    margin-bottom: 4rem;
}

.project-section h2 {
    font-size: 24pt;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.project-section p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.project-section img {
    width: 100%;
    margin: 2rem 0;
    border-radius: 4px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.image-grid img {
    width: 100%;
    margin: 0;
    height: 300px;
    object-fit: cover;
    object-position: center;
}

.image-grid img.position-bottom {
    object-position: center top;
}

.image-grid figure {
    text-align: center;
}

.image-grid figcaption {
    margin-top: 1rem;
    font-weight: 400;
    line-height: 1.4;
}

.image-grid figcaption strong {
    display: block;
    margin-bottom: 0rem;
    font-weight: 600;
}

.image-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .project-intro {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* About Page */
.about {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-unit);
}

.about-intro {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 4rem;
}

.about-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 2rem;
    gap: 2rem;
}

.about-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-intro-text {
    text-align: left;
    flex: 4;
    margin-bottom: 2rem;
}

.about-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.social-icon {
    width: 24px;
    height: 24px;
    transition: opacity 0.3s ease;
}

.social-icon:hover {
    opacity: 0.7;
}

.resume-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: opacity 0.3s ease;
    margin-top: 1rem;
    display: block;
    text-align: center;
}

.resume-link:hover {
    opacity: 0.7;
}

.about-section {
    margin-bottom: 4rem;
}

.about-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.experience-item {
    margin-bottom: 2rem;
}

.experience-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.experience-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 500;
}

.form-input,
.form-textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        height: calc(100vh - 120px);
        margin-top: 120px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hh1 {
        font-size: 28pt;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .nav-menu {
        justify-content: center;
    }
    
    .nav-item {
        margin: 0 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    background-color: white;
    padding: 3rem var(--spacing-unit);
    margin-top: 4rem;
    border-top: 1px solid #eee;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 1rem var(--spacing-unit);
    height: 100px;
}

.footer-left {
    position: absolute;
    left: var(--spacing-unit);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-left .nav-brand {
    font-size: 20pt;
}

.footer-right {
    position: absolute;
    right: var(--spacing-unit);
    bottom: 0;
}

.footer-name {
    font-family: 'Cormorant Upright', serif;
    font-size: 16pt;
    font-weight: 700;
    color: var(--primary-color);
}

.footer-copyright {
    font-size: 9pt;
    color: rgba(0, 0, 0, 0.7);
}

.footer-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 2rem;
    align-items: center;
}

.social-icon {
    width: 32px;
    height: 32px;
    margin: 0 12px;
}

.social-icon:hover {
    opacity: 1;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        padding: 1rem var(--spacing-unit);
        height: auto;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        position: static;
        transform: none;
        margin-bottom: 1rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .about-intro {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        max-width: 300px;
        margin: 0 auto var(--spacing-unit);
    }

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

/* Typography */
.b1 {
    font-family: 'Inter', sans-serif;
    font-size: 18pt;
    font-weight: 400;
    line-height: 1.4;
}

.b2 {
    font-family: 'Inter', sans-serif;
    font-size: 16pt;
    font-weight: 400;
    line-height: 1.3;
}

.hh2 {
    font-family: 'Cormorant Upright', serif;
    font-size: 40pt;
    font-weight: 700;
    color: var(--primary-color);
}

.project-title {
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    font-family: 'Cormorant Upright', serif;
    font-size: 32pt;
    font-weight: 700;
    color: var(--primary-color);
}

.project-description {
    width: 100%;
}

.project-description p {
    margin-bottom: 2rem;
}

.project-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: space-between;
    gap: 2rem;
    margin-top: 4rem;
}

.details-column h3 {
    composes: t1;
}

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

.details-column li,
.details-column p {
    composes: b4;
}

.b3 {
    font-family: 'Inter', sans-serif;
    font-size: 16pt;
    font-weight: 400;
    line-height: 1.5;
}

.t1 {
    font-family: 'Inter', sans-serif;
    font-size: 20pt;
    font-weight: 600;
    margin-bottom: 1rem;
}

.b4 {
    font-family: 'Inter', sans-serif;
    font-size: 14pt;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-color);
}

/* Flow Map */
.flow-map {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 9.6rem 0;
    padding: 0 2rem;
    width: 100%;
    max-width: 1000px;
    gap: 2rem;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 89;
}

.flow-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    width: 48px;
}

.flow-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 48px;
    top: 24px;
    width: calc((1000px - (48px * 6)) / 5);
    height: 2px;
    background-color: #E5E5E5;
    transform: translateY(-1px);
    transition: background-color 0.3s ease;
}

.flow-item.active:not(:last-child)::after {
    background-color: var(--primary-color);
}

.flow-circle {
    width: 48px;
    height: 48px;
    background-color: #E5E5E5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 16pt;
    color: var(--text-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.flow-circle.active,
.flow-circle:hover {
    background-color: var(--primary-color);
    color: white;
}

.flow-item:hover .flow-label {
    color: black;
    font-weight: 500;
}

.flow-label {
    font-family: 'Inter', sans-serif;
    font-size: 12pt;
    color: var(--text-color);
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .flow-map {
        display: none;
    }
    
    .flow-item:not(:last-child)::after {
        width: 2px;
        height: 30px;
        left: 50%;
        top: 48px;
        transform: translateX(-1px);
    }
}

/* Typography */
.hh3 {
    font-family: 'Cormorant Upright', serif;
    font-size: 36pt;
    font-weight: 700;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .project-details {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Add T2 typography style */
.t2 {
    font-family: 'Inter', sans-serif;
    font-size: 14pt;
    font-weight: 600;
    color: var(--primary-color);
}

/* Add B5 typography style */
.b5 {
    font-family: 'Inter', sans-serif;
    font-size: 12pt;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-color);
}

/* New Layout System - Text Left, Image Right */
.lay-text-image {
    display: flex;
    gap: 6rem;  /* Match the larger gap used in other sections */
    align-items: center;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    margin-bottom: 6rem;  /* Match spacing with other sections */
}

.lay-text-image .text-content {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lay-text-image .image-content {
    flex: 2;
    width: 100%;
    max-width: 600px;  /* Match the max-width from other sections */
}

.lay-text-image .image-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* New Layout System - Image Left, Text Right */
.lay-image-text {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    margin-bottom: 6rem;
}

.lay-image-text .subsection-header {
    margin-bottom: 1rem;
}

.lay-image-text .content-wrapper {
    display: flex;
    gap: 4rem;  /* Adjust gap between image and text to 4rem */
    align-items: center;
}

.lay-image-text .image-content {
    flex: 2;
    width: 100%;
    max-width: 600px;
}

.lay-image-text .text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lay-image-text .image-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* New Layout System - Three Cards with Images */
.lay-3image {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    margin-bottom: 6rem;
}

.lay-3image .subsection-header {
    margin-bottom: 1rem;
}

.lay-3image .card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    width: 100%;
    align-items: start;
}

.lay-3image .card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 280px;
}

.lay-3image .card img {
    width: 280px;
    height: 280px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lay-3image .card-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* New Layout System - Two Images Side by Side */
.lay-2image {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    margin-bottom: 6rem;
}

.lay-2image .subsection-header {
    margin-bottom: 1rem;
}

.lay-2image .image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
}

.lay-2image .image-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* New Layout System - Single Full-Width Image */
.lay-image {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    margin-bottom: 6rem;
}

.lay-image .text-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 800px;  /* Limit text width for better readability */
}

.lay-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.challenge-section,
.research-section,
.ideation-section,
.prototyping-section,
.final-design-section,
.reflection-section {
    margin-bottom: 8rem;  /* Unified spacing between major sections */
}

/* Remove double spacing between sections */
.ideation-section > *:last-child,
.research-section > *:last-child,
.challenge-section > *:last-child,
.prototyping-section > *:last-child,
.final-design-section > *:last-child {
    margin-bottom: 0;  /* Remove margin from last child to prevent double spacing */
}

/* Keep the last section's margin smaller */
.reflection-section {
    margin-bottom: 4rem;
}

/* New Layout System - Three Images with title and text on the left */
.lay-3image-text {
    display: flex;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    margin-bottom: 6rem;
    gap: 3rem;  /* Increased gap between text and images */
    justify-content: space-between;
}

.lay-3image-text .text-content {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 300px;  /* Limit text width for better readability */
    margin-left: 2rem;  /* Add some space from the right edge */
}

.lay-3image-text .image-grid {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-self: flex-start;  /* Align with the top of text content */
    width: fit-content;
}

.lay-3image-text .image-grid img {
    width: 100%;
    aspect-ratio: 1;  /* Make images square */
    object-fit: cover;
    max-width: 200px;  /* Limit image size */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lay-3image-text .card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 200px;  /* Match image width */
}

.lay-3image-text .card-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* New Layout System - Reflection Layout */
.lay-reflection {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 700px;  /* Reduced width for better readability */
    margin: 0 auto;
    margin-bottom: 6rem;
    text-align: left;  /* Center align all text */
}

.lay-reflection .reflection-highlight {
    font-size: 24px;
    line-height: 1.5;
    color: var(--primary-color);
    font-weight: 500;
    max-width: 600px;  /* Further limit width of highlight text */
    margin: 0 auto;  /* Center the limited width text */
}

.lay-reflection .reflection-text {
    color: var(--text-color);
    line-height: 1.8;
    max-width: 700px;  /* Limit width of body text */
    margin: 0 auto;  /* Center the limited width text */
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Cormorant Upright', serif;
    font-size: 36pt;
    font-weight: 700;
    color: var(--primary-color);
}

.bracket {
    font-family: 'Cormorant Upright', serif;
    font-size: 36pt;
    color: var(--primary-color);
    font-weight: 700;
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 24pt;
    }
    
    .bracket {
        font-size: 24pt;
    }
}

/* Other Projects Section */
.other-projects-section {
    margin: 9.6rem auto;
    max-width: 1200px;
    padding: 0 var(--spacing-unit);
}

.other-projects-title {
    font-family: 'Inter', sans-serif;
    font-size: 24pt;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.other-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.footer-text {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
    max-width: 300px;
    line-height: 1.4;
}

/* Responsive Design Improvements */
@media (max-width: 768px) {
    /* Typography adjustments */
    .hh1 {
        font-size: 28pt;
    }

    .b1 {
        font-size: 16pt;
    }

    .b2 {
        font-size: 14pt;
    }

    .hero-keywords {
        font-size: 10pt;
    }

    .section-title {
        font-size: 24pt;
    }

    .bracket {
        font-size: 24pt;
    }

    .other-projects-title {
        font-size: 20pt;
    }

    .reflection-highlight {
        font-size: 20px;
    }

    .reflection-text {
        font-size: 16px;
    }

    /* Navigation adjustments */
    .nav-list {
        flex-direction: column;
        padding: 1rem 0;
    }

    .nav-menu {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }

    /* Dropdown menu adjustments */
    .dropdown-menu {
        width: 90%;
        left: 5%;
        transform: none;
        padding: 1rem;
    }

    .dropdown-projects {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .dropdown-item {
        aspect-ratio: 3/2;
        max-width: 160px;
    }

    .dropdown-title {
        font-size: 14pt;
    }

    .dropdown-subtitle {
        font-size: 10pt;
    }

    /* Project grid adjustments */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    /* About page adjustments */
    .about-intro {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .about-image-container {
        margin-right: 0;
    }

    .about-intro-text {
        flex: 1;
        text-align: center;
    }

    /* Layout system adjustments */
    .lay-text-image,
    .lay-image-text .content-wrapper {
        flex-direction: column;
        gap: 2rem;
    }

    .lay-3image .card-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .lay-2image .image-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Other projects section */
    .other-projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Card adjustments */
    .lay-3image .card,
    .lay-3image .card img {
        width: 100%;
        max-width: none;
    }

    /* Footer adjustments */
    .footer-content {
        flex-direction: column;
        text-align: center;
        padding: 1rem var(--spacing-unit);
    }

    .footer-left,
    .footer-center,
    .footer-right {
        position: static;
        transform: none;
        margin: 1rem 0;
    }
}

/* Tablet-specific adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .dropdown-projects {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lay-3image .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .other-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Larger screens */
@media (min-width: 1025px) {
    .main-content-wrapper {
        padding: var(--spacing-unit) 2rem;
    }
}

/* Fix for very small screens */
@media (max-width: 360px) {
    .nav-brand {
        font-size: 14pt;
    }

    .nav-link {
        font-size: 14pt;
    }

    .hh1 {
        font-size: 24pt;
    }

    .b1 {
        font-size: 14pt;
    }

    .b2 {
        font-size: 12pt;
    }

    .hero-keywords {
        font-size: 9pt;
    }

    .section-title {
        font-size: 20pt;
    }

    .bracket {
        font-size: 20pt;
    }

    .dropdown-title {
        font-size: 12pt;
    }

    .dropdown-subtitle {
        font-size: 9pt;
    }

    .dropdown-item {
        max-width: 120px;
    }
}

/* Show horizontal flow map on tablet and up */
@media (min-width: 769px) {
    .flow-map {
        display: flex;
    }
}

@media (max-width: 768px) {
    /* Typography adjustments */
    .t1 {
        font-size: 16pt;
    }

    .t2 {
        font-size: 12pt;
    }

    .hh3 {
        font-size: 28pt;
    }

    .hh1 {
        font-size: 28pt;
    }
}

@media (max-width: 360px) {
    .t1 {
        font-size: 14pt;
    }

    .t2 {
        font-size: 11pt;
    }

    .hh3 {
        font-size: 24pt;
    }

    .nav-brand {
        font-size: 14pt;
    }

    .b3 {
        font-size: 14pt;
        line-height: 1.4;
    }

    .b4 {
        font-size: 14pt;
        line-height: 1.5;
    }

    .b5 {
        font-size: 11pt;
        line-height: 1.4;
    }

    .dropdown-item {
        max-width: 120px;
    }

    .dropdown-title {
        font-size: 12pt;
    }
}

/* Main Content Wrapper */
.main-content-wrapper {
    max-width: 1200px;
    margin: 80px auto;
    padding: var(--spacing-unit);
    background-color: white;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

/* Adjust margins for inner elements */
.hero {
    margin-top: 0;
}

.projects-grid {
    margin: 2rem 0 0;
    padding: 0;
}

@media (max-width: 768px) {
    /* Typography adjustments */
    .t1 {
        font-size: 16pt;
    }
}

@media (max-width: 1024px) {
    /* Hide dropdown menu on mobile and tablet */
    .dropdown-menu {
        display: none !important;
    }

    /* Make Work link go directly to index.html */
    .nav-item.has-dropdown > .nav-link {
        pointer-events: auto;
    }
}

/* Show dropdown only on desktop/laptop */
@media (min-width: 1025px) {
    .nav-item.has-dropdown:hover .dropdown-menu {
        display: block;
    }
}