:root {
    --primary-color: #0066cc;
    --primary-dark: #0052a3;
    --secondary-color: #f0f4f8;
    --text-dark: #1a202c;
    --text-light: #4a5568;
    --bg-light: #ffffff;
    --bg-secondary: #f7fafc;
    --border-color: #e2e8f0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] {
    --primary-color: #5b9ff5;
    --primary-dark: #4a8fd8;
    --secondary-color: #1a202c;
    --text-dark: #f0f4f8;
    --text-light: #cbd5e0;
    --bg-light: #0f1419;
    --bg-secondary: #1a202c;
    --border-color: #2d3748;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background-color: var(--secondary-color);
    border-color: var(--primary-color);
    transform: rotate(20deg);
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--bg-secondary) 100%);
    border-bottom: 2px solid var(--border-color);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 1rem;
}

.cta-linkedin {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.cta-linkedin:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.cta-email {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.cta-email:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.cta-icon {
    font-size: 1.2rem;
}

.hero-profile {
    flex-shrink: 0;
}

.hero-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.3);
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-image {
        width: 200px;
        height: 200px;
    }
}

/* Main Content */
.main-content {
    padding: 4rem 0;
}

.section {
    margin-bottom: 4rem;
    animation: fadeIn 0.6s ease-in;
}

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

.section-title {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.category-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.skill-category h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin: 0;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Summary Box */
.summary-box {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--bg-secondary) 100%);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--border-color));
}

.timeline-item {
    position: relative;
    padding-left: 100px;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: 4px solid var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.timeline-content {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.job-title {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 700;
}

.company {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0.5rem 0 0 0;
}

.date-range {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Expand Button */
.expand-btn {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

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

.expand-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.expand-btn[aria-expanded="true"] .expand-icon {
    transform: rotate(90deg);
}

/* Experience Details */
.experience-details {
    max-height: 2000px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.experience-details.hidden {
    max-height: 0;
    opacity: 0;
}

.detail-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-section h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.experience-details ul {
    list-style: none;
    padding-left: 0;
}

.experience-details li {
    color: var(--text-light);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.experience-details li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Education */
.education-item {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.education-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.education-item h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.degree {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0.5rem 0;
}

.details {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Interests */
.interests-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.interest-item {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.interest-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
    margin-top: 4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 2rem;
    }

    .profile-image {
        width: 160px;
        height: 160px;
    }

    .header-text h1 {
        font-size: 2.5rem;
    }

    .header-text h2 {
        font-size: 1.2rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }

    .experience-header {
        flex-direction: column;
    }

    .date-range {
        align-self: flex-start;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

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

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

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-marker {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }
}

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

    .header {
        padding: 2rem 0;
    }

    .header-text h1 {
        font-size: 2rem;
    }

    .header-text h2 {
        font-size: 1rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .section {
        margin-bottom: 2rem;
    }

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

/* Print Styles */
@media print {
    .navbar,
    .theme-toggle,
    .expand-btn,
    .footer {
        display: none;
    }

    .header {
        background: none;
        border: none;
        padding: 2rem 0;
    }

    .timeline-content {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .experience-details {
        display: block !important;
        max-height: none !important;
        opacity: 1 !important;
    }
}
