/* Reset and base 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-color: #f8f9fa;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem 2rem;
    position: relative;
}

.header-content {
    text-align: center;
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.title {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

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

.contact-label {
    font-weight: 600;
}

.contact-item a {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.3s ease;
}

.contact-item a:hover {
    border-bottom-color: white;
}

/* Visitor Counter */
.visitor-counter {
    position: absolute;
    top: 1rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.counter-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

.counter-number {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Main Content */
.main-content {
    padding: 2rem;
}

.section {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #764ba2;
}

/* Professional Summary */
.summary {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

/* Certifications */
.certification {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.cert-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

.cert-date {
    color: #667eea;
    font-weight: 500;
    margin: 0.5rem 0;
}

.cert-details {
    color: #666;
    line-height: 1.6;
}

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

.skill-category {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 3px solid #667eea;
}

.skill-category h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.3rem 0;
    color: #555;
    position: relative;
    padding-left: 1rem;
}

.skill-category li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Projects */
.project {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #764ba2;
    margin-bottom: 1.5rem;
}

.project-title {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.project-tech {
    color: #667eea;
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.project-details {
    list-style: none;
    margin-bottom: 1.5rem;
}

.project-details li {
    padding: 0.3rem 0;
    color: #555;
    position: relative;
    padding-left: 1.2rem;
    line-height: 1.6;
}

.project-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.project-link:hover {
    background: #764ba2;
}

/* Experience */
.experience {
    margin-bottom: 1.5rem;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.job-title {
    color: #2c3e50;
    font-size: 1.2rem;
}

.job-meta {
    text-align: right;
}

.company {
    color: #667eea;
    font-weight: 500;
    display: block;
}

.date {
    color: #666;
    font-size: 0.9rem;
}

.job-details {
    list-style: none;
}

.job-details li {
    padding: 0.3rem 0;
    color: #555;
    position: relative;
    padding-left: 1.2rem;
    line-height: 1.6;
}

.job-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Education */
.education {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.degree {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.school-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.school {
    color: #667eea;
    font-weight: 500;
}

.grad-date {
    color: #666;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 0;
        box-shadow: none;
    }
    
    .header {
        padding: 2rem 1rem 1.5rem;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .title {
        font-size: 1.1rem;
    }
    
    .visitor-counter {
        position: static;
        margin-top: 1.5rem;
        text-align: center;
        display: inline-block;
    }
    
    .main-content {
        padding: 1.5rem 1rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .contact-item {
        justify-content: flex-start;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .job-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .job-meta {
        text-align: left;
    }
    
    .school-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .project-links {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1.5rem 0.5rem 1rem;
    }
    
    .main-content {
        padding: 1rem 0.5rem;
    }
    
    .name {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .container {
        box-shadow: none;
        max-width: none;
    }
    
    .header {
        background: #667eea !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .visitor-counter {
        display: none;
    }
    
    .project-link {
        background: #667eea !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}