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

html, body {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Prevent initial flash before GSAP animations */
html.js .project-card,
html.js .project-intro,
html.js .separator-group {
    opacity: 0;
}

@media (max-width: 768px) {
    html.js .project-card {
        opacity: 1;
    }
    html.js .separator-group {
        opacity: 1;
        transform: none;
    }
}

html.about-page, body.about-page {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    min-height: 100vh;
    position: relative;
}

:root {
    --bg-color: #ffffff;
    --text-color: #2d2d2d;
    --card-bg: #f5f5f5;
    --card-hover: #eeeeee;
    --header-bg: #f5f5f5;
    --border-radius: 12px;
    --spacing: 24px;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --card-bg: #2d2d2d;
    --card-hover: #3a3a3a;
    --header-bg: #252525;
}

/* Smooth theme transition */
.theme-transitioning * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: hidden;
    cursor: none; /* Hide default cursor */
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 14px;
    height: 14px;
    border: 1px solid rgba(128, 128, 128, 0.5);
    border-radius: 50%;
    background-color: #ffffff;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                border-width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                background-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    opacity: 0;
}

.custom-cursor.hover {
    width: 20px;
    height: 20px;
    border-width: 1px;
    border-color: rgba(128, 128, 128, 0.5);
    background-color: #ffffff;
}

.custom-cursor.dragging {
    width: 10px;
    height: 10px;
    border-width: 1px;
    border-color: rgba(128, 128, 128, 0.5);
    background-color: #ffffff;
}

/* Hide cursor on mobile/touch devices */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    
    .custom-cursor {
        display: none;
    }
    
    body {
        cursor: auto;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing);
}

.container.full-width {
    max-width: 100%;
    padding: 0;
}

/* Header Styles */
.header {
    background-color: var(--bg-color);
    padding: var(--spacing) var(--spacing) 0 var(--spacing);
    position: relative;
    z-index: 100;
    flex-shrink: 0;
    opacity: 1;
    visibility: visible;
    transition: none;
}

.header .container {
    background-color: var(--header-bg);
    border-radius: 12px;
    padding: 15px 24px;
    max-width: 100%;
    transition: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 44px;
}

