:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --text-color: #333;
    --bg-color: #f9f9f9;
    --card-bg: #ffffff;
    --spacing: 1.5rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Layout */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header / Hero */
header {
    background-color: var(--card-bg);
    padding: 3rem 0;
    border-bottom: 1px solid #eee;
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.contact-info a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Navigation */
nav {
    background: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 1rem;
}

nav ul li {
    margin: 0 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
}

nav a:hover {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    padding: 1rem;
    width: 100%;
}

/* Sections */
section {
    padding: 3rem 0;
    scroll-margin-top: 50px;
}

h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

/* Experience Cards */
.job-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-color);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.job-title {
    font-weight: bold;
    font-size: 1.1rem;
}

.company {
    color: #555;
    font-style: italic;
}

.date {
    color: #777;
    font-size: 0.9rem;
}

.job-details ul {
    list-style-position: inside;
    margin-top: 1rem;
}

.job-details li {
    margin-bottom: 0.5rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-category h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #e1ecf4;
    color: #2c5e77;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Blog Preview Section */
.blog-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.post-card {
    background: var(--card-bg);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.post-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.post-meta {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 1rem;
}

/* Contact Section Styling */
.contact-wrapper {
    text-align: center;
    margin-top: 1rem;
}

.contact-intro {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #555;
}

.contact-cards {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-card-link {
    background: var(--card-bg);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
    min-width: 220px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
}

.contact-card-title {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-card-detail {
    font-size: 0.9rem;
    color: #777;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Back Button Style */
a.btn-back {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: transparent;
}

a.btn-back:hover {
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 600px) {
    .job-header {
        flex-direction: column;
    }

    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    nav ul.active {
        display: flex;
    }
}