/* Add external spacing to the main content area */
.main-content-area {
    margin-bottom: 80px;
}


/* --- Portfolio Grid Styles --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.main-content-area {
    margin-bottom: 80px;
}

.project-card {
    background-color: var(--primary-white);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative; /* ADD THIS LINE for the pseudo-elements */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Vertical edge on the left */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px; /* Thickness of the line */
    height: 0; /* Start with height 0 to animate it */
    background-color: var(--primary-yellow);
    transition: height 0.4s ease-out;
}

/* Horizontal edge on the bottom */
.project-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0; /* Start with width 0 to animate it */
    height: 6px; /* Thickness of the line */
    background-color: var(--primary-yellow);
    transition: width 0.4s ease-out 0.2s; /* Add a delay for a staggered animation */
}

/* Animation on hover */
.project-card:hover::before {
    height: 100%; /* Grow the vertical line */
}

.project-card:hover::after {
    width: 100%; /* Grow the horizontal line */
}


/* ... keep the rest of your existing CSS below this ... */
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.15);
}

.project-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
/* ... etc. ... */


/* --- Portfolio Grid Styles --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

/* ... keep the rest of your existing CSS below this ... */



/* --- Portfolio Grid Styles --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.project-card {
    background-color: var(--primary-white);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.15);
}

.project-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 25px;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.project-description {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 15px;
}

.view-project {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-red);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-project i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.project-link:hover .view-project i {
    transform: translateX(5px);
}
