/* ===================================
   PROJECTS PAGE SPECIFIC STYLES
   =================================== */

/* ===================================
   PAGE HEADER SECTION
   =================================== */
   .page-header-section {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.page-header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.85) 100%
    );
    z-index: 2;
}

.page-header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    width: 100%; /* Added for better mobile display */
    padding: 0 20px; /* Added padding for mobile display */
}

.breadcrumb-nav {
    margin-bottom: var(--spacing-lg);
}

.breadcrumb {
    background: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.breadcrumb-item {
    font-size: var(--fs-sm);
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--white);
}

.breadcrumb-item.active {
    color: var(--white);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: rgba(255, 255, 255, 0.6);
}

.page-header-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--fw-extrabold);
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    /* Added to ensure line breaks on small screens */
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
}

.page-header-subtitle {
    font-size: var(--fs-xl);
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    /* Added to ensure line breaks on small screens */
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
}



/* ===================================
   PORTFOLIO STATISTICS SECTION
   =================================== */
.portfolio-stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
}

.stat-card {
    background: var(--white);
    padding: var(--spacing-2xl);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-normal);
    border: 1px solid var(--gray-200);
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    transition: var(--transition-normal);
}

.stat-card:hover .stat-icon {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    transform: scale(1.1);
}

.stat-icon i {
    font-size: var(--fs-2xl);
    color: var(--white);
}

.stat-number {
    font-size: var(--fs-5xl);
    font-weight: var(--fw-extrabold);
    color: var(--gray-800);
    display: block;
    margin-bottom: var(--spacing-sm);
}

.stat-label {
    font-size: var(--fs-lg);
    color: var(--gray-600);
    font-weight: var(--fw-medium);
    margin: 0;
}

/* ===================================
   PROJECT FILTER SECTION
   =================================== */
.project-filter-section {
    padding: 100px 0 60px;
    background: var(--white);
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--fw-bold);
    color: var(--gray-800);
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
}

.section-subtitle {
    font-size: var(--fs-lg);
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto var(--spacing-3xl);
    line-height: 1.6;
    text-align: center; /* Ensure this is set to center */
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-3xl);
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 12px 24px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    color: var(--gray-700);
    font-weight: var(--fw-medium);
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(245, 158, 11, 0.05);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-color: var(--primary-color);
    color: var(--white);
}

.filter-btn i {
    font-size: var(--fs-lg);
}

/* ===================================
   PROJECTS PORTFOLIO SECTION
   =================================== */
.projects-portfolio-section {
    padding: 40px 0 100px;
    background: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
}

.project-item {
    opacity: 1;
    transform: scale(1);
    transition: var(--transition-normal);
}

.project-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.project-card {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-normal);
    border: 1px solid var(--gray-200);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(245, 158, 11, 0.9) 0%,
        rgba(5, 150, 105, 0.9) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--spacing-xl);
    opacity: 0;
    transition: var(--transition-normal);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    color: var(--white);
}

.project-title {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.project-category {
    font-size: var(--fs-base);
    opacity: 0.9;
    margin-bottom: var(--spacing-lg);
    font-weight: var(--fw-medium);
}

.project-meta {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--fs-sm);
    opacity: 0.9;
}

.meta-item i {
    font-size: var(--fs-sm);
}

.project-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

.action-btn {
    width: 50px;
    height: 50px;
    background: var(--white);
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
}

.action-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: scale(1.1);
}

.project-content {
    padding: var(--spacing-xl);
}

.project-name {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--gray-800);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.project-brief {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.tag {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 4px 12px;
    border-radius: var(--border-radius-md);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    transition: var(--transition-fast);
}

.tag:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Load More Section */
.load-more-section {
    margin-top: var(--spacing-3xl);
}

.load-more-btn {
    padding: 16px 32px;
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
}




/* ===================================
   TESTIMONIALS SECTION
   =================================== */
.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    
}

.testimonials-section .section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-3xl);
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto var(--spacing-2xl);
}

.testimonial-item {
    display: none;
    opacity: 0;
    transition: var(--transition-normal);
}

