:root {
    --primary: #f6e01a;
    --bg: #000000;
    --card-bg: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: white;
    font-family: 'Orbitron', sans-serif;
    overflow-x: hidden;
}

#canvas1 {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

.projects-container {
    padding: 80px 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 900;
}

.yellow-underline {
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 15px 0 50px;
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
}

/* Project Card */
.project-card {
    background: var(--card-bg);
    border: 1px solid rgba(246, 224, 26, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(246, 224, 26, 0.1);
}

.card-img-box {
    height: 220px;
    overflow: hidden;
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .card-img-box img {
    transform: scale(1.1);
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.card-content p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 15px;
    line-height: 1.5;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    padding: 4px 10px;
    background: rgba(246, 224, 26, 0.1);
    border: 1px solid var(--primary);
    border-radius: 3px;
    font-size: 0.65rem;
    color: var(--primary);
}

/* Action Buttons */
.card-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.action-btn {
    padding: 10px 18px;
    font-size: 0.8rem;
    font-weight: 900;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
    text-align: center;
    cursor: pointer;
    border: none;
    font-family: 'Orbitron', sans-serif;
}

.action-btn.live {
    background: var(--primary);
    color: black;
    border: 1px solid var(--primary);
}

.action-btn.code {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(246, 224, 26, 0.3);
}

.action-btn.live:hover {
    background: white;
}

.action-btn.code:hover {
    background: var(--primary);
    color: black;
}

/* Responsive */
@media (max-width: 768px) {
    .projects-container {
        padding: 50px 5%;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}