/* 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: rgb(200, 200, 200);
    background: #363636;
    min-height: 100vh;
    padding: 20px;
}

/* Main container */
.main-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgb(35, 35, 35);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideIn 0.8s ease-out;
}

.tooltip {
    position: relative;
    cursor: pointer;
    text-decoration: underline;
}

.tooltip .tooltiptext {
    visibility: hidden;
    background-color: #000000;
    color: #ffffff;
    text-align: center;
    border-radius: 5px;
    padding: 5px 10px;
    position: absolute;
    z-index: 1;
    bottom: 70%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
  }
  
  .tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
  }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header styles */
header {
    background: #252525;
    color: rgb(200, 200, 200);
    padding: 40px;
    text-align: center;
    position: relative;
}

/* Header flex layout */
.header-flex {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
}

.profile-image {
    margin-bottom: 0;
}

.header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

header {
    text-align: left;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.contact-info {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    align-items: center;
}

.contact-icon {
    width: 24px;
    height: 24px;
    margin-right: 0;
    transition: transform 0.2s;
}

.contact-icon:hover {
    transform: scale(1.15);
    filter: brightness(1.2);
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.occupation {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Section styles */
section {
    padding: 30px 40px;
    border-top: 1px solid #000000;
    border-bottom: 1px solid #000000;
    transition: all 0.3s ease;
}

section:hover {
    background-color: #262626;
}

section:last-child {
    border-bottom: none;
}

section h2 {
    color: rgb(200, 200, 200);
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #7c7c7c;
    border-radius: 2px;
}

/* List styles */
ul {
    list-style: none;
}

li {
    margin-bottom: 15px;
    padding: 15px;
    background: #0f0f0f;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

li:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgb(0, 0, 0);
    background: #242424;
}

/* Skills section */
.skills li {
    display: inline-block;
    margin: 5px;
    padding: 8px 16px;
    background: #434343;
    color: rgb(200, 200, 200);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    border-left: none;
}

.skills li:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.548)
}

/* Career history styles */
.career-history li {
    border-left: 4px solid #b0b0b0;
}

.career-history strong {
    color: rgb(200, 200, 200);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.career-history span {
    color: #f1f1f1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.email-text {
    color: rgb(200, 200, 200);
    font-size: 1rem;
    user-select: all;
    margin-left: 4px;
    word-break: break-all;
    position: relative;
    top: -5px;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .main-container {
        border-radius: 15px;
    }
    
    header {
        padding: 30px 20px;
    }
    
    .header-flex {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .header-text {
        align-items: center;
    }
    header {
        text-align: center;
    }
    .profile-image {
        margin-bottom: 10px;
    }
    
    .profile-pic {
        width: 100px;
        height: 100px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 25px 20px;
    }
    
    .skills li {
        display: block;
        margin: 5px 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .occupation {
        font-size: 1rem;
    }

    section h2 {
        font-size: 1.3rem;
    }
}
