/* Main CSS for Data Scientist Portfolio */
:root {
    --primary-color: #ffc107;
    --secondary-color: #343a40;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
}

/* General Styles */
body {
    font-family: var(--font-primary);
    background-color: var(--dark-color);
    color: #fff;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--light-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

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

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--dark-color);
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #e0a800;
    color: var(--dark-color);
    transform: translateY(-2px);
}

/* Header Styles */
header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: rgba(33, 37, 41, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-menu ul li {
    margin-left: 30px;
}

.nav-menu ul li a {
    position: relative;
    font-weight: 500;
}

.nav-menu ul li a.active {
    color: var(--primary-color);
}

.nav-menu ul li a:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Profile Section */
.profile {
    padding: 150px 0 100px;
    display: flex;
    align-items: center;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
}

.profile-info {
    margin-left: 30px;
}

.profile-title {
    font-size: 3rem;
    margin-bottom: 10px;
}

.profile-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.profile-text {
    max-width: 600px;
    margin-bottom: 30px;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    margin-right: 15px;
    font-size: 1.2rem;
}

/* About Section */
.about {
    padding: 100px 0;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.about-text {
    max-width: 600px;
}

/* Resume Section */
.resume {
    padding: 100px 0;
}

.timeline {
    position: relative;
    padding-left: 30px;
    margin-bottom: 50px;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: -39px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 4px solid var(--dark-color);
}

.timeline-year {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.timeline-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Skills Section */
.skills {
    padding: 50px 0;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.skill-bar {
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 4px;
    overflow: hidden;
}

.skill-percentage {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.portfolio-filter-item {
    margin: 0 10px;
    padding: 8px 15px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-filter-item.active {
    background-color: var(--primary-color);
    color: var(--dark-color);
}

.portfolio-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
}

.portfolio-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.portfolio-info {
    background-color: var(--secondary-color);
    padding: 20px;
}

.portfolio-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.portfolio-category {
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-info {
    margin-bottom: 50px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    color: var(--primary-color);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--secondary-color);
    border: none;
    border-radius: 5px;
    color: #fff;
}

/* Footer */
footer {
    padding: 20px 0;
    background-color: var(--secondary-color);
    text-align: center;
}

/* Media Queries */
@media (max-width: 991px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .profile {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-info {
        margin-left: 0;
        margin-top: 30px;
    }
    
    .portfolio-items {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Project page specific styles */
.project-header {
    padding: 150px 0 50px;
    text-align: center;
}

.project-content {
    padding: 50px 0;
    background-color: var(--secondary-color);
    border-radius: 10px;
    margin-bottom: 50px;
}

.project-description {
    margin-bottom: 30px;
}

.project-img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 30px;
}

.chart-container {
    background-color: #2c3237;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #3f474f;
}

.data-table th {
    background-color: var(--primary-color);
    color: var(--dark-color);
}