[data-theme="dark"] .header .container {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0;
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.header-content .mobile-menu-toggle {
    align-self: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 400;
    color: var(--text-color);
    text-decoration: none;
    cursor: none;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.logo:hover {
    opacity: 0.7;
}

.logo-icon {
    color: var(--text-color);
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.logo-text {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-color);
    line-height: 1;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: none;
    padding: 0;
    z-index: 1001;
    box-sizing: border-box;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.nav-categories {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-categories.floating-menu {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--header-bg);
    padding: 10px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-categories.floating-menu.hidden-on-load {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(12px);
    pointer-events: none;
}

[data-theme="dark"] .nav-categories.floating-menu {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background-color: rgba(45, 45, 45, 0.95) !important;
}

.nav-categories .nav-link {
    color: #999999;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    padding: 12px 24px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: none;
    flex: 1;
    justify-content: center;
}

[data-theme="dark"] .nav-categories .nav-link {
    color: #999999 !important;
}

[data-theme="dark"] .nav-categories .nav-link.active {
    color: var(--text-color) !important;
}

.nav-categories .nav-link .nav-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: currentColor;
}

.nav-categories .nav-link:hover {
    color: var(--text-color);
    background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .nav-categories .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-categories .nav-link.active {
    color: var(--text-color);
    font-weight: 400;
    background-color: rgba(0, 0, 0, 0.12);
    padding: 12px 24px;
}

[data-theme="dark"] .nav-categories .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-main {
    grid-column: 2;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    position: relative;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.mobile-logo {
    display: none;
}

.nav-center {
    display: flex;
    gap: 64px;
    align-items: center;
    flex-shrink: 0;
    position: static;
    transform: none;
    justify-content: space-between;
    width: 100%;
}

.nav-center .nav-link {
    flex: 1;
    justify-content: center;
}

.nav-right {
    display: flex;
    gap: 32px;
    align-items: center;
    flex-shrink: 0;
    justify-content: flex-end;
}

.nav-main .nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: none;
    position: relative;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.5;
    cursor: none;
}

.nav-main .nav-link .nav-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
}

.nav-main .nav-link .nav-icon[fill="currentColor"] {
    fill: currentColor;
    stroke: none;
}

.nav-main .nav-link:hover {
    opacity: 0.7;
}

.nav-main .nav-link.active-main {
    font-weight: 400;
    opacity: 1;
    color: #000000;
}

[data-theme="dark"] .nav-main .nav-link.active-main {
    color: #ffffff;
}

.dark-mode-toggle {
    background: transparent;
    border: none;
    cursor: none;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 8px;
}

@media (min-width: 769px) {
    .dark-mode-toggle {
        position: fixed;
        right: 24px;
        bottom: 24px;
        z-index: 1002;
        background-color: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        padding: 10px;
    }
}

.dark-mode-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .dark-mode-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dark-mode-toggle .moon-icon {
    display: none;
}

.dark-mode-toggle .sun-icon {
    display: block;
}

[data-theme="dark"] .dark-mode-toggle .moon-icon {
    display: block;
}

[data-theme="dark"] .dark-mode-toggle .sun-icon {
    display: none;
}

/* Main Content */
.main-content {
    width: 100%;
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 0;
}

.main-content.about-content {
    overflow: visible !important;
    height: auto;
    min-height: 100vh;
}

/* About Page Styles */
.about-content {
    overflow: visible !important;
    height: auto;
    min-height: 100%;
}

.about-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px var(--spacing) 120px;
}

.about-header {
    text-align: left;
    margin-bottom: 60px;
}

.about-title {
    font-size: 48px;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 16px;
    line-height: 1.2;
}

.about-subtitle {
    font-size: 20px;
    color: var(--text-color);
    opacity: 0.7;
    font-weight: 400;
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: start;
    margin-bottom: 80px;
}

.about-intro-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.about-intro-text p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 24px;
}

.about-intro-image {
    position: sticky;
    top: 120px;
    align-self: start;
    height: 100%;
    display: flex;
}

.about-intro-image .image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    opacity: 0.3;
    gap: 16px;
}

.about-intro-image .image-placeholder svg {
    width: 120px;
    height: 120px;
}

.about-intro-image .image-placeholder span {
    font-size: 14px;
    opacity: 0.6;
}

.about-intro-image .about-profile-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    display: block;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-bottom: 80px;
}

.about-section-item {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.about-section-item h2 {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-color);
    margin: 0;
}

.tech-list,
.apps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tech-list li,
.apps-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--text-color);
    opacity: 0.8;
}

.tech-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: currentColor;
    opacity: 0.6;
}

.app-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: currentColor;
    opacity: 0.6;
}

.about-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 40px 0;
    margin-top: 80px;
}

[data-theme="dark"] .about-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing);
}

.footer-copyright {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.6;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-link {
    color: var(--text-color);
    opacity: 0.6;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
}

.social-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-intro-content {
        order: 1;
    }
    
    .about-intro-image {
        position: static;
        max-width: 400px;
        order: 2;
        height: auto;
    }
    
    .about-intro-image .image-placeholder {
        min-height: 300px;
        aspect-ratio: 3 / 4;
    }
    
    .about-intro-image .about-profile-image {
        min-height: 300px;
        aspect-ratio: 3 / 4;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-image {
        position: static;
    }
    
    .about-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 60px var(--spacing) 80px;
    }
    
    .about-header {
        margin-bottom: 60px;
    }
    
    .about-title {
        font-size: 36px;
    }
    
    .about-subtitle {
        font-size: 18px;
    }
    
    .about-intro-grid {
        gap: 40px;
    }
    
    .about-intro-image {
        max-width: 100%;
    }
    
    .about-intro-text p {
        font-size: 16px;
    }
    
    .about-text {
        gap: 40px;
    }
    
    .about-block h2 {
        font-size: 24px;
    }
    
    .skills-list {
        grid-template-columns: 1fr;
    }
}

