/* 1. GLOBAL RESET & VARIABLES */
:root {
    --bg-color: #ffffff;
    --text-color: #37352f;
    --gray-light: #f1f1f1;
    --max-width: 1100px;
    --accent: #007aff;
    --border-radius: 16px;
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
    background: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

/* 2. NAVIGATION */
nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-light);
    z-index: 1000;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo { font-weight: 700; text-decoration: none; color: black; font-size: 1.2rem; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--text-color); font-weight: 500; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--accent); }

/* 3. CORE LAYOUT */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 0;
}

/* 4. HERO SECTION */
.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 80px;
}

.hero-text { flex: 1; min-width: 300px; }
.hero-text h1 { font-size: 3rem; margin: 0 0 20px 0; line-height: 1.1; letter-spacing: -0.03em; }
.hero-image img { width: 100%; max-width: 320px; height: auto; border-radius: 50%; object-fit: cover; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

/* 5. PROJECT GRID (FORCED 2x2 ON DESKTOP) */
.section-title { font-size: 1.5rem; margin-bottom: 30px; border-bottom: 1px solid var(--gray-light); padding-bottom: 10px; font-weight: 600; }

.job-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Forces two columns */
    gap: 25px;
}

.job-card {
    position: relative;
    height: 350px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: #f7f7f5;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.job-card:hover { transform: translateY(-8px); }
.job-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.job-card:hover img { transform: scale(1.05); }

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    color: white;
}

.overlay h3 { margin: 0; font-size: 1.4rem; font-weight: 600; }
.overlay p { margin: 6px 0 0 0; opacity: 0.9; font-size: 0.9rem; }

/* 6. TOOLS & ABOUT SECTION */
.tools-section { margin-top: 80px; padding: 40px; background: #f9f9fb; border-radius: var(--border-radius); border: 1px solid var(--gray-light); }
.tools-section h2 { margin-top: 0; }
.tools-section ul { padding-left: 20px; columns: 2; } /* Splits skills into two columns */

/* 7. RESPONSIVE BREAKPOINTS */
@media (max-width: 900px) {
    .job-grid { grid-template-columns: 1fr; } /* Stack vertically for tablets/phones */
}

@media (max-width: 768px) {
    .hero-flex { flex-direction: column-reverse; text-align: center; gap: 40px; }
    .hero-text h1 { font-size: 2.2rem; }
    .tools-section ul { columns: 1; }
}

@media (max-width: 480px) {
    .nav-container { flex-direction: column; gap: 10px; }
    .container { padding: 40px 0; }
    .hero-text h1 { font-size: 2rem; }
}