@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
}

/* Header */
header {
    background-color: #333;
    color: #fff;
    padding: 1rem 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

header img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid #00bcd4;
}

nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

nav a:hover {
    color: #00bcd4;
}

/* Sections */
section {
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #00bcd4;
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Skills */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    justify-content: center;
}

.skills-list li {
    background: #fff;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    font-weight: 500;
}

/* Projects */
.projects {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.project {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}

.project img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 1rem;
}

/* Education Timeline */
.education h3 {
    margin-top: 2rem;
    font-size: 1.5rem;
    color: #333;
}

.timeline {
    position: relative;
    margin: 2rem 0;
    padding-left: 60px;
    border-left: 3px solid #00bcd4;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 5px;
    width: 20px;
    height: 20px;
    background-color: #00bcd4;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #00bcd4;
}

.timeline-year {
    position: absolute;
    left: -140px;
    width: 120px;
    text-align: right;
    font-weight: bold;
    color: #00bcd4;
}

.timeline-content {
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.1);
}

.timeline-content ul {
    margin-top: 0.5rem;
    padding-left: 20px;
}

/* Contact */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-info span {
    background: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info span:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.1);
}

.contact-info a {
    color: #00bcd4;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Download CV Button */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #00bcd4;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: #0097a7;
    transform: translateY(-3px);
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem 0;
    background-color: #333;
    color: #fff;
    margin-top: 2rem;
}

footer a {
    color: #00bcd4;
    text-decoration: none;
    margin: 0 0.3rem;
}

footer a:hover {
    text-decoration: underline;
}

/* Media Queries */
@media (min-width: 768px) {
    .projects {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .timeline {
        padding-left: 30px;
    }
    .timeline-year {
        position: relative;
        left: 0;
        width: auto;
        text-align: left;
        margin-bottom: 0.5rem;
    }
    .timeline-item::before {
        left: -5px;
    }
}
