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

/* Page Fade Transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Apply fade-in to main content areas only */
.feed-container,
.about-content,
main {
    animation: fadeIn 0.5s ease-out;
}

/* Content fade-out animation */
body.fade-out .feed-container,
body.fade-out .about-content,
body.fade-out main {
    animation: fadeOut 0.3s ease-in forwards;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    background-color: #121212;
    color: #f0f0f0;
    line-height: 1.6;
    padding: 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin-left: 60px !important;
}

h1 {
    font-family: 'Inter', sans-serif;
}

h1 .highlight {
    color: #bbbbbb;
    font-weight: lighter;
}

h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.8;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    margin-left: 60px !important;
}

.section-divider {
    border-top: 1px solid #ccc;
    padding-top: 1rem;
    margin-top: 3rem;
}

/* Syntax Highlight Colors */
.code-keyword {
    color: #569cd6;
}

.code-variable {
    color: #9cdcfe;
}

.code-function {
    color: #dcdcaa;
}

.code-comment {
    color: #6a9955;
    font-style: italic;
}

.code-string {
    color: #ce9178;
}

.hero-main {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    white-space: pre-wrap;
    min-height: 8rem;
    max-width: 600px;

}

.caret {
    display: inline-block;
    width: 1px;
    height: 1em;
    background-color: #6a9955;
    /* match comment green */
    animation: blink 0.8s steps(1) infinite;
    vertical-align: bottom;
    margin-left: 2px;
}

#typed-text {
    user-select: none;
}



@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-left: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-links.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-links a {
    text-decoration: underline;
    color: #f0f0f0;
    font-weight: 400;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.hero-links a:hover {
    color: #ccc;
}

/* Project Cards */
.project-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
    padding: 40px 0;
    max-width: 1400px;
    margin: 0 auto;
    background: none;
}

.modern-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
    min-height: 320px;
}

.modern-card:hover {
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.16);
}

.modern-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    background: #eee;
}

.modern-card-info {
    padding: 22px 20px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modern-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #232323;
    margin-bottom: 2px;
}

.modern-card-subtitle {
    font-size: 1rem;
    color: #888;
}

.card {
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
    min-height: 400px;
    padding: 2rem;
}

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

.card.large,
.card.wide {
    grid-column: span 2;
}

.card-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.card-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    margin: 1rem 0;
}

.card-logo img {
    max-width: 100%;
    max-height: 140px;
    height: auto;
    object-fit: contain;
}

.card-footer-bar {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 1rem 1.5rem;
    margin-left: -2rem;
    margin-right: -2rem;
    margin-bottom: -2rem;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.footer-text,
.footer-meta {
    color: #ffffff;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
}

.footer-meta {
    text-align: right;
    font-size: 0.7rem;
    opacity: 0.85;
    gap: 0.1rem;
}

/* Footer */
footer {
    margin-top: auto;
    padding: 2rem 0 1rem 0;
    text-align: center;
    color: #ccc;
    font-size: 0.8rem;
    width: 100%;
    border-top: 1px solid #292929;
    background-color: #121212;
}

/* Various Project */
.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    margin-bottom: 3rem;
}

.case-intro {
    display: flex;
    justify-content: space-between;
    padding: 2rem;
    align-items: first baseline;
    max-width: 1200px;
    margin: 0 auto;
}

