:root {
    --primary-color: #3a86ff;
    --secondary-color: #8338ec;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --success-color: #28a745;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f5f7fa;
}

.container {
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: 100vh;
}

header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    text-align: center;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.profile img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

.profile h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.profile p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.location {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.location i {
    margin-right: 0.5rem;
}

nav ul {
    list-style: none;
    margin: 2rem 0;
}

nav ul li {
    margin: 1rem 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    background-color: white;
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.download-btn i {
    margin-right: 0.5rem;
}

main {
    padding: 2rem;
}

.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

.card h2 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}

/* ===== TIMELINE SPECIFIC STYLES ===== */
.timeline-section {
  margin: 60px 0;
}

.timeline-container {
  position: relative;
  width: 100%;
  padding: 100px 0; /* More vertical space to center line better */
  overflow-x: auto;
  overflow-y: visible; /* Prevent bottom cut-off */
}

.timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
  transform: translateY(-50%);
  z-index: 1;
}

.timeline-items {
  display: flex;
  position: relative;
  gap: 40px;
  padding: 0 40px;
}

.timeline-items::after {
  content: '';
  flex: 0 0 60px; /* Prevents last card cut-off */
}

.timeline-item {
  position: relative;
  width: 240px;
  flex-shrink: 0;
}

.timeline-point {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 3px solid white;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.timeline-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: relative;
}

/* Alternating positions */
.timeline-item.top .timeline-card {
  margin-bottom: 60px; 
  bottom: 50px;
}

.timeline-item.bottom .timeline-card {
  margin-top: 60px; 
  top: 50px;
}

/* Card content */
.timeline-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #333;
}

/* Detailed Experience Section */
.experience-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.experience-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.exp-header {
    margin-bottom: 15px;
}

.exp-header h3 {
    color: var(--dark-color);
    margin-bottom: 5px;
}

.exp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.exp-meta span {
    display: flex;
    align-items: center;
}

.exp-meta span::before {
    content: '•';
    margin-right: 5px;
    color: var(--primary-color);
}

.exp-details {
    padding-left: 20px;
}

.exp-details li {
    margin-bottom: 8px;
    position: relative;
}

.exp-details li::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .timeline-item {
        min-width: 180px;
    }
    
    .exp-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .exp-meta span::before {
        display: none;
    }
}

.education-item {
    margin-bottom: 1.5rem;
}

.education-item h3 {
    margin-bottom: 0.3rem;
}

.education-item h4 {
    margin-bottom: 0.3rem;
    color: var(--gray-color);
    font-weight: 500;
}

.education-date {
    color: var(--primary-color);
    font-weight: 600;
}

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

.skill-category h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

.skill-category li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.skill-category li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.contact-info {
    display: grid;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
}

.contact-item i {
    margin-right: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    header {
        position: relative;
        height: auto;
        padding: 2rem 1rem;
    }
    
    .profile img {
        width: 120px;
        height: 120px;
    }
    
    nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        margin: 1rem 0;
    }
    
    nav ul li {
        margin: 0;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
}
