/* CSS Variables for Theme Support */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #2c3e50;
    --text-secondary: #666666;
    --text-light: #ffffff;
    --accent-color: #e74c3c;
    --border-color: #e9ecef;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-hover: rgba(0, 0, 0, 0.15);
    --gradient-start: #f8f9fa;
    --gradient-end: #e9ecef;
}

[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #404040;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-light: #ffffff;
    --accent-color: #ff6b6b;
    --border-color: #404040;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.5);
    --gradient-start: #2d2d2d;
    --gradient-end: #1a1a1a;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Navigation */
.navigation {
    background-color: var(--bg-primary);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    transition: color 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--accent-color);
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-light);
    transform: scale(1.05);
}

.theme-toggle:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Hero Section */
.hero {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    transition: background 0.3s ease;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 30px;
    border: 5px solid var(--bg-primary);
    box-shadow: 0 10px 30px var(--shadow);
    transition: box-shadow 0.3s ease;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
    transition: color 0.3s ease;
}

.hero-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: var(--accent-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid var(--accent-color);
}

.social-link:hover {
    background-color: var(--text-primary);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-hover);
}

.social-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.social-link i {
    font-size: 18px;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    transition: color 0.3s ease;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* About Section */
.about {
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
    transition: color 0.3s ease;
}

/* Experience Section */
.experience {
    background-color: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.experience-content {
    max-width: 1000px;
    margin: 0 auto;
}

.experience-item {
    margin-bottom: 40px;
    padding: 30px;
    background-color: var(--bg-primary);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-hover);
}

.experience-details h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.company-name {
    font-size: 16px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.experience-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    transition: color 0.3s ease;
}

/* Skills Section */
.skills {
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.skills-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.skills-details h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.skill-item {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 25px;
    text-align: center;
    font-weight: 500;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.skill-item:hover {
    background-color: var(--accent-color);
    color: var(--text-light);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    background-color: var(--bg-secondary);
    text-align: center;
    transition: background-color 0.3s ease;
}

.contact-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    transition: color 0.3s ease;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background-color: var(--accent-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid var(--accent-color);
}

.contact-link:hover {
    background-color: var(--text-primary);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-hover);
}

.contact-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.contact-link i {
    font-size: 18px;
}

.email-address {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 600;
    transition: color 0.3s ease;
}

.email-address a {
    color: var(--accent-color);
    text-decoration: none;
}

.email-address a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--text-primary);
    color: var(--text-light);
    text-align: center;
    padding: 30px 0;
    transition: background-color 0.3s ease;
}

.footer p {
    margin: 0;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-links {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-links {
        flex-direction: column;
        align-items: center;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .experience-item {
        padding: 20px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 14px;
    }
}