.testimonial-item.active {
    display: block;
    opacity: 1;
}

.testimonial-content {
    background: var(--white);
    padding: var(--spacing-3xl);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
}

.testimonial-text {
    margin-bottom: var(--spacing-2xl);
    position: relative;
}

.quote-icon {
    font-size: var(--fs-3xl);
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    opacity: 0.3;
}

.testimonial-text p {
    font-size: var(--fs-lg);
    line-height: 1.7;
    color: var(--gray-700);
    font-style: italic;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    justify-content: center;
}

.author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--primary-color);
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    text-align: left;
}

.author-name {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--gray-800);
    margin-bottom: var(--spacing-xs);
}

.author-position {
    font-size: var(--fs-base);
    color: var(--gray-600);
    margin-bottom: var(--spacing-sm);
}

.testimonial-rating {
    display: flex;
    gap: 2px;
}

.testimonial-rating i {
    color: var(--secondary-color);
    font-size: var(--fs-sm);
}

/* Testimonial Navigation */
.testimonial-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
}

.nav-btn {
    width: 50px;
    height: 50px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--gray-600);
}

.nav-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.testimonial-dots {
    display: flex;
    gap: var(--spacing-sm);
}

.testimonial-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: var(--transition-fast);
}

.testimonial-dots .dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* ===================================
   PROJECTS CTA SECTION
   =================================== */
.projects-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--fw-bold);
    margin-bottom: var(--spacing-md);
    color: var(--white);
}

.cta-subtitle {
    font-size: var(--fs-lg);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.cta-features {
    display: flex;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-xl);
}

.cta-features .feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.cta-features .feature i {
    color: var(--secondary-color);
    font-size: var(--fs-lg);
}

.cta-features .feature span {
    font-weight: var(--fw-medium);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* ===================================
   PROJECT MODAL STYLES
   =================================== */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    overflow-y: auto;
}

.project-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.modal-close:hover {
    background: var(--danger);
    color: var(--white);
}

.modal-header {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
}

.modal-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-header-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--white);
    padding: var(--spacing-xl);
}

.modal-body {
    padding: var(--spacing-2xl);
}

.modal-project-title {
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    color: var(--gray-800);
    margin-bottom: var(--spacing-md);
}

.modal-project-category {
    font-size: var(--fs-lg);
    color: var(--primary-color);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--spacing-lg);
}

.project-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.detail-item {
    padding: var(--spacing-md);
    background: var(--gray-50);
    border-radius: var(--border-radius-md);
    text-align: center;
}

.detail-label {
    font-size: var(--fs-sm);
    color: var(--gray-600);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-xs);
}

.detail-value {
    font-size: var(--fs-lg);
    color: var(--gray-800);
    font-weight: var(--fw-bold);
}

.project-description {
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: var(--spacing-xl);
}

.project-features {
    margin-bottom: var(--spacing-xl);
}

.project-features h4 {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--gray-800);
    margin-bottom: var(--spacing-lg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--gray-50);
    border-radius: var(--border-radius-md);
}

.feature-item i {
    color: var(--primary-color);
    font-size: var(--fs-lg);
}

.feature-item span {
    font-weight: var(--fw-medium);
    color: var(--gray-700);
}

.modal-gallery {
    margin-top: var(--spacing-xl);
}

