:root {
    --bg-color: #f4f7f9;
    --sidebar-bg: #1a202c;
    --content-bg: #ffffff;
    --primary-text: #2d3748;
    --secondary-text: #718096;
    --sidebar-text: #e2e8f0;
    --accent-color: #4299e1;
    --border-color: #e2e8f0;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--primary-text);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.main-container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    margin: 2rem;
    background: var(--content-bg);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* --- Sidebar Styles --- */
.sidebar {
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    width: 35%;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar .name {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.sidebar .title {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--accent-color);
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.sidebar .summary {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-nav a {
    display: flex;
    align-items: center;
    color: var(--sidebar-text);
    text-decoration: none;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.contact-nav i {
    width: 24px;
    margin-right: 1rem;
    text-align: center;
}

.visitor-counter {
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--secondary-text);
    display: flex;
    align-items: center;
}

.visitor-counter i {
    margin-right: 8px;
}

/* --- Main Content Styles --- */
.content-area {
    width: 65%;
    padding: 3rem;
    overflow-y: auto;
}

.content-area section {
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-area section:nth-child(2) { animation-delay: 0.1s; }
.content-area section:nth-child(3) { animation-delay: 0.2s; }
.content-area section:nth-child(4) { animation-delay: 0.3s; }


.content-area h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-text);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

.item {
    margin-bottom: 1.5rem;
}

.item:last-child {
    margin-bottom: 0;
}

.item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.item .date, .item p {
    font-size: 0.9rem;
    color: var(--secondary-text);
    line-height: 1.5;
}

.item ul {
    list-style-position: outside;
    padding-left: 1.25rem;
    margin-top: 0.5rem;
}

.item ul li {
    margin-bottom: 0.5rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skills-grid span {
    background-color: var(--bg-color);
    color: var(--primary-text);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
    .main-container {
        flex-direction: column;
        margin: 1rem;
    }

    .sidebar, .content-area {
        width: 100%;
    }
    
    .sidebar {
        padding: 2rem;
    }
    
    .content-area {
        padding: 2rem;
    }
}
