/* Projects Page Styles - Cyber Deck Architecture */

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

body {
    font-family: 'Space Grotesk', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #070c1a;
    color: #e2e8f0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Header Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(7, 12, 26, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 999;
    padding: 0 20px;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    height: 70px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #00D4FF;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.header-logo:hover {
    color: #ffffff;
    transform: translateX(-3px);
    text-shadow: 0 0 12px #00D4FF;
}

.page-title {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00D4FF 0%, #a78bfa 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex: 1;
    text-align: center;
    letter-spacing: -0.02em;
}

.sidebar-toggle {
    display: none;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #00D4FF;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: rgba(0, 212, 255, 0.25);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

/* Main Projects Section */
.projects-section {
    display: flex;
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    background: transparent;
    position: relative;
    overflow: hidden;
}

.projects-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
}

.projects-section::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
}

/* Sidebar Styles */
.projects-sidebar {
    width: 290px;
    background: linear-gradient(180deg, rgba(11, 19, 38, 0.8) 0%, rgba(7, 12, 26, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(0, 212, 255, 0.18);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.4);
    padding: 30px 0;
    overflow-y: auto;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 70px);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px 20px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
    margin-bottom: 20px;
}

.sidebar-header h2 {
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00D4FF 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}

.close-sidebar {
    display: none;
    background: none;
    border: none;
    color: #00D4FF;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-sidebar:hover {
    color: #ffffff;
    transform: rotate(90deg);
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 16px;
}

.project-tab {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 12px;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.project-tab::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, #00D4FF 0%, #a78bfa 100%);
    box-shadow: 0 0 10px #00D4FF;
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.project-tab:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.4);
    color: #ffffff;
    transform: translateX(4px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.15);
}

.project-tab:hover::before {
    transform: scaleY(1);
}

.project-tab.active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.18) 0%, rgba(167, 139, 250, 0.15) 100%);
    border-color: rgba(0, 212, 255, 0.6);
    color: #ffffff;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.25), inset 0 0 15px rgba(0, 212, 255, 0.1);
    transform: translateX(6px);
}

.project-tab.active::before {
    transform: scaleY(1);
}

/* Featured star animation */
@keyframes star-glow {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 8px rgba(251, 191, 36, 0.8), 0 0 15px rgba(251, 191, 36, 0.4);
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 0.75;
        text-shadow: 0 0 18px rgba(251, 191, 36, 1), 0 0 30px rgba(251, 191, 36, 0.8);
        transform: translateY(-50%) scale(1.2);
    }
}

.project-tab.featured {
    position: relative;
}

.featured-star {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #fbbf24;
    font-size: 0.85rem;
    animation: star-glow 2s ease-in-out infinite;
}

.project-tab.featured .project-number {
    margin-left: 0;
}

.project-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: #60a5fa;
    min-width: 25px;
}

.project-title-text {
    flex: 1;
}

/* Projects Container */
.projects-container {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 60px;
    position: relative;
    z-index: 1;
}

/* Project Card Styles */
.project-card {
    display: none;
    animation: slideIn 0.5s ease;
}

.project-card.active {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 30px;
    align-items: start;
    height: calc(100vh - 70px - 100px);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Image Carousel Styles */
.project-image-carousel {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    height: auto;
}

.carousel-images-wrapper {
    flex: 1;
    height: 350px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(11, 19, 38, 0.85) 100%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 0 25px rgba(0, 212, 255, 0.06);
    display: flex;
    align-items: center;
    max-width: 1450px;
    position: relative;
}

.carousel-images {
    display: flex;
    gap: 15px;
    padding: 15px;
    height: 100%;
    transition: transform 0.5s ease;
    width: 100%;
}

.carousel-image {
    flex: 0 0 calc(28% - 15px);
    height: 100%;
    border-radius: 12px;
    object-fit: contain;
    object-position: center;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.6);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 8px;
}

.carousel-image:hover {
    border-color: #00D4FF;
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.35);
}

/* No Images Placeholder */
.carousel-images-wrapper.no-images {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(11, 19, 38, 0.8) 100%);
    backdrop-filter: blur(8px);
}