.scroll-section {
    width: 100%;
    height: 100%;
    position: relative;
}

@media (max-width: 768px) {
    .main-content {
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    .scroll-section {
        height: auto;
        min-height: 100%;
    }
}

.scroll-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.main-content .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

.projects-grid {
    display: flex;
    flex-direction: row;
    gap: var(--spacing);
    height: 100%;
    padding-top: 24px;
    padding-right: 0;
    padding-bottom: var(--spacing);
    padding-left: 0;
    align-items: stretch;
    width: fit-content;
    will-change: transform;
}

.project-intro {
    height: 100%;
    width: 500px;
    min-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 32px;
    flex-shrink: 0;
    position: relative;
    background: transparent;
}

.intro-text {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.02em;
    color: var(--text-color);
    margin: 0;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0 24px;
}

.intro-arrow {
    margin-top: 32px;
    padding: 0 24px;
    color: var(--text-color);
    opacity: 0.6;
}

.intro-arrow svg {
    display: block;
    width: 120px;
    height: 12px;
}

.project-card {
    height: 100%;
    min-width: 380px;
    width: 380px;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: none;
    flex-shrink: 0;
    touch-action: pan-y;
    position: relative;
}

.branding-gif-card {
    min-width: 380px;
    width: auto;
}

.branding-gif-card .project-image {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}

.project-card.hidden {
    display: none;
}

/* COMMENTED OUT: Hover functionality disabled for project cards
.project-card:hover {
    transform: scale(1.01);
}
*/

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: none;
    opacity: 0;
}

/* Video elements in project cards */
.project-card video.project-image {
    object-fit: cover;
    background-color: var(--card-bg);
}

/* Ensure project 9 (floatingfood) has same width as other cards */
.project-card[data-project="9"] {
    min-width: 380px;
    max-width: 380px;
    width: 380px;
}

.project-card[data-project="9"] .project-image {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}

.project-image.loaded {
    opacity: 1;
}

.project-image.error {
    opacity: 0;
}

/* Loading placeholder animation */
.project-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--card-bg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.project-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 100%
    );
    animation: sweep 2s ease-in-out infinite;
}

[data-theme="dark"] .project-image-placeholder::before {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 100%
    );
}

.project-image-placeholder.hidden {
    display: none;
}

.project-image-placeholder.error {
    background: var(--card-bg);
    animation: none;
    flex-direction: column;
    gap: 12px;
}

.project-image-placeholder.error::before {
    display: none;
}

.image-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 100%;
    color: var(--text-color);
    opacity: 0.3;
}

.image-empty-state svg {
    width: 48px;
    height: 48px;
    animation: pulse 2s ease-in-out infinite;
}

.image-empty-state span {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.02em;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes sweep {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
    }
}

[data-theme="dark"] .project-image-placeholder {
    background: linear-gradient(
        90deg,
        var(--card-bg) 0%,
        var(--card-hover) 50%,
        var(--card-bg) 100%
    );
    background-size: 200% 100%;
}


.project-title-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 32px 32px;
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 16px;
}

.project-pills-container {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.project-category-tag {
    padding: 4px 10px;
    background-color: #ffffff;
    color: #000000;
    font-size: 9px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 16px;
}

[data-theme="dark"] .project-category-tag {
    background-color: #ffffff;
    color: #000000;
}

.project-year-tag {
    padding: 4px 10px;
    background-color: #ffffff;
    color: #000000;
    font-size: 9px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 16px;
}

[data-theme="dark"] .project-year-tag {
    background-color: #ffffff;
    color: #000000;
}

.project-type-tag {
    padding: 4px 10px;
    background-color: #ffffff;
    color: #000000;
    font-size: 9px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 16px;
}

[data-theme="dark"] .project-type-tag {
    background-color: #ffffff;
    color: #000000;
}

.project-title-text {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #ffffff;
}

/* COMMENTED OUT: Hover functionality disabled for project cards
.project-card:hover .project-title-overlay {
    opacity: 1;
}

.project-card:hover .project-pills-container {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover .project-image {
    transform: scale(1.02);
}
*/

.project-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    position: relative;
}

