/* Layout Styles */

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
}

.about-image {
    position: relative;
    border: 4px solid var(--primary);
    padding: 0.5rem;
    box-shadow: 8px 8px 0 var(--dark);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -5px;
    bottom: -10px;
    border: 2px dashed var(--secondary);
    z-index: -1;
}

.about-image img {
    width: 100%;
    height: 100%;
    display: block;
}

.about-content p {
    margin-bottom: 1rem;
}

/* Featured Projects Grid */
.featured-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.featured-project-card {
    background-color: var(--dark);
    border: 4px solid var(--primary);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

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

.featured-project-card .project-image {
    width: 100%;
    height: 200px;
}

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

.featured-project-card .project-info p {
    flex-grow: 1;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--dark);
    border: 4px solid var(--primary);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
}

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

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

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(15, 15, 27, 0.7) 0%, rgba(15, 15, 27, 0) 50%);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
}

.project-info p {
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background-color: var(--secondary);
    color: var(--dark);
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
    font-family: 'Press Start 2P', cursive;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tag i {
    font-size: 0.8rem;
}

/* Image overlay with view button */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(33, 27, 77, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.project-image:hover .image-overlay {
    opacity: 1;
}

.view-btn {
    background-color: var(--accent);
    color: var(--dark);
    font-family: 'Press Start 2P', cursive;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.project-image:hover .view-btn {
    transform: scale(1);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        max-width: 300px;
        margin: 0 auto 2rem;
    }
    
    .featured-projects-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-project-card .project-image {
        height: 200px;
    }
}