/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #ffffff;
    --text-color: #2d3748;
    --text-secondary: #4a5568;
    --accent-color: #2b6cb0;
    --border-color: #e2e8f0;
    --hover-bg: #f7fafc;
    --tag-bg: #edf2f7;
}

body {
    font-family: 'Optima', 'Segoe UI', 'Candara', 'Calibri', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Header */
header {
    margin-bottom: 80px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.header-text {
    flex: 1;
}

.header-photo {
    flex-shrink: 0;
}

.header-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
}

nav a:hover {
    color: var(--accent-color);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.2s ease;
}

nav a:hover::after {
    width: 100%;
}

.resume-link {
    background-color: var(--accent-color);
    color: white !important;
    padding: 6px 16px;
    border-radius: 6px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.resume-link:hover {
    background-color: #1e4e8c;
    transform: translateY(-1px);
}

.resume-link::after {
    display: none;
}

/* Sections */
section {
    margin-bottom: 64px;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-color);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* About Section */
#about p {
    font-size: 1.05rem;
}

/* Experience Section */
.experience-item {
    margin-bottom: 32px;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.company {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 12px;
}

ul {
    margin-left: 20px;
    margin-top: 12px;
}

li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Projects Section */
.project {
    margin-bottom: 40px;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.project:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.project h3 {
    margin-bottom: 12px;
}

.project p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--tag-bg);
    color: var(--text-color);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.skill-category {
    padding: 20px;
    background-color: var(--hover-bg);
    border-radius: 8px;
}

.skill-category h4 {
    margin-bottom: 12px;
    color: var(--accent-color);
}

.skill-category p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contact Section */
.contact-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.contact-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--text-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Footer */
footer {
    margin-top: 80px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .exp-header {
        flex-direction: column;
    }

    .header-content {
        flex-direction: column-reverse;
        align-items: center;
    }

    .header-photo img {
        width: 100px;
        height: 100px;
        margin-bottom: 24px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background-color: var(--accent-color);
    color: white;
}
