/* Projects Section */
#projects {
    padding: 100px 20px 40px;
    min-height: 100vh;
    text-align: center;
}

/* Section Headings */
#projects h2 {
    font-size: 2.5rem;
    color: cyan;
    margin-bottom: 40px;
}

#projects h3 {
    font-size: 1.8rem;
    color: #fff;
    margin: 20px auto 40px;
    max-width: 1000px;
    border-bottom: 2px solid cyan;
    padding-bottom: 10px;
    text-align: left;
}

/* Project Containers */
#live-projects, #ongoing-projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 20px auto 40px;
    max-width: 1000px;
}

/* Project Cards */
.project-card {
    background: #2a2a2a;
    padding: 25px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
}

.project-card h4 {
    font-size: 1.5rem;
    color: cyan;
    margin-bottom: 10px;
}

.project-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cccccc;
    margin-bottom: 10px;
}

/* Technologies Used */
.Technologies p {
    font-size: 0.9rem;
    color: #6c6a6a;
    font-style: italic;
}

/* Source Links */
.sources {
    margin-top: 30px;
    text-align: center;
}

.sources a {
    text-decoration: none;
    color: cyan;
    margin-right: 30px;
    margin-left: 30px;
    padding: 5px 10px; 
    border: 2px solid cyan; 
    border-radius: 15px;
    transition: color 0.3s, background-color 0.3s;
}

.sources a:hover {
    color: black;
    background-color: cyan; 
    border-color: white; 
}

/* Responsive Design */
@media (max-width: 768px) {
    #projects { padding: 80px 15px 30px; }
    #projects h2 { font-size: 2rem; }
    .project-category h3 { font-size: 1.5rem; }
    .live-projects-container, .ongoing-projects-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .project-card { padding: 20px; }
    .project-card h3 { font-size: 1.3rem; }
    .project-card p { font-size: 1rem; }
}

@media (max-width: 480px) {
    #projects { padding: 60px 10px 20px; }
    #live-projects, #ongoing-projects {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        margin-left: 10px;
        margin-right: 10px;
    }
    .sources a {
        margin-right: 10px;
        margin-left: 10px;
    }
    #projects h2 { font-size: 1.8rem; }
    #projects h3 { font-size: 1.5rem; }
    .project-card { padding: 15px; }
    .project-card h4 { font-size: 1.2rem; }
    .project-card p  {font-size: 0.8rem; }
    .sources a  {padding: 5px 10px; }
}