.carousel-images-wrapper.no-images .carousel-images {
    filter: blur(6px);
    pointer-events: none;
    opacity: 0.3;
}

.no-images-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 10;
    background: rgba(7, 12, 26, 0.7);
    border-radius: 15px;
}

.no-images-placeholder i {
    font-size: 3rem;
    color: rgba(0, 212, 255, 0.6);
}

.no-images-placeholder p {
    color: rgba(226, 232, 240, 0.8);
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    margin: 0;
    max-width: 300px;
}

/* Carousel Scroll Buttons */
.carousel-scroll-btn {
    flex: 0 0 46px;
    height: 46px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.4);
    color: #00D4FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.carousel-scroll-btn:hover:not(:disabled) {
    background: #00D4FF;
    border-color: #00D4FF;
    color: #070c1a;
    transform: scale(1.12);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.6);
}

.carousel-scroll-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: scale(1);
}

/* Fullscreen Lightbox Modal */
.image-fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 10, 18, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 20px;
    user-select: none;
}

.image-fullscreen-modal.active {
    opacity: 1;
    pointer-events: all;
}

.image-fullscreen-content {
    position: relative;
    max-width: 90vw;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-fullscreen-content img {
    max-width: 90vw;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(56, 189, 248, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.35);
    transition: opacity 0.2s ease, transform 0.2s ease;
    cursor: default;
}

.image-fullscreen-caption {
    margin-top: 14px;
    padding: 8px 22px;
    border-radius: 25px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.3);
    backdrop-filter: blur(8px);
    color: #e2e8f0;
    font-size: 0.92rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 90vw;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.image-fullscreen-caption .caption-text {
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 65vw;
}

.image-fullscreen-caption .caption-counter {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: monospace;
    border: 1px solid rgba(56, 189, 248, 0.3);
    flex-shrink: 0;
}

.image-fullscreen-close {
    position: fixed;
    top: 24px;
    right: 24px;
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(56, 189, 248, 0.5);
    color: #38bdf8;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.35rem;
    transition: all 0.25s ease;
    z-index: 3010;
}

.image-fullscreen-close:hover {
    background: rgba(56, 189, 248, 0.3);
    border-color: rgba(56, 189, 248, 1);
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.modal-nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(56, 189, 248, 0.5);
    color: #38bdf8;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.25s ease;
    z-index: 3005;
}

.modal-nav-btn:hover:not(:disabled) {
    background: rgba(56, 189, 248, 0.3);
    border-color: rgba(56, 189, 248, 1);
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.modal-nav-btn.modal-prev {
    left: 24px;
}

.modal-nav-btn.modal-next {
    right: 24px;
}

.modal-nav-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    border-color: rgba(148, 163, 184, 0.3);
    color: #64748b;
    transform: translateY(-50%) scale(1);
}

@media (max-width: 768px) {
    .modal-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .modal-nav-btn.modal-prev {
        left: 10px;
    }
    .modal-nav-btn.modal-next {
        right: 10px;
    }
    .image-fullscreen-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    .image-fullscreen-caption {
        font-size: 0.8rem;
        padding: 6px 14px;
    }
}

.project-content {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    padding-right: 20px;
    padding-bottom: 100px;
}

.project-content::-webkit-scrollbar {
    width: 8px;
}

.project-content::-webkit-scrollbar-track {
    background: rgba(59, 130, 246, 0.1);
}

.project-content::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.4);
    border-radius: 4px;
}

.project-content::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.6);
}

.project-heading {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00D4FF 0%, #38bdf8 35%, #a78bfa 75%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

/* Project Meta Section */
.project-meta {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.meta-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.meta-header .project-heading {
    margin-bottom: 0;
    flex: 1;
    min-width: 200px;
}

.role-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(167, 139, 250, 0.15) 100%);
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 25px;
    color: #00D4FF;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
}

.role-tag.in-work {
    border-color: rgba(34, 197, 94, 0.6);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(74, 222, 128, 0.2) 100%);
    color: #22c55e;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
}