.modal-gallery h4 {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--gray-800);
    margin-bottom: var(--spacing-lg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-fast);
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Large devices (desktops, 992px and up) */
@media (max-width: 991.98px) {
    .page-header-section {
        height: 50vh;
        min-height: 350px;
    }
    
    .portfolio-stats-section,
    .project-filter-section,
    .projects-portfolio-section,
    .testimonials-section {
        padding: 80px 0;
    }
    
    .projects-cta-section {
        padding: 60px 0;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: var(--spacing-lg);
    }
    
    .filter-buttons {
        gap: var(--spacing-sm);
    }
    
    .cta-buttons {
        justify-content: center;
        margin-top: var(--spacing-lg);
    }
    
    .cta-features {
        justify-content: center;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 767.98px) {
    .page-header-section {
        height: auto; /* Change to auto to fit content */
        min-height: 280px; /* Reduced minimum height */
        padding: 60px 0; /* Added vertical padding */
    }
    
    .page-header-content {
        padding: 0 15px;
    }
    
    .page-header-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem); /* Reduced font size */
        line-height: 1.2; /* Improved line height */
        margin-bottom: 10px; /* Reduced margin */
    }
    
    .page-header-subtitle {
        font-size: var(--fs-md, 1rem); /* Smaller subtitle */
        line-height: 1.4; /* Improved line height */
    }

    .portfolio-stats-section,
    .project-filter-section,
    .projects-portfolio-section,
    .testimonials-section {
        padding: 60px 0;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        min-width: 200px;
        justify-content: center;
    }
    
    .project-image {
        height: 200px;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .author-info {
        text-align: center;
    }
    
    .testimonial-nav {
        gap: var(--spacing-md);
    }
    
    .modal-content {
        margin: var(--spacing-md);
    }
    
    .modal-header {
        height: 250px;
    }
    
    .cta-features {
        flex-direction: column;
        align-items: center;
    }

    .section-subtitle {
        text-align: center;
        padding: 0 15px;
        max-width: 100%;
    }
    
    .testimonials-section .section-subtitle {
        text-align: center;
        padding: 0 15px;
        max-width: 100%;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
    .page-header-section {
        height: auto; /* Change to auto to fit content */
        min-height: 250px;
        padding: 50px 0; /* Added vertical padding */
    }
    
    .page-header-content {
        padding: 0 10px; /* Reduced padding */
    }
    
    .page-header-title {
        font-size: clamp(1.6rem, 3vw, 2rem); /* Further reduced font size */
        line-height: 1.2;
        margin-bottom: 8px;
    }
    
    .page-header-subtitle {
        font-size: 0.9rem; /* Fixed size for smallest screens */
        line-height: 1.4;
    }
    
    .portfolio-stats-section,
    .project-filter-section,
    .projects-portfolio-section,
    .testimonials-section {
        padding: 40px 0;
    }
    
    .projects-cta-section {
        padding: 40px 0;
    }
    
    .section-badge {
        font-size: var(--fs-xs);
        padding: 6px 16px;
    }
    
    .project-image {
        height: 180px;
    }
    
    .project-content {
        padding: var(--spacing-lg);
    }
    
    .project-overlay {
        padding: var(--spacing-lg);
    }
    
    .testimonial-content {
        padding: var(--spacing-xl);
    }
    
    .modal-header {
        height: 200px;
    }
    
    .modal-body {
        padding: var(--spacing-lg);
    }
    
    .project-details-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        min-width: 200px;
    }
    
    .author-image {
        width: 60px;
        height: 60px;
    }

    .section-subtitle {
        text-align: center;
        padding: 0 10px;
        font-size: var(--fs-base);
        line-height: 1.5;
    }
    
    .testimonials-section .section-subtitle {
        text-align: center;
        padding: 0 10px;
        font-size: var(--fs-base);
        line-height: 1.5;
    }
}
/* Add this to your projects.css file */

/* ===================================
   PROJECT CATEGORY BUTTONS - MOBILE FIXES
   =================================== */
   
/* Make all filter buttons the same size on mobile */
@media (max-width: 767.98px) {
    .filter-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        text-align: center;
        padding: 12px 15px;
        margin: 5px 0;
    }
    
    /* Center filter buttons container */
    .filter-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 10px;
        margin-bottom: 30px;
    }
}

/* Even smaller screens */
@media (max-width: 374.98px) {
    .filter-btn {
        max-width: 240px;
        font-size: 14px;
        padding: 10px 12px;
    }
}
/* Extra small devices (phones under 400px) */
@media (max-width: 399.98px) {
    .page-header-section {
        min-height: 220px;
        padding: 40px 0;
    }
    
    .page-header-title {
        font-size: 1.5rem; /* Fixed size for smallest screens */
    }
    
    .page-header-subtitle {
        font-size: 0.85rem;
    }
}