.main {
    padding-left: 150px;
    padding-right: 150px;
}

.hero-section {
    margin-top: 5rem;
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}
.hero-text {
    flex: 1;
}
.hero-section h1 {
    color: var(--accent);
    font-size: 3rem;
    margin-top: 0;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--accent-glow);
}
.hero-section p {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--sub);
    margin: 0;
}
.hero-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 0 25px var(--accent-glow);
}

/* Cert Carousel Infinite Scroll */
.cert-carousel-section {
    margin-bottom: 4rem;
}
.cert-carousel {
    overflow: hidden;
    padding: 2rem 0;
    background-color: var(--bg);
    white-space: nowrap;
    position: relative;
    border-bottom: 1px solid var(--border);
}
.cert-carousel::before, .cert-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.cert-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
}
.cert-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
}
.cert-track {
    display: inline-block;
    animation: scroll 40s linear infinite;
}
.cert-track:hover {
    animation-play-state: paused;
}
.cert-track img {
    height: 400px;
    margin: 0 1.5rem;
    border-radius: 8px;
    vertical-align: middle;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border: 1px solid var(--border);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Timeline Layout */
.timeline-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    border-left: 2px solid var(--border);
    padding-left: 2rem;
    margin: 0 auto 4rem auto;
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
}

.timeline-item {
    position: relative;
    background-color: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 2rem;
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
    transition: all 0.15s ease-in-out;
}

.timeline-item:hover {
    border: 1px solid var(--accent);
}

/* Timeline dot */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.7rem;
    top: 2rem;
    width: 1rem;
    height: 1rem;
    background-color: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 2px var(--border);
}

.timeline-date {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-item h2 {
    font-family: var(--font-heading);
    color: var(--text);
    margin-top: 0;
    font-size: 2rem;
}

.timeline-item p {
    color: var(--sub);
    line-height: 1.6;
    letter-spacing: 0.5px;
}

.timeline-highlight {
    color: var(--green);
    font-weight: bold;
}

/* =====================
   Responsive Design
   ===================== */
@media (max-width: 1024px) {
    .main {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .hero-section {
        margin-top: 2rem;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .hero-image {
        width: 180px;
        height: 180px;
    }
    .cert-carousel::before, .cert-carousel::after {
        width: 50px;
    }
}

@media (max-width: 500px) {
    .main {
        padding-left: 0;
        padding-right: 0;
    }
    .timeline-container {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        gap: 2rem;
    }
    .timeline-item::before {
        display: none;
    }
    .timeline-item {
        padding: 1.5rem;
        border-radius: 10px;
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-image {
        width: 150px;
        height: 150px;
    }
    .cert-track img {
        height: 250px;
        margin: 0 1rem;
    }
}
