:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #f8f9fa;
    --dark: #212529;
    --text: #495057;
    --text-light: #6c757d;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
    margin: 0;
    padding: 0;
}

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

header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover;
    opacity: 0.1;
    z-index: 0;
}

header > * {
    position: relative;
    z-index: 1;
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    margin: 0 0 0.5rem;
    font-weight: 700;
}

.title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-info a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

section {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--secondary);
    display: inline-block;
}

ul {
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.8rem;
}

li:before {
    content: "▹";
    color: var(--secondary);
    position: absolute;
    left: 0;
}

.job-title {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

.company {
    font-weight: 500;
    color: var(--secondary);
}

.date {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.9rem;
}

#certificates a {
    text-decoration: none;
    color: inherit;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-chip {
    background-color: var(--light);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid var(--secondary);
}

.skill-chip:hover {
    background-color: var(--secondary);
    color: white;
    transform: translateY(-2px);
}

footer {
    background-color: var(--dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-radius: 8px 8px 0 0;
}

#visitor-counter {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
}

#visitor-count {
    font-weight: 600;
    color: var(--secondary);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .title {
        font-size: 1.2rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    section {
        padding: 1.5rem;
    }
}

/* Animation for counter */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#visitor-count {
    display: inline-block;
    animation: fadeIn 0.8s ease-out;
}

/* Print styles */
@media print {
    body {
        background: white;
        font-size: 12pt;
    }
    
    header {
        background: var(--primary) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    section {
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    footer {
        display: none;
    }
}