/* ================================================================
   projects.css — Styles specific to projects.html
   ================================================================ */

:root {
    --primary-green: #4a7c59;
    --accent-peach: #f4a460;
    --cream: #faf8f3;
    --earth: #8b7355;
    --dark-text: #2c2c2c;
    --light-text: #666;
    --border: #e8e4df;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-text);
    background: white;
    line-height: 1.6;
}

a:focus,
button:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* ── Breadcrumb ── */
.breadcrumb {
    padding: 1rem 5%;
    font-size: 0.85rem;
    color: var(--light-text);
    background: var(--cream);
    border-bottom: 1px solid var(--border);
}

.breadcrumb a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--earth);
}

/* ── Page Header ── */
.page-header {
    background-color: #fff;
    padding: 1rem 50px 1.75rem;
    text-align: center;
    border-bottom: 1px solid #e8dcc8;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    letter-spacing: -0.5px;
    margin-bottom: 0.75rem;
}

.page-header p {
    font-size: 16px;
    color: #666;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ── Filter Tabs ── */
.filter-section {
    padding: 24px 50px;
    background: white;
    border-bottom: 1px solid #e8dcc8;
}

.filter-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--border);
    background: white;
    color: var(--light-text);
    border-radius: 24px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

/* ── Projects Grid ── */
.projects-section {
    padding: 3rem 5%;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.project-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.project-item:hover {
    box-shadow: 0 8px 24px rgba(74, 124, 89, 0.12);
    border-color: var(--accent-peach);
}

.project-item.reversed {
    direction: rtl;
}

.project-item.reversed > * {
    direction: ltr;
}

.project-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    background: linear-gradient(135deg, var(--cream) 0%, rgba(244, 164, 96, 0.15) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(244, 164, 96, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

.project-details {
    padding: 1rem 0;
}

.project-meta {
    font-size: 0.85rem;
    color: var(--accent-peach);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-details h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    color: var(--dark-text);
    line-height: 1.3;
}

.project-details p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.project-highlights {
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.highlights-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    list-style: none;
}

.highlights-list li {
    font-size: 0.9rem;
    color: var(--light-text);
    padding-left: 1.5rem;
    position: relative;
}

.highlights-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-peach);
    font-weight: bold;
}

.project-cta {
    display: inline-flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* ── Buttons ── */
.btn {
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-green);
    color: white;
}

.btn-primary:hover {
    background: var(--earth);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.2);
}

.btn-secondary {
    background: var(--cream);
    color: var(--primary-green);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--accent-peach);
    color: white;
    border-color: var(--accent-peach);
}

.alt-section {
    background: var(--cream);
}

/* ── Project Card (vertical) ── */
.project-card {
    background-color: #f9f7f4;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
    border: 1px solid var(--border);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.project-card .project-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 0;
    font-size: 4rem;
    background: linear-gradient(135deg, #d4c5b0 0%, #e8dcc8 100%);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--dark-text);
    font-weight: 600;
}

.project-info .project-description {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 15px;
}

.project-link {
    color: #d97757;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-link:hover {
    text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .projects-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-item {
        grid-template-columns: 1fr;
    }

    .project-item.reversed {
        direction: ltr;
    }

}

@media (max-width: 768px) {
    .projects-container {
        grid-template-columns: 1fr;
    }

    .page-header {
        padding: 0.875rem 20px 1.5rem;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .filter-section {
        padding: 12px 16px;
    }

    .filter-tabs {
        gap: 6px;
    }

    .filter-tab {
        padding: 5px 12px;
        font-size: 10px;
        letter-spacing: 0.4px;
        border-radius: 16px;
    }

    .project-details h2 {
        font-size: 1.5rem;
    }

    .highlights-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .filter-section {
        padding: 10px 12px;
    }

    .filter-tabs {
        gap: 5px;
    }

    .filter-tab {
        padding: 4px 10px;
        font-size: 9px;
        letter-spacing: 0.3px;
    }
}