.intro-left h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.kakao-lockup {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-banner {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: #FAE100;
    padding: 4rem 2rem;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-content {
    display: flex;
    gap: 4rem;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.content-left,
.content-right {
    font-size: 0.95rem;
    line-height: 1.6;
}

.content-left {
    flex: 1;
    max-width: 25%;
}

.content-right {
    flex: 3;
    max-width: 75%;
}

.content-left p {
    margin-bottom: 1.5rem;
}

.content-left strong {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.content-right h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.content-right p {
    margin-bottom: 1.5rem;
}

.content-right em {
    font-style: italic;
    color: #bbb;
}

.content-right a {
    color: #3a3939;
    text-decoration: underline;
}

.note-box {
    background: #007DFF;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    margin: 2rem 0 6rem;
}

.section-divider {
    border-top: 1px solid #444;
    padding-top: 1rem;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .case-content {
        flex-direction: column;
        padding: 2rem 1.5rem;
    }

    .content-left,
    .content-right {
        max-width: 100%;
        width: 100%;
    }

    .content-right h3 {
        font-size: 1.1rem;
        margin-top: 1.5rem;
    }

    .note-box {
        font-size: 0.9rem;
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    .project-cards {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .card,
    .card.large,
    .card.wide {
        width: 100%;
        grid-column: auto !important;
    }
}

/* Grid Overlay */
#gridOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 9999;
    display: none;
}

.icon-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 60px;
    height: 100vh;
    background: #121212;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 200;
    border-right: 1px solid #292929;
}

.icon-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 60px;
}

.icon-sidebar a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    color: #727272;
    transition: background 0.2s, color 0.2s;
    font-size: 1.6rem;
    position: relative;
}

.icon-sidebar a:hover,
.icon-sidebar a.active {
    color: #ffffff;
}

.icon-sidebar i {
    font-size: 1.7rem;
    pointer-events: none;
}

/* Custom Tooltip Styles */
.icon-sidebar a::after {
    content: attr(title);
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: #2d2d2d;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.icon-sidebar a:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Back Button Styles */
.icon-sidebar .back-button {
    position: absolute;
    top: 16px;
    left: 8px;
    background: #1a1a1a;
    border-radius: 8px;
    margin-bottom: 0;
    z-index: 10;
}

.icon-sidebar .back-button:hover {
    color: #ffffff;
}

/* Sidebar Divider */
.sidebar-divider {
    height: 1px;
    background: #292929;
    margin: 8px 8px 12px 8px;
    border: none;
}

.sidebar-svg-icon {
    width: 24px;
    height: 24px;
    filter: invert(0.45);
    transition: filter 0.2s;
}

.icon-sidebar a:hover .sidebar-svg-icon,
.icon-sidebar a.active .sidebar-svg-icon {
    filter: invert(1);
}

main,
section {
    margin-left: 0 !important;
}

.custom-card {
    background: #232323;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
    width: 420px;
    margin: 32px auto;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
}

.card-image-area {
    position: relative;
    width: 100%;
    height: 320px;
    background: #000;
    overflow: hidden;
}

.card-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-avatar {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 54px;
    height: 54px;
    background: #f3b6b6;
    border-radius: 50%;
    border: 3px solid #232323;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.card-avatar img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.card-avatar-icon {
    position: absolute;
    right: -6px;
    bottom: -6px;
    background: #232323;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #f3b6b6;
}

.card-avatar-icon i {
    color: #b6e3f3;
    font-size: 1.1rem;
}

.card-info {
    padding: 24px 24px 18px 24px;
    background: #2a2a2a;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.card-author {
    color: #b0b0b0;
    font-size: 1rem;
    margin-bottom: 4px;
}

.card-title {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-title i {
    color: #b0b0b0;
    font-size: 1.1rem;
}

.card-subtitle {
    color: #e0e0e0;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.card-tag {
    color: #888;
    font-size: 0.95rem;
    margin-top: 8px;
}

.feed-container {
    max-width: 840px;
    width: 100%;
    margin: 40px auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    box-sizing: border-box;
}


.feed-post {
    background: #181a1b;
    border-radius: 22px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.10);
    padding: 24px 24px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feed-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 2px;
}

.feed-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: #232323;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
}

.feed-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feed-author {
    font-weight: 600;
    color: #fff;
    font-size: 1.08rem;
}

.feed-meta {
    color: #aaa;
    font-size: 0.85rem;
    margin-left: 6px;
}

.feed-desc {
    color: #e0e0e0;
    font-size: 0.8rem;
}

.feed-image {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    max-height: 340px;
}

.feed-video {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    max-height: 340px;
    background: #000;
}

.feed-actions {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 6px;
    color: #aaa;
    font-size: 1.1rem;
}

.feed-actions i {
    vertical-align: middle;
    margin-right: 4px;
}

.feed-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    gap: 8px;
    padding: 4px;
    width: 100%;
}

.carousel-container::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.carousel-image {
    flex: 1 1 auto;
    min-width: 280px;
    max-width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    box-sizing: border-box;
}

.carousel-image:first-child {
    margin-left: 0;
}

.carousel-image:last-child {
    margin-right: 0;
}

/* Special styling for carousel with exactly 2 items */
.carousel-container.two-items {
    overflow-x: hidden;
    justify-content: space-between;
}

.carousel-container.two-items .carousel-image {
    flex: 0 0 calc(50% - 4px);
    width: calc(50% - 4px);
    min-width: unset;
    max-width: calc(50% - 4px);
}

/* Specific styles for video elements */

video.carousel-image:focus {
    outline: none;
}

/* Make subwaymap2 video match original video dimensions */
#subwaymap2-video {
    width: auto;
    height: auto;
    flex: 0 0 auto;
    object-fit: none;
}

