/* Hero Section */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #1a2b3c;
    background-image: radial-gradient(rgba(0, 0, 0, 0.05) 10px, transparent 1px);
    background-size: 40px 40px;
    color: #fff;
    text-align: center;
    padding: 2rem;
}

.hero-content {
    display: flex;
    align-items: center;
    max-width: 1200px;
}

.profile-img {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    margin-right: 2rem;
    border: 4px solid #fff;
}

.about-text {
    text-align: left;
}

.about-text h1 {
    font-size: 2.5rem;
}

.about-text h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.hero-buttons {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    /* or flex-start if you prefer left-aligned */
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    /* pill shape - very modern */
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    /* makes icon white - adjust if needed */
}

/* Contact Me - blue */
.btn-contact {
    background-color: #b16e18;
    color: white;
}

.btn-contact:hover {
    background-color: #8a5815;
    transform: translateY(-2px);
}

/* Download CV - green */
.btn-download {
    background-color: #28a745;
    color: white;
}

.btn-download:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

/* LinkedIn - official LinkedIn blue with border */
.btn-linkedin {
    background-color: #0a66c2;
    color: white;
}

.btn-linkedin:hover {
    background-color: #084d99;
    transform: translateY(-2px);
}

/* Timeline Section */
.timeline-section {
    padding: 4rem 2rem;
    background-color: #fff;
}

.timeline-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #1a2b3c;
    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 #1a2b3c;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(even)::after {
    left: -16px;
}

.timeline-icon {
    display: flex;
    padding: 0 50px;
    margin-bottom: 0.5rem;
}

.timeline-icon img {
    max-height: 10vh;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.timeline-content {
    padding: 20px 30px;
    background-color: #f4f4f4;
    position: relative;
    border-radius: 6px;
}

.date {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Education Section */
.education-section {
    padding: 4rem 2rem;
    background-color: #f4f4f4;
}

.education-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1a2b3c;
}

.education-item {
    display: flex;
    align-items: center;
    max-width: 900px;
    margin: 0 auto 2.5rem;
    padding: 1rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease;
}

.education-item:hover {
    transform: translateY(-5px);
}

.education-image {
    flex: 0 0 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.uni-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.education-text {
    flex: 1;
    padding: 1.8rem 2rem;
}

.education-text h3 {
    margin: 0 0 0.6rem 0;
    color: #1a2b3c;
    font-size: 1.4rem;
}

.education-text p {
    margin: 0.3rem 0;
    color: #555;
}


/* Projects Section */
.projects-section {
    padding: 4rem 2rem;
    background-color: #fff;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
    }

    .profile-img {
        margin-top: 2rem;
        margin-right: 0;
        margin-bottom: 0rem;
        height: 200px;
        width: 200px;
    }

    .about-text {
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 15px;
    }

    .timeline-item:nth-child(even) {
        left: 0%;
    }

    .education-item {
        flex-direction: column;
        text-align: center;
    }

    .education-image {
        flex: 0 0 auto;
        width: 120px;
        height: 120px;
        border-radius: 0 0 50% 50% / 20%;
        margin-bottom: 1rem;
    }

    .education-text {
        padding: 1.2rem 1.5rem;
    }
}