/* Projects Section */
.projects-section {
    padding: 4rem 2rem;
    background-color: #242420;
    border-bottom: 1px solid #4a4a48;
}

.projects-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: Georgia, serif;
    font-size: 2rem;
    font-weight: bold;
    color: #E8D5C4;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #8B9D5D;
    display: inline-block;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background-color: #1a1a18;
    border: 0.5px solid #4a4a48;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(184, 134, 11, 0.15);
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #2d2d2a 0%, #3a3a36 100%);
    overflow: hidden;
}

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

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

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-family: Georgia, serif;
    font-size: 1.25rem;
    font-weight: bold;
    color: #E8D5C4;
    margin-bottom: 0.75rem;
}

.project-description {
    color: #A39A8F;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: auto;
    flex-grow: 1;
    display: -webkit-box;              /* ← ADD THESE 3 LINES */
    -webkit-line-clamp: 2;            /* ← Limits to 2 lines */
    -webkit-box-orient: vertical;     /* ← */
    overflow: hidden;
}

.project-link {
    color: #B8860B;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid #B8860B;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-block;
}

.project-link:hover {
    padding-left: 4px;
    color: #d4af37;
}

/* About Preview Section */
.about-preview {
    padding: 4rem 2rem;
    background-color: #1a1a18;
}

.about-preview .container {
    max-width: 800px;
    margin: 0 auto;
}

.about-content {
    margin-top: 2rem;
}

.about-content p {
    color: #A39A8F;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border: 1.5px solid #B8860B;
    background: transparent;
    color: #B8860B;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn:hover {
    background-color: #B8860B;
    color: #1a1a18;
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.25);
}

.btn-secondary {
    border-color: #8B9D5D;
    color: #8B9D5D;
}

.btn-secondary:hover {
    background-color: #8B9D5D;
    color: #1a1a18;
    box-shadow: 0 6px 20px rgba(139, 157, 93, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    .projects-section {
        padding: 3rem 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .about-preview {
        padding: 3rem 1.5rem;
    }

    .about-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .projects-section {
        padding: 2rem 1rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
    }
}

.view-all {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #4a4a48;
}

.view-all .btn {
    display: inline-block;
}