.feed-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.hashtag {
    color: #888;
    font-size: 0.85rem;
    font-weight: 400;
}

.feed-link {
    color: #ffffff;
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 2px;
}

.feed-link:hover {
    text-decoration: underline;
}

.link-arrow {
    width: 14px;
    height: 14px;
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.2s;
}

.feed-link:hover .link-arrow {
    opacity: 1;
    transform: translateX(2px);
}

/* Responsive Mobile Styles */
@media (max-width: 768px) {

    /* Mobile Menu Button */
    .mobile-menu-btn {
        position: fixed;
        bottom: 20px;
        left: 20px;
        width: 56px;
        height: 56px;
        background: #000000;
        border: none;
        border-radius: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 300;
        cursor: pointer;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
    }

    .mobile-menu-btn:hover {
        background: #1a1a1a;
        transform: translateY(-2px);
    }

    .mobile-menu-btn i {
        color: #ffffff;
        font-size: 1.5rem;
        transition: color 0.2s;
    }

    .mobile-menu-btn:hover i {
        color: #ffffff;
    }

    /* Mobile Menu Button Tooltip */
    .mobile-menu-btn::after {
        content: 'Menu';
        position: absolute;
        bottom: 70px;
        left: 50%;
        transform: translateX(-50%);
        background: #2d2d2d;
        color: #ffffff;
        padding: 8px 12px;
        border-radius: 8px;
        font-size: 0.75rem;
        font-weight: 500;
        font-family: 'Inter', sans-serif;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
        z-index: 1000;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        pointer-events: none;
    }

    .mobile-menu-btn:hover::after {
        opacity: 1;
        visibility: visible;
    }

    /* Hide sidebar initially on mobile but keep it ready for sliding */
    .icon-sidebar {
        position: fixed;
        top: 0;
        left: -60px;
        /* Hidden off-screen */
        width: 60px;
        height: 100vh;
        background: #121212;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 250;
        border-right: 1px solid #292929;
        transition: transform 0.3s ease;
        transform: translateX(-100%);
    }

    /* Show sidebar when active */
    .icon-sidebar.mobile-active {
        transform: translateX(100%);
    }

    /* Mobile overlay for closing sidebar */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 200;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Reset all margins and padding */
    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
    }

    .content-container,
    main,
    section {
        margin-left: 0 !important;
    }

    /* Adjust feed container for mobile - use padding for even spacing */
    .feed-container {
        max-width: 100%;
        margin: 0 auto;
        gap: 20px;
        padding: 20px 16px;
        box-sizing: border-box;
    }

    /* Mobile feed posts */
    .feed-post {
        padding: 20px 16px 12px 16px;
        gap: 12px;
        border-radius: 16px;
        margin: 0;
    }

    /* Mobile avatar size */
    .feed-avatar {
        width: 34px;
        height: 34px;
    }

    /* Mobile text sizes */
    .feed-author {
        font-size: 1rem;
    }

    .feed-meta {
        font-size: 0.8rem;
    }

    .feed-desc {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .feed-link {
        font-size: 0.85rem;
    }

    .hashtag {
        font-size: 0.8rem;
    }

    /* Mobile carousel */
    .carousel-container {
        gap: 6px;
        padding: 2px;
    }

    .carousel-image {
        flex: 0 0 240px;
        width: 240px;
        height: 280px;
    }

    /* Mobile feed images and videos */
    .feed-image,
    .feed-video {
        max-height: 280px;
        border-radius: 12px;
    }

    /* Mobile footer */
    footer {
        margin-top: 2rem;
        padding: 0 16px;
        font-size: 0.75rem;
    }
}

