/* ============================================
   PROJECTS PAGE - GREENFAJ SOLUTIONS
   ============================================ */

/* Hero Section with Video */
.page-hero.video-hero {
    position: relative;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 10%;
}

.page-hero.video-hero .hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page-hero.video-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-hero.video-hero .hero-content {
    position: relative;
    z-index: 2;
}

.page-hero.video-hero h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-hero.video-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* ========== HORIZONTAL PROJECTS LAYOUT ========== */
.projects-section.horizontal-layout {
    padding: 5rem 10%;
    background: linear-gradient(135deg, rgba(240, 247, 237, 0.35), rgba(27, 94, 42, 0.30));
    backdrop-filter: blur(2px);
    position: relative;
}

.projects-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.projects-header .section-tag {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 1rem;
}

.projects-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.projects-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
}

/* Horizontal Scroll Container */
.projects-horizontal-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 1rem 0.5rem;
    margin: 0 -0.5rem;
}

.projects-horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}

.projects-horizontal-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.projects-horizontal-scroll::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 10px;
}

/* Projects Track */
.projects-track {
    display: flex;
    gap: 2rem;
    width: fit-content;
}

/* Horizontal Project Card */
.project-card-horizontal {
    flex: 0 0 auto;
    width: 380px;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.project-card-horizontal:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.project-card-horizontal .project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-card-horizontal .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card-horizontal:hover .project-image img {
    transform: scale(1.08);
}

.project-card-horizontal .project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
}

.project-badge.completed {
    background-color: #28a745;
}

/* Project Content */
.project-card-horizontal .project-content {
    padding: 1.5rem;
}

.project-card-horizontal .project-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-green);
}

.project-card-horizontal .project-location {
    font-size: 0.8rem;
    color: var(--accent-gold);
    margin-bottom: 0.8rem;
}

.project-card-horizontal .project-location i {
    margin-right: 5px;
}

/* CRITICAL FIX - Description paragraph */
.project-card-horizontal .project-content > p {
    display: block !important;
    color: #333333 !important;
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Project Stats */
.project-card-horizontal .project-stats {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid #eee;
}

.project-card-horizontal .project-stats span {
    font-size: 0.7rem;
    color: var(--primary-green);
    font-weight: 500;
}

.project-card-horizontal .project-stats i {
    margin-right: 4px;
    color: var(--accent-gold);
}

/* Scroll Buttons */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: var(--accent-gold);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.scroll-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-50%) scale(1.1);
}

.scroll-left {
    left: 20px;
}

.scroll-right {
    right: 20px;
}

/* View All / Show Less Buttons */
.projects-view-buttons {
    text-align: center;
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.view-all-btn,
.show-less-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background-color: var(--accent-gold);
    color: var(--primary-green);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.view-all-btn:hover,
.show-less-btn:hover {
    background-color: var(--accent-dark);
    transform: scale(1.05);
}

/* Impact Stats Section */
.impact-stats {
    padding: 5rem 10%;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-light));
    text-align: center;
}

.impact-stats .section-title {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.impact-stats .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.impact-item {
    text-align: center;
}

.impact-number {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.impact-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

/* ========== TRUSTED PARTNERS SECTION ========== */
.partners-section {
    position: relative;
    padding: 5rem 10%;
    text-align: center;
    overflow: hidden;
}

.partners-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.partners-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.partners-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 94, 42, 0.45);
    z-index: 1;
}

.partners-section .container {
    position: relative;
    z-index: 2;
}

.partners-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.partners-header .section-tag {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 1rem;
}

.partners-header .section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.partners-header .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
}

.enhanced-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.enhanced-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
}

.partner-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-light));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.enhanced-card:hover .partner-hover-effect {
    opacity: 1;
}

.enhanced-card .partner-logo-circle,
.enhanced-card h3,
.enhanced-card p,
.enhanced-card .partner-type {
    position: relative;
    z-index: 1;
}

.partner-logo-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem auto;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.partner-logo-circle i {
    font-size: 2.5rem;
    color: white;
    transition: all 0.4s ease;
}

.enhanced-card:hover .partner-logo-circle {
    background: var(--accent-gold);
    transform: scale(1.1) rotate(5deg);
}

.enhanced-card:hover .partner-logo-circle i {
    color: var(--primary-green);
}

.enhanced-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-green);
    transition: color 0.3s ease;
}

.enhanced-card p {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.enhanced-card .partner-type {
    display: inline-block;
    background-color: var(--bg-soft);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-green);
    transition: all 0.3s ease;
}

.enhanced-card:hover h3,
.enhanced-card:hover p,
.enhanced-card:hover .partner-type {
    color: white;
}

.enhanced-card:hover .partner-type {
    background-color: rgba(255, 255, 255, 0.25);
}

.enhanced-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.enhanced-card {
    opacity: 0;
    animation: cardFadeInUp 0.6s ease forwards;
}

