/* Base styles */
:root {
    --color-zinc-50: rgb(250, 250, 250);
    --color-zinc-100: rgb(244, 244, 245);
    --color-zinc-200: rgb(228, 228, 231);
    --color-zinc-300: rgb(212, 212, 216);
    --color-stone-900: rgb(28, 25, 23);
    --color-slate-900: rgb(15, 23, 42);
    --mobile-breakpoint: 768px;
}

body {
    margin: 0;
    padding: 0;
    font-family: segoe-ui, -apple-system, sans-serif;
}

/* Layout containers */
.macbook-pro-container {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    padding: 2rem 5rem 15rem;
    background-color: white;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1320px;
    margin: auto;
}

/* Navigation and Header */
.navigation-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: space-between;
    align-items: flex-start;
    align-self: center;
    margin-top: 1rem;
    width: 100%;
    max-width: 1320px;
    position: relative;
}

/* Mobile Menu Button */
.mobile-menu-button {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    padding: 0;
    background: none;
    border: none;
    z-index: 100;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: black;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Profile and Logo */
.profile-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
}

.nav-button {
    padding: 0.75rem 2.5rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    background-color: var(--color-zinc-50);
    color: var(--color-stone-900);
    text-decoration: none;
    transition: background-color 0.2s;
}

.toggle-btn {
    padding: 0;
    margin-top: 0;
    font-size: 0.75rem;
    background-color: transparent;
    color: var(--color-stone-900);
    text-decoration: none;
    transition: background-color 0.2s;
}

.dark-mode-toggle:hover {
    background-color: transparent !important;
}

.nav-button:hover {
    background-color: lightgray;
    color: inherit !important;
}

.nav-button.bold {
    font-weight: 700;
}

.logo-image {
    width: 147px;
    object-fit: contain;
    aspect-ratio: 0.82;
}

.secondary-logo {
    width: 74px;
    object-fit: contain;
    aspect-ratio: 2;
    margin-top: 1rem;
}

/* Progress indicator */
:root {
    --bg-color: white;
    --text-color: black;
    --zinc-50: rgb(250, 250, 250);
    --zinc-300: rgb(212, 212, 216);
}

[data-theme="dark"] {
    --bg-color: rgb(17, 17, 17);
    --text-color: white;
    --zinc-50: rgb(39, 39, 42);
    --zinc-300: rgb(63, 63, 70);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-top: 1.5rem;
    position: relative;
    width: 18px;
    height: 18px;
}

.toggle-dot {
    background-color: var(--text-color);
    border-radius: 9999px;
    height: 18px;
    width: 18px;
    transition: background-color 0.3s;
}

@media (max-width: 768px) {
    .dark-mode-toggle {
        margin: 1rem 0;
        align-self: flex-start;
    }

    .navigation-bar.active .dark-mode-toggle {
        display: block;
        margin: 1rem 0;
    }

    .macbook-pro-container {
        display: flex;
        overflow: hidden;
        flex-direction: column;
        align-items: center;
        padding: 0rem 2rem !important;
        background-color: white;
    }

    .navigation-bar {
        margin-top: -1.8em;
    }
}



/* Tagline */
.tagline {
    align-self: center;
    font-size: 0.75rem;
    color: var(--color-stone-900);
}

.search-tagline {
    align-self: center;
    font-size: 0.75rem;
    color: var(--color-stone-900);
}

/* Category buttons */
.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2.5rem;
    width: 100%;
    font-size: 0.75rem;
    font-weight: 600;
    color: black;
}

.category-dropdown {
    position: relative;
}

.category-list {
    display: none;
    position: absolute;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin-top: 5px;
    z-index: 1000;
    border-radius: 4px;
    min-width: 180px;
}

.category-list a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

.category-list a:hover {
    background-color: #f0f0f0;
}

.category-dropdown {
    position: relative;
}

.category-list {
    display: none;
    position: absolute;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin-top: 5px;
    z-index: 1000;
    border-radius: 4px;
    min-width: 180px;
}

.category-list a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