/* About Page Styles */
.about-content {
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 28px;
    overflow-x: hidden;
}

.about-header {
    border-radius: 22px;
    display: flex;
    align-items: center;
    gap: 32px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.about-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #333;
    flex-shrink: 0;
}

.about-intro {
    flex: 1;
    min-width: 0;
}

.about-intro h4 {
    font-size: 2.0rem;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 600;
    text-align: left;
    word-wrap: break-word;
}

.about-title {
    font-size: 0.85rem;
    color: #aaa;
    align-items: center;
    word-wrap: break-word;
}

/* Timeline Styles for About Page */
.timeline-item {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

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

.timeline-year {
    min-width: 80px;
    font-size: 0.85rem;
    color: #aaa;
    font-weight: 500;
    padding-top: 4px;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
    min-width: 0;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    word-wrap: break-word;
}

.timeline-location {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 8px;
    word-wrap: break-word;
}

.timeline-desc {
    font-size: 0.85rem;
    color: #e0e0e0;
    line-height: 1.6;
    word-wrap: break-word;
}

.timeline-desc p {
    margin-top: 8px;
    margin-bottom: 0;
}

section {
    /* all previous .about-section styles here */
}

section h4 {
    /* all previous .about-section h4 styles here */
}

section p {
    /* all previous .about-section p styles here */
}

section h2 {
    /* all previous .about-section h2 styles here */
}

section strong {
    /* all previous .about-section strong styles here */
}

/* Project Layout Styles - FIXED */
.project-hero-wrapper {
    max-width: 800px;
    width: 100%;
    margin: 0 auto 40px auto;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: flex-start;
}

.project-details,
.problem-statement,
.about-section {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
    gap: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.project-cover {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.project-cover img.cover-image {
    width: 100%;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/* Video styling for project covers */
.project-cover video.cover-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    object-position: center;
    border-radius: 4px;
    background: #000000;
}

/* Hide video controls */
.project-cover video.cover-image::-webkit-media-controls {
    display: none !important;
}

.project-cover video.cover-image::-webkit-media-controls-panel {
    display: none !important;
}

.project-cover video.cover-image::-webkit-media-controls-play-button {
    display: none !important;
}

.project-cover video.cover-image::-webkit-media-controls-start-playback-button {
    display: none !important;
}

/* Text Elements - FIXED */
.project-details h2,
.problem-statement h2,
.about-section h2 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: #fff;
    font-weight: 600;
    text-align: left;
}

.project-details h4,
.problem-statement h4,
.about-section h4 {
    font-size: 1.2rem;
    margin: 0;
    padding: 0;
    color: #fff;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    text-align: left;
}

.project-details p,
.project-details strong,
.problem-statement p,
.problem-statement strong,
.about-section p,
.about-section strong {
    margin-top: 1.1em;
    margin-bottom: 1.1em;
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 0.8rem;
    text-align: left;
}

/* Hero Quote */
.hero-quote {
    font-size: 2rem;
    font-weight: 400;
    margin: 2rem 0;
    line-height: 1.3;
    color: #fff;
    text-align: left;
}

/* Section Headers */
section>h4,
section>h2 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #aaa;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-align: left;
}

/* Spacing rules for project-details and problem-statement */
.project-details h4+p,
.problem-statement h4+p {
    margin-top: 0;
}

.project-details p:has(strong),
.problem-statement p:has(strong) {
    margin-bottom: 2px;
}

.project-details p:has(strong)+p,
.problem-statement p:has(strong)+p {
    margin-top: 0;
    margin-bottom: 15px;
}

/* Highlight text style */
.highlight-text {
    background: linear-gradient(transparent 0%, rgba(255, 235, 59, 0.3) 0%);
    padding: 0 2px;
    display: inline;
}

/* Comparison Chart Styles */
.comparison-chart {
    width: 100%;
    max-width: 1000px;
    border-spacing: 0;
    border-collapse: separate;
}

.comparison-chart th {
    padding: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: left;
    color: #fff;
    background: #1a1a1a;
    border-right: 0.8px solid #333;
}

.comparison-chart td {
    padding: 8px 12px;
    font-size: 0.8rem;
    line-height: 1.6;
    color: #e0e0e0;
    border-top: 0.8px solid #333;
    border-right: 0.8px solid #333;
}

@media (max-width: 768px) {
    .comparison-chart th {
        font-size: 1.1rem;
        padding: 15px;
    }

    .comparison-chart td {
        font-size: 0.8rem;
        padding: 15px;
    }
}

/* Responsive Mobile Styles */
@media (max-width: 768px) {

    /* Mobile Menu Button */
    .mobile-menu-btn {
        position: fixed;
        bottom: 20px;
        left: 20px;
        width: 56px;
        height: 56px;
        background: #ffff;
        border: none;
        border-radius: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 300;
        cursor: pointer;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
    }

    .mobile-menu-btn:hover {
        background: #2a2a2a;
        transform: translateY(-2px);
    }

    .mobile-menu-btn i {
        color: #727272;
        font-size: 1.5rem;
        transition: color 0.2s;
    }

    .mobile-menu-btn:hover i {
        color: #ffffff;
    }

    /* Hide sidebar initially on mobile but keep it ready for sliding */
    .icon-sidebar {
        position: fixed;
        top: 0;
        left: -60px;
        width: 60px;
        height: 100vh;
        background: #121212;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 250;
        border-right: 1px solid #292929;
        transition: transform 0.3s ease;
        transform: translateX(-100%);
    }

    /* Show sidebar when active */
    .icon-sidebar.mobile-active {
        transform: translateX(100%);
    }

    /* Mobile overlay for closing sidebar */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 200;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Reset all margins and padding */
    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
    }

    .content-container,
    main,
    section {
        margin-left: 0 !important;
    }

    .project-hero-wrapper,
    .project-details,
    .problem-statement,
    .about-section,
    .project-cover {
        max-width: 100%;
        padding: 0 1rem;
    }

    .project-cover {
        padding: 0 0 16px 0;
    }

    .hero-quote {
        font-size: 1.2rem;
        margin: 1.2rem 0;
    }

    .comparison-chart th {
        font-size: 1.1rem;
        padding: 15px;
    }

    .comparison-chart td {
        font-size: 0.8rem;
        padding: 15px;
    }

    /* About page mobile styles */
    .about-content {
        margin: 20px auto;
        padding: 0 16px;
        max-width: 100%;
    }

    .about-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        margin-bottom: 32px;
    }

    .about-avatar {
        width: 100px;
        height: 100px;
    }

    .about-intro h4 {
        font-size: 1.8rem;
        text-align: center;
    }

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

    .timeline-item {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 24px;
    }

    .timeline-year {
        min-width: auto;
        font-size: 0.8rem;
        padding-top: 0;
    }

    .timeline-title {
        font-size: 1rem;
    }

    .timeline-desc {
        font-size: 0.8rem;
    }
}

