/* ==========================================================================
   VACTIP - Projects Page Styles
   ========================================================================== */

/* Projects Hero Section */
.projects-hero {
    position: relative;
    height: 550px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--dark-bg);
}

.projects-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.projects-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(10, 11, 13, 0.85) 0%,
        rgba(10, 11, 13, 0.6) 50%,
        rgba(10, 11, 13, 0.9) 100%
    );
    z-index: 2;
}

.projects-hero-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 120px 40px 40px 40px;
    position: relative;
    z-index: 3;
    text-align: center;
}

.projects-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.projects-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.projects-hero-title span.white {
    color: var(--text-white);
}

.projects-hero-title span.green {
    background: var(--gradient-green);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: block;
}

.projects-hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 500;
    color: var(--text-light);
    margin-top: 15px;
    letter-spacing: 0.02em;
}

/* Common Section Layout Rules */
.section-light {
    background-color: #ffffff;
    color: #1a1c20;
    padding: 100px 40px;
    overflow: hidden;
    position: relative;
}

.section-accent-light {
    background-color: #f7faf6;
    color: #1a1c20;
    padding: 100px 40px;
    overflow: hidden;
    position: relative;
}

.section-header-center {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.section-tag-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.section-tag {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--primary-green);
}

.section-tag-line {
    width: 60px;
    height: 2px;
    background-color: var(--primary-green);
}

.section-tag-line-left {
    width: 60px;
    height: 2px;
    background-color: var(--primary-green);
}

.projects-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.05;
    color: #0c0e12;
    text-transform: uppercase;
}

.projects-title span.green {
    color: var(--primary-green);
}

/* Projects Grid */
.projects-showcase-container {
    max-width: 1300px;
    margin: 0 auto;
}

.projects-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 991px) {
    .projects-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 650px) {
    .projects-showcase-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Project Card styling (replicated from main page, enriched with transition offsets) */
.project-card-custom {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background-color: var(--dark-bg);
    transition: var(--transition-smooth);
}

.project-card-custom:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(110, 189, 38, 0.2);
}

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

.project-card-img-custom {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.project-card-overlay-custom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(10, 11, 13, 0.1) 0%,
        rgba(10, 11, 13, 0.65) 60%,
        rgba(10, 11, 13, 0.95) 100%
    );
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: background 0.3s ease;
}

.project-card-custom:hover .project-card-overlay-custom {
    background: linear-gradient(
        180deg,
        rgba(10, 11, 13, 0.2) 0%,
        rgba(10, 11, 13, 0.75) 50%,
        rgba(10, 11, 13, 0.98) 100%
    );
}

.project-card-info-custom {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-category-custom {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--primary-green);
    text-transform: uppercase;
}

.project-card-info-custom h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 2px;
}

.project-card-desc-custom {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}

.project-card-custom:hover .project-card-desc-custom {
    max-height: 80px;
    opacity: 1;
}

.project-card-desc-custom p {
    font-size: 14px;
    line-height: 1.5;
    color: #b0b4bd;
    margin-top: 5px;
}

.project-card-link-custom {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-green);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-fast);
}

.project-card-link-custom:hover {
    color: #ffffff;
}

/* Call to Action Section */
.projects-cta-section {
    background-color: var(--dark-card);
    color: var(--text-white);
    padding: 80px 40px;
    text-align: center;
    overflow: hidden;
}

.projects-cta-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.projects-cta-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
}

.projects-cta-title span.green {
    color: var(--primary-green);
}

.projects-cta-desc {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.6;
}

.btn-projects-cta {
    background-color: var(--primary-green);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 15px 32px;
    border-radius: var(--border-radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(110, 189, 38, 0.2);
    transition: var(--transition-smooth);
}

.btn-projects-cta:hover {
    background-color: #7ccd2b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .section-light,
    .section-accent-light {
        padding: 60px 20px;
    }
    
    .projects-hero {
        height: 380px;
    }
    
    .projects-hero-container {
        padding: 100px 20px 20px 20px;
    }
    
    .projects-cta-section {
        padding: 60px 20px;
    }
}

@media (max-width: 580px) {
    .projects-hero {
        height: 300px;
    }
    
    .projects-hero-container {
        padding: 90px 15px 15px 15px;
    }
    
    .project-card-custom {
        aspect-ratio: 1.3;
    }
}