/* COMMENTED OUT: Hover functionality disabled for project cards
.project-card:hover .project-placeholder {
    background-color: var(--card-hover);
}
*/

.project-label {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 400;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Category Separator */
.category-separator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 320px;
    width: 320px;
    height: auto;
    flex-shrink: 0;
    padding: var(--spacing) var(--spacing);
    gap: 12px;
}

.separator-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.separator-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.separator-group-gap {
    margin-top: 40px;
}

.separator-labels {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.separator-arrow-row {
    display: flex;
    align-items: center;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    #categorySeparator {
        display: none;
    }

    .mobile-only {
        display: flex;
    }

    .mobile-only.category-separator {
        width: 100%;
        min-width: 100%;
        padding: 16px var(--spacing);
        margin: 12px 0;
        align-items: flex-start;
    }

    #uiuxMobileSeparator .separator-labels,
    #brandingMobileSeparator .separator-labels {
        flex-direction: row;
        gap: 0px;
    }

    .mobile-only .separator-arrow-row {
        display: none;
    }
}

.category-separator.hidden {
    display: none;
}

.section-marker {
    width: 1px;
    height: 100%;
    min-width: 1px;
    flex-shrink: 0;
    opacity: 0;
    pointer-events: none;
    position: relative;
}

/* Remove extra gap before branding cards */
#branding-marker {
    margin-left: calc(-1 * var(--spacing));
}

.separator-arrow {
    color: var(--text-color);
    opacity: 0.4;
    flex-shrink: 0;
    width: 60px;
    height: 20px;
}

.separator-label {
    color: var(--text-color);
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.4;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .category-separator {
        min-width: 100%;
        width: 100%;
        padding: 16px var(--spacing);
        margin: 16px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }
    
    .separator-label {
        padding: 0 12px;
        font-size: 16px;
    }
    
    .separator-arrow {
        width: 40px;
        height: 20px;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: flex-start;
    justify-content: center;
    z-index: 1000;
    padding: 40px 0 0 0;
    overflow-y: auto;
    backdrop-filter: blur(4px);
}

[data-theme="dark"] .modal-overlay {
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-overlay.active {
    display: flex;
}

.modal-overlay.dogfood-overlay {
    align-items: center;
    padding: 0;
}

.modal-container {
    position: relative;
    max-width: 100%;
    width: 100%;
    max-height: calc(100vh - 40px);
    height: calc(100vh - 40px);
    background-color: var(--bg-color);
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.contact-modal {
    max-width: 600px;
}

/* Dogfood Modal Styles */
.modal-container.dogfood-modal {
    max-width: 90vw;
    max-height: 90vh;
    width: fit-content;
    height: fit-content;
    border-radius: 0;
    padding: 0;
    background-color: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    overflow: visible;
}

.dogfood-video-container {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
    display: block;
    overflow: hidden;
    border-radius: 20px;
    position: relative;
    clip-path: inset(0 round 20px);
    -webkit-clip-path: inset(0 round 20px);
}

.dogfood-video {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    border-radius: 20px;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    clip-path: inset(0 round 20px);
    -webkit-clip-path: inset(0 round 20px);
}

.modal-container.dogfood-modal .modal-content {
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.modal-container.dogfood-modal .modal-close {
    display: none;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background-color: var(--card-bg);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-color);
    opacity: 0.9;
}

.modal-close:hover {
    background-color: var(--card-hover);
    opacity: 1;
    transform: rotate(90deg);
}

.modal-content {
    padding: 60px 40px 40px;
    overflow-y: auto;
    max-height: 100vh;
    height: 100%;
}

/* Custom Scrollbar for Modal Content */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Firefox scrollbar styling */
.modal-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

[data-theme="dark"] .modal-content {
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.modal-header {
    margin-bottom: 40px;
}

.modal-title {
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 12px;
    color: var(--text-color);
}

.modal-category {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--card-bg);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
    opacity: 0.8;
}

.modal-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.modal-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    background-color: var(--card-bg);
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.modal-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--card-hover) 100%);
    color: var(--text-color);
    opacity: 0.6;
}

