/* Import Poppins font */
@import url("https://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800,900&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* Canvas Background */
html,
body {
    margin: 0;
    padding: 0;
    background-color: transparent;
    position: relative;
    height: 100%;
}

#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    filter: url("#shadowed-goo");
    background-color: #1a1a1a;
}

svg {
    display: none;
}

/* Navigation Styles */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 2000;
    color: white;
    display: flex;
    align-items: center;
    padding: 0 20px;
    background-color: rgba(26, 26, 26, 0.9);
}

.title h1 {
    font-size: 24px;
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-weight: 800;
}

.navBtns {
    display: flex;
    gap: 50px;
    position: fixed;
    top: 0;
    right: 0;
    padding: 40px;
}

.navBtn {
    font-size: 18px;
    color: #e1e1e1;
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    cursor: pointer;
    position: relative;
    border: none;
    background: none;
    text-transform: uppercase;
    transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
    transition-duration: 400ms;
    transition-property: color;
}

.navBtn a {
    text-decoration: none;
    color: inherit;
}

.navBtn:focus,
.navBtn:hover {
    color: #fff;
}

.navBtn:focus:after,
.navBtn:hover:after {
    width: 100%;
    left: 0%;
}

.navBtn:after {
    content: "";
    pointer-events: none;
    bottom: -2px;
    left: 50%;
    position: absolute;
    width: 0%;
    height: 2px;
    background-color: #fff;
    transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
    transition-duration: 400ms;
    transition-property: width, left;
}

#active {
    color: rgb(0, 119, 216);
}

#active:after {
    background-color: rgb(0, 119, 216);
    width: 100%;
    left: 0;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    margin-left: auto;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Body Content Styles */
.body {
    padding-top: 3%;
    min-height: 100vh;
    position: relative;
    z-index: 10;
    background-color: rgba(26, 26, 26, 0.9);
    border-radius: 10px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.breakline {
    height: 2px;
    width: 100%;
    background-color: white;
}

/* Section 1 */
.section1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 30px;
}

.introduction {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10%;
    padding: 0 40px;
}

.introduction p {
    font-size: 18px;
    color: #fff;
    width: 50%;
    line-height: 1.6;
    text-align: justify;
}

.introduction .imgCard {
    width: 350px;
    height: 500px;
}

.introduction img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Introduction Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.introduction p,
.imgCard {
    opacity: 0;
    transition: opacity 0.8s;
}

.introduction p.visible,
.imgCard.visible {
    opacity: 1;
}

