/* ==================== PROJECT PAGE - UNIFIED STYLES ==================== */
/* No conflicts - single source of truth with dark theme */

/* Global Dark Background */
body {
    background: #0a0f1e;
    color: #fff;
}

/* ==================== HERO SECTION ==================== */
.projects-hero-area {
    background: linear-gradient(135deg, #000000 0%, #171717 100%);
    color: #FFFFFF;
    padding: 180px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.projects-hero-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%231954ED"/></svg>') bottom center no-repeat;
    background-size: 100% 100px;
    opacity: 0.3;
}

.projects-hero-title h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    letter-spacing: -1px;
    color: #FFFFFF;
}

.projects-hero-title .highlight {
    color: #199db6;
    position: relative;
    display: inline-block;
}

.projects-hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(25, 157, 182, 0.2);
    z-index: -1;
}

.projects-hero-title p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: #eff1f5;
}

/* ==================== SECTION TITLES ==================== */
.section-title-projects {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title-projects h2 {
    font-size: 3.2rem;
    font-weight: 700;
    color: #199db6 !important;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.section-title-projects h2::after {
    content: '';
    width: 80px;
    height: 4px;
    background: #199db6;
    display: block;
    margin: 20px auto 0;
    border-radius: 4px;
}

.section-title-projects p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==================== FILTER BUTTONS ==================== */
.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 60px;
}

.filter-btn {
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(25, 157, 182, 0.3);
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #fff;
    font-size: 15px;
}

.filter-btn:hover,
.filter-btn.active {
    background: #199db6;
    color: #FFFFFF;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 157, 182, 0.3);
}

/* ==================== PROJECT GRID ==================== */
.projects-grid-custom {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px 30px;
    margin-bottom: 60px;
}

/* Project Card - Glassy, Sleek */
.project-card-custom {
    background: rgba(20, 30, 45, 0.6);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(25, 157, 182, 0.25);
    border-radius: 40px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.6);
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    animation-fill-mode: both;
}

.project-card-custom:nth-child(1) {
    animation-delay: 0.1s;
}

.project-card-custom:nth-child(2) {
    animation-delay: 0.2s;
}

.project-card-custom:nth-child(3) {
    animation-delay: 0.3s;
}

.project-card-custom:nth-child(4) {
    animation-delay: 0.4s;
}

.project-card-custom:nth-child(5) {
    animation-delay: 0.5s;
}

.project-card-custom:nth-child(6) {
    animation-delay: 0.6s;
}

.project-card-custom:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: #199db6;
    box-shadow: 0 30px 50px -12px rgba(25, 157, 182, 0.5);
    background: rgba(25, 40, 60, 0.8);
}

/* Project Image */
.project-image-custom {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: #1a2634;
}

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

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

/* Project Overlay */
.project-overlay-custom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 15, 30, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 30px;
    opacity: 0;
    transition: opacity 0.4s;
}

.project-card-custom:hover .project-overlay-custom {
    opacity: 1;
}

.project-view-custom {
    background: #199db6;
    color: #fff;
    padding: 12px 30px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid transparent;
    transition: 0.3s;
    font-size: 14px;
}

.project-view-custom:hover {
    background: transparent;
    border-color: #199db6;
    color: #199db6;
}

/* Project Info */
.project-info-custom {
    padding: 30px 25px 35px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info-custom h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #199db6;
    margin-bottom: 15px;
    line-height: 1.3;
}

.project-info-custom p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    line-height: 1.7;
    flex-grow: 1;
}

