/* =================================================================
   Projects Page Stylesheet (projects.css)
   - Aligned with site palette: black + brand green
   ================================================================= */

:root {
    --abcl-black: #0f172a;
    --abcl-green: #4ade80;
    --abcl-green-soft: #d4f0d4;
}

/* --- Projects Hero Section — animated tech background --- */
.projects-hero {
    position: relative;
    height: 45vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(135deg, #020617 0%, #0a0f1c 50%, #0f172a 100%);
    background-size: 200% 200%;
    animation: projects-bg-shift 18s ease-in-out infinite;
    padding: 2rem 0;
    overflow: hidden;
}
@keyframes projects-bg-shift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(74, 222, 128, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 222, 128, 0.08) 1px, transparent 1px);
    background-size: 44px 44px, 44px 44px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.85);
}

@media (prefers-reduced-motion: reduce) {
    .projects-hero { animation: none; }
}


/* --- Projects Grid Section --- */
.projects-section {
    padding: 5rem 0;
    background-color: var(--off-white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    color: var(--abcl-black);
    background-color: var(--abcl-green);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transform: translateY(20px);
    transition: transform 0.4s ease, background-color 0.3s ease, color 0.3s ease;
}

.project-card:hover .project-link {
    transform: translateY(0);
}

.project-link:hover {
    background-color: var(--abcl-black);
    color: var(--abcl-green);
}

.project-info {
    padding: 1.5rem;
}

.project-tags {
    margin-bottom: 1rem;
}

.project-tags span {
    display: inline-block;
    background-color: var(--abcl-black);
    color: var(--abcl-green);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.project-description {
    color: #6c757d;
    line-height: 1.6;
}


/* --- Final CTA Section --- */
.final-cta-section {
    background: linear-gradient(135deg, #020617 0%, #0a0f1c 50%, #0f172a 100%);
    color: #ffffff;
    padding: 5rem 0;
    text-align: center;
}

.final-cta-section h2 {
    font-size: 2.2rem;
    max-width: 700px;
    margin: 0 auto 1rem auto;
    color: #ffffff;
}

.final-cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.85);
}

.cta-button-light {
    background-color: var(--abcl-green);
    color: var(--abcl-black);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid var(--abcl-green);
}

.cta-button-light:hover {
    background-color: transparent;
    color: var(--abcl-green);
    transform: scale(1.05);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .projects-grid { grid-template-columns: 1fr; }
}
