*{
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
}

body {
    background-image: linear-gradient(to bottom right, #f8f9fa, #e0f7fa, #b3e5fc);
    animation: gradientBG 15s ease infinite;
    background-size: 400% 400%;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 50px; /* Adjust the height to make the header taller */
    background: linear-gradient(to right, #0a1a2a, #182d42);
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header:hover {
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
}

.header.hidden {
    transform: translateY(-100%);
    transition: transform 0.5s ease-in-out;
}

.inner_header{ 
    width: 100%;
    height: 100%;
    display: block;
    margin: auto;
    padding: 0px 60px;
}

.home {
    height: 100%;
    display: table;
    float: left;
}

.home h1{
    height: 100%;
    display: table-cell;
    font-family: 'Playfair Display', serif;
    vertical-align: middle;
    font-weight: 10;
    color: #f5f5f5;
    font-size: 24px;
}

.navigation {
    float: right;
    height: 100%;
    padding: 0px 150px;
}

.navigation a{
    height: 100%;
    display: table;
    float: left;
    padding: 0px 20px;
}

.navigation a li{
    display: table-cell;
    vertical-align: middle;
    font-family: 'Playfair Display', serif;
    color: #f5f5f5;
    transition: color 0.3s ease;
}

.navigation a li:hover {
    color: #b3e5fc;
}

.video_opener{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    opacity: 1;
    transition: opacity 1s ease-out;
}

.video_opener.hidden {
    opacity: 0;
    pointer-events: none;
}

#scroll_video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content {
    position: relative;
    z-index: 1;
    padding-top: 100vh;
    min-height: 100vh;
}

.box {
    border: 5px solid #000;
    overflow: hidden;
    border-radius: 50px 0px 50px 0px;
    width: 600px; /* Increased width to make the frame bigger */
    height: 650px;
    position: absolute;
    top: 125px;
    left: 8%;
    box-shadow: 0px 1px 4px #333333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box:hover {
    transform: scale(1.02);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

.box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Change to cover to make the image fit inside the box */
    object-position: center;
}

.portfolio {
    position: absolute;
    top: 200px;
    left: calc(10% + 700px); /* Adjusted to move more to the right */
    padding: 0;
    margin: 0;
    z-index: 10;
}

.portfolio_title h1{
    font-family: "Playfair Display", serif;
    font-size: 75px;
    font-weight: 420;
    color: #333333;
}

.name, h2{
    font-family: "Lato", sans-serif;
    font-size: 30px;
    font-weight: 300;
    color: #333333;
    padding-top: 15px;
    padding-bottom: 40px;
}

.bionote {
    position: absolute;
    top: 1100px;
    left: 8%; 
    width: 84%; 
    padding: 40px;
    background-color: rgba(245, 245, 245, 0.8);
    border-radius: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 20px;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.bionote:hover {
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15);
}

.details {
    display: contents;
}

.pangalan, .edukasyon, .trabaho, .parangal {
    padding: 10px;
}

.pangalan {
    grid-column: 1;
    grid-row: 1;
}

.edukasyon {
    grid-column: 2;
    grid-row: 1;
}

.trabaho {
    grid-column: 1;
    grid-row: 2;
}

.parangal {
    grid-column: 2;
    grid-row: 2;
}

.pangalan h1, .edukasyon h1, .trabaho h1, .parangal h1 {
    font-family: "Playfair Display", serif;
    font-size: 30px;
    font-weight: 10;
    color: #333333;
    margin-bottom: 10px;
}

.pangalan h2, .edukasyon h2, .trabaho h2, .parangal h2 {
    font-family: "Lato", sans-serif;
    font-size: 20px;
    font-weight: 300;
    color: #333333;
    margin-left: 25px;
}

.csa_logo {
    grid-column: 3;
    grid-row: 1 / span 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.csa_logo img {
    width: 400px;
    height: 400px;
    object-fit: contain;
}

.curriculum_vitae {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 2900px;
    left: 10%;
    width: 80%;
}

.cv_content, .ab_content, .ag_content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 20px;
}

.cv, .ab, .ag {
    flex-basis: 70%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cv embed, .ab embed, .ag embed {
    width: 75%;
    height: 700px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.cv embed:hover, .ab embed:hover, .ag embed:hover {
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.15);
}

.cv_title h1, .ab_title h1, .ag_title h1 {
    font-family: "Playfair Display", serif;
    color: #182d42;
    font-weight: 400;
    letter-spacing: 1px;
    padding-bottom: 10px;
    width: 100%;
    position: relative;
    display: inline-block;
}

.cv_title h1 {
    text-align: left;
}

.ab_title h1 {
    text-align: right;
}

.ag_title h1 {
    text-align: left;
}

.cv_title h1::after, .ab_title h1::after, .ag_title h1::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #182d42;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.cv_title h1:hover::after, .ab_title h1:hover::after, .ag_title h1:hover::after {
    transform: scaleX(1);
}

.cv_skl p, .ab_skl p, .ag_skl p {
    font-family: 'Lato', sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.8;
    text-align: justify;
    color: #333;
    margin-bottom: 20px;
}

.cv_skl, .ab_skl, .ag_skl {
    flex-basis: 30%;
    font-family: "Playfair Display", serif;
    font-weight: 10;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
    text-align: center;
    max-width: 600px;
    min-width: 400px;
}

.cv_skl h1, .ab_skl h1, .ag_skl h1 {
    color: #182d42;
    font-weight: 400;
    letter-spacing: 1px;
    text-align: center;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 20px;
    border: 2px solid #182d42;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.cv_skl h1::after, .ab_skl h1::after, .ag_skl h1::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    bottom: -5px;
    left: 25%;
    background-color: #182d42;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.cv_skl h1:hover::after, .ab_skl h1:hover::after, .ag_skl h1:hover::after {
    transform: scaleX(1);
}

.abstrak {
    position: absolute;
    margin-top: 200px;
    display: flex;
    flex-direction: column;
    top: 3700px;
    left: 10%;
    width: 80%;
}

.ab {
    align-items: flex-end;
}

.Agenda {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 4700px;
    left: 10%;
    width: 80%;
    margin-top: 200px;
}

#scrollButton {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 10px 20px;
    background-color: #182d42;
    color: white;
    border: none;
    cursor: pointer;
    font-family: 'Playfair Display', serif;
    transition: background-color 0.3s ease;
}

#scrollButton:hover {
    background-color: #0a1a2a;
}

