body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.15;
}

header {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-logo {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    padding: 15px;
}

.nav-logo:visited {
    color: #333;
}

.toggle-container {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 20px;
}

/* Hamburger button styles */
.menu-toggle {
    display: none;
    /* Hide by default on larger screens */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding-top: 0px;
    margin-top: 0px;
    color: #333;
    /* Add explicit color */
}

.menu-toggle:visited,
.menu-toggle:hover,
.menu-toggle:active {
    color: #333;
    /* Ensure color stays the same in all states */
}

/* Mobile styles */
@media (max-width: 600px) {
    .menu-toggle {
        display: block;
        /* Show hamburger on small screens */
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        width: 100%;
        padding: 10px 0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 15px 0;
    }

    .nav-links a:hover {
        background-color: #f5f5f5;
    }
}

.nav-links a {
    text-decoration: none;
    color: #797979;
    font-size: 16px;
    padding: 5px 10px;
    /* transition: color 0.3s; */
}

.menu-toggle a {
    text-decoration: none;
    color: #000;
}

/* .nav-links a:hover {
    color: #000;
} */

.hero {
    background: white;
    text-align: center;
    padding: 60px 20px 20px;
}

.hero img {
    width: 300px;
    border-radius: 10%;
}

.hero h1 {
    margin-top: 20px;
    font-size: 48px;
    font-weight: bold;
    color: #333;
}

.hero p {
    margin-top: 10px;
    margin-bottom: 0px;
    font-size: 20px;
    color: #666;
}

.section {
    /* background: #f9fafb; */
    padding: 0px;
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px;
    text-align: left;
}

.section-container-ai {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px;
    text-align: left;
}

.section h2 {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    margin-top: 20px;
    text-align: left;
}

.section h3 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    margin-top: 20px;
    text-align: left;
}

.section p,
.section li {
    font-size: 18px;
    /* color: black; */
    color: #666;
    margin-top: 1px;
    margin-bottom: 1px;
    /* margin-bottom: 20px; */
}

.section-box {
    font-size: 18px;
    color: #666;
    background: #f9fafb;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 10px;
}

.fix ol,
ol.fix {
    overflow: hidden;
}

