/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #f7fafc;
    font-size: 16px;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: url('../img/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.container > * {
    position: relative;
    z-index: 2;
}

/* Top Navigation */
.top-nav {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: #63b3ed;
}

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

.nav-link {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #e2e8f0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #ffffff;
    border-right: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 30px 0 0 0;
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-content {
    padding: 0 20px;
    flex: 1;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 10px;
    height: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: #1a202c;
}

.footer-content {
    text-align: center;
}

.footer-text {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
    margin-top: 0;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-link {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

.social-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}


/* Content Area */
.content {
    flex: 1;
    padding: 30px;
    background-color: #ffffff;
    margin: 0px 0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    min-height: calc(100vh - 100px);
}

.content h1 {
    color: #1a202c;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.content h2 {
    color: #2d3748;
    font-size: 2rem;
    font-weight: 600;

}

.content h3 {
    color: #4a5568;
    font-size: 1.5rem;
    font-weight: 600;
}

.content p {
    color: #4a5568;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.7;
}

/* CV Styles */
.cv-section {
    margin-bottom: 2rem;
}

.cv-section h2 {
    color: #1a202c;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #e2e8f0;
}

/* Work Experience & Education - Detailed entries */
.cv-entry {
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

/* Common hover effect for CV entries */
.cv-hover:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.cv-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cv-entry-header h3 {
    color: #1a202c;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.organization {
    color: #4a5568;
    font-weight: 500;
    font-size: 0.9rem;
}

.organization-link {
    color: #63b3ed;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.organization-link:hover {
    color: #3182ce;
    text-decoration: underline;
}

.duration {
    color: #718096;
    font-weight: 500;
    font-size: 0.8rem;
    white-space: nowrap;
}

.cv-entry-description {
    color: #4a5568;
    line-height: 1.4;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.cv-entry-description p {
    margin-bottom: 0.25rem;
}

.cv-entry-description p:last-child {
    margin-bottom: 0;
}

/* Languages & Software - Compact list style */
.cv-list {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 2rem;
}

.cv-list-item {
    break-inside: avoid;
    margin-bottom: 0.25rem;
    padding: 0.125rem 0;
    font-size: 0.9rem;
    color: #4a5568;
}

/* Common strong text styling for CV */
.cv-strong {
    color: #1a202c;
    font-weight: 600;
}

/* Common level styling */
.level {
    color: #718096;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* Updates Styles */
.updates-list {
    margin-top: 2rem;
}

.update-item {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.update-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.update-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.update-title {
    color: #1a202c;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.update-url {
    margin: 0.5rem 0 1rem 0;
    font-size: 0.9rem;
}

.update-link {
    color: #63b3ed;
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-all;
}

.update-link:hover {
    color: #3182ce;
    text-decoration: underline;
}

.update-date {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.update-content {
    color: #4a5568;
    line-height: 1.6;
    font-size: 1rem;
}

.update-content p {
    margin-bottom: 0.75rem;
}

.update-content p:last-child {
    margin-bottom: 0;
}

/* Extracurricular - Simple list */
.cv-simple-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cv-simple-item {
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
    font-size: 0.9rem;
    color: #4a5568;
    border-bottom: 1px solid #f1f5f9;
}

.cv-simple-item:last-child {
    border-bottom: none;
}



.cv-simple-description {
    margin-left: 1rem;
    font-size: 0.85rem;
    color: #718096;
    line-height: 1.3;
}

/* Mobile CV Styles */
@media (max-width: 768px) {
    .cv-entry-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .cv-entry-header h3 {
        min-width: auto;
        font-size: 0.95rem;
    }
    
    .cv-list {
        columns: 1;
        column-gap: 0;
    }
    
    .cv-section {
        margin-bottom: 1.5rem;
    }
    
    .cv-section h2 {
        font-size: 1.2rem;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #1a202c;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-content {
        flex-direction: column;
        padding: 0 10px;
    }

    .sidebar {
        width: 100%;
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 20px 0 0 0;
    }

    .sidebar-footer {
        height: auto;
        padding: 15px 20px;
    }

    .social-icon {
        width: 28px;
        height: 28px;
    }

    .content {
        padding: 20px;
        margin: 10px 0;
        min-height: auto;
    }

    .content h1 {
        font-size: 2rem;
    }

    .nav-content {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 15px;
    }

    .content h1 {
        font-size: 1.75rem;
    }

    .logo a {
        font-size: 1.1rem;
    }
}
