/* General Styles */
body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.8;
    color: #2d0c0c;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

body.resume-page {
    background-color: #f9f9f9;
    /* Darker shade for the resume page */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: #e9e8e6;
    padding: 20px 0;
    box-shadow: 0px 0px 25px 0 rgba(0, 0, 0, 0.08);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav .menu li {
    margin-right: 20px;
}

nav .menu li a {
    text-decoration: none;
    color: #888888;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s;
}

nav .menu li a:hover,
nav .menu li a.active {
    color: #34b7a7;
}

.social-links {
    display: flex;
}

.social-icon {
    margin-left: 15px;
    color: #6f6f6f;
    font-size: 18px;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #34b7a7;
}

/* Hero Section Styles */
#hero {
    min-height: calc(100vh - 130px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 40px;
    /* Reduce top padding */
}

.mountain-image {
    width: auto;
    height: 268px;
    margin-bottom: -90px;
}

#hero h1 {
    font-size: 48px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 5px;
}

#hero h2 {
    font-size: 24px;
    color: #6f6f6f;
    margin-bottom: 120px;
}

#view-counter {
    font-size: 16px;
    color: #888;
    margin-bottom: 20px;
}

.btn-about {
    display: inline-block;
    background-color: #34b7a7;
    color: #fff;
    padding: 0.3px 33px;
    border-radius: 70px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-about:hover {
    background-color: #3dc8b7;
}

.btn-about:hover {
    background-color: #3dc8b7;
}

/* Resume Page Styles */
#resume {
    padding: 10px 0 60px;
    /* Reduce top padding, increase bottom padding */
}

.resume-page #resume .container>* {
    animation: slideUp 1s ease-out forwards;
    opacity: 0;
}

#resume h2 {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    position: relative;
    display: inline-block;
    /* This allows the element to wrap tightly around its content */
    margin-bottom: 2px;
    /* Adjust this value to control space below the entire title+line combo */
}

#resume h2::after {
    content: '';
    display: block;
    width: 17%;
    height: 3px;
    background-color: #34b7a7;
    margin-top: -10px;
    /* Minimal gap between text and line */
}

/* For the resume page */
#resume .subtitle {
    font-family: 'Raleway', sans-serif;
    /* Ensure this matches the font of "Student of life..." */
    font-size: 18px;
    color: #6f6f6f;
    margin-bottom: 30px;
}

#resume .subtitle {
    text-align: center;
    margin-top: 25px;
    margin-bottom: 5px;
    color: #696969;
    font-size: 16px;
    /* Adjust size as needed */
    max-width: 1200px;
    /* Limit width for better readability on wide screens */
    margin: 10 auto 30px;
    /* Center the text and add some bottom margin */
    line-height: 2.4;
    /* Improve line spacing */
}

.resume-content {
    display: flex;
    gap: 40px;
}

/* Left column vertical line */
.resume-content .column:first-child::before {
    content: '';
    position: absolute;
    top: 50px;
    /* Adjust this value to start the line below the first circle */
    bottom: 50px;
    /* Adjust this value to end the line above the last circle */
    left: 9px;
    width: 2px;
    background-color: #34b7a7;
}


/* Right column vertical line */
.resume-content .column:last-child::before {
    content: '';
    position: absolute;
    top: 50px;
    /* Adjust this value to start the line below the first circle */
    bottom: 10px;
    /* Adjust this value to end the line above the last circle */
    left: 9px;
    width: 2px;
    background-color: #34b7a7;
}

.column {
    flex: 1;
    position: relative;
    padding-left: 30px;
}

.column::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 40px;
    left: 9px;
    width: 2px;
    height: calc(100% - 50px);
    background-color: #34b7a7;
}

.resume-section {
    position: relative;
    margin-bottom: 15x;
    /* Reduce space between sections */
}

.resume-section h3 {
    font-size: 24px;
    /* Larger section headings */
    font-weight: 600;
    margin-bottom: 15px;
    color: #222222;
    position: relative;
}

.circle {
    position: absolute;
    left: -32px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #34b7a7;
    background-color: #f9f9f9;
    z-index: 1;
    /* Ensure the circle appears over the line */
}

.resume-section h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #34b7a7;
    position: relative;
    padding-left: 30px;
}

.job-circle {
    position: absolute;
    left: -28px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #34b7a7;
    background-color: #f9f9f9;
}

.job {
    margin-bottom: 18px;
    /* Reduce space between jobs */
}

.job h4 {
    font-size: 18px;
    color: #0d5f43;
    /* Larger job titles */
}

.job-date {
    font-style: italic;
    color: #6c6c6c;
    background-color: #f0f0f0;
    padding: 3px 5px;
    display: inline-block;
    margin-bottom: 10px;
}

.cert-images {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    margin-top: 20px;
}

.cert-image {
    width: 170px;
    height: auto;
}

/* Footer Styles */
footer {
    background-color: #e9e8e6;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: 15px;
    z-index: 996;
    background: #34b7a7;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s;
    text-decoration: none;
}

.back-to-top i {
    font-size: 24px;
    color: #fff;
    line-height: 0;
}

.back-to-top:hover {
    background: #49cbbb;
}

.back-to-top.active {
    visibility: visible;
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .resume-content {
        flex-direction: column;
    }
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #34b7a7;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 9999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-200px);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.1) translateY(10px);
    }

    80% {
        opacity: 1;
        transform: scale(0.89) translateY(-5px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fallIn {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#hero .mountain-image,
#hero h1,
#hero h2,
#hero .btn-about {
    opacity: 0;
    animation: fallIn 0.8s ease-out forwards;
    animation-delay: 0.2s;
    /* Same delay for all elements */
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(150px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#resume .container>* {
    animation: slideUp 0.6s ease-out forwards;
    opacity: 0;
}

#resume h2 {
    animation-delay: 0.1s;
}

#resume .subtitle {
    animation-delay: 0.2s;
}

#resume .resume-content {
    animation-delay: 0.3s;
}