/* ==========================================================================
   GrapesGenix Projects Custom Style Module - Production Audited
   ========================================================================== */

/* Root variable definitions fallback if main style.css doesn't contain them */
:root {
    --primary-fallback: #1b3a87;
    --secondary-fallback: #ff9f1c;
    --dark-fallback: #111111;
    --text-fallback: #555555;
    --bg-light-fallback: #f8f9fa;
    --bg-dark-grad-fallback: linear-gradient(135deg, #0f2042 0%, #1b3a87 100%);
    --shadow-sm-fallback: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-lg-fallback: 0 10px 30px rgba(0,0,0,0.1);
    --radius-sm-fallback: 8px;
    --transition-fallback: all 0.3s ease;
}

/* Structure & Utility Extensions */
.bg-light-variant {
    background: var(--bg-light, var(--bg-light-fallback));
}
.container-max-width {
    max-width: 880px;
    margin: 0 auto;
}
.hero-container-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}
.buttons-centered {
    justify-content: center;
    margin-bottom: 0 !important;
}
.variant-icon-color {
    color: var(--secondary, var(--secondary-fallback)) !important;
}

/* 1. Hero Formatting Elements */
.projects-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: var(--bg-dark-gradient, var(--bg-dark-grad-fallback));
    padding: 170px 0 110px;
    overflow: hidden;
    width: 100%;
}
.particle-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 0);
    background-size: 28px 28px;
    pointer-events: none;
}
.glass-hero-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 24px;
    width: 100%;
}
.hero-title {
    color: var(--white, #ffffff);
    font-size: 46px;
    margin: 15px 0 20px;
    line-height: 1.2;
}
.hero-subtitle {
    color: var(--secondary, var(--secondary-fallback));
    letter-spacing: 2px;
    display: block;
    font-weight: 700;
}
.hero-desc {
    color: rgba(255,255,255,0.8);
    max-width: 680px;
    margin: 0 auto 35px;
    font-size: 1.1rem;
    line-height: 1.6;
}
.hero-features-row {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
    color: var(--white, #ffffff);
    font-weight: 500;
}
.btn-outline-white {
    border: 1px solid var(--white, #ffffff);
    color: var(--white, #ffffff);
    background: transparent;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition, var(--transition-fallback));
}
.btn-outline-white:hover {
    background: var(--white, #ffffff);
    color: var(--primary, var(--primary-fallback));
}
.wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: var(--bg-light, var(--bg-light-fallback));
    clip-path: ellipse(60% 100% at 50% 100%);
}

/* 2. Categorization Module */
.categories-section {
    padding-top: 60px;
    padding-bottom: 20px;
}
.filter-categories {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* 3. Featured Projects Cards Setup */
.featured-projects-section {
    padding-top: 20px;
    padding-bottom: 60px;
}
.course-card-image-area {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}
.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.project-title {
    margin: 8px 0;
    font-size: 1.25rem;
    color: var(--dark, var(--dark-fallback));
}
.project-desc {
    font-size: 0.85rem;
    margin-bottom: 15px;
    color: var(--text, var(--text-fallback));
    line-height: 1.5;
}
.client-type-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary, var(--primary-fallback));
    letter-spacing: 1px;
}
.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    z-index: 2;
}
.status-badge.live { background-color: #2ec4b6; }
.status-badge.running { background-color: #ff9f1c; }
.status-badge.completed { background-color: #4361ee; }
.status-badge.coming-soon { background-color: #e63946; }

/* Features Tick Matrix inside Project Cards */
.features-checklist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 12px;
}
.features-checklist-grid span {
    font-size: 0.78rem;
    color: var(--text, var(--text-fallback));
    display: flex;
    align-items: center;
    gap: 6px;
}
.features-checklist-grid i {
    color: #2ec4b6;
    font-size: 0.8rem;
}

.project-tags {
    margin-bottom: 20px;
}
.tech-tag {
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(27, 58, 137, 0.08);
    color: var(--primary, var(--primary-fallback));
    padding: 4px 12px;
    border-radius: 30px;
    display: inline-block;
    margin-right: 6px;
    margin-bottom: 6px;
}
.project-card-footer {
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 12px;
}
.screenshot-info {
    font-size: 0.78rem;
    color: var(--text, var(--text-fallback));
    opacity: 0.8;
}
.text-link-bold {
    padding: 0;
    font-size: 0.85rem;
    font-weight: 600;
}

/* 4. Solutions & Products Grid Module */
.solutions-products-section {
    padding: 90px 0;
    background: var(--white, #ffffff);
}
.masonry-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 240px;
    gap: 20px;
    margin-top: 40px;
}
.masonry-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm, var(--shadow-sm-fallback));
    transition: var(--transition, var(--transition-fallback));
}
.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.masonry-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(27, 58, 135, 0.95), rgba(27, 58, 135, 0.4));
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 25px;
    transition: var(--transition, var(--transition-fallback));
}
.masonry-overlay h4 {
    color: var(--white, #ffffff);
    margin-bottom: 12px;
}
.masonry-item:hover .masonry-overlay { opacity: 1; }
.masonry-item:hover img { transform: scale(1.08); }
.project-inspect-btn {
    padding: 8px 16px; 
    font-size: 0.8rem; 
    width: max-content;
}

/* 5. Process Roadmap Component Layout */
.process-lifecycle-section {
    padding: 90px 0;
    background: var(--bg-light, var(--bg-light-fallback));
}
.process-flow-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 50px;
}
.process-node-card {
    background: var(--white, #ffffff);
    padding: 20px 12px;
    border-radius: var(--radius-sm, var(--radius-sm-fallback));
    text-align: center;
    box-shadow: var(--shadow-sm, var(--shadow-sm-fallback));
    border-bottom: 4px solid var(--bg-light, var(--bg-light-fallback));
    transition: var(--transition, var(--transition-fallback));
    flex: 1;
    min-width: 120px;
}
.process-node-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg, var(--shadow-lg-fallback));
    border-bottom-color: var(--secondary, var(--secondary-fallback));
}
.process-node-card i {
    font-size: 1.6rem;
    color: var(--primary, var(--primary-fallback));
    margin-bottom: 10px;
}
.process-node-card h5 {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
}
.process-flow-arrow {
    color: var(--text, var(--text-fallback));
    opacity: 0.3;
    font-size: 1rem;
}