#scrollLine {
    position: fixed;
    top: 0;
    left: 50px; /* Adjust this value as needed */
    width: 2px;
    height: 0;
    background-color: #0a1a2a;
    z-index: 1000;
    transition: height 0.1s ease-out;
    transition: opacity 0.3s ease-out, height 0.1s ease-out;
}

#scrollLine::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #0a1a2a;
    top: var(--circle-position, 0);
    transition: top 0.1s ease-out;
}

#scrollToProjects {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    background-color: #182d42;
    color: white;
    border: none;
    cursor: pointer;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#scrollToProjects:hover {
    background-color: #0a1a2a;
}

.project-title {
    position: relative;
    display: inline-block;
}

.project-title::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #182d42;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-title:hover::after {
    transform: scaleX(1);
}

.button-container {
    position: relative;
    display: inline-block;
}

.hover-box {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.hover-box ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.hover-box ul li {
    padding: 5px 0;
    font-family: "Lato", sans-serif;
    color: #182d42;
}

.button-container:hover .hover-box {
    display: block;
}

.pulong {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 5700px;
    left: 10%;
    width: 80%;
    margin-top: 200px;
}

.pu_content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 20px;
}

.pu {
    flex-basis: 70%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pu embed {
    width: 75%;
    height: 700px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.pu embed:hover {
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.15);
}

.pu_title h1 {
    font-family: "Playfair Display", serif;
    color: #182d42;
    font-weight: 400;
    letter-spacing: 1px;
    padding-bottom: 10px;
    width: 100%;
    position: relative;
    display: inline-block;
    text-align: left;
}

.pu_title h1::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #182d42;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.pu_title h1:hover::after {
    transform: scaleX(1);
}

.pu_skl {
    flex-basis: 30%;
    font-family: "Playfair Display", serif;
    font-weight: 10;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
    text-align: center;
    max-width: 600px;
    min-width: 400px;
}

.pu_skl h1 {
    color: #182d42;
    font-weight: 400;
    letter-spacing: 1px;
    text-align: center;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 20px;
    border: 2px solid #182d42;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pu_skl h1::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    bottom: -5px;
    left: 25%;
    background-color: #182d42;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.pu_skl h1:hover::after {
    transform: scaleX(1);
}

.pu_skl p {
    font-family: 'Lato', sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.8;
    text-align: justify;
    color: #333;
    margin-bottom: 20px;
}

.panukalang_proyekto {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 6700px;
    left: 10%;
    width: 80%;
    margin-top: 200px;
}

.pp_content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 20px;
}

.pp {
    flex-basis: 70%;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Align items to the end */
    order: 2; /* Ensure the document is on the right */
    margin-left: 0; /* Remove the margin-left */
}

.pp embed {
    width: 75%;
    height: 700px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.pp embed:hover {
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.15);
}

.pp_title h1 {
    font-family: "Playfair Display", serif;
    color: #182d42;
    font-weight: 400;
    letter-spacing: 1px;
    padding-bottom: 10px;
    width: 100%;
    position: relative;
    display: inline-block;
    text-align: left;
}

.pp_title h1::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #182d42;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.pp_title h1:hover::after {
    transform: scaleX(1);
}

