/* 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: #e2e8f0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #1e293b;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #334155;
}

/* Header Section */
.header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid #64748b;
}

.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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.profile-info {
    flex: 1;
}

.name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title {
    font-size: 1.25rem;
    color: #a0aec0;
    margin-bottom: 2rem;
    font-weight: 300;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.contact-item i {
    width: 20px;
    color: #60a5fa;
}

.profile-image {
    width: 150px;
    height: 150px;
    margin-left: 2rem;
}

.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 5%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Fallback for missing image */
.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4299e1, #63b3ed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    border: 4px solid rgba(255, 255, 255, 0.2);
}

/* Section Styles */
.section {
    padding: 3rem 2rem;
    border-bottom: 1px solid #334155;
    background: #1e293b;
}

.section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title i {
    color: #60a5fa;
    font-size: 1.5rem;
}

/* Professional Summary */
.summary-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #cbd5e1;
}

.seeking-role {
    background: linear-gradient(135deg, #34d399, #10b981);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    border: 1px solid #065f46;
}

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

.skill-category h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #60a5fa;
}

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

.skill-tag {
    background: #374151;
    color: #e5e7eb;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #4b5563;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Technology-specific colors */
.skill-tag.aws { background: #ff9900; color: white; }
.skill-tag.azure { background: #0078d4; color: white; }
.skill-tag.gcp { background: #4285f4; color: white; }
.skill-tag.terraform { background: #7b42bc; color: white; }
.skill-tag.github { background: #24292e; color: white; }
.skill-tag.powershell { background: #012456; color: white; }
.skill-tag.bash { background: #4eaa25; color: white; }
.skill-tag.python { background: #3776ab; color: white; }

/* Experience Timeline */
.experience-timeline {
    position: relative;
    padding-left: 2rem;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #60a5fa, #34d399);
}

.experience-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: #60a5fa;
    border-radius: 50%;
    border: 3px solid #1e293b;
    box-shadow: 0 0 0 3px #60a5fa;
}

.experience-item.current .timeline-marker {
    background: #34d399;
    box-shadow: 0 0 0 3px #34d399;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 3px #34d399; }
    70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 3px rgba(52, 211, 153, 0); }
}

.experience-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
}

.company-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.company {
    font-weight: 600;
    color: #60a5fa;
}

.location {
    color: #94a3b8;
}

.duration {
    background: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    color: #e5e7eb;
    font-weight: 500;
    border: 1px solid #4b5563;
}

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

.achievements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.achievements li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #60a5fa;
    font-size: 0.75rem;
}

.achievements li strong {
    color: #f1f5f9;
    font-weight: 600;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.column h2 {
    margin-bottom: 1.5rem;
}

/* Certifications */
.certifications {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #374151;
    border-radius: 8px;
    border-left: 4px solid #60a5fa;
    transition: all 0.3s ease;
}

.cert-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cert-item i {
    font-size: 1.5rem;
    color: #60a5fa;
}

/* Achievements */
.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.achievement-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #374151;
    border-radius: 8px;
    border-left: 4px solid #34d399;
    transition: all 0.3s ease;
}

.achievement-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.achievement-item i {
    font-size: 1.25rem;
    color: #34d399;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* Footer */
.footer {
    background: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 2rem;
    border-top: 2px solid #334155;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer p:last-child {
    font-weight: 600;
    color: #60a5fa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 1rem;
        border-radius: 8px;
    }
    
    .header {
        padding: 2rem 1rem;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .profile-image {
        margin-left: 0;
        width: 120px;
        height: 120px;
    }
    
    .name {
        font-size: 2.25rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .section {
        padding: 2rem 1rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .two-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .experience-timeline {
        padding-left: 1rem;
    }
    
    .experience-item {
        padding-left: 1.5rem;
    }
    
    .timeline-marker {
        left: -1.5rem;
    }
    
    .company-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 1.875rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .contact-item {
        font-size: 0.875rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        font-size: 12px;
    }
    
    .container {
        box-shadow: none;
        margin: 0;
        border-radius: 0;
    }
    
    .header {
        background: #1a202c !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .section {
        padding: 1.5rem 1rem;
        page-break-inside: avoid;
    }
    
    .experience-item {
        page-break-inside: avoid;
        margin-bottom: 1.5rem;
    }
}