/* 6. Technology Matrix Grid Elements */
.tech-matrix-section {
    padding: 90px 0;
    background: var(--white, #ffffff);
}
.tech-stack-expanded-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); 
    gap: 20px; 
    text-align: center;
    margin-top: 40px;
}
.tech-matrix-box {
    background: var(--bg-light, var(--bg-light-fallback));
    padding: 20px 10px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm, var(--shadow-sm-fallback));
    transition: var(--transition, var(--transition-fallback));
}
.tech-matrix-box:hover {
    transform: translateY(-3px);
    background: var(--white, #ffffff);
    box-shadow: var(--shadow-md);
}
.tech-matrix-box i {
    font-size: 2.3rem;
    margin-bottom: 8px;
}
.tech-matrix-box h5 {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Brand Colors for Icons */
.python-brand { color: #3776AB; }
.django-brand { color: #092E20; }
.flutter-brand { color: #02569B; }
.react-brand { color: #61DAFB; }
.next-brand { color: #000000; }
.html-brand { color: #E34F26; }
.css-brand { color: #1572B6; }
.js-brand { color: #F7DF1E; }
.mysql-brand { color: #4479A1; }
.firebase-brand { color: #FFCA28; }
.mongo-brand { color: #47A248; }
.tf-brand { color: #FF6F00; }
.opencv-brand { color: #5C3EE6; }
.java-brand { color: #007396; }
.php-brand { color: #777BB4; }
.github-brand { color: #181717; }

/* 7. Reviews Modules Layout */
.testimonials-section {
    padding: 90px 0;
    background: var(--bg-light, var(--bg-light-fallback));
}
.testimonials-two-col {
    grid-template-columns: repeat(2, 1fr) !important;
    margin-top: 40px;
}
.review-google-card {
    display: flex;
    flex-direction: column;
    padding: 40px;
    background: var(--white, #ffffff);
    border-radius: 20px;
    box-shadow: var(--shadow-sm, var(--shadow-sm-fallback));
}
.review-stars {
    color: var(--secondary, var(--secondary-fallback));
    margin-bottom: 15px;
    font-size: 0.9rem;
}
.review-text {
    font-style: italic;
    color: var(--text, var(--text-fallback));
    font-size: 0.95rem;
    line-height: 1.6;
}
.review-author {
    margin-top: 20px;
    color: var(--dark, var(--dark-fallback));
    font-size: 1rem;
}
.author-sub {
    font-weight: 400;
    font-size: 0.82rem;
    display: block;
    opacity: 0.6;
    margin-top: 4px;
}

/* 8. Call To Action Setup Elements */
.cta-banner-section {
    padding: 60px 0 90px;
    background: var(--white, #ffffff);
}
.cta-primary-wrapper {
    display: flex;
    flex-direction: column;
    padding: 70px 40px;
    background: var(--bg-dark-gradient, var(--bg-dark-grad-fallback));
    border-radius: 28px;
    box-shadow: var(--shadow-lg, var(--shadow-lg-fallback));
}
.cta-heading {
    color: var(--white, #ffffff);
    font-size: 2.2rem;
    margin-bottom: 12px;
}
.cta-subheading {
    color: rgba(255,255,255,0.8);
    max-width: 580px;
    margin: 0 auto 35px auto;
    line-height: 1.5;
}

/* Responsive Media Queries */
@media (max-width: 991px) {
    .process-flow-row {
        justify-content: center;
        gap: 15px;
    }
    .process-flow-arrow {
        display: none;
    }
    .testimonials-two-col {
        grid-template-columns: 1fr !important;
    }
}
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    .hero-features-row {
        flex-direction: column;
        gap: 10px;
    }
}