footer {
    background: #f9fafb;
    padding: 20px;
    color: #666;
    text-align: center;
    margin-top: auto;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

footer p {
    font-size: 14px;
    margin: 0;
}

.publication h3 {
    font-size: 18px;
    font-weight: normal;
    margin: 0;
}

.publication p {
    font-size: 16px;
    color: #666;
    margin: 5px 0 0;
}

.publication ul {
    font-size: 16px;
    color: #666;
}

.publication li {
    font-size: 16px;
    color: #666;
}

.project h3 {
    font-size: 25px;
    font-weight: bold;
    margin-top: 0;
}

a {
    text-decoration: none;
    color: #207bbc;
    /* transition: color 0.3s; */
}

a:visited {
    color: #551A8B;
}

a:hover {
    text-decoration: underline;
    color: #000;
}

.nav-logo a:visited {
    color: #797979;
}

.nav-links a:visited {
    color: #797979;
}

.class-logo a:visited {
    color: #797979;
}

.project p {
    color: #666;
    margin: 5px 0 0;
}

.project {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.project-description {
    flex: 3;
}

.project-images {
    flex: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
}

.project-description-taba {
    flex: 3;
}

.project-images-taba {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-images img {
    width: 100%;
    border-radius: 8px;
}

.project-images-taba img {
    width: 100%;
    border-radius: 8px;
}

.project-images p {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.project-images-taba p {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.project-tech-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.project-tech-section b {
    color: #333;
}

.project-tech-section ul {
    margin-top: 8px;
    margin-bottom: 8px;
}

.project-tech-section p {
    margin-bottom: 8px;
}

.device-section {
    margin: auto;
    position: relative;
    width: 200px;
    overflow: hidden;
}

.device-section img {
    width: 100%;
}

.watch-video {
    position: absolute;
    top: 25%;
    bottom: 23%;
    left: 10.5%;
    right: 15%;
    width: 74.5%;
    height: 52%;
    object-fit: fill;
    border-radius: 38px;
}

.functor-video {
    width: 100%;
}

.image-spot-1 {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.image-spot-1 img {
    width: 100%;
    border-radius: 8px;
}

.image-spot-1 p {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-top: 5px;
}

.collage-1 {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 20px;
}

.collage-2 {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.image-spot-2 {
    flex: 4;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.image-spot-2 img {
    width: 100%;
    border-radius: 8px;
}

.image-spot-2 p {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-top: 5px;
}

.hero.active {
    padding-top: 140px;
}

/* Added float container for images with captions */
.float-right {
    float: right;
    margin: 0 0 10px 20px;
}

.float-left {
    float: left;
    margin: 10px 0 10px 0;
    padding-right: 20px;
    margin-right: 20px;
    max-width: 40%;
}

.float-left p {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-top: 5px;
    margin-bottom: 10px;
}

.float-left img {
    width: 100%;
    border-radius: 8px;
}

.wide-image {
    max-width: 50%;
}

.wide-image img {
    width: 100%;
    border-radius: 8px;
}

.claude-image {
    max-width: 60%;
}

.claude-image img {
    width: 100%;
    border-radius: 8px;
}

.embedded-video {
    max-width: 50%;
    display: flex;
    flex-direction: column;
}

.embedded-video iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    margin-bottom: 5px;
}

.embedded-video p {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-top: 5px;
    margin-bottom: 10px;
}

.generalization {
    max-width: 60%;
}

.generalization-35 {
    max-width: 35%;
}

.generalization-25 {
    max-width: 25%;
}

.generalization-40 {
    max-width: 40%;
}

.generalization-100 {
    max-width: 100%;
}

.generalization-intelligence {
    max-width: 40%;
}

.generalization img {
    width: 100%;
    border-radius: 8px;
    /* margin-bottom: 10px; */
}

.stacked-images {
    max-width: 45%;
    clear: right;
}

.stacked-images img {
    width: 100%;
    border-radius: 8px;
    /* margin-bottom: 10px; */
}

.bomb {
    max-width: 30%;
    clear: right;
}

.bomb img {
    width: 100%;
    border-radius: 8px;
    /* margin-bottom: 10px; */
}

.float-right p {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-top: 5px;
    margin-bottom: 10px;
}

.center {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 20px;
}

.image-grid {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    align-items: flex-end;
}

.vertical-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 4;
}

.vertical-stack p {
    font-size: 16px;
}

.image-item {
    /* flex: 1; */
    text-align: center;
}

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

.image-item p {
    margin-top: 5px;
    font-size: 16px;
    color: #666;
}

@media (max-width: 600px) {
    .image-grid {
        flex-direction: column;
    }
}

.error-sound {
    width: 30%;
}

.iphone {
    width: 35%;
}

.amp {
    width: 70%;
}

/* Adjustments for smaller screens */
@media (max-width: 900px) {
    .project {
        flex-direction: column;
    }

    .nav-links {
        gap: 0px;
    }

    .collage-1 {
        flex-direction: column;
    }

    .collage-2 {
        flex-direction: column;
    }

    .hobby-video {
        width: 100%;
    }

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

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

    .hero {
        padding-top: 0px;
        padding-bottom: 0px;
    }

    .hero h1 {
        margin-bottom: 5px;
    }

    .stacked-images {
        max-width: 100%;
    }

    .claude-image {
        max-width: 100%;
    }

    .bomb {
        max-width: 100%;
    }

    .embedded-video {
        max-width: 100%;
    }

    .float-right {
        margin-left: 0;
    }

    .float-left {
        max-width: 100%;
        margin-right: 0;
        padding-right: 0;
    }

    .error-sound {
        width: 100%;
    }

    .iphone {
        width: 100%;
    }

    .amp {
        width: 90%;
    }

    /* Reduce list indentation for mobile */
    ol,
    ul {
        padding-left: 1.4em;
    }

    .generalization {
        max-width: 100%;
    }

    .generalization-25 {
        max-width: 100%;
    }

    .generalization-35 {
        max-width: 100%;
    }

    .generalization-40 {
        max-width: 100%;
    }

    .generalization-intelligence {
        max-width: 100%;
    }
}