/* ===================================== */
/* DESIGN SYSTEM                         */
/* ===================================== */

:root {
    --primary: #2563eb;
    --accent: #ff6f61;
    --bg-main: #ffffff;
    --bg-soft: #f8fafc;
    --card-bg: #ffffff;
    --border: rgba(0, 0, 0, 0.06);
    --text-main: #111827;
    --text-muted: #6b7280;
}

body.quarto-dark {
    --primary: #4dabf7;
    --accent: #ff6f61;
    --bg-main: #0f172a;
    --bg-soft: #111827;
    --card-bg: #1e293b;
    --border: rgba(255, 255, 255, 0.08);
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
}

/* ===================================== */
/* BASE                                  */
/* ===================================== */

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    margin: 0;
}

.page-wrapper {
    max-width: 1050px;
    margin: 0 auto;
    padding: 3rem 1.25rem;
}

p {
    line-height: 1.75;
    color: var(--text-muted);
}

/* ===================================== */
/* TITLES                                */
/* ===================================== */

.quarto-title-block .title,
.page-title {
    text-align: center !important;
    font-size: 2.5rem !important;
    font-weight: 600 !important;
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
}

/* ===================================== */
/* HERO                                  */
/* ===================================== */

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 4rem;
}

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero-text {
    font-size: 1.08rem;
    margin-bottom: 1.5rem;
}

.hero-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    border: 1px solid var(--primary);
    background: var(--primary);
    color: white;
    transition: all 0.2s ease;
}

.hero-btn.secondary {
    background: transparent;
    color: var(--primary);
}

.hero-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.hero-img {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    transition: transform 0.3s ease;
}

.hero-img:hover {
    transform: scale(1.05);
}

/* ===================================== */
/* PROJECT CARDS                         */
/* ===================================== */

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.6rem;
    margin-bottom: 2.5rem;
    transition: all 0.25s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.project-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 1.2rem;
}

/* Tech tags */
.tech-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    margin: 0.3rem 0.4rem 0.3rem 0;
    font-size: 0.8rem;
    border-radius: 999px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
}

/* ===================================== */
/* FEATURED GRID                         */
/* ===================================== */

.featured-projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.featured-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.5rem;
    transition: all 0.25s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* ===================================== */
/* SKILLS                                */
/* ===================================== */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.skill-card {
    padding: 1rem;
    border-radius: 14px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    text-align: center;
    font-weight: 500;
    transition: all 0.2s ease;
}

.skill-card:hover {
    transform: translateY(-3px);
    background: rgba(37, 99, 235, 0.08);
}

/* ===================================== */
/* STATS SECTION (ADD TO INDEX)          */
/* ===================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 4rem 0;
    text-align: center;
}

.stat-card {
    padding: 1.5rem;
    border-radius: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

/* ===================================== */
/* FOOTER                                */
/* ===================================== */

.site-footer {
    margin-top: 4rem;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
}

/* ===================================== */
/* MOBILE                                */
/* ===================================== */

@media (max-width: 768px) {

    .hero {
        flex-direction: column;
        text-align: center;
    }


    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.9rem;
        width: 100%;
    }

    .hero-btn {
        width: 240px;
        /* fixed clean width */
        text-align: center;
        padding: 0.75rem 1rem;
        white-space: nowrap;
        /* no text wrapping */
        border-radius: 999px;
        text-decoration: none !important;
        /* remove underline */
    }

    /* ===================================== */
    /* FINAL MOBILE HERO BUTTON FIX          */
    /* ===================================== */





    .hero-img {
        width: 150px;
        height: 150px;
    }

    .project-img {
        height: 180px;
    }

    .page-wrapper {
        padding: 2rem 1rem;
    }
}