/* CSS Variables for Theme Switching */
:root {
    /* Light Theme Colors */
    --bg-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --container-bg: #ffffff;
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: #ecf0f1;
    --header-bg: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    --card-bg: #ffffff;
    --card-border: #e1e8ed;
    --section-bg: #f8f9fa;
    --accent-color: #3498db;
    --accent-secondary: #2ecc71;
    --accent-danger: #e74c3c;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* Dark Theme Colors */
[data-theme="dark"] {
    --bg-primary: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --container-bg: #1e1e2e;
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --text-light: #ffffff;
    --header-bg: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    --card-bg: #2a2a3e;
    --card-border: #3a3a4e;
    --section-bg: #2a2a3e;
    --accent-color: #64b5f6;
    --accent-secondary: #81c784;
    --accent-danger: #e57373;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    padding: 20px;
    transition: all 0.3s ease;
}

/* Theme Toggle Button */
.theme-toggle-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
}

.theme-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

.theme-toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.theme-toggle-btn:hover::before {
    transform: translateX(100%);
}

.theme-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--shadow-color);
}

.theme-toggle-btn i {
    transition: all 0.3s ease;
}

#sunIcon {
    opacity: 1;
    transform: rotate(0deg);
}

#moonIcon {
    opacity: 0;
    transform: rotate(180deg);
    position: absolute;
}

[data-theme="dark"] #sunIcon {
    opacity: 0;
    transform: rotate(180deg);
}

[data-theme="dark"] #moonIcon {
    opacity: 1;
    transform: rotate(0deg);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--container-bg);
    border-radius: 20px;
    box-shadow: 0 20px 40px var(--shadow-color);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

/* Header Styles */
.header {
    background: var(--header-bg);
    color: var(--text-light);
    padding: 40px;
    position: relative;
    transition: all 0.3s ease;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

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

.profile-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--glass-border);
    object-fit: cover;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.profile-image img:hover {
    transform: scale(1.05);
}

.profile-info {
    flex: 1;
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #fff, #e8f4fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: #bdc3c7;
}

.tagline {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    max-width: 500px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    position: relative;
    z-index: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.contact-item i {
    width: 20px;
    color: var(--accent-color);
    font-size: 1rem;
}

/* Main Content Styles */
.main-content {
    padding: 40px;
    transition: all 0.3s ease;
}

.section {
    margin-bottom: 40px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent-color);
    position: relative;
    transition: all 0.3s ease;
}

.section-title i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
}

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

.skill-category h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 3px solid var(--accent-color);
    transition: all 0.3s ease;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* Experience Section */
.experience-item {
    margin-bottom: 30px;
    padding: 25px;
    background: var(--section-bg);
    border-radius: 15px;
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
}

.experience-item:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.experience-header h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    transition: all 0.3s ease;
}

.company {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 1rem;
}

.duration {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

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

.experience-details li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    line-height: 1.6;
    transition: all 0.3s ease;
}

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

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.project-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.project-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.project-item p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-tag {
    background: var(--glass-bg);
    color: var(--text-primary);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Education Section */
.education-item {
    background: var(--section-bg);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid var(--accent-secondary);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.education-header h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    transition: all 0.3s ease;
}

.institution {
    color: var(--accent-secondary);
    font-weight: 500;
    font-size: 1rem;
}

.education-details {
    color: var(--text-secondary);
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* Certifications Section */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.certification-item {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.certification-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.certification-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.cert-issuer {
    color: #3498db;
    font-weight: 500;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
}

.cert-date {
    color: #7f8c8d;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Achievements Section */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.achievement-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.achievement-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f39c12, #e67e22);
}

.achievement-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.achievement-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.achievement-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* Online Presence Section */
.presence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.presence-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.presence-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #9b59b6, #8e44ad);
}

.presence-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.presence-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.presence-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* Print Section */
.print-section {
    margin-bottom: 0;
    padding-top: 20px;
    border-top: 2px solid var(--card-border);
    transition: all 0.3s ease;
}

.print-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.print-btn, .pdf-btn {
    background: linear-gradient(135deg, var(--accent-secondary), #2ecc71);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.3);
    transition: all 0.3s ease;
    font-family: inherit;
    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.pdf-btn {
    background: linear-gradient(135deg, var(--accent-danger), #c0392b);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
}

.print-btn:hover, .pdf-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(39, 174, 96, 0.4);
}

.pdf-btn:hover {
    box-shadow: 0 15px 40px rgba(231, 76, 60, 0.4);
}

.print-btn:active, .pdf-btn:active {
    transform: translateY(-1px);
}

.print-btn i, .pdf-btn i {
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .theme-toggle-container {
        top: 20px;
        right: 20px;
    }
    
    .theme-toggle-btn {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .main-content {
        padding: 30px 20px;
    }
    
    .experience-header,
    .education-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .projects-grid,
    .achievements-grid,
    .presence-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .print-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .print-btn, .pdf-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 1.8rem;
    }
    
    .title {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .experience-item,
    .project-item,
    .education-item,
    .achievement-item,
    .presence-item {
        padding: 20px;
    }
    
    .print-btn, .pdf-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Print Styles for PDF */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .container {
        box-shadow: none;
        border-radius: 0;
    }
    
    .print-section,
    .theme-toggle-container {
        display: none;
    }
    
    .header {
        background: #2c3e50 !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .skill-tag,
    .tech-tag {
        background: #3498db !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
} 