.modal-image-placeholder span {
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

.modal-text {
    margin-bottom: 32px;
}

.modal-text h3 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 16px;
    color: var(--text-color);
}

.modal-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 16px;
}

/* Contact Modal Styles */
.contact-content {
    padding: 60px 60px 40px;
}

.contact-header {
    margin-bottom: 48px;
    text-align: center;
}

.contact-title {
    font-size: 32px;
    font-weight: 400;
    color: var(--text-color);
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.contact-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.7;
    margin: 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    text-decoration: none;
    color: var(--text-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    background-color: transparent;
}

.contact-item:hover {
    background-color: var(--card-bg);
}

.contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background-color: var(--card-bg);
    color: var(--text-color);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background-color: var(--card-hover);
    transform: scale(1.05);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.contact-label {
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-color);
    opacity: 0.5;
}

.contact-value {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 2px;
}

.contact-note {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.5;
    margin-top: 2px;
}

.contact-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
}

[data-theme="dark"] .contact-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-footer-text {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.6;
    margin: 0;
    font-style: italic;
}

@media (max-width: 768px) {
    .contact-content {
        padding: 40px 32px 32px;
    }
    
    .contact-title {
        font-size: 28px;
    }
    
    .contact-header {
        margin-bottom: 32px;
    }
    
    .contact-item {
        padding: 20px;
        gap: 16px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-value {
        font-size: 15px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header .container {
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: 0;
        padding-right: 0;
    }
    
    .header-content {
        grid-template-columns: auto 1fr auto;
        gap: 24px;
    }
    
    .nav-center {
        gap: 24px;
    }
    
    .nav-right {
        gap: 24px;
    }
    
    .nav-categories.floating-menu {
        gap: 16px;
        padding: 12px 24px;
        bottom: 24px;
    }
    
    .nav-categories.floating-menu .nav-link {
        font-size: 15px;
        padding: 8px 16px;
    }
    
    .project-card {
        min-width: 250px;
    }
    
    .projects-grid {
        gap: 20px;
        padding-top: 20px;
        padding-right: 0;
        padding-bottom: 20px;
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1px;
    }
    
    .header .container {
        padding-top: 16px;
        padding-bottom: 16px;
        padding-left: 20px;
        padding-right: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        border-radius: 20px;
        background-color: transparent;
        border: none;
    }
    
    [data-theme="dark"] .header .container {
        border: none;
    }
    
    .header-content {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 3px;
        width: 100%;
        position: relative;
    }
    
    .logo {
        font-size: 20px;
        grid-column: 1;
        display: flex;
        align-items: center;
        line-height: 1;
    }
    
    .mobile-logo {
        display: flex !important;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 102;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: all;
    }
    
    .desktop-logo {
        display: none !important;
    }
    
    .nav-main .nav-logo {
        display: none !important;
    }
    
    .nav-logo {
        position: fixed;
        top: 28px;
        left: 32px;
        opacity: 1 !important;
        pointer-events: all;
        z-index: 102;
        visibility: visible !important;
        display: flex !important;
        transform: translateZ(0);
        will-change: transform;
        isolation: isolate;
    }
    
    .nav-logo .logo {
        color: var(--text-color) !important;
        opacity: 1 !important;
    }
    
    .nav-logo .logo .logo-text {
        color: var(--text-color) !important;
        opacity: 1 !important;
    }
    
    .logo-text {
        font-size: 18px;
        line-height: 1;
    }
    
    .mobile-menu-toggle {
        display: flex;
        grid-column: 2;
        justify-self: end;
        align-self: center;
        margin: 0;
    }
    
    /* Mobile menu backdrop overlay */
    .header::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 98;
        pointer-events: none;
    }
    
    .header.menu-open::before {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }
    
    [data-theme="dark"] .header::before {
        background: rgba(0, 0, 0, 0.7);
    }
    
    .nav-main {
        display: flex;
        grid-column: 1 / -1;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0;
        border-top: none;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                    opacity 0.3s ease,
                    padding 0.3s ease;
        pointer-events: none;
        position: relative;
        z-index: 100;
    }
    
    .nav-main .logo {
        position: absolute;
        top: 0;
        left: 0;
        opacity: 1 !important;
        pointer-events: all;
        z-index: 101;
        visibility: visible !important;
        display: flex !important;
        overflow: visible;
    }
    
    [data-theme="dark"] .nav-main {
        border-top: none;
    }
    
    .nav-main.active {
        max-height: 600px;
        opacity: 1;
        padding: 0;
        pointer-events: all;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        z-index: 101;
    }
    
    [data-theme="dark"] .nav-main.active {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-main.active .nav-link {
        pointer-events: all;
    }
    
    .nav-center {
        position: static;
        transform: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
        margin-bottom: 16px;
    }
    
    .nav-right {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
        margin-left: 0;
        padding-top: 16px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }
    
    [data-theme="dark"] .nav-right {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link {
        font-size: 16px;
        padding: 14px 0;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 12px;
        transition: opacity 0.2s ease, transform 0.2s ease;
        transform: translateX(0);
    }
    
    .nav-link:active {
        opacity: 0.6;
        transform: translateX(4px);
    }
    
    .nav-main .nav-link {
        font-weight: 400;
    }
    
    .nav-main .nav-link.active-main {
        font-weight: 400;
    }
    
    .scroll-wrapper {
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    .main-content .container {
        height: auto;
        overflow: visible;
    }
    
    .projects-grid {
        flex-direction: column;
        width: 100%;
        height: auto;
        gap: 16px;
        padding-top: 0;
        padding-right: 0;
        padding-bottom: 16px;
        padding-left: 0;
        align-items: stretch;
    }
    
    .project-card {
        min-width: 100%;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        border-radius: 20px;
    }
    
    .modal-overlay {
        padding: 0;
    }
    
    .modal-container {
        max-width: 100%;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
    }
    
    .modal-content {
        padding: 40px 20px 20px;
    }
    
    .modal-title {
        font-size: 28px;
    }
    
    .modal-text h3 {
        font-size: 20px;
    }
    
    .modal-text p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 12px;
    }
    
    .header .container {
        padding: 10px 12px;
    }
    
    .logo {
        font-size: 14px;
    }
    
    .logo-icon {
        width: 20px;
        height: 20px;
    }
    
    .mobile-menu-toggle {
        width: 24px;
        height: 24px;
    }
    
    .nav-categories.floating-menu {
        gap: 14px;
        padding: 10px 20px;
        bottom: 16px;
    }
    
    .nav-categories.floating-menu .nav-link {
        font-size: 14px;
        padding: 7px 14px;
    }
    
    .category-separator {
        padding: 12px var(--spacing);
        margin: 12px 0;
    }
    
    .separator-label {
        font-size: 14px;
        padding: 0 8px;
    }
    
    .separator-arrow {
        width: 32px;
        height: 16px;
        transform: rotate(90deg);
    }
    
    .nav-main.active {
        padding: 0;
    }
    
    .nav-link {
        font-size: 15px;
        padding: 12px 0;
    }
    
    .project-card {
        min-width: 100%;
        width: 100%;
        aspect-ratio: 4 / 3;
    }
    
    .project-title-overlay {
        padding: 24px 20px 20px;
        gap: 12px;
    }
    
    .project-title-text {
        font-size: 24px;
        line-height: 1.2;
    }
    
    .project-pills-container {
        gap: 6px;
    }
    
    .project-category-tag {
        padding: 5px 12px;
        font-size: 10px;
    }
    
    .project-year-tag {
        padding: 5px 12px;
        font-size: 10px;
    }
    
    .project-type-tag {
        padding: 5px 12px;
        font-size: 10px;
    }
    
    .projects-grid {
        gap: 12px;
        padding-top: 0;
        padding-right: 0;
        padding-bottom: 12px;
        padding-left: 0;
    }
    
    .modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .modal-content {
        padding: 32px 16px 16px;
    }
    
    .modal-title {
        font-size: 24px;
    }
    
    .modal-images {
        gap: 16px;
    }
}

