/* Projects Section - Sidebar Layout Design */

.projects-section {
    position: relative;
    min-height: 77vh;
    background: #f1f5f7;
    overflow: hidden;
    padding: 10px 0 9px;
}


/* Background watermark text */

.projects-section::before {
    content: 'COMPANY';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    z-index: 1;
    pointer-events: none;
}


/* Section Header */

.projects-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
}

.projects-title {
    font-size: 1.5 rem;
    font-weight: 600;
    color: #014e60;
    margin-bottom: -30px;
    letter-spacing: -1px;
    padding: 16px 0;
}

.projects-subtitle {
    font-size: 1.1rem;
    color: #012B3D;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}


/* Projects Container */

.projects-grid {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    z-index: 10;
}

.projects-container {
    display: flex;
    gap: 40px;
    min-height: 450px;
    /* Reduced from 600px */
}


/* Left Sidebar - Project List */

.projects-sidebar {
    flex: 0 0 300px;
    /* Reduced from 350px */
    background: #ffffff;
    border-radius: 20px;
    padding: 25px;
    /* Reduced from 30px */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(1, 78, 96, 0.1);
    height: fit-content;
    max-height: 460px;
    /* Match right side height */
    overflow: hidden;
    /* Remove scroll */
}

.project-item {
    background: #f8fafc;
    border-radius: 15px;
    padding: 7px;
    /* Reduced from 15px */
    margin-bottom: 5px;
    /* Reduced from 12px */
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(1, 78, 96, 0.1);
    position: relative;
}

.project-item:hover {
    background: #e2e8f0;
    transform: translateX(5px);
}

.project-item.active {
    background: #014e60;
    color: white;
    transform: translateX(10px);
}

.project-item.active .project-item-title,
.project-item.active .project-item-description {
    color: white;
}

.project-item-icon {
    width: 30px;
    /* Reduced from 35px */
    height: 30px;
    /* Reduced from 35px */
    background: linear-gradient(135deg, #014e60, #012B3D);
    border-radius: 6px;
    /* Reduced from 8px */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    /* Reduced from 1rem */
    margin-bottom: 8px;
    /* Reduced from 12px */
    box-shadow: 0 4px 15px rgba(1, 78, 96, 0.3);
}

.project-item.active .project-item-icon {
    background: white;
    color: #014e60;
}

.project-item-title {
    font-size: 0.9rem;
    /* Reduced from 1rem */
    font-weight: 700;
    color: #014e60;
    margin-bottom: 4px;
    /* Reduced from 6px */
    /* line-height: 0.3; */
}

.project-item-description {
    font-size: 0.75rem;
    /* Reduced from 0.85rem */
    color: #64748b;
    line-height: 1.4;
}


/* Right Content Area */

.project-details {
    flex: 1;
    background: #ffffff;
    border-radius: 20px;
    padding: 25px;
    /* Reduced from 30px */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(1, 78, 96, 0.1);
    display: flex;
    flex-direction: column;
    max-height: 730px;
    /* Added max-height to match container */
    overflow: hidden;
    /* Remove scroll */
}

.project-details-header {
    margin-bottom: 15px;
    /* Reduced from 20px */
}

.project-details-title {
    font-size: 1rem;
    font-weight: 800;
    color: #014e60;
    margin-bottom: 2px;
    line-height: 1.2;
}

.project-details-title::after {
    content: '';
    position: relative;
    display: block;
    width: 50px;
    /* Reduced from 60px */
    height: 3px;
    /* Reduced from 4px */
    background: #014e60;
    border-radius: 2px;
    margin-top: 8px;
    /* Reduced from 12px */
}

.project-details-description {
    font-size: 0.9rem;
    /* Reduced from 1rem */
    color: #012B3D;
    line-height: 1.5;
    margin-bottom: 15px;
    /* Reduced from 20px */
}

.project-details-content {
    display: flex;
    gap: 25px;
    /* Reduced from 30px */
    flex: 1;
}

.project-details-text {
    flex: 1;
}

.project-details-image {
    flex: 0 0 400px;
    /* Reduced from 280px */
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    max-height: 415px;
    /* Reduced from 350px */
}

.project-details-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-features {
    margin-top: 15px;
    /* Reduced from 20px */
}

.project-features h3 {
    font-size: 1rem;
    /* Reduced from 1.2rem */
    font-weight: 700;
    color: #014e60;
    margin-bottom: 10px;
    /* Reduced from 15px */
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 6px 0;
    /* Reduced from 10px */
    border-bottom: 1px solid rgba(1, 78, 96, 0.1);
    font-size: 0.85rem;
    /* Reduced from 0.95rem */
    color: #012B3D;
    line-height: 1.4;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item::before {
    content: '✓';
    color: #014e60;
    font-weight: bold;
    margin-right: 8px;
    /* Reduced from 12px */
    font-size: 0.9rem;
    /* Reduced from 1.1rem */
}

.project-stats {
    background: rgba(1, 78, 96, 0.05);
    border-radius: 15px;
    padding: 8px;
    margin-top: -12px;
    border: 1px solid rgba(1, 78, 96, 0.1);
}

.project-stats h4 {
    font-size: 1rem;
    /* Reduced from 1.1rem */
    font-weight: 700;
    color: #014e60;
    margin-bottom: 8px;
    /* Reduced from 12px */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    /* Reduced from 15px */
}

.stat-item {
    text-align: center;
    padding: 8px;
    /* Reduced from 12px */
    background: white;
    border-radius: 8px;
    /* Reduced from 10px */
    border: 1px solid rgba(1, 78, 96, 0.1);
}

.stat-number {
    font-size: 1.5rem;
    /* Reduced from 1.8rem */
    font-weight: 800;
    color: #014e60;
    display: block;
}

.stat-label {
    font-size: 0.75rem;
    /* Reduced from 0.85rem */
    color: #64748b;
    margin-top: 2px;
    /* Reduced from 4px */
}


/* Default state - show first project */

.project-item:first-child {
    background: #014e60;
    color: white;
    transform: translateX(10px);
}

.project-item:first-child .project-item-title,
.project-item:first-child .project-item-description {
    color: white;
}

.project-item:first-child .project-item-icon {
    background: white;
    color: #014e60;
}


/* Responsive Design */

@media (max-width: 1200px) {
    .projects-container {
        flex-direction: column;
        gap: 30px;
        min-height: auto;
        /* Remove min-height on mobile */
    }
    .projects-sidebar {
        flex: none;
        width: 100%;
        max-height: none;
        /* Remove max-height on mobile */
        overflow: visible;
        /* Remove scroll on mobile */
    }
    .project-details-content {
        flex-direction: column;
    }
    .project-details-image {
        flex: none;
        height: 250px;
        max-height: none;
        /* Remove max-height on mobile */
    }
    .project-details {
        max-height: none;
        /* Remove max-height on mobile */
        overflow: visible;
        /* Remove scroll on mobile */
    }
}

@media (max-width: 768px) {
    .projects-section {
        padding: 40px 0 30px;
    }
    .projects-title {
        font-size: 2.5rem;
    }
    .project-details-title {
        font-size: 2rem;
    }
    .projects-grid {
        padding: 0 1rem;
    }
    .project-details {
        padding: 25px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .projects-sidebar {
        padding: 20px;
    }
    .project-item {
        padding: 15px;
    }
    .project-details {
        padding: 20px;
    }
    .project-details-title {
        font-size: 1.8rem;
    }
    .project-details-image {
        height: 200px;
    }
}