/* Project Tags */
.project-tags-custom {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.project-tags-custom span {
    background: rgba(25, 157, 182, 0.15);
    border: 1px solid rgba(25, 157, 182, 0.5);
    color: #199db6;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.project-card-custom:hover .project-tags-custom span {
    background: rgba(25, 157, 182, 0.25);
    border-color: #199db6;
}

/* ==================== STATS SECTION ==================== */
.stats-section-custom {
    background: linear-gradient(135deg, #0a0f1e, #051f2a);
    color: #FFFFFF;
    text-align: center;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.stats-section-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23199db6"/></svg>') bottom center no-repeat;
    background-size: 100% 100px;
    opacity: 0.1;
}

.stats-grid-custom {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    position: relative;
    z-index: 1;
}

.stat-item-custom {
    padding: 30px 20px;
    position: relative;
}

.stat-item-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 1px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
}

.stat-item-custom:last-child::after {
    display: none;
}

.stat-number-custom {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #199db6;
}

.stat-number-custom::after {
    content: '+';
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.stat-label-custom {
    font-size: 1.125rem;
    opacity: 0.9;
    font-weight: 400;
}

/* ==================== CTA SECTION ==================== */
.cta-section-custom {
    padding: 80px 0;
    /* background: linear-gradient(135deg, #0a0f1e 0%, #051f2a 100%); */
    background: url(/assets/images/home-1/ppc-agencey-bg.webp);
    text-align: center;
    border-top: 1px solid rgba(25, 157, 182, 0.3);
}

.cta-section-custom h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.cta-section-custom p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.btn-custom {
    display: inline-block;
    padding: 16px 50px;
    background: #199db6;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 60px;
    text-decoration: none;
    transition: 0.3s;
    border: 2px solid transparent;
    box-shadow: 0 15px 30px rgba(25, 157, 182, 0.3);
}

.btn-custom:hover {
    background: transparent;
    border-color: #199db6;
    color: #199db6;
    transform: translateY(-3px);
}

.btn-outline-custom {
    background: transparent;
    color: #199db6;
    border: 2px solid #199db6;
}

.btn-outline-custom:hover {
    background: #199db6;
    color: #FFFFFF;
}

/* ==================== MODAL STYLES ==================== */
.project-modal-custom {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content-custom {
    background: #14212b;
    max-width: 1000px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 40px;
    padding: 50px;
    position: relative;
    border: 1px solid #199db6;
    box-shadow: 0 40px 80px rgba(25, 157, 182, 0.3);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: auto;
    mask-image: radial-gradient(circle at 40px 40px, transparent 0, black 40px);
    -webkit-mask-image: radial-gradient(circle at 40px 40px, transparent 0, black 40px);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close-custom {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10;
}

.modal-close-custom:hover {
    color: #199db6;
    background: rgba(255, 255, 255, 0.05);
}

.modal-body-custom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    color: #fff;
}

.modal-image-custom {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-image-custom img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.modal-image-custom:hover img {
    transform: scale(1.02);
}

.modal-info-custom h2 {
    margin-bottom: 25px;
    color: #199db6;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.modal-info-custom p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.modal-features-custom {
    margin: 25px 0;
}

.modal-features-custom h3 {
    margin-bottom: 20px;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-features-custom ul {
    list-style: none;
    padding-left: 0;
}

.modal-features-custom li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.modal-features-custom i {
    color: #199db6;
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.modal-tech-custom {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 25px 0;
}

.tech-tag-custom {
    padding: 8px 18px;
    background: rgba(25, 157, 182, 0.15);
    border: 1px solid rgba(25, 157, 182, 0.3);
    color: #199db6;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag-custom:hover {
    background: #199db6;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.modal-actions-custom {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.modal-actions-custom .btn-custom,
.modal-actions-custom .btn-outline-custom {
    padding: 14px 32px;
    font-size: 1rem;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a2634;
}

::-webkit-scrollbar-thumb {
    background: #199db6;
    border-radius: 5px;
    border: 2px solid #1a2634;
}

::-webkit-scrollbar-thumb:hover {
    background: #23b5d1;
}

/* ==================== FOOTER HOVERS ==================== */
.footer-menu a:hover {
    opacity: 1 !important;
    color: #199db6 !important;
}

.footer-copyright-social-icon a:hover {
    opacity: 1 !important;
    color: #199db6 !important;
}

.footer-area-home-3 {
    padding-top: 0;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .projects-hero-title h2 {
        font-size: 3rem;
    }

    .section-title-projects h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 992px) {
    .projects-hero-area {
        padding: 160px 0 100px;
    }

    .modal-body-custom {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .modal-content-custom {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .projects-hero-title h2 {
        font-size: 2.5rem;
    }

    .section-title-projects h2 {
        font-size: 2.2rem;
    }

    .projects-grid-custom {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stats-grid-custom {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .stat-item-custom::after {
        display: none;
    }

    .stat-number-custom {
        font-size: 2.8rem;
    }

    .cta-section-custom h2 {
        font-size: 2.2rem;
    }

    .cta-section-custom p {
        font-size: 1.1rem;
    }

    .footer-menu {
        text-align: center;
    }

    .footer-menu ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-copyright {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .modal-actions-custom .btn-custom,
    .modal-actions-custom .btn-outline-custom {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .projects-hero-title h2 {
        font-size: 2rem;
    }

    .section-title-projects h2 {
        font-size: 1.8rem;
    }

    .filter-buttons {
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .stats-grid-custom {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stat-number-custom {
        font-size: 2.5rem;
    }

    .modal-content-custom {
        padding: 25px;
    }

    .modal-actions-custom {
        flex-direction: column;
    }

    .cta-section-custom h2 {
        font-size: 1.8rem;
    }
}