* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}
.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

/* Header */
header {
    background: rgba(41, 128, 185, 0.9);
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
header.scrolled {
    background: rgba(41, 128, 185, 1);
    transform: translateY(-10px);
}
header a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}
header ul {
    padding: 0;
    list-style: none;
}
header li {
    display: inline;
    padding: 0 20px;
}
header #branding {
    float: left;
}
header #branding h1 {
    margin: 0;
    font-size: 1.8rem;
}
header nav {
    float: right;
    margin-top: 5px;
}
header a:hover {
    color: #f39c12;
    transition: color 0.3s ease;
}

/* Showcase */
#showcase {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('img1.avif') no-repeat center center/cover;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#showcase h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}
#showcase p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.5s both;
}
.btn {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    border-radius: 5px;
    animation: fadeInUp 1s ease-out 1s both;
}
.btn:hover {
    background: #c0392b; 
    transform: translateY(-3px);
}

/* Section Styles */
section {
    padding: 4rem 0;
}
section:nth-child(even) {
    background: #fff;
}
section:nth-child(odd) {
    background: #ecf0f1;
}
section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2c3e50; 
}

/* About */
#about p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e; 
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
#about.visible p {
    opacity: 1;
    transform: translateY(0);
}

/* Skills */
#skills ul {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
#skills li {
    background: #3498db; 
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}
#skills li:hover {
    transform: translateY(-3px);
    background: #2980b9;
}

/* Education, Experience, Certifications, Accomplishments */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #2ecc71;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}
.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: #fff;
    border: 4px solid #2ecc71; 
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}
.left {
    left: 0;
}
.right {
    left: 50%;
}
.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid #fff;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #fff;
}
.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid #fff;
    border-width: 10px 10px 10px 0;
    border-color: transparent #fff transparent transparent;
}
.right::after {
    left: -16px;
}
.timeline-content {
    padding: 20px 30px;
    background-color: #fff;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.timeline-content h3 {
    color: #16a085;
}

/* Languages */
#languages ul {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
#languages li {
    background: #9b59b6;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}
#languages li:hover {
    transform: translateY(-3px);
    background: #8e44ad; 
}

/* Projects */
.project {
    background: #fff;
    border-radius: 5px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}
.project.visible {
    opacity: 1;
    transform: translateY(0);
}
.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.project h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #e67e22;
}
#project-filters {
    text-align: center;
    margin-bottom: 2rem;
}
#project-filters button {
    background: #fff;
    color: #333;
    border: 2px solid #3498db; 
    padding: 0.5rem 1rem;
    cursor: pointer;
    margin-right: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 5px;
}
#project-filters button:hover,
#project-filters button.active {
    background: #3498db;
    color: #fff;
}

/* Contact */
#contact form {
    max-width: 600px;
    margin: 0 auto;
}
#contact form input[type="text"],
#contact form input[type="email"],
#contact form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid #bdc3c7;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
#contact form input[type="text"]:focus,
#contact form input[type="email"]:focus,
#contact form textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    outline: none;
}
#contact form textarea {
    height: 150px;
}
#contact form button {
    display: block;
    width: 100%;
    padding: 1rem;
    background: #2ecc71;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
#contact form button:hover {
    background: #27ae60; 
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: #34495e; 
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}
.social-links {
    margin-top: 1rem;
}
.social-links a {
    display: inline-block;
    margin: 0 10px;
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-links a:hover {
    color: #f39c12;
    transform: translateY(-3px);
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Media Queries */
@media(max-width: 768px) {
    .container {
        width: 90%;
    }
    header #branding,
    header nav,
    header nav li {
        float: none;
        text-align: center;
        width: 100%;
    }
    header {
        padding: 1rem 0;
    }
    #showcase h1 {
        font-size: 3rem;
    }
    #showcase p {
        font-size: 1.2rem;
    }
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }
    .left::after, .right::after {
        left: 15px;
    }
    .right {
        left: 0%;
    }
}