/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f3f4f6;
    color: #111827;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    font-size: 1rem
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-left: 2%;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin-right: 2%;
}

.desktop-nav a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.desktop-nav a:hover {
    color: #111827;
    text-decoration: underline;
}

/* Hamburger Menu Styles - Hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 4px;
    transition: all 0.3s ease;
    margin-right: 2%;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #374151;
    margin: 3px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e5e7eb;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav ul {
    list-style: none;
    padding: 1rem 0;
}

.mobile-nav li {
    text-align: center;
    padding: 0.5rem 0;
}

.mobile-nav a {
    display: block;
    padding: 0.5rem 1rem;
    color: #374151;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-nav a:hover {
    background-color: #f3f4f6;
}

/* Main content */
main {
    margin-top: 80px;
}

/* About Section */
.about-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1rem;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.about-description {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 42rem;
    margin: 0 auto;
}

/* Experience Section */
.experience-section {
    background-color: white;
    padding: 5rem 0;
}

.experience-section .section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.875rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 60px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 4px;
    background: #1f2937;
}

.timeline-item {
    position: relative;
    margin-bottom: 3.5rem; /* Increased spacing between timeline items */
}

.timeline-marker {
    position: absolute;
    left: -44px;
    top: 0;
    width: 12px;
    height: 12px;
    background: #1f2937;
    border-radius: 50%;
}

.job-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
    font-size: 1.125rem; /* Larger font size for job titles */
}

.company-link {
    color: #8e98a9; /* Dark gray to match website color scheme */
    text-decoration: none;
    transition: color 0.2s ease;
}

.company-link:hover {
    color: #111827; /* Darker gray on hover */
    text-decoration: underline;
}

.job-date {
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

/* Description container and collapsible content */
.desc-container {
    position: relative;
    line-height: 1.5;
    color: #374151;
}

.desc-content {
    position: relative;
    overflow: hidden;
    display: block;
    /* font-size: inherit; */
}

.desc-content.collapsed {
    max-height: 1.5em;
}

/* Gradient effect will be controlled by JavaScript */
.desc-content.collapsed:has(+ .show-more-btn[style*="display: block"])::after,
.desc-content.collapsed:has(~ .show-more-btn[style*="display: block"])::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 70px;
    width: 60px;
    height: 1.5em;
    background: linear-gradient(to right, transparent, white);
    pointer-events: none;
    z-index: 1;
}

.show-more-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: white;
    color: #4b5563;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0 4px;
    z-index: 10;
    border-radius: 2px;
    display: none;
}

.show-more-btn:hover {
    color: #1f2937;
    text-decoration: underline;
}

.show-less-btn {
    color: #4b5563;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    margin-top: 4px;
    display: none;
    transition: all 0.2s ease;
}

.show-less-btn:hover {
    color: #1f2937;
    text-decoration: underline;
}

.desc-content.expanded {
    max-height: none;
    /* font-size: inherit; */
}

.desc-content.expanded::after {
    display: none;
}

.desc-content.expanded + .show-more-btn {
    display: none;
}

.desc-content.expanded ~ .show-less-btn {
    display: inline-block;
}

/* Misc Section */
.misc-section {
    background-color: #f3f4f6;
    padding: 5rem 0;
}

.misc-section .section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.875rem;
}

.misc-list {
    padding-left: 60px;
    list-style: none;
    position: relative;
}

.misc-list li {
    margin-bottom: 1.5rem;
    line-height: 1.5;
    position: relative;
}

.misc-list li::before {
    content: '•';
    position: absolute;
    left: -40px;
    color: #1f2937;
    font-weight: bold;
}

.misc-list p {
    color: #374151;
}

/* Footer */
footer {
    background-color: white;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Links */
a {
    text-decoration: none;
    color: #8e98a9; /* Dark gray that matches the website color scheme */
    transition: all 0.2s ease;
}

a:hover {
    color: #111827; /* Darker gray on hover */
    text-decoration: underline;
}

/* Navigation links have different styling */
.desktop-nav a,
.mobile-nav a {
    color: #6b7280; /* Keep navigation links gray */
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: #111827; /* Darker gray on hover for navigation */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .timeline {
        padding-left: 40px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-marker {
        left: -34px;
    }

    main {
        margin-top: 60px;
    }

    .nav-container {
        padding: 1rem;
    }

    .about-section {
        padding: 3rem 1rem;
    }

    .job-title{
        font-size: 1.05rem
    }

    .section-title {
        font-size: 2rem;
    }

    .desc-content.collapsed {
        max-height: 4.5em;
    }

    .desc-content.collapsed.show-gradient::after {
        width: 90px;
    }
    
    /* Mobile navigation styles */
    .desktop-nav {
        display: none !important;
    }
    
    .hamburger {
        display: flex !important;
    }
    
    /* Adjust misc list for mobile */
    .misc-list {
        padding-left: 40px;
    }
    
    .misc-list li::before {
        left: -30px;
    }
}