section.divider-section {
    margin-top: 80px;
    margin-bottom: 80px;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.section-divider {
    width: 100%;
    max-width: 800px;
    border: none;
    border-top: 0.8px solid #333;
    margin: 0 auto;
    height: 0;
}

/* Scoped section styling for main content only */
.about-content>section,
.project-details>section,
main>section {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
    gap: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.about-content>section h4,
.project-details>section h4,
main>section h4 {
    font-size: 1.2rem;
    margin: 0;
    padding: 0;
    color: #fff;
    font-weight: 600;
    margin-bottom: 16px;
    display: block;
    text-align: left;
}

.about-content>section p,
.project-details>section p,
main>section p {
    margin-top: 1.1em;
    margin-bottom: 1.1em;
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 0.85rem;
    text-align: left;
    word-wrap: break-word;
}

.about-content>section h2,
.project-details>section h2,
main>section h2 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: #fff;
    font-weight: 600;
    text-align: left;
}

.about-content>section strong,
.project-details>section strong,
main>section strong {
    color: #e0e0e0;
    font-size: 0.85rem;
    text-align: left;
    word-wrap: break-word;
}

/* Password Modal Overlay (aiapp.html) - Unified with main site style */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #121212cc;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.password-modal {
    background: #181818;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
    padding: 40px 32px 32px 32px;
    min-width: 320px;
    max-width: 90vw;
    width: 100%;
    max-width: 400px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Inter', sans-serif;
    padding-top: 32px;
}