.category-list a:hover {
    background-color: #f0f0f0;
}

.category-list .dropdown-item {
    position: relative;
}

.subcategory-list {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    min-width: 160px;
}

.dropdown-item:hover>.subcategory-list {
    display: block;
}

.dropdown-item>a::after {
    content: '▶';
    float: right;
    font-size: 12px;
    margin-left: 8px;
}

.submenu {
    display: none;
}

.menu-item:hover .submenu {
    display: block;
}


.category-button {
    display: flex;
    flex: 1;
    gap: 0.5rem;
    padding: 0.375rem;
    white-space: nowrap;
    border-radius: 0.375rem;
    background-color: var(--color-zinc-300);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
    align-items: center;
    justify-content: center;
    min-height: 32px;
}

.category-button:hover {
    background-color: var(--color-zinc-200);
}

.category-icon {
    width: 1.5rem;
    aspect-ratio: 1;
    object-fit: contain;
    flex-shrink: 0;
}

/* Search */
.search-wrapper {
    display: flex;
    justify-content: center;
    width: 50%;
    margin-top: 2.5rem;
    background-color: var(--color-zinc-300);
    border-radius: 1.5rem;
    margin-inline: auto;

}

.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 2rem;
    width: 304px;
    background-color: var(--color-zinc-300);
    border-radius: 1.5rem;
}


.main-search-wrapper {
    display: flex;
    justify-content: center;
    width: 65%;
    margin-top: -16rem;
    background-color: white;
    border-radius: 4.5rem;
    margin-inline: auto;
    height: 6em;

}

.main-search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 2rem;
    width: 654px;
    background-color: white;
    border-radius: 4.5rem;
}

.main-search-container .search-icon {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    color: #dedede;
}

.main-search-container .search-input {
    margin-left: 0.5rem;
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 2.9rem;
    color: black;
    padding: 0;
}

.main-search-container .search-input::placeholder {
    color: #dedede;
    opacity: 1;
}

.search-input::placeholder {
    color: black;
    opacity: 1;
}

