/* Project Details Page */
.project-details {
    padding-top: 5rem;
    background-color: #ffffff;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Ensure dark mode compatibility */
.dark-theme .project-details {
    background-color: var(--body-color);
}

.project-header {
    text-align: center;
    padding: 2rem 1rem 4rem;
    background: var(--first-color);
    color: white;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.project-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.project-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.customer-info {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 1.2rem;
    margin: 1.5rem auto 0;
    max-width: 800px;
    text-align: center;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.customer-info p {
    margin: 0.5rem 0;
    display: inline-block;
    margin-right: 2rem;
}

.customer-info p:last-child {
    margin-right: 0;
}

.customer-info strong {
    font-weight: 600;
    margin-right: 0.5rem;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto 2rem;
    padding: 1rem 0 3rem;
    z-index: 2;
    overflow: visible;
    min-height: 0;
    height: auto;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    align-items: center;
    width: 100%;
    padding: 30px 0 40px;
    height: 100%;
}

.carousel-slide {
    flex: 0 0 50%;
    padding: 0 15px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
    transform: scale(0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    aspect-ratio: 1980 / 918;
    height: 60vh;
    min-height: 350px;
    max-height: 600px;
}

.carousel-slide.active {
    flex: 0 0 70%;
    opacity: 1;
    transform: scale(1);
    z-index: 2;
    padding: 0 20px;
    height: 70vh;
    min-height: 450px;
    max-height: 700px;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Show full image without cropping */
    border-radius: 4px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background-color: #f5f5f5; /* Light background for transparent images */
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    color: var(--first-color);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.carousel-button:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.carousel-button.prev {
    left: 1.5rem;
}

.carousel-button.next {
    right: 1.5rem;
}

/* Project Info */
.project-info {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 2rem auto 4rem;
    flex-wrap: wrap;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.info-item {
    text-align: center;
    padding: 0 1.5rem;
}

.info-item h3 {
    font-size: 1.1rem;
    color: var(--first-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.info-item p {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
    margin: 0;
}

/* Project Description */
.project-description {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem 6rem;
}

.section-title {
    position: relative;
    font-size: 2rem;
    color: var(--title-color);
    margin-bottom: 2.5rem;
    text-align: center;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 80px;
    height: 4px;
    background: var(--first-color);
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.7rem;
    margin-bottom: 1.8rem;
    color: var(--first-color);
    position: relative;
    padding-bottom: 0.8rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    display: inline-block;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: var(--first-color);
    border-radius: 2px;
}

.description-text, .closing-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.8rem;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Features List */
.features-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0 2.5rem;
    display: grid;
    gap: 0.8rem;
}

/* Special styling for data methods list */
.features-list.data-methods {
    margin: 2rem 0 2.5rem;
    display: grid;
    gap: 1.2rem;
}

.features-list.data-methods li {
    position: relative;
    padding: 1.2rem 1.5rem 1.2rem 3.5rem;
    background: rgba(var(--first-color-rgb), 0.05);
    border-left: 4px solid var(--first-color);
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.features-list.data-methods li::before {
    content: '•';
    position: absolute;
    left: 1rem;
    color: var(--first-color);
    font-size: 2.8rem;
    line-height: 1;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
}

.features-list.data-methods li:hover {
    transform: translateX(8px);
    background: rgba(var(--first-color-rgb), 0.08);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Dark theme adjustments for data methods */
.dark-theme .features-list.data-methods li {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--first-color);
}

.dark-theme .features-list.data-methods li:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Role Sections Styling */
.role-section {
    margin-bottom: 2.5rem;
    position: relative;
    padding: 1.5rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.role-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Patient Section Specific */
.patient-section {
    border-top: 4px solid #4CAF50;
}

.patient-section .feature-subtitle i {
    color: #4CAF50;
}

/* Doctor Section Specific */
.doctor-section {
    border-top: 4px solid #2196F3;
}

.doctor-section .feature-subtitle i {
    color: #2196F3;
}

/* Admin Section Specific */
.admin-section {
    border-top: 4px solid #9C27B0;
}

.admin-section .feature-subtitle i {
    color: #9C27B0;
}

/* Role Features List */
.role-features {
    margin: 1.2rem 0 0.5rem !important;
}

.role-features li {
    position: relative;
    padding: 0.8rem 1rem 0.8rem 3rem !important;
    margin-bottom: 0.8rem !important;
    background: white !important;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border-left: 3px solid #ddd;
}

.role-features li i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #666;
    transition: all 0.3s ease;
}

.role-features li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.role-features li:hover i {
    transform: translateY(-50%) scale(1.2);
}

/* Patient list items */
.patient-section .role-features li {
    border-left-color: #4CAF50;
}

.patient-section .role-features li i {
    color: #4CAF50;
}

/* Doctor list items */
.doctor-section .role-features li {
    border-left-color: #2196F3;
}

.doctor-section .role-features li i {
    color: #2196F3;
}

/* Admin list items */
.admin-section .role-features li {
    border-left-color: #9C27B0;
}

.admin-section .role-features li i {
    color: #9C27B0;
}

/* Dark Theme Adjustments */
.dark-theme .role-section {
    background: rgba(255, 255, 255, 0.03);
}

.dark-theme .role-features li {
    background: rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Features Grid Layout */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    border-radius: 10px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--first-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--first-color);
    margin-bottom: 1.2rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.feature-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--title-color);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Dark Theme Adjustments */
.dark-theme .feature-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.dark-theme .feature-card h4 {
    color: #f0f0f0;
}

.dark-theme .feature-card p {
    color: #d0d0d0;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .role-section {
        padding: 1.2rem;
    }
    
    .role-features li {
        padding: 0.8rem 0.8rem 0.8rem 2.8rem !important;
    }
    
    .role-features li i {
        left: 0.8rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .feature-card {
        padding: 1.8rem 1.2rem;
    }

    .feature-card i {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    position: relative;
    padding: 0.8rem 1.2rem 0.8rem 2.5rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.2rem;
    background: rgba(var(--first-color-rgb), 0.05);
    padding: 1.5rem 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--first-color);
}

.feature-item:hover {
    transform: translateX(10px);
    background: rgba(var(--first-color-rgb), 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-item i {
    color: var(--first-color);
    font-size: 1.5rem;
    margin-right: 1.5rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.feature-item span {
    flex: 1;
    line-height: 1.6;
}

/* Project Actions */
.project-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.button {
    display: inline-block;
    background-color: var(--first-color);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    min-width: 200px;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(var(--first-color-rgb), 0.3);
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(var(--first-color-rgb), 0.4);
    background-color: var(--first-color-alt);
}

/* Responsive Styles */
@media (max-width: 1400px) {
    .carousel-slide {
        flex: 0 0 60%;
        height: 55vh;
    }
    
    .carousel-slide.active {
        flex: 0 0 80%;
        height: 65vh;
    }
    
    .project-info {
        gap: 2rem;
        padding: 2rem;
    }
}

/* Footer styles to match main site */
.project-footer {
    margin-top: auto;
    padding: 2rem 0;
    background: var(--body-color);
    border-top: 1px solid var(--border-color);
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__socials {
    display: flex;
    gap: 1.5rem;
}

.footer__social-link {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer__social-link:hover {
    color: var(--first-color);
}

.footer__copy {
    color: var(--text-color-light);
    font-size: 0.9rem;
}

.theme-toggle {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 100;
    background: var(--container-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0,0.15);
}

.theme-toggle i {
    font-size: 1.5rem;
    color: var(--text-color);
}

@media (max-width: 992px) {
    .project-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .carousel-container {
        padding: 0.5rem 0 2rem;
    }
    
    .carousel-slide {
        flex: 0 0 90%;
        height: 50vh;
        min-height: 350px;
        padding: 0 10px;
    }
    
    .carousel-slide.active {
        flex: 0 0 95%;
        height: 60vh;
        min-height: 400px;
        padding: 0 15px;
    }
    
    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .carousel-button.prev {
        left: 5px;
    }
    
    .carousel-button.next {
        right: 5px;
    }
    
    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .project-info {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .info-item {
        width: 100%;
        padding: 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1.3rem;
    }
    
    .feature-item {
        padding: 1.25rem;
    }
    
    .project-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .button {
        width: 100%;
    }
}

/* Dark Theme */
.dark-theme .project-info {
    background: var(--container-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.dark-theme .feature-item {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--first-color-light);
}

.dark-theme .feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dark-theme .carousel-img {
    background: var(--container-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}
