/* ---------- Global Reset ---------- */
* {
    box-sizing: border-box;
}

/* ---------- Body ---------- */
body {
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #0d1117, #161b22);
    color: #c9d1d9;
    margin: 0;
    padding: 0;
}

/* ---------- Main Container ---------- */
.container {
    max-width: 1000px;
    margin: auto;
    padding: 3rem 2rem;
}

/* ---------- Markdown Headings ---------- */
h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 0.8rem;
}

h2 {
    color: #ffffff;
    margin-top: 3rem;
}

h3 {
    color: #0d1117;
}

/* ---------- HERO SECTION ---------- */
.hero {
    text-align: center;
    padding: 4rem 2rem 3rem;
    background: #f6f8fa;
    color: #0d1117;
    border-radius: 16px;
    margin-bottom: 3.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.45);
}

.hero h1 {
    font-size: 2.4rem;
    color: #1f6feb;
}

.hero h2 {
    font-size: 1.4rem;
    color: #444;
    font-weight: 500;
}

.hero p {
    font-size: 1.05rem;
    color: #333;
    max-width: 680px;
    margin: 1rem auto 1.8rem;
}

/* ---------- Hero Layout with Image ---------- */
.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    text-align: left;
}

/* Image sizing safety */
.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 50%; /* Optional: Makes profile pic round */
    width: 250px;       /* Enforce a reasonable size */
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.hero-text {
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    flex: 1; /* Allows text to take available space */
}

.hero-btn {
    display: inline-block; /* Fixes buttons getting squished */
    margin: 0.5rem 0.6rem 0.5rem 0; /* Adjusted margins */
    padding: 0.65rem 1.2rem;
    background: #1f6feb;
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
}

.hero-btn:hover {
    background: #0d419d;
}

/* ---------- Cards ---------- */
.card {
    background: #f6f8fa;
    color: #0d1117;
    padding: 1.6rem;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    margin-bottom: 2.5rem;
}

/* ---------- Skills ---------- */
.skill {
    margin-bottom: 1.2rem;
}

.skill-name {
    font-weight: 600;
    color: #0d1117;
    margin-bottom: 6px;
}

.skill-bar {
    background: #d0d7de;
    border-radius: 10px;
    overflow: hidden;
    height: 18px;
}

.skill-level {
    height: 100%;
    text-align: right;
    padding-right: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #ffffff;
    line-height: 18px; /* Vertically centers the text */
}

/* Skill Colors */
/* FIXED: Used a darker Teal so white text is readable */
.genai     { width:70%; background:#00acc1; }
.sql       { width:75%; background:#4caf50; }
.excel     { width:85%; background:#2196f3; }
.tableau   { width:80%; background:#ff9800; }
.python    { width:65%; background:#9c27b0; }
.crm       { width:80%; background:#f44336; }
.jira      { width:80%; background:#0052CC; }
.salesforce{ width:75%; background:#1798C1; }

/* ---------- PROJECTS ---------- */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.project-card {
    background: #f6f8fa;
    color: #0d1117;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 35px rgba(0,0,0,0.4);
    transition: transform 0.25s ease;
    display: flex;        /* Makes card content align better */
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-6px);
}

.project-thumb {
    width: 100%;
    height: 200px;        /* Fixed height for uniformity */
    object-fit: cover;    /* Ensures image fills the box neatly */
    background: #e1e4e8;  /* Placeholder color if image fails */
}

.project-card h3 {
    margin: 1rem;
    font-size: 1.1rem;
}

.project-card p {
    margin: 0 1rem 1rem;
    font-size: 0.95rem;
    flex-grow: 1;         /* Pushes button to bottom */
}

.project-btn {
    display: block;
    margin: 1rem;
    text-align: center;
    padding: 0.65rem;
    background: #1f6feb;
    color: #ffffff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

.project-btn:hover {
    background: #0d419d;
}

/* ---------- Links ---------- */
a {
    color: #1f6feb;
}

/* ---------- Responsive (THE FIX FOR OVERLAP) ---------- */
@media (max-width: 768px) {
    /* Stack Hero content vertically on small screens */
    .hero-flex {
        flex-direction: column-reverse; /* Puts image on top, text below */
        text-align: center;
        gap: 1.5rem;
    }

    .hero-text {
        margin: 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-btn {
        margin: 0;
        display: block;
    }
}