.role-tag.collaborator-tag {
    border-color: rgba(251, 191, 36, 0.55);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.16) 0%, rgba(245, 158, 11, 0.12) 100%);
    color: #fbbf24;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.2);
}

.project-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border-left: 3px solid #00D4FF;
    border-radius: 8px;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    border-right: 1px solid rgba(0, 212, 255, 0.1);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.summary-label {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.summary-value {
    font-size: 0.95rem;
    color: #e2e8f0;
    font-weight: 600;
}

/* Project Sections */
.project-section {
    margin-top: 20px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(11, 19, 38, 0.75) 100%);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #00D4FF;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}

.section-title i {
    color: #a78bfa;
}

/* Problem & Solution */
.problem-solution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.problem,
.solution {
    padding: 15px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    border-left: 4px solid rgba(239, 68, 68, 0.5);
}

.solution {
    border-left-color: rgba(34, 197, 94, 0.5);
}

.problem h4,
.solution h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #cbd5e1;
}

.problem p,
.solution p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #94a3b8;
}

/* Features List */
.features-list,
.learning-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.features-list li,
.learning-list li {
    display: flex;
    gap: 12px;
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.features-list li::before,
.learning-list li::before {
    content: '✓';
    color: #22c55e;
    font-weight: bold;
    min-width: 20px;
    flex-shrink: 0;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.metric-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-3px);
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-label {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
}

/* In-work Indicator */
.in-work-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border-radius: 50%;
    margin-left: 8px;
    animation: pulse-glow 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px rgba(34, 197, 94, 1);
        transform: scale(1.2);
    }
}

/* On-Hold Indicator */
.on-hold-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    font-size: 0.85rem;
}

.on-hold-indicator i {
    color: #f59e0b;
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.7);
}

/* Needs Update Indicator */
@keyframes update-rotate-pulse {
    0% {
        transform: rotate(0deg);
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: rotate(360deg);
        opacity: 1;
    }
}

.needs-update-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    font-size: 0.9rem;
}

.needs-update-indicator i {
    color: #fb923c;
    animation: update-rotate-pulse 2s linear infinite;
    text-shadow: 0 0 8px rgba(251, 146, 60, 0.7);
}

/* Project Navigation */
.project-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(7, 12, 26, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(0, 212, 255, 0.25);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    z-index: 100;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(0, 212, 255, 0.35);
    border-radius: 10px;
    color: #00D4FF;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-btn:hover:not(:disabled) {
    background: #00D4FF;
    border-color: #00D4FF;
    color: #070c1a;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    border-color: rgba(148, 163, 184, 0.2);
    color: #64748b;
}

.nav-label {
    display: none;
}

.nav-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: #00D4FF;
}

.nav-current {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 0 10px #00D4FF;
}

.nav-separator {
    color: #475569;
}

.nav-total {
    color: #94a3b8;
}

.project-description {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #cbd5e1;
    text-align: justify;
}

/* Skills Section */
.project-skills {
    margin-top: 20px;
}

.project-skills h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #00D4FF;
    margin-bottom: 12px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 25px;
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00D4FF;
    color: #00D4FF;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

/* Project Actions */
.project-actions {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(167, 139, 250, 0.15) 100%);
    border: 1px solid rgba(0, 212, 255, 0.45);
    border-radius: 10px;
    color: #00D4FF;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.project-link:hover {
    background: #00D4FF;
    border-color: #00D4FF;
    color: #070c1a;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.5);
}

.project-note {
    margin-top: 20px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
    border-left: 3px solid rgba(96, 165, 250, 0.5);
    border-radius: 6px;
    color: rgba(96, 165, 250, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
}

.project-note i {
    margin-right: 8px;
    opacity: 0.8;
}


/* Scrollbar Styling */
.projects-container::-webkit-scrollbar,
.projects-sidebar::-webkit-scrollbar {
    width: 8px;
}

.projects-container::-webkit-scrollbar-track,
.projects-sidebar::-webkit-scrollbar-track {
    background: rgba(59, 130, 246, 0.1);
}

.projects-container::-webkit-scrollbar-thumb,
.projects-sidebar::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.4);
    border-radius: 4px;
}

