:root {
    /* Light theme variables */
    --primary-color: #2D5DA1;
    --secondary-color: #FF6B35;
    --background-color: #ffffff;
    --text-color: #333333;
    --section-bg: #f5f5f5;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    /* Dark theme variables */
    --primary-color: #4A90E2;
    --secondary-color: #FF8C5A;
    --background-color: #1A1A1A;
    --text-color: #E5E5E5;
    --section-bg: #2D2D2D;
    --card-bg: #333333;
    --border-color: #404040;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px var(--shadow-color);
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: color 0.3s;
}

.theme-toggle:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 140px 20px 60px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 80%);
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.7rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.contact-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s;
}

.contact-link:hover {
    opacity: 0.8;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background-color: var(--section-bg);
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

/* About Section */
.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Education Section */
.education-timeline {
    max-width: 800px;
    margin: 0 auto;
}

/* Contact Section */
.contact-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* Footer */
.footer {
    background-color: var(--card-bg);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .profile-avatar {
        width: 110px;
        height: 110px;
        border-width: 4px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero h2 {
        font-size: 1rem;
    }
    
    .hero-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section {
        padding: 60px 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeIn 0.6s ease-out;
}

/* Experience Section Styles */
.experience-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: transform 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-5px);
}

.experience-header {
    margin-bottom: 1.5rem;
}

.experience-header h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.experience-header h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.experience-header h3 a:hover {
    color: var(--secondary-color);
}

.experience-header .location,
.experience-header .position,
.experience-header .period {
    color: var(--text-color);
    opacity: 0.8;
    margin: 0.25rem 0;
}

.experience-content {
    color: var(--text-color);
}

.responsibilities {
    list-style-type: none;
    padding-left: 1rem;
}

.responsibilities li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.responsibilities li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.projects {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.projects h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.project {
    margin-bottom: 1.5rem;
}

.project h5 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.project h5 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.project h5 a:hover {
    color: var(--primary-color);
}

.project p {
    opacity: 0.9;
    line-height: 1.6;
}

/* Skills Section Styles */
.skill-category {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: transform 0.3s, background-color 0.3s;
}

.skill-tag:hover {
    transform: translateY(-2px);
    background-color: var(--secondary-color);
}

/* Education Section Styles */
.education-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.education-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.education-item .institution {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.education-item .degree,
.education-item .period {
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

/* Contact Section Styles */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
}

.contact-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-card p {
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-card a:hover {
    color: var(--primary-color);
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--card-bg);
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        box-shadow: 0 2px 10px var(--shadow-color);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .theme-toggle,
    .mobile-menu-btn {
        display: none;
    }

    body {
        background-color: white;
        color: black;
    }

    .section {
        page-break-inside: avoid;
    }

    .experience-item,
    .skill-category,
    .education-item,
    .contact-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Profile Avatar Styles */
.profile-avatar {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--card-bg);
    box-shadow: 0 4px 24px var(--shadow-color), 0 0 0 6px var(--primary-color);
    margin: 0 auto 1.5rem auto;
    display: block;
    background: var(--background-color);
    transition: box-shadow 0.3s, border-color 0.3s;
}

/* Large Avatar */
.large-avatar {
    width: 220px;
    height: 220px;
    border-width: 8px;
    margin-bottom: 2rem;
}

/* Download CV Button */
.download-cv-btn {
    display: inline-block;
    margin-bottom: 2rem;
    padding: 0.85rem 2.2rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 32px;
    box-shadow: 0 4px 16px var(--shadow-color);
    text-decoration: none;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    position: relative;
    z-index: 2;
}
.download-cv-btn i {
    margin-right: 0.7rem;
    font-size: 1.2em;
}
.download-cv-btn:hover {
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 24px var(--shadow-color);
    color: #fff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .large-avatar {
        width: 140px;
        height: 140px;
        border-width: 5px;
    }
    .download-cv-btn {
        font-size: 1rem;
        padding: 0.7rem 1.5rem;
    }
} 