/* --- Variables & Reset --- */
:root {
    --primary-blue: #0a2342; /* Navy */
    --accent-blue: #2c5282;  /* Lighter Navy/Blue */
    --text-dark: #333333;
    --text-muted: #666666;
    --bg-body: #f4f7f6;      /* Light Grey Background */
    --card-bg: #ffffff;
    --border-radius: 6px;
    --sidebar-width: 280px;
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-body);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

/* --- Layout Structure --- */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* --- Sidebar Styling --- */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--primary-blue);
    color: #fff;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    padding: 3rem 2rem;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-header {
    margin-bottom: 2rem;
}

.sidebar-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.sidebar-header .rank {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #a8c0d9;
}

.sidebar-header .title-sub {
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1.4;
}

.main-nav ul {
    list-style: none;
}

.main-nav li {
    margin-bottom: 0.5rem;
}

.main-nav a {
    display: block;
    padding: 0.5rem 0;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.main-nav a:hover, .main-nav a.active {
    color: #fff;
    padding-left: 5px; /* Subtle movement effect */
}

.sidebar-footer {
    margin-top: auto;
    display: flex;
    gap: 15px;
    padding-top: 2rem;
}

.sidebar-footer a {
    font-size: 1.2rem;
    opacity: 0.7;
}

.sidebar-footer a:hover {
    opacity: 1;
}

/* --- Main Content Styling --- */
.main-content {
    margin-left: var(--sidebar-width); /* Push content right */
    width: calc(100% - var(--sidebar-width));
    padding: 3rem 5rem 0 5rem; /* Removed bottom padding, handled by footer */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-section {
    margin-bottom: 4rem;
    scroll-margin-top: 2rem; /* Smooth scroll offset */
}

.section-heading {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* --- Card Styles --- */
.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Subtle shadow */
    border: 1px solid #eaeaea;
    margin-bottom: 1.5rem;
}

/* --- Hero Section (Clean, No Card) --- */
.hero-section {
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.hero-content {
    max-width: 900px;
}

.hero-content p.lead {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    line-height: 1.5;
}

.hero-content p {
    font-size: 1.1rem;
    color: #4a4a4a;
    margin-bottom: 1.5rem;
}

.hero-actions {
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-blue);
    color: #fff;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: var(--accent-blue);
}

/* --- Status Flags (Capabilities) --- */
.status-flags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.status-flag {
    display: inline-block;
    background-color: #e3e8ee;
    color: var(--primary-blue);
    padding: 6px 14px;
    border-radius: 50px; /* Pill shape */
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 1px solid #d1d9e0;
    white-space: nowrap;
}

.status-flag:hover {
    background-color: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
    cursor: default;
    transition: 0.2s;
}

/* --- Job Cards --- */
.job-meta {
    margin-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1rem;
}

.job-meta h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
}

.job-meta .company {
    display: block;
    font-weight: 600;
    color: var(--accent-blue);
    margin-top: 5px;
}

.job-meta .period {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    display: block;
    margin-top: 3px;
}

.job-desc ul {
    list-style: disc;
    padding-left: 1.2rem;
}

.job-desc li {
    margin-bottom: 0.5rem;
    color: #444;
}

/* --- Education --- */
.edu-item {
    margin-bottom: 1.5rem;
}

.edu-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    color: var(--text-dark);
}

.edu-card hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 1.5rem 0;
}

.cert-list h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

/* --- Site Footer --- */
.site-footer {
    margin-top: auto; /* Pushes footer to bottom */
    padding: 3rem 0;
    border-top: 1px solid #dcdcdc;
    color: var(--text-muted);
    text-align: center;
}

.footer-contact h3 {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: var(--accent-blue);
    font-weight: 500;
}

.footer-socials {
    margin: 1rem 0;
}

.footer-copy {
    font-size: 0.85rem;
    color: #999;
    margin-top: 1.5rem;
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
    .wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        padding: 1rem 1.5rem;
    }

    .sidebar-header {
        margin-bottom: 0;
        flex: 1;
    }

    .sidebar-header h1 {
        font-size: 1.2rem;
        margin-bottom: 0;
    }
    
    .sidebar-header .rank, 
    .sidebar-header .title-sub {
        display: none; 
    }

    .main-nav, .sidebar-footer {
        display: none; 
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 2rem 1.5rem 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}