/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: white;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links li a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.nav-links li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Header adjustment for fixed navbar */
header {
    margin-top: 60px;
}

/* Base Styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-color: #1f2937;
    --text-light: #4b5563;
    --background-color: #f9fafb;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --timeline-color: #dbeafe;
    --success-color: #10b981;
}

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

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

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

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

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

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 100px 0 60px;
    text-align: center;
}

.header-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.header-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 30px;
    opacity: 0.9;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    color: white;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background-color: white;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    color: var(--primary-color);
}

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

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

.about-content p {
    margin-bottom: 20px;
}

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

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

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

.timeline-content {
    position: relative;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-left: 60px;
    border-left: 4px solid var(--primary-color);
}

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

.timeline-content h3 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.timeline-place {
    font-weight: 500;
    margin-bottom: 5px;
}

.timeline-date {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 10px;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-category {
    margin-bottom: 30px;
}

.skill-category h3 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 15px;
    color: var(--primary-color);
}

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

.skill-name {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

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

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

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.project-company {
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 10px;
}

.project-link {
    margin-top: auto;
    display: inline-block;
    padding: 8px 0;
    font-weight: 500;
}

/* Awards Section */
.awards-list {
    max-width: 800px;
    margin: 0 auto;
}

.award-item {
    display: flex;
    margin-bottom: 30px;
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.award-year {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    min-width: 120px;
}

.award-content {
    padding: 20px;
    flex-grow: 1;
}

.award-content h3 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 10px;
    color: var(--primary-color);
}

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

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

footer .social-links a {
    font-size: 1.5rem;
    margin: 0 10px;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.header-content h1 {
    animation: fadeIn 1s ease-out;
}

.header-content h2 {
    animation: fadeIn 1s ease-out 0.3s forwards;
    opacity: 0;
}

.header-content .social-links {
    animation: fadeIn 1s ease-out 0.6s forwards;
    opacity: 0;
}

.section-title {
    animation: fadeIn 0.8s ease-out;
}

.timeline-item, .project-card, .award-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.timeline-item.animate, .project-card.animate, .award-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.skill-level {
    width: 0;
    transition: width 1s ease-out;
}

.skills-container.animate .skill-level {
    width: 100%;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2.5rem;
    }
    
    .header-content h2 {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-content {
        margin-left: 60px;
    }
    
    .timeline-content::before {
        left: -44px;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .award-item {
        flex-direction: column;
    }
    
    .award-year {
        padding: 10px;
        min-width: 100%;
    }
    
    /* Responsive Navigation */
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-links.active {
        max-height: 300px;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links li a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .menu-toggle.active i::before {
        content: "\f00d";
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 2rem;
    }
    
    .social-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}
