/* ===== PROJECTS SECTION ===== */
#projects {
    padding: 100px 20px;
    overflow: hidden;
    position: relative;
}

.projects-header {
    max-width: 760px;
    margin: 0 auto 60px;
    text-align: center;
}

.section-title {
    font-size: 2.9em;
    margin-bottom: 12px;
    color: #0b5ed7;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.22);
    opacity: 0;
    transform: translateY(35px);
    transition: all 0.8s ease;
}

.projects-header p {
    font-size: 1.05em;
    color: #64748b;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

/* Container */
.projects-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Card */
.project-card {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 24px;
    padding: 30px 28px;
    border: 1px solid rgba(11, 94, 215, 0.08);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.45) inset;
    position: relative;
    overflow: hidden;
    transition: transform 0.45s ease, box-shadow 0.45s ease;
    opacity: 0;
    transform: translateY(45px) scale(0.97);
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.10), transparent 55%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 28px 60px rgba(11, 94, 215, 0.14),
        0 0 0 1px rgba(56, 189, 248, 0.10) inset;
}

/* Top Badge */
.project-top {
    margin-bottom: 18px;
}

.project-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    color: #fff;
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.4px;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.20);
}

/* Title */
.project-card h3 {
    font-size: 1.4em;
    margin-bottom: 14px;
    color: #0f172a;
    line-height: 1.4;
}

/* Description */
.project-card p {
    color: #475569;
    margin-bottom: 18px;
    line-height: 1.75;
    font-size: 0.98em;
}

/* List */
.project-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: grid;
    gap: 10px;
}

.project-card ul li {
    color: #334155;
    font-size: 0.96em;
    line-height: 1.6;
    padding-left: 22px;
    position: relative;
}

.project-card ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #0b5ed7;
    font-size: 1.2em;
    line-height: 1;
}

/* Links */
.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.project-links a {
    text-decoration: none;
    color: #0b5ed7;
    font-weight: 700;
    font-size: 0.95em;
    position: relative;
    transition: color 0.3s ease;
}

.project-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: -4px;
    background: #0ea5e9;
    transition: width 0.3s ease;
}

.project-links a:hover {
    color: #0284c7;
}

.project-links a:hover::after {
    width: 100%;
}

/* Scroll Animation */
#projects.show .section-title {
    opacity: 1;
    transform: translateY(0);
}

#projects.show .projects-header p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
}

#projects.show .project-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#projects.show .project-card:nth-child(1) {
    transition-delay: 0.18s;
}

#projects.show .project-card:nth-child(2) {
    transition-delay: 0.35s;
}

/* Responsive */
@media (max-width: 768px) {
    #projects {
        padding: 80px 16px;
    }

    .section-title {
        font-size: 2.1em;
        letter-spacing: 1px;
    }

    .projects-header p {
        font-size: 0.98em;
    }

    .project-card {
        padding: 24px 18px;
    }

    .project-card h3 {
        font-size: 1.2em;
    }
}
