/* Projects section specific styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-bottom: 40px;
}

header h1 {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 2.5em;
    color: #ffffff;
    margin: 0;
    text-shadow: 
        2px 2px 0 rgba(0,0,0,0.8),
        3px 3px 4px rgba(0,0,0,0.4);
}

.back-link {
    color: #fff;
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    padding: 10px 20px;
    border: 2px solid #fff;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Project Cards */
.project-card {
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    animation: cardAppear 0.6s ease-out forwards;
    padding: 1.5em;
    text-align: center;
}

.project-card:hover {
    transform: translateY(-5px);
}

.card-content h2 {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.8em;
    color: #ffffff;
    margin: 0 0 0.5em 0;
    text-shadow: 
        2px 2px 0 rgba(0,0,0,0.8),
        3px 3px 4px rgba(0,0,0,0.4);
    position: relative;
    transition: all 0.3s ease;
}

.card-content h2::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #ffffff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.project-card:hover h2::after {
    width: 100%;
}

/* Animation for card appearance */
@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animations for cards */
.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }

/* Responsive adjustments */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    header h1 {
        font-size: 2em;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .card-content h2 {
        font-size: 1.5em;
    }
} 