/* Section 2 */
.section2 {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.sectTitle {
    font-size: 24px;
    font-weight: 600;
    color: #0077ff;
    margin: 40px;
    text-align: left;
    margin-top: 150px;
}

.education {
    margin: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    justify-content: center;
}

.eduTL {
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow: hidden;
}

.eduTL .line {
    width: 2px;
    height: 200px;
    background-color: #fff;
}

.edCard {
    width: 380px;
    height: 450px;
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    margin: 20px;
    color: #fff;
}

.edCard h3 {
    color: #006eff;
}

.edCard li {
    text-align: justify;
}

/* Education Card Animation */
.edCard {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s, transform 0.7s;
}

.edCard.visible {
    opacity: 1;
    transform: translateY(0);
}

.edCard.visible:nth-child(1) {
    transition-delay: 0.2s;
}
.edCard.visible:nth-child(3) {
    transition-delay: 0.4s;
}
.edCard.visible:nth-child(5) {
    transition-delay: 0.6s;
}

/* Section 3 */
.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 1300px;
    margin: 20px auto;
    padding: 0 50px;
    box-sizing: border-box;
    opacity: 0;
    animation: fadeInCarousel 1.5s ease-in-out forwards;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

.carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 40px;
    padding: 20px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    user-select: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.interest {
    position: relative;
    flex: 0 0 300px;
    height: 200px;
    background-color: #1e1e1e;
    border-radius: 20px;
    padding: 20px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    perspective: 1000px;
    box-shadow: 0 0 0 5px #ffffff80;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        transform 0.3s ease-in-out;
    scroll-snap-align: center;
    margin-left: 1%;
    margin-right: 1%;
}

.interest img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    z-index: 2;
    position: relative;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.interest .interest-desc {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    background-color: #1e1e1e;
    transform: rotateX(-90deg);
    transform-origin: bottom;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.interest:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
}

.interest:hover img {
    scale: 0;
}

.interest:hover .interest-desc {
    transform: rotateX(0deg);
}

.interest-title {
    margin: 0;
    font-size: 24px;
    color: #fff;
    font-weight: 700;
}

.interest-description {
    margin: 10px 0 0;
    font-size: 18px;
    color: #ccc;
    line-height: 1.4;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(1);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.carousel-btn:hover,
.carousel-btn:active {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.2);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

@keyframes fadeInCarousel {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .body {
        padding: 100px 20px 20px;
        max-width: 100%;
    }

    .carousel-container {
        width: 100vw;
        max-width: 100%;
        padding: 0;
        overflow-x: hidden;
    }

    .carousel {
        gap: 0;
        padding: 10px 0;
    }

    .interest {
        flex: 0 0 calc(100vw - 20px);
        height: 200px;
        margin: 0 10px;
    }

    .interest img {
        width: 100%;
        height: 100%;
    }

    .interest .interest-desc {
        font-size: 16px;
    }

    .interest-title {
        font-size: 20px;
    }

    .interest-description {
        font-size: 16px;
    }

    .carousel-btn {
        display: none;
    }

    .navBtns {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -250px;
        width: 250px;
        height: 100vh;
        background-color: rgba(26, 26, 26, 0.9);
        padding: 100px 20px 20px;
        text-align: center;
        transition: right 0.3s ease;
    }

    .navBtns.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .navBtn {
        margin: 20px 0;
        font-size: 18px;
        font-family: "Poppins", sans-serif;
        font-weight: 800;
    }

    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1999;
    }

    .overlay.active {
        display: block;
    }

    .section1 {
        margin-top: 10%;
    }

    .introduction {
        flex-direction: column;
        align-items: center;
        padding: 0 20px;
    }

    .introduction p {
        width: 100%;
        font-size: 16px;
        text-align: justify;
    }

    .introduction .imgCard {
        width: 250px;
        height: 350px;
        margin: 20px auto;
    }

    .education {
        flex-direction: column;
        gap: 20px;
    }

    .eduTL {
        flex-direction: column;
        align-items: center;
    }

    .eduTL .line {
        width: 200px;
        height: 2px;
        margin: 10px 0;
    }

    .edCard {
        width: 100%;
        max-width: 380px;
        height: auto;
        margin: 10px 0;
        padding: 15px;
    }

    .edCard li {
        text-align: justify;
    }

    .sectTitle {
        font-size: 20px;
        margin: 20px;
        text-align: center;
        margin-top: 100px;
    }
}

@media screen and (max-width: 480px) {
    .carousel-container {
        width: 100vw;
        padding: 0;
        overflow-x: hidden;
    }

    .carousel {
        gap: 10px;
        padding: 5px 0;
        margin-left: 20px;
        margin-right: 20px;
        margin-bottom: 20px;
    }

    .interest {
        flex: 0 0 calc(90vw - 10px);
        height: 200px;
        margin: 0 5px;
    }

    .interest .interest-desc {
        font-size: 14px;
    }

    .interest-title {
        font-size: 18px;
    }

    .interest-description {
        font-size: 14px;
    }

    .introduction p {
        font-size: 14px;
    }

    .introduction .imgCard {
        width: 200px;
        height: 280px;
    }

    .edCard {
        padding: 10px;
    }

    .edCard h3 {
        font-size: 18px;
    }

    .edCard h4,
    .edCard h5 {
        font-size: 16px;
    }

    .sectTitle {
        font-size: 18px;
    }
}