/* Responsive styles */
@media (max-width: 768px) {
    .navigation-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .navigation-bar::before {
        content: '';
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 1rem;
    }

    .mobile-menu-button {
        display: flex;
        position: absolute;
        top: 15px;
        left: 0;
    }

    .profile-image {
        position: absolute;
        top: 0;
        right: 0;
    }

    .navigation-bar .nav-button,
    .navigation-bar .logo-image,
    .navigation-bar .secondary-logo {
        display: none;
    }

    .navigation-bar {
        flex-direction: column;
        align-items: stretch;
        position: relative;
    }

    .navigation-bar.active {
        margin-top: 60px;
        background: white;
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        width: calc(100% - 2);
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1000;
    }

    .navigation-bar.active .nav-button {
        display: block;
        width: 70%;
        margin: 0.5rem 0;
        text-align: left;

    }

    .navigation-bar.active .logo-image,
    .navigation-bar.active .secondary-logo {
        display: block;
        margin: 1rem auto;
    }

    .content-wrapper {
        position: relative;
        padding-top: 60px;
       
    }

    .mobile-menu-button {
        z-index: 1001;
    }

    .profile-image {
        z-index: 1001;
    }

    .navigation-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-image {
        margin-left: auto;
        margin-right: 10px;
    }

    /* Mobile menu animations */
    .mobile-menu-button .bar.active:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-button .bar.active:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-button .bar.active:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Show menu items when active */
    .navigation-bar.active {
        background-color: white;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .navigation-bar.active .nav-button {
        display: block;
        width: 90%;
        text-align: left;
        margin: 5px 0;
        padding: 0.75rem 1rem;
    }

    .navigation-bar.active .logo-image,
    .navigation-bar.active .secondary-logo {
        display: block;
        margin: 10px 0;
    }

    /* Responsive adjustments for other elements */
    .category-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    /* Search */
    .search-wrapper {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 2.5rem;
        background-color: var(--color-zinc-300);
        border-radius: 1.5rem;
        margin-inline: auto;

    }

    .search-container {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0.5rem 2rem;
        width: 304px;
        background-color: var(--color-zinc-300);
        border-radius: 1.5rem;
    }


    .main-search-wrapper {
        display: flex;
        justify-content: center;
        width: 90%;
        margin-top: -24rem;
        background-color: white;
        border-radius: 4.5rem;
        margin-inline: auto;
        height: 4em;

    }

    .main-search-container {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0.5rem 2rem;
        width: 354px;
        background-color: white;
        border-radius: 4.5rem;
    }

    .main-search-container .search-icon {
        width: 1.5rem;
        height: 1.5rem;
        object-fit: contain;
        color: #dedede;
    }

    .main-search-container .search-input {
        margin-left: 0.5rem;
        width: 100%;
        background: transparent;
        border: none;
        outline: none;
        font-size: 1.2rem;
        color: black;
        padding: 0;
    }

    .main-search-container .search-input::placeholder {
        color: #dedede;
        opacity: 1;
    }

    .search-input::placeholder {
        color: black;
        opacity: 1;
    }
}

/* Section Title */
.section-title {
    padding: 1.5rem;
    margin-top: 2.75rem;
    font-size: 1.5rem;
    color: black;
    max-width: 492px;
    border-radius: 1.5rem;
}

/* Popular Projects Grid */
.projects-grid-popular {
    display: flex;
    gap: 1.25rem;
    margin-top: 2.75rem;
}

.project-column-large {
    width: 72%;
}

.project-column-side {
    width: 28%;
}

.full-width-image {
    width: 100%;
    border-radius: 0.75rem;
    aspect-ratio: 1.58;
    object-fit: cover;
}

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

.thumbnail {
    width: 100%;
    aspect-ratio: 1.23;
    border-radius: 0.75rem;
    object-fit: cover;
}

.project-badges-row {
    display: flex;
    gap: 0.625rem;
    margin-top: 2rem;
}

.project-badge {
    height: 2.125rem;
    border-radius: 0.75rem;
    background-color: var(--color-zinc-300);
    opacity: 0.5;
}

.side-image {
    width: 100%;
    border-radius: 0.75rem;
    margin-bottom: 2.75rem;
}

.side-image:first-child {
    aspect-ratio: 1.15;
}

.side-image:nth-child(2) {
    aspect-ratio: 1.31;
}

/* Additional Projects Grid */
.projects-grid-additional {
    margin-top: 0.75rem;
}

.projects-grid,
.projects-grid-secondary {
    display: flex;
    gap: 1.25rem;
    margin-top: 3rem;
}

.project-column {
    position: relative;
}

.project-column.main {
    width: 54%;
}

.project-column.secondary {
    width: 21%;
}

.project-column.tall {
    width: 24%;
}

.project-column.featured {
    width: 53%;
}

.featured-project {
    position: relative;
    min-height: 400px;
    border-radius: 0.75rem;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.75rem;
}

.project-info {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background-color: rgba(212, 212, 216, 0.5);
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.project-title {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.category-label {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background-color: rgba(212, 212, 216, 0.5);
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.project-card {
    position: relative;
    margin-bottom: 1.25rem;
    border-radius: 0.75rem;
    overflow: hidden;
}

/* Project Details Styles */
.project-gallery {
    margin-top: 2rem;
}

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

.gallery-image,
.gallery-thumbnail {
    width: 100%;
    border-radius: 0.75rem;
    object-fit: cover;
}

.project-info-container {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: var(--color-zinc-300);
    border-radius: 0.75rem;
}

.project-metadata {
    margin-top: 1rem;
}

.metadata-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.metadata-icon {
    width: 1rem;
    height: 1rem;
}

@media (max-width: 768px) {

    .projects-grid,
    .projects-grid-secondary {
        flex-direction: column;
    }

    .project-column.main,
    .project-column.secondary,
    .project-column.tall,
    .project-column.featured {
        width: 100%;
        margin-bottom: 1.25rem;
    }

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