:root {
    --color1: #333333;
    --color2: #2c3e50;
    --color3: #3498db;

    --white1: #ffffff;
    --white2: #f8f9fa;

}

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

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

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

/* Navigation */
.navbar {
    background: var(--white1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color2);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--color1);
    font-weight: 500;
    transition: color 0.1s ease;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--color3);
}

/* Ensure proper section switching */
.section {
    min-height: 100vh;
    padding: 100px 0 50px;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.section.active {
    display: block;
    opacity: 1;
}

/* Make sure home section displays properly */
#home.active {
    display: flex;
    opacity: 1;
}

.home-content {
    text-align: center;
    max-width: 800px;
}

.home-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.intro {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.contact-info {
    animation: fadeInUp 1s ease 0.4s both;
}

.contact-info p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.contact-info a {
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
}

/* CV Section */
#cv {
    background: #fff;
    padding: 100px 0;
}

#cv h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
}

.cv-section {
    margin-bottom: 40px;
}

.cv-section h3 {
    font-size: 1.8rem;
    color: var(--color3);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color3);
    padding-bottom: 10px;
}

.cv-item {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--color3);
}

.cv-item a {
    color: var(--color3);
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
}

.cv-item a:hover {
    color: var(--color3);
}

.cv-item h4 {
    color: var(--color2);
    margin-bottom: 5px;
}

.date {
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 10px;
}

.position {
    font-weight: bold;
    color: #34495e;
    margin-bottom: 10px;
}

.cv-item ul {
    margin-left: 20px;
    margin-top: 10px;
}

.cv-item li {
    margin-bottom: 5px;
}

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

.skill-category h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

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

.skill-category li {
    background: #ecf0f1;
    padding: 8px 15px;
    margin: 5px 0;
    border-radius: 20px;
    display: inline-block;
    margin-right: 10px;
}

/* Projects Section */
#projects {
    background: #ecf0f1;
    padding: 100px 0;
}

#projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
}

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

.project-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.project-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.project-card p {
    color: #7f8c8d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: var(--color3);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 15px;
    }

    .home-content h1 {
        font-size: 2rem;
    }

    .intro {
        font-size: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }

    .nav-menu {
        margin-top: 10px;
    }

    .section {
        padding: 120px 0 30px;
    }

    .home-content h1 {
        font-size: 1.8rem;
    }
}