/* ========== Basic Styles ========== */
body {
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #E0E0E0;
    line-height: 1.7;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

header {
    background-color: #333;
    color: #E0E0E0;
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 3px solid #444;
    letter-spacing: 1px;
}

header h1 {
    margin: 0;
    font-size: 3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #444;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.social-icon.linkedin:hover {
    background: linear-gradient(135deg, #0072b1, #808080);
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 8px 18px rgba(255, 255, 255, 0.5);
}

.social-icon.github:hover {
    background: linear-gradient(135deg, #2E2E2E, #808080);
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 8px 18px rgba(255, 255, 255, 0.5);
}

.social-icon.email:hover {
    background: linear-gradient(135deg, #0D3B17, #808080);
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 8px 18px rgba(255, 255, 255, 0.5);
}

.social-icon-img {
    width: 50%;
    height: 50%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.social-icon:hover .social-icon-img {
    transform: scale(1.1);
}

/* ========== Navbar ========== */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: auto;
    background-color: #333;
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar a {
    color: #E0E0E0;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.3s ease-in-out;
}

.navbar a:hover {
    background: linear-gradient(135deg, #0D3B17, #39FF14);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

#learning-journey,
#projects {
    scroll-margin-top: 3rem;
}

/* ========== Timeline ========== */
.timeline {
    padding: 2rem 2rem 4rem 2rem;
    background-color: #121212;
    color: #E0E0E0;
    text-align: center;
    position: relative;
}

.header {
    border: 3px solid #39FF14;
    padding: 20px 30px;
    border-radius: 10px;
    width: fit-content;
    margin: auto;
}

.header h2 {
    color: white;
    font-size: 2.5rem;
    margin: 0;
    font-weight: 600;
}

.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    height: 99%;
    width: 3px;
    background-color: #39FF14;
    z-index: 1;
    transform: translateX(-50%);
}

.timeline-entry {
    background-color: #1F1F1F;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: all 0.3s ease;
    z-index: 2;
    border-top: 4px solid #39FF14;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-entry:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(57, 255, 20, 0.5);
}

.entry-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #E0E0E0;
    text-align: center;
    width: 100%;
}

.entry-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.entry-text {
    max-width: 65%;
    text-align: justify;
    line-height: 1.4;
}

.entry-thumbnail {
    max-height: 225px;
    border-radius: 8px;
}

.timeline-marker {
    width: 20px;
    height: 20px;
    background-color: #39FF14;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: -10px;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.timeline-entry:nth-child(odd) .entry-content {
    flex-direction: row-reverse;
}

.timeline-entry:nth-child(even) .entry-content {
    flex-direction: row;
}

/* ========== Projects ========== */
.projects {
    display: flex;
    margin: 3rem 2rem;
    flex-direction: column;
    align-items: center;
}

.project-section {
    background-color: #1F1F1F;
    padding: 4rem 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 1200px;
    border-top: 4px solid #39FF14;
}

.project-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #E0E0E0;
}

.project-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.project-card {
    width: 300px;
    background-color: #222;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(57, 255, 20, 0.5);
}

.project-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.4s ease;
}

.project-thumbnail:hover {
    opacity: 0.8;
}

.project-title {
    font-size: 1.8rem;
    font-weight: 500;
    color: #E0E0E0;
    margin: 1rem 0;
    text-transform: capitalize;
}

.project-description {
    font-size: 1rem;
    margin: 0 0 1.5rem;
    color: #B0B0B0;
    text-align: justify;
}

/* ========== Project Buttons ========== */
.project-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.project-link, .github-button, .youtube-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: #333;
    color: #E0E0E0;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.project-link:hover, .github-button:hover, .youtube-link:hover {
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.5);
}

.project-link:hover {
    background: linear-gradient(135deg, #0D3B17, #808080);
}

.youtube-link:hover {
    background: linear-gradient(135deg, #8B0000, #808080);

}

.github-button:hover {
    background: linear-gradient(135deg, #2E2E2E, #808080);
}

.project-link i, .github-button i, .youtube-link i {
    margin-right: 8px;
    font-size: 1.5rem;
}

/* ========== About ========== */
.about-page section {
    background-color: #1F1F1F;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: all 0.3s ease;
    z-index: 2;
    border-top: 4px solid #39FF14;
    max-width: 800px;
    margin: 50px auto;
}

.about-page section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(57, 255, 20, 0.5);
}

.about-page h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #E0E0E0;
}

.about-page p {
    font-size: 1.1rem;
    color: #B0B0B0;
    line-height: 1.7;
    text-align: justify;
}

/* ========== Footer ========== */
footer {
    background-color: #333;
    color: #E0E0E0;
    padding: 3rem 2rem;
    text-align: center;
    border-top: 4px solid #39FF14;
}

/* ========== Responsive Design ========== */
@media (max-width: 1024px) {
    /* Tablet adjustments */
    .entry-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .entry-text, .entry-thumbnail {
        max-width: 100%;
    }

    .navbar ul {
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    /* Mobile adjustments */
    .timeline-entry {
        padding: 1.5rem 1rem;
    }

    #learning-journey {
        padding: 0;
    }

    .entry-title {
        font-size: 1.5rem;
    }

    .entry-text {
        font-size: 0.95rem;
        margin: 1rem;
        display: none;
    }

    .navbar ul {
        align-items: center;
        padding: 0;
    }

    .navbar li {
        margin: 0.5rem 0;
    }

    .project-buttons {
        display: flex;
        align-items: center;
    }

    .project-buttons a {
        font-size: 0.65rem;
        padding: 8px 12px;
        margin: 5px 0;
        width: auto;
    }
}
