/* Modern Resume Template - Main Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Theme Selector */
.theme-selector {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

#theme-select {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#theme-select:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#theme-select:focus {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 4px;
}

#profile-picture {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    transition: transform 0.3s ease;
}

#profile-picture:hover {
    transform: scale(1.05);
}

#profile-initials {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.title {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.contact-info {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem;
}

.full-width {
    grid-column: 1 / -1;
}

.section {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.section-title.cert-title::before {
    content: '🏆';
    margin-right: 10px;
    font-size: 1.3em;
}

.section-title.education-title::before {
    content: '🎓';
    margin-right: 10px;
    font-size: 1.3em;
}

/* Professional Summary */
.summary {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid #667eea;
}

.summary-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
}

/* Skills Section */
.skills-grid {
    display: grid;
    gap: 1.5rem;
}

.skill-category {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #667eea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.skill-category h4 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

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

.skill-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 2rem;
    max-width: 100%;
    overflow: visible;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    background: white;
    padding: 1.2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    width: 40%;
    transition: all 0.3s ease;
    min-height: 100px;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

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

.timeline-item:nth-child(even) {
    margin-left: 60%;
    margin-right: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 1.8rem;
    width: 16px;
    height: 16px;
    background: #667eea;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px #667eea;
    z-index: 2;
}

.timeline-item:nth-child(odd)::before {
    right: -42px;
}

.timeline-item:nth-child(even)::before {
    left: -42px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 2.2rem;
    width: 20px;
    height: 2px;
    background: #667eea;
}

.timeline-item:nth-child(odd)::after {
    right: -20px;
}

.timeline-item:nth-child(even)::after {
    left: -20px;
}

.job-title {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.duration {
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Certifications */
.cert-grid {
    display: grid;
    gap: 1rem;
}

.cert-item {
    background: white;
    padding: 1.2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #28a745;
    transition: transform 0.3s ease;
}

.cert-item:hover {
    transform: translateX(5px);
}

.cert-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.cert-year {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Education */
.education {
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #28a745;
}

.education h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }

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

    .name {
        font-size: 2rem;
    }

    body {
        padding: 1rem;
    }

    .theme-selector {
        top: 0.5rem;
        right: 0.5rem;
    }

    #theme-select {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .timeline::before {
        left: 2rem;
        transform: none;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        margin-left: 3rem;
        margin-right: 0;
    }

    .timeline-item::before {
        left: -2.5rem !important;
        right: auto !important;
    }

    .timeline-item::after {
        left: -1.5rem !important;
        right: auto !important;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .container {
        box-shadow: none;
        border-radius: 0;
    }
    
    .header::before {
        display: none;
    }
    
    .timeline-item:hover,
    .skill-category:hover,
    .cert-item:hover {
        transform: none;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    }
}