/* ============================================
   PROJECTS PAGE STYLES
   ============================================ */

/* Hero Section */
.projects-hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('../assets/images/sharif_medical.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding-top: 120px;
    padding-bottom: 120px;
    margin-top: 0;
    overflow: hidden;
}

/* Animated Background Shapes */
.projects-hero-animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.projects-hero-floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    animation: projectsHeroFloat 25s infinite ease-in-out;
}

.projects-hero-shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.projects-hero-shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-delay: 3s;
}

.projects-hero-shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 15%;
    animation-delay: 6s;
}

.projects-hero-shape-4 {
    width: 180px;
    height: 180px;
    top: 30%;
    right: 25%;
    animation-delay: 9s;
}

@keyframes projectsHeroFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.4;
    }
    25% {
        transform: translate(40px, -40px) rotate(90deg);
        opacity: 0.6;
    }
    50% {
        transform: translate(-30px, 30px) rotate(180deg);
        opacity: 0.5;
    }
    75% {
        transform: translate(30px, 40px) rotate(270deg);
        opacity: 0.7;
    }
}

.projects-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.75) 0%, rgba(13, 27, 42, 0.65) 100%);
    z-index: 1;
}

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

.projects-hero-content-wrapper {
    position: relative;
    z-index: 3;
    animation: fadeInUp 1s ease-out;
}

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

/* Hero Badge */
.projects-hero-badge {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.projects-hero-badge i {
    color: #4ade80;
}

.projects-hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
    letter-spacing: -0.02em;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.projects-hero-subtitle {
    font-size: 1.75rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.projects-hero-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.5s both;
}

/* Project Statistics */
.projects-hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.projects-stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1.25rem 1.75rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 180px;
}

.projects-stat-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.projects-stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.projects-stat-content {
    text-align: left;
}

.projects-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.projects-stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.projects-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 2rem;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.projects-learn-btn {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 14px 35px;
    border-radius: 28px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.projects-learn-btn:hover {
    background-color: white;
    color: #00399E;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.projects-cta-arrow {
    width: 45px;
    height: 45px;
    transition: transform 0.3s ease;
}

.projects-hero-cta:hover .projects-cta-arrow {
    transform: translateY(-5px);
}

/* Projects Content Section */
.projects-content-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

/* Tabs */
.projects-tabs {
    display: flex;
    /* justify-content: center; */
    gap: 0;
    margin-bottom: 3rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0;
}

.projects-tab {
    background: none;
    border: none;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.projects-tab:hover {
    color: #00399E;
}

.projects-tab.active {
    color: #00399E;
    border-bottom-color: #00399E;
}

/* Project Cards Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Project Card */
.project-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
}

/* .project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: #00399E;
} */

.project-card.active {
    background-color: #00399E;
    border-color: #00399E;
    color: white;
}

.project-card.active .project-name,
.project-card.active .project-capacity,
.project-card.active .project-location {
    color: white;
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    padding: 1rem;
    border-radius: 30px;
}

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

.project-card-body {
    padding: 1.5rem;
}

.project-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: black;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.project-card.active .project-name {
    color: white;
}

.project-capacity {
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 0.5rem;
}

.project-card.active .project-capacity {
    color: rgba(255, 255, 255, 0.9);
}

.project-location {
    font-size: 0.95rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-card.active .project-location {
    color: rgba(255, 255, 255, 0.9);
}

.project-location i {
    font-size: 0.9rem;
}

/* Empty State */
.projects-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.projects-empty p {
    font-size: 1.1rem;
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .projects-hero-section {
        background-attachment: scroll;
    }
    
    .projects-hero-title {
        font-size: 3.5rem;
    }
    
    .projects-hero-subtitle {
        font-size: 1.5rem;
    }
    
    .projects-hero-description {
        font-size: 1.05rem;
    }
    
    .projects-hero-stats {
        gap: 2rem;
    }
    
    .projects-stat-item {
        min-width: 160px;
        padding: 1rem 1.5rem;
    }
    
    .projects-stat-number {
        font-size: 1.75rem;
    }
    
    .projects-stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .projects-hero-section {
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 80px;
    }
    
    .projects-hero-title {
        font-size: 2.5rem;
    }
    
    .projects-hero-subtitle {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .projects-hero-description {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }
    
    .projects-hero-badge {
        padding: 0.65rem 1.5rem;
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    
    .projects-hero-stats {
        gap: 1.5rem;
        margin: 2.5rem 0 2.5rem;
    }
    
    .projects-stat-item {
        min-width: 140px;
        padding: 1rem 1.25rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .projects-stat-content {
        text-align: center;
    }
    
    .projects-stat-number {
        font-size: 1.5rem;
    }
    
    .projects-stat-label {
        font-size: 0.8rem;
    }
    
    .projects-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .projects-content-section {
        padding: 60px 0;
    }
    
    .projects-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .projects-tab {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-image-wrapper {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .projects-hero-section {
        min-height: 100vh;
        padding-top: 80px;
        padding-bottom: 60px;
    }
    
    .projects-hero-title {
        font-size: 2rem;
    }
    
    .projects-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .projects-hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .projects-hero-badge {
        padding: 0.6rem 1.25rem;
        font-size: 0.8rem;
        margin-bottom: 1.25rem;
    }
    
    .projects-hero-stats {
        gap: 1rem;
        margin: 2rem 0 2rem;
    }
    
    .projects-stat-item {
        min-width: calc(50% - 0.5rem);
        padding: 0.875rem 1rem;
    }
    
    .projects-stat-number {
        font-size: 1.35rem;
    }
    
    .projects-stat-label {
        font-size: 0.75rem;
    }
    
    .projects-learn-btn {
        padding: 12px 28px;
        font-size: 0.9rem;
    }
    
    .projects-cta-arrow {
        width: 35px;
        height: 35px;
    }
    
    .projects-tab {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .project-card-body {
        padding: 1.25rem;
    }
    
    .project-name {
        font-size: 1.25rem;
    }
}

