:root {
    --primary-color: #2563eb; /* More vibrant blue */
    --secondary-color: #7c3aed; /* Purple accent */
    --accent-color: #f59e0b; /* Amber for highlights */
    --text-color: #1e293b;
    --heading-color: #0f172a;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --base-font: 'Inter', sans-serif;
    --serif-font: 'Sora', serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--base-font);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--serif-font);
    font-weight: 700;
    color: var(--heading-color);
}

.font-serif {
    font-family: var(--serif-font);
}

.text-primary { color: var(--primary-color); }
.bg-primary { background-color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.text-accent { color: var(--accent-color); }
.bg-accent { background-color: var(--accent-color); }

/* Navigation */
.nav-link {
    font-weight: 600;
    color: #475569;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link.active, .nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active::after, .nav-link:hover::after {
    width: 100%;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: #475569;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

.mobile-nav-link:hover {
    background-color: #e2e8f0;
    color: var(--primary-color);
    transform: translateX(4px);
}

/* Buttons */
.action-button {
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.action-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease;
}

.action-button:hover::before {
    left: 100%;
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: #1d4ed8;
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.secondary-btn:hover {
    background-color: rgba(37, 99, 235, 0.1);
}

/* Hero Section */
#home {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(248, 250, 252, 0.7) 100%);
}

.profile-image-container {
    position: relative;
    width: 18rem;
    height: 18rem;
}

.profile-image-container::before {
    content: '';
    position: absolute;
    inset: -0.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    z-index: 0;
    animation: rotate 6s linear infinite;
}

.profile-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    z-index: 1;
    opacity: 0.1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile-image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    border: 4px solid white;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--heading-color);
    text-align: center;
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 4rem;
    height: 0.25rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 0.25rem;
}

.section-subtitle {
    text-align: center;
    margin-top: 1rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    color: #64748b;
    font-size: 1.125rem;
    line-height: 1.75;
}

/* Timeline */
.timeline-container {
    position: relative;
    max-width: 48rem;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item {
    position: relative;
    padding: 2rem;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    background-color: var(--card-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.timeline-dot {
    position: absolute;
    top: 2rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid var(--bg-color);
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -0.5rem;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -0.5rem;
}

.timeline-date {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.timeline-text {
    color: #475569;
    line-height: 1.6;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background-color: var(--card-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.skill-tag {
    background-color: #e2e8f0;
    color: #475569;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.skill-tag:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Accordion */
.accordion-item {
    background-color: var(--card-bg);
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.accordion-item.open {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--heading-color);
    cursor: pointer;
    background-color: var(--card-bg);
    transition: all 0.2s ease;
}

.accordion-header:hover {
    background-color: #f1f5f9;
}

.accordion-icon {
    font-size: 1.25rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.accordion-item.open .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.accordion-item.open .accordion-content {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--heading-color), #1e293b);
    color: white;
    padding: 3rem 0;
}

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

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .timeline-container::before {
        left: 1.5rem;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 3.5rem;
        padding-right: 1rem;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-dot {
        left: 1.5rem !important;
    }
    
    .profile-image-container {
        width: 16rem;
        height: 16rem;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 3rem;
    }
}
