/* =======================
   Global Styles
======================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: #0d1117;
    color: #e6edf3;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
a {
    text-decoration: none;
    color: inherit;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =======================
   Main Title & Subtitle
======================= */
.title {
    text-align: center;
    font-size: 2.5rem;
    margin: 3rem 0 1rem;
}
.title .highlight {
    color: #58a6ff;
}
.subtitle {
    text-align: center;
    color: #8b949e;
    margin-bottom: 2rem;
}
hr {
    width: 60px;
    height: 2px;
    background-color: #58a6ff;
    border: none;
    margin: 0 auto 3rem;
}

/* =======================
   Project Cards
======================= */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}
.card {
    background-color: #161b22;
    border: 2px solid #21262d;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 0 15px rgba(88,166,255,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(88,166,255,0.3);
}
.card h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
.card p {
    color: #8b949e;
    margin-bottom: 1rem;
}
.card-icon {
    font-size: 2.5rem;
    color: #58a6ff;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
}
.tags span {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    background-color: #21262d;
    color: #e6edf3;
}
.tags.blue span { background-color: #1f6feb; }
.tags.green span { background-color: #2ea44f; }
.tags.orange span { background-color: #d29922; }

/* Details Link */
.details {
    display: inline-block;
    margin-top: 1rem;
    color: #58a6ff;
    font-weight: 600;
    transition: 0.3s;
}
.details:hover {
    color: #1f6feb;
}

/* =======================
   Footer
======================= */
.footer {
    background-color: #0d1117;
    border-top: 1px solid #161b22;
    text-align: center;
    padding: 2rem;
    color: #8b949e;
    margin-top: auto;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}
.footer-links a {
    transition: 0.3s;
}
.footer-links a:hover {
    color: #58a6ff;
}

/* =======================
   Animations
======================= */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* =======================
   Responsive
======================= */
@media (max-width: 768px) {
    .projects {
        padding: 0 1rem;
    }
}
@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }
    .card {
        padding: 1.5rem;
    }
}
@media (max-width: 360px) {
    .tags {
        justify-content: center;
    }
}