.pp_skl {
    flex-basis: 30%;
    font-family: "Playfair Display", serif;
    font-weight: 10;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
    text-align: center;
    max-width: 600px;
    min-width: 400px;
    order: 1; /* Change order to 1 */
}

.pp_skl h1 {
    color: #182d42;
    font-weight: 400;
    letter-spacing: 1px;
    text-align: center;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 20px;
    border: 2px solid #182d42;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pp_skl h1::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    bottom: -5px;
    left: 25%;
    background-color: #182d42;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.pp_skl h1:hover::after {
    transform: scaleX(1);
}

.pp_skl p {
    font-family: 'Lato', sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.8;
    text-align: justify;
    color: #333;
    margin-bottom: 20px;
}

.posisyong_papel {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 7700px;
    left: 10%;
    width: 80%;
    margin-top: 200px;
}

.pop_content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 20px;
}

.pop {
    flex-basis: 70%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pop embed {
    width: 75%;
    height: 700px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.pop embed:hover {
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.15);
}

.pop_title h1 {
    font-family: "Playfair Display", serif;
    color: #182d42;
    font-weight: 400;
    letter-spacing: 1px;
    padding-bottom: 10px;
    width: 100%;
    position: relative;
    display: inline-block;
    text-align: left;
}

.pop_title h1::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #182d42;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.pop_title h1:hover::after {
    transform: scaleX(1);
}

.pop_skl {
    flex-basis: 30%;
    font-family: "Playfair Display", serif;
    font-weight: 10;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
    text-align: center;
    max-width: 600px;
    min-width: 400px;
}

.pop_skl h1 {
    color: #182d42;
    font-weight: 400;
    letter-spacing: 1px;
    text-align: center;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 20px;
    border: 2px solid #182d42;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pop_skl h1::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    bottom: -5px;
    left: 25%;
    background-color: #182d42;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.pop_skl h1:hover::after {
    transform: scaleX(1);
}

.pop_skl p {
    font-family: 'Lato', sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.8;
    text-align: justify;
    color: #333;
    margin-bottom: 20px;
}

.talumpati {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 8700px; /* Adjust the top value as needed */
    left: 10%;
    width: 80%;
    margin-top: 200px;
}

.tal_content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 20px;
}

.tal {
    flex-basis: 70%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tal embed {
    width: 75%;
    height: 700px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.tal embed:hover {
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.15);
}

.tal_title h1 {
    font-family: "Playfair Display", serif;
    color: #182d42;
    font-weight: 400;
    letter-spacing: 1px;
    padding-bottom: 10px;
    width: 100%;
    position: relative;
    display: inline-block;
    text-align: left;
}

.tal_title h1::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #182d42;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tal_title h1:hover::after {
    transform: scaleX(1);
}

.tal_skl {
    flex-basis: 30%;
    font-family: "Playfair Display", serif;
    font-weight: 10;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
    text-align: center;
    max-width: 600px;
    min-width: 400px;
}

.tal_skl h1 {
    color: #182d42;
    font-weight: 400;
    letter-spacing: 1px;
    text-align: center;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 20px;
    border: 2px solid #182d42;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.tal_skl h1::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    bottom: -5px;
    left: 25%;
    background-color: #182d42;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tal_skl h1:hover::after {
    transform: scaleX(1);
}

.tal_skl p {
    font-family: 'Lato', sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.8;
    text-align: justify;
    color: #333;
    margin-bottom: 20px;
}

.pagsasalamat {
    display: flex;
    flex-direction: column;
    position: relative;
    top: 50px; /* Adjust the top value as needed */
    left: 10%;
    width: 80%;
    margin-top: 50px;
    padding: 20px;
    border: 2px solid #182d42;
    border-radius: 10px;
    background-color: #f9f9f9;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}

.pagsasalamat_title h1 {
    font-family: "Playfair Display", serif;
    color: #182d42;
    font-weight: 400;
    letter-spacing: 1px;
    padding-bottom: 10px;
    width: 100%;
    position: relative;
    display: inline-block;
    text-align: left;
}

.pagsasalamat_title h1::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #182d42;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.pagsasalamat_title h1:hover::after {
    transform: scaleX(1);
}

.pagsasalamat_content {
    font-family: 'Lato', sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.8;
    text-align: justify;
    color: #333;
    margin-top: 20px;
}

.sanggunian {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 9800px; /* Keep the vertical position */
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    margin-top: 200px;
}

.san_content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 20px;
    left: 50%;
}

.san {
    flex-basis: 70%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    left: 50%;
}

.san embed {
    width: 75%;
    height: 700px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    left: 50%;
}

.san_title h1 {
    font-family: "Playfair Display", serif;
    color: #182d42;
    font-weight: 400;
    letter-spacing: 1px;
    padding-bottom: 10px;
    width: 100%;
    text-align: center;
}

