/* Core Variables & Reset */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
    --success: #16a34a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 0 2rem;
    margin-top: 60px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-contact {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.btn:hover {
    background: var(--primary-dark);
}

/* Global Section Styling */
.section {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.section h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.accent-line {
    width: 50px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto 2.5rem auto;
    border-radius: 2px;
}

.bg-light {
    background-color: var(--light);
    max-width: 100%;
}

.bg-light > * {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.summary-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--gray);
    text-align: center;
}

/* Grids */
.skills-grid, .projects-grid, .edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-card, .project-card, .edu-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.skill-card:hover, .project-card:hover, .edu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.skill-card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.skill-card p {
    color: var(--gray);
}

/* Project & Work Styling */
.project-card ul, .edu-card ul, .work-card ul {
    list-style-type: square;
    padding-left: 1.25rem;
    color: var(--gray);
    font-size: 0.95rem;
}

.project-card li, .edu-card li, .work-card li {
    margin-bottom: 0.5rem;
}

.timeline-title {
    margin-top: 3rem !important;
}

.work-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.work-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.location {
    display: block;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Education Adjustments */
.edu-card h3 {
    margin-top: 0;
    margin-bottom: 0.25rem;
}

.date {
    display: block;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.program {
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Certifications */
.certifications {
    margin-top: 3rem;
    text-align: center;
}

.cert-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.cert-list li {
    background: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-weight: 500;
}

.cert-list li.cert-earned {
    border-color: var(--success);
    color: var(--success);
    background-color: #f0fdf4;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border);
    color: var(--gray);
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.25rem; }
    .work-header {
        flex-direction: column;
        gap: 0.25rem;
    }
}