.projects-container::-webkit-scrollbar-thumb:hover,
.projects-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.6);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .projects-container {
        padding: 25px 20px;
        gap: 30px;
    }

    .project-card.active {
        grid-template-columns: 1fr;
        gap: 20px;
        height: auto;
    }

    .project-image-carousel {
        gap: 12px;
        width: 100%;
    }

    .carousel-images-wrapper {
        height: 200px;
    }

    .carousel-scroll-btn {
        flex: 0 0 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .carousel-image {
        flex: 0 0 calc(30% - 8px);
    }

    .project-heading {
        font-size: 2rem;
    }

    .meta-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .problem-solution {
        grid-template-columns: 1fr;
    }

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

    .nav-label {
        display: inline;
    }
}

@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .header {
        padding: 0 14px;
    }

    .header-container {
        height: 64px;
        padding: 10px 0;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 12px;
    }

    .header-logo {
        font-size: 1rem;
    }

    .page-title {
        min-width: 0;
        font-size: 1.35rem;
        line-height: 1.1;
    }

    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background: rgba(59, 130, 246, 0.12);
        border: 1px solid rgba(59, 130, 246, 0.3);
        font-size: 1.2rem;
    }

    .projects-section {
        flex-direction: column;
        margin-top: 64px;
        min-height: calc(100vh - 64px);
        padding-bottom: 76px;
        overflow-x: hidden;
        overflow-y: visible;
    }

    .projects-section::before,
    .projects-section::after {
        display: none;
    }

    .projects-sidebar {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        border-right: none;
        border-bottom: 2px solid rgba(59, 130, 246, 0.2);
        padding: 0;
        transition: max-height 0.3s ease;
    }

    .projects-sidebar.active {
        max-height: min(420px, calc(100vh - 140px));
        padding: 16px 0;
        overflow-y: auto;
    }

    .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 18px 14px;
        margin-bottom: 14px;
    }

    .close-sidebar {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 8px;
        background: rgba(59, 130, 246, 0.12);
        border: 1px solid rgba(59, 130, 246, 0.3);
    }

    .projects-list {
        gap: 9px;
        padding: 0 14px;
    }

    .project-tab {
        min-height: 48px;
        padding: 12px 42px 12px 14px;
        gap: 12px;
    }

    .projects-container {
        width: 100%;
        max-width: 100%;
        padding: 18px 14px 0;
        gap: 20px;
        flex: none;
        overflow-x: hidden;
        overflow-y: visible;
    }

    .project-card.active {
        grid-template-columns: 1fr;
        gap: 18px;
        height: auto;
        min-width: 0;
        max-width: 100%;
    }

    .project-image-carousel {
        grid-column: 1;
        grid-row: 1;
        min-height: auto;
        gap: 0;
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .carousel-images-wrapper {
        flex: 1;
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 12px;
        min-width: 0;
        overflow: visible;
    }

    .carousel-images {
        flex-direction: column;
        gap: 12px;
        padding: 10px;
        transform: none !important;
    }

    .carousel-image {
        flex: none;
        width: 100%;
        min-width: 100%;
        height: auto;
        max-height: 280px;
        padding: 6px;
        border-width: 1px;
    }

    .carousel-scroll-btn {
        display: none;
    }

    .project-content {
        grid-column: 1;
        grid-row: 2;
        min-width: 0;
        max-width: 100%;
        padding-right: 0;
        padding-bottom: 28px;
        overflow-x: hidden;
        overflow-y: visible;
    }

    .project-heading {
        font-size: 1.65rem;
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    .project-description {
        font-size: 0.95rem;
        text-align: left;
        overflow-wrap: anywhere;
    }

    .project-meta,
    .meta-header,
    .project-summary,
    .summary-item,
    .project-section,
    .problem,
    .solution,
    .project-skills,
    .skills-list,
    .project-actions,
    .project-note {
        min-width: 0;
        max-width: 100%;
    }

    .role-tag {
        white-space: normal;
        max-width: 100%;
        line-height: 1.35;
    }

    .summary-value,
    .metric-value,
    .metric-label,
    .features-list li,
    .learning-list li,
    .problem p,
    .solution p,
    .skill-tag,
    .project-link,
    .project-note {
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .project-summary {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .problem-solution {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .metric-card {
        padding: 10px;
    }

    .metric-value {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1rem;
        line-height: 1.3;
    }

    .project-section {
        padding: 16px;
        margin-top: 14px;
        border-radius: 8px;
    }

    .project-navigation {
        padding: 10px 14px;
        gap: 12px;
    }

    .nav-btn {
        min-width: 46px;
        min-height: 42px;
        padding: 10px 14px;
        font-size: 0.9rem;
        justify-content: center;
    }

    .nav-label {
        display: none;
    }

    .project-actions {
        gap: 10px;
    }

    .project-link {
        flex: 1;
        justify-content: center;
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0 12px;
    }

    .header-container {
        gap: 8px;
    }

    .page-title {
        font-size: clamp(1.05rem, 6vw, 1.25rem);
    }

    .header-logo {
        font-size: 0.94rem;
        gap: 7px;
    }

    .sidebar-toggle {
        width: 38px;
        height: 38px;
        font-size: 1.05rem;
    }

    .projects-container {
        padding: 14px 12px 0;
        gap: 15px;
    }

    .project-card.active {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .project-image-carousel {
        min-height: auto;
        grid-row: 1;
        padding: 0;
    }

    .carousel-images-wrapper {
        border-radius: 10px;
    }

    .carousel-images {
        padding: 8px;
    }

    .carousel-image {
        max-height: 240px;
    }

    .project-heading {
        font-size: 1.35rem;
    }

    .project-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .project-summary {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .summary-item {
        padding: 8px;
    }

    .summary-label {
        font-size: 0.75rem;
    }

    .summary-value {
        font-size: 0.85rem;
    }

    .problem-solution {
        grid-template-columns: 1fr;
    }

    .problem,
    .solution {
        padding: 10px;
    }

    .problem h4,
    .solution h4 {
        font-size: 0.9rem;
    }

    .problem p,
    .solution p {
        font-size: 0.85rem;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .metric-card {
        padding: 8px;
    }

    .metric-value {
        font-size: 1rem;
    }

    .metric-label {
        font-size: 0.7rem;
    }

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

    .project-section {
        padding: 14px;
    }

    .features-list li,
    .learning-list li {
        font-size: 0.85rem;
        gap: 9px;
    }

    .project-navigation {
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        gap: 8px;
        flex-wrap: nowrap;
    }

    .nav-btn {
        flex: 1;
        max-width: 120px;
        padding: 9px 10px;
        font-size: 0.8rem;
    }

    .nav-progress {
        flex: 0 0 auto;
        font-size: 0.9rem;
    }

    .nav-current {
        font-size: 1rem;
    }

    .project-skills h3 {
        font-size: 0.95rem;
    }

    .skill-tag {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .project-actions {
        flex-direction: column;
        gap: 10px;
    }

    .project-link {
        width: 100%;
        padding: 11px 14px;
        font-size: 0.85rem;
    }

    .skills-list {
        gap: 6px;
    }

    .project-tab {
        padding: 12px 15px;
        font-size: 0.85rem;
    }

    .project-number {
        min-width: 18px;
        font-size: 0.7rem;
    }

    .project-content {
        gap: 15px;
    }

    .project-skills h3 {
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    .header {
        padding: 0 10px;
    }

    .header-container {
        gap: 6px;
    }

    .header-logo {
        font-size: 0.86rem;
    }

    .sidebar-toggle {
        width: 34px;
        height: 34px;
    }

    .projects-container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .project-image-carousel {
        padding: 0;
    }

    .carousel-images-wrapper {
        height: auto;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .nav-btn {
        min-width: 40px;
        padding-left: 8px;
        padding-right: 8px;
    }
}
