/* --- Variables & Reset --- */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --text-color: #1f2937;
    --bg-color: #ffffff;
    --bg-light: #f3f4f6;
    --border-color: #e5e7eb;
    --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-stack);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

/* --- Typography & Utilities --- */
h1, h2, h3 { margin-bottom: 1rem; line-height: 1.2; }
h2 { font-size: 2.25rem; text-align: center; margin-bottom: 2rem; }
p { margin-bottom: 1rem; color: #4b5563; }
.section-subtitle { margin-top: -1.5rem; margin-bottom: 3rem; color: #6b7280; font-style: italic; }
.text-center { text-align: center; }

a { text-decoration: none; color: var(--primary-color); transition: color 0.3s ease; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.section { padding: 5rem 0; }
.bg-light { background-color: var(--bg-light); }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.btn:hover { background-color: var(--primary-hover); transform: translateY(-2px); }
.btn-large { font-size: 1.25rem; padding: 1.25rem 2.5rem; }

/* --- Navigation --- */
nav {
    background: var(--bg-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem 20px;
}
.logo { font-size: 1.5rem; font-weight: 700; color: var(--text-color); }
.nav-links { list-style: none; display: flex; gap: 1.5rem; }
.nav-links a { color: var(--text-color); font-weight: 500; }
.nav-links a:hover { color: var(--primary-color); }

/* --- Hero Section --- */
.hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-light);
    padding: 0 20px;
}
.hero h1 { font-size: 3.5rem; color: var(--text-color); }
.hero p { font-size: 1.25rem; max-width: 600px; margin: 0 auto 2rem auto; }

/* --- About Section (With Photo) --- */
.about-flex {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
}
.about-image {
    flex: 1;
    max-width: 350px;
    text-align: center;
}
.profile-work-photo {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 3px solid #fff;
}
.caption {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.75rem;
    font-style: italic;
}
.about-text { flex: 2; font-size: 1.1rem; }

/* --- Grid, Cards & Gallery --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}
.card h3 {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}
.gallery-photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

/* --- Smart Contact Section --- */
.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 4rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

/* --- Resume Document Formatting --- */
.resume-wrapper {
    max-width: 850px;
    margin: 0 auto;
    background: #fff;
    padding: 3rem 4rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}
.resume-header {
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}
.resume-section { margin-bottom: 2.5rem; }
.resume-section h3 {
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
}
.job { margin-bottom: 1.5rem; }
.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}
.job-company { font-weight: 600; color: #374151; margin-bottom: 0.75rem; font-style: italic; }
.job-list { padding-left: 1.5rem; }
.job-list li { margin-bottom: 0.5rem; color: #4b5563; }

/* --- Footer --- */
footer {
    background-color: #111827;
    color: #9ca3af;
    padding: 2rem 20px;
}
.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Responsive Tweaks --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .about-flex { flex-direction: column; gap: 2rem; }
    .about-image { max-width: 100%; }
    .resume-wrapper { padding: 2rem; }
    .job-header { flex-direction: column; align-items: flex-start; }
}