:root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --accent-color: #777777;
    --bg-light: #f4f4f4;
    --bg-dark: #121212;
    --text-light: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #888888;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-color);
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="2" fill="rgba(255,255,255,0.05)"/></svg>');
    pointer-events: none;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent-color);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cccccc;
}

.contact-info a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent-color);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

/* Experience Section */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: #ddd;
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::after {
    content: '';
    display: block;
    clear: both;
}

.timeline-content {
    width: 45%;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.timeline-item:nth-child(odd) .timeline-content {
    float: left;
}

.timeline-item:nth-child(even) .timeline-content {
    float: right;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.timeline-company {
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.timeline-content ul {
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.timeline-content ul li {
    margin-bottom: 8px;
}

/* Circle on timeline */
.timeline-item::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background-color: var(--primary-color);
    border: 4px solid #fff;
    border-radius: 50%;
    z-index: 1;
}

/* Skills & Software */
.progress-bar-custom {
    background-color: var(--primary-color);
}

.skill-label {
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e0e0e0;
    margin-bottom: 20px;
    overflow: visible;
}

.badge-skill {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-weight: 400;
    padding: 10px 15px;
    border-radius: 30px;
    margin: 5px;
    font-size: 0.9rem;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.badge-skill:hover {
    background-color: var(--accent-color);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    aspect-ratio: 1;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay i {
    color: #fff;
    font-size: 2rem;
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item::before {
        left: 30px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 70px);
        float: right;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}