.lock-icon {
    display: block;
    margin: 0 auto 18px auto;
    width: 48px;
    height: 48px;
    filter: brightness(0) invert(1);
}

.password-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
}

.password-desc {
    color: #e0e0e0;
    font-size: 0.85rem;
    margin-bottom: 24px;
    font-family: 'Inter', sans-serif;
}

.divider {
    width: 100%;
    height: 1px;
    background: #e0e0e0;
    opacity: 0.10;
    margin: 0 0 24px 0;
}

#password-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #232323;
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: 18px;
    outline: none;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

#password-input::placeholder {
    color: #aaa;
}

.password-btn {
    width: 100%;
    background: #232323;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 8px;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

.password-btn:hover {
    background: #333;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #bbb;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #fff;
}

.error-message {
    color: #ff4d4f;
    font-size: 0.95rem;
    margin-top: 4px;
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .password-modal {
        padding: 24px 8px 16px 8px;
        min-width: 0;
        max-width: 98vw;
    }
}

.cropped-video {
    width: 100%;
    height: 300px;
    /* Adjust as needed for your layout */
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    /* Optional: for rounded corners */
    background: #000;
}

.media-lightbox {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(18, 18, 18, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
    position: absolute;
    top: 32px;
    right: 48px;
    width: 56px;
    height: 56px;
    background: rgba(40, 40, 40, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #bbb;
    cursor: pointer;
    z-index: 2100;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: background 0.2s, color 0.2s;
    border: none;
    outline: none;
}

.lightbox-close:hover {
    background: rgba(60, 60, 60, 1);
    color: #fff;
}

.close-svg {
    width: 32px;
    height: 32px;
    display: block;
    color: #727272;
    transition: color 0.2s;
}

.lightbox-close:hover .close-svg {
    color: #fff;
}

.research-step {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 48px;
    margin-top: 18px;
}

.research-image {
    width: 220px;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.research-text {
    flex: 1;
    margin-left: 48px;
}

.research-text h4 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.research-date {
    font-size: 1rem;
    color: #aaa;
    margin-bottom: 10px;
}

@media (max-width: 800px) {
    .research-step {
        flex-direction: column;
        gap: 20px;
    }

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

.nda-disclaimer {
    text-align: center;
    margin: 60px 0 40px 0;
    font-size: 1.15rem;
    color: #ddd;
}

.nda-disclaimer a {
    color: #fff;
    text-decoration: underline;
    word-break: break-all;
}

.fullscreen-video-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    background: #111;
    z-index: 10;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.fullscreen-video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: top center;
    display: block;
}

@media (max-width: 800px) {

    .fullscreen-video-container,
    .fullscreen-video {
        width: 100vw;
        height: 50vh;
    }
}