/* Academic Projects Page Styles */

/* Hero Section */
.hero-single {
    background: linear-gradient(135deg, #00A6FB 0%, #0582CA 100%);
    color: white;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-single::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-single .container {
    position: relative;
    z-index: 2;
}

.hero-single h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-single p {
    font-size: 1.2rem;
    margin-bottom: 0;
    opacity: 0.9;
}

/* Section Styling */
.academic-projects-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #d9dcd6 0%, #ffffff 100%);
    min-height: 100vh;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #051923;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #00A6FB 0%, #0582CA 100%);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: #003554;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Project Card Styles */
.project-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s ease;
    margin-bottom: 30px;
    height: 100%;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 250px);
}

.project-category {
    background: linear-gradient(45deg, #0582CA 0%, #003554 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    width: fit-content;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #051923;
    margin-bottom: 15px;
    line-height: 1.3;
}

.project-description {
    color: #003554;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tech Stack Tags */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background: #d9dcd6;
    color: #051923;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: #00A6FB;
    color: white;
    transform: translateY(-1px);
}

/* Modal Content */
.modal-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #0582CA 0%, #003554 100%);
    color: white;
    border: none;
    padding: 25px 30px;
}

.modal-title {
    font-weight: 700;
    font-size: 1.5rem;
}

.modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-body h5 {
    color: #051923;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 15px;
}

.modal-body p {
    line-height: 1.7;
    color: #003554;
    margin-bottom: 15px;
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.project-link {
    border: 2px solid #00A6FB;
    color: #00A6FB;
    background: transparent;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 250px;
    justify-content: center;
    text-align: center;
}

.project-link:hover {
    background: #00A6FB;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 166, 251, 0.3);
    text-decoration: none;
    border-color: #00A6FB;
}

.project-link i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Special styling for different link types */
.project-link[href*="github"] {
    border-color: #051923;
    color: #051923;
}

.project-link[href*="github"]:hover {
    background: #051923;
    color: white;
    border-color: #051923;
    box-shadow: 0 8px 25px rgba(5, 25, 35, 0.3);
}

.project-link[href*="drive.google"] {
    border-color: #00A6FB;
    color: #00A6FB;
}

.project-link[href*="drive.google"]:hover {
    background: #00A6FB;
    color: white;
    border-color: #00A6FB;
    box-shadow: 0 8px 25px rgba(0, 166, 251, 0.3);
}

.project-link[href*="linkedin"] {
    border-color: #00A6FB;
    color: #00A6FB;
}

.project-link[href*="linkedin"]:hover {
    background: #00A6FB;
    color: white;
    border-color: #00A6FB;
    box-shadow: 0 8px 25px rgba(0, 166, 251, 0.3);
}

/* Action Buttons */
.project-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-view {
    background: linear-gradient(45deg, #0582CA 0%, #003554 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(5, 130, 202, 0.4);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-single h1 {
        font-size: 2.5rem;
    }
    
    .hero-single p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .project-content {
        padding: 20px;
        height: calc(100% - 200px);
    }
    
    .project-image {
        height: 200px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .project-actions {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .hero-single {
        padding: 80px 0 60px;
    }
    
    .hero-single h1 {
        font-size: 2rem;
    }
    
    .academic-projects-section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .project-content {
        padding: 15px;
    }
    
    .tech-stack {
        gap: 5px;
    }
    
    .tech-tag {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }
.fade-in:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.loading-state {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    flex-direction: column;
    gap: 15px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer Styles */
footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.copyright-box {
    max-width: 600px;
    margin: 0 auto;
}

.copyright {
    margin-bottom: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.credits {
    font-size: 0.8rem;
    opacity: 0.6;
}