@keyframes cardFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.enhanced-card[data-aos-delay="0"] { animation-delay: 0s; }
.enhanced-card[data-aos-delay="50"] { animation-delay: 0.05s; }
.enhanced-card[data-aos-delay="100"] { animation-delay: 0.1s; }
.enhanced-card[data-aos-delay="150"] { animation-delay: 0.15s; }
.enhanced-card[data-aos-delay="200"] { animation-delay: 0.2s; }
.enhanced-card[data-aos-delay="250"] { animation-delay: 0.25s; }
.enhanced-card[data-aos-delay="300"] { animation-delay: 0.3s; }
.enhanced-card[data-aos-delay="350"] { animation-delay: 0.35s; }
.enhanced-card[data-aos-delay="400"] { animation-delay: 0.4s; }
.enhanced-card[data-aos-delay="450"] { animation-delay: 0.45s; }
.enhanced-card[data-aos-delay="500"] { animation-delay: 0.5s; }
.enhanced-card[data-aos-delay="550"] { animation-delay: 0.55s; }

.partners-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.partners-footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-style: italic;
}

/* ========== PROJECTS GALLERY SECTION ========== */
.projects-gallery-section {
    padding: 5rem 10%;
    background: linear-gradient(135deg, rgba(240, 247, 237, 0.35), rgba(27, 94, 42, 0.30));
    backdrop-filter: blur(2px);
}

.gallery-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.gallery-header .section-tag {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 1rem;
}

.gallery-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.gallery-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay span {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.gallery-footer {
    text-align: center;
    margin-top: 1rem;
}

/* ========== RELATIONSHIPS & CTA SECTION ========== */
.relationships-cta-section {
    position: relative;
    padding: 5rem 10%;
    text-align: center;
    overflow: hidden;
    min-height: 550px;
}

.relationships-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.relationships-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.relationships-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(27, 94, 42, 0.8), rgba(26, 58, 34, 0.6), rgba(26, 58, 34, 0.2));
    z-index: 1;
}

.relationships-cta-section .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.relationships-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--accent-gold);
}

.relationships-cta-section h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.relationships-cta-section .btn {
    margin-bottom: 1.5rem;
}

.relationships-cta-section .relationships-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.relationships-values {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.value-item i {
    font-size: 2rem;
    color: var(--accent-gold);
}

.value-item span {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: white;
}

.cta-divider {
    width: 80px;
    height: 3px;
    background-color: var(--accent-gold);
    margin: 2rem auto;
    border-radius: 3px;
}

.cta-content h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .projects-section.horizontal-layout {
        padding: 3rem 5%;
    }
    
    .partners-section,
    .impact-stats,
    .projects-gallery-section {
        padding: 3rem 5%;
    }
    
    .project-card-horizontal {
        width: 330px;
    }
    
    .scroll-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .scroll-left { left: 10px; }
    .scroll-right { right: 10px; }
    
    .enhanced-grid { gap: 1.5rem; }
    .partner-logo-circle { width: 70px; height: 70px; }
    .partner-logo-circle i { font-size: 2rem; }
}

@media (max-width: 768px) {
    .page-hero.video-hero {
        min-height: 250px;
        padding: 2rem 5%;
    }
    
    .page-hero.video-hero h1 { font-size: 1.8rem; }
    .projects-header h2 { font-size: 1.5rem; }
    
    .project-card-horizontal {
        width: 300px;
    }
    
    .project-card-horizontal .project-image { height: 180px; }
    .project-card-horizontal .project-content { padding: 1rem; }
    .project-card-horizontal .project-content h3 { font-size: 1rem; }
    
    .scroll-btn { display: none; }
    
    .view-all-btn,
    .show-less-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .enhanced-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
    }
    
    .enhanced-card { padding: 1.5rem 1rem; }
    .partner-logo-circle { width: 60px; height: 60px; }
    .partner-logo-circle i { font-size: 1.8rem; }
    .enhanced-card h3 { font-size: 0.9rem; }
    
    .impact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .impact-number { font-size: 2rem; }
    
    .relationships-cta-section { min-height: 450px; }
    .relationships-cta-section h2 { font-size: 1.5rem; }
    .relationships-icon { font-size: 3rem; }
    .relationships-values { gap: 1.5rem; }
    .value-item i { font-size: 1.5rem; }
    .cta-divider { width: 60px; margin: 1.5rem auto; }
    .cta-content h3 { font-size: 1.3rem; }
    
    .gallery-header h2 { font-size: 1.5rem; }
    .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
    .gallery-overlay { padding: 0.8rem; }
    .gallery-overlay span { font-size: 0.7rem; }
}

@media (max-width: 480px) {
    .project-card-horizontal { width: 280px; }
    .impact-grid { grid-template-columns: 1fr; }
    .project-stats { flex-direction: column; align-items: center; }
    .relationships-values { flex-direction: column; gap: 1rem; }
}