﻿/* General */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #2c2c2c #151515;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: #151515;
}

*::-webkit-scrollbar-thumb {
    background-color: #2c2c2c;
    border-radius: 4px;
    border: 2px solid #151515;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: #444;
}

*,
*::before,
*::after {
    /* GLOBAL NO SELECT / NO DRAG */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    -webkit-user-drag: none;
    -webkit-touch-callout: none;

    /* Prevent tap highlight - mobile */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

input,
textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    color: white;
    background: #131415;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
    min-height: 100vh;
    height: auto;
    position: relative;
    -webkit-overflow-scrolling: touch;

}

/* Wrapper */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: auto;
    position: relative;
    z-index: 1;
    padding: 0;
}

/* Mobile Support - Wrapper */
@media (max-width: 720px) {
    .wrapper {
        width: 100%;
        max-width: 100vw;
        padding-left: 0;
        padding-right: 0;
        overflow-x: clip;
    }
}

/* Background */
.background-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    z-index: -1;
    background-color: #151617;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23000000' fill-opacity='0.18'%3E%3Cpath fill-rule='evenodd' d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2l-2 2V0zm0 4l4-4h2l-6 6V4zm0 4l8-8h2L40 10V8zm0 4L52 0h2L40 14v-2zm0 4L56 0h2L40 18v-2zm0 4L60 0h2L40 22v-2zm0 4L64 0h2L40 26v-2zm0 4L68 0h2L40 30v-2zm0 4L72 0h2L40 34v-2zm0 4L76 0h2L40 38v-2zm0 4L80 0v2L42 40h-2zm4 0L80 4v2L46 40h-2zm4 0L80 8v2L50 40h-2zm4 0l28-28v2L54 40h-2zm4 0l24-24v2L58 40h-2zm4 0l20-20v2L62 40h-2zm4 0l16-16v2L66 40h-2zm4 0l12-12v2L70 40h-2zm4 0l8-8v2l-6 6h-2zm4 0l4-4v2l-2 2h-2z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Navbar Wrapper */
.navbar-wrapper {
    padding-top: 1rem;
}

/* Navbar Container */
.navbar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 90px;
    backdrop-filter: blur(10px);
    background: rgba(32, 34, 37, 0);
    z-index: 1000;
    transition: all 0.3s ease;
    box-sizing: border-box;
    will-change: transform;
    contain: none;
    overflow: visible;
}

/* Mobile Support - Navbar Container */
@media (max-width: 720px) {
    .navbar-container {
        flex-direction: column;
        align-items: center;
        padding: 0.4rem 30px;
        overflow: hidden;
        max-height: 85px;
        height: 220px;
        justify-content: unset;
        transition: max-height 0.4s ease;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }

    .navbar-container.open {
        max-height: 320px;
    }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Mobile Support - Navbar Right */
@media (max-width: 720px) {
    .nav-right {
        width: 100%;
        padding: 0 1rem 0.7rem;
        margin-top: 1.1rem;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
}

.nav-right a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Navbar Logo */
.nav-logo {
    height: 40px;
    border-radius: 20px 10px;
    display: flex;
}

/* Mobile Support - Navbar Logo */
@media (max-width: 720px) {
    .nav-right .logo {
        max-height: 40px;
    }
}

/* Navbar Links */
.nav-right .nav-links {
    display: flex;
    gap: 2rem;
}

.nav-right .nav-links a {
    transition: color 0.3s ease;
}

.nav-right .nav-links a:hover {
    color: #9181a1;
    cursor: pointer;
}

/* Mobile Support - Navbar Links */
@media (max-width: 720px) {
    .nav-right .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
        width: 100%;
        padding: 0 1rem;
    }

    .nav-right .nav-links a {
        padding: 0.5rem 0;
    }
}

/* Mobile Only - Navbar Left */
@media (max-width: 720px) {
    .nav-left {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 1rem;
        justify-content: space-between;
        padding: 0.5rem 1rem;
        position: relative;
        top: 6.5px;
    }
}

/* Hamburger Menu Desktop */
.hamburger {
    display: none;
    font-size: 24px;
    background: none;
    color: white;
    border: none;
    cursor: pointer;
}

/* Mobile Support - Hamburger Menu */
@media (max-width: 720px) {
    .hamburger {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 20px;
        right: 20px;
        align-items: end;
        width: 32px;
        height: 32px;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        gap: 5px;
        z-index: 1000;
    }

    .hamburger span {
        display: block;
        height: 2.5px;
        background-color: white;
        border-radius: 3px;
        transition: transform 0.35s ease-in-out, opacity 0.25s ease-in-out, width 0.3s ease;
        transform-origin: center;
    }

    .hamburger span:nth-child(1) {
        width: 16px;
    }

    .hamburger span:nth-child(2) {
        width: 18px;
    }

    .hamburger span:nth-child(3) {
        width: 20px;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
        width: 20px;
    }

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

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

/* Main section */
.main-container {
    display: flex;
    flex-wrap: wrap;
    min-height: 100vh;
    height: auto;
    align-items: center;
    padding: 0 2rem;
    position: inherit;
    max-width: 1300px;
    margin: auto;
    z-index: 2;
    gap: 2rem;
    box-sizing: border-box;
    justify-content: space-between;
    flex-direction: row-reverse;
}

/* Mobile Support - Main Container */
@media (max-width: 720px) {
    .main-container {
        flex-direction: column-reverse;
        margin-top: 0;
        top: unset;
        padding: 3rem 1rem;
        height: auto;
        gap: 0rem;
    }
}

/* Extra Small Mobile Support - Main Container */
@media (max-width: 320px) {
    .main-container {
        flex-direction: column-reverse;
        padding: 3rem 1rem;
        gap: 0rem;
    }
}

/* Mobile Support - Main Container */
@media only screen and (max-width: 1024px) {
    .main-container {
        flex-wrap: nowrap;
        top: 5rem !important;
        flex-direction: column-reverse;
    }
}

/* Mobile Support - Main Container */
@media only screen and (max-width: 877.71px) {
    .main-container {
        top: 25rem;
    }
}

/* Main Container Content right */
.main-container-content-right {
    flex: 1 1 50%;
    position: inherit;
    top: 1.5rem;
    max-width: 600px;
    padding: 1rem;
}

/* Mobile Support - Main Container Content right */
@media (max-width: 720px) {
    .main-container-content-right {
        flex: 1 1 100%;
        max-width: 100%;
        text-align: center;
        top: unset;
    }
}

/* Main Container Title */
.main-container-title {
    text-align: center;
    font-size: 3.5rem;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    font-weight: 900;
    color: #ffffff;
    margin-top: unset;
    margin-bottom: 1rem;
}

/* Mobile Support - Main Container Title */
@media (max-width: 720px) {
    .main-container-title {
        font-size: 2.3rem;
        margin-top: 1rem;
    }
}

/* Extra Small Mobile Support - Main Container Title */
@media (max-width: 320px) {
    .main-container-title {
        font-size: 2.3rem;
    }
}

/* Main Container Description */
.main-container-description {
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Mobile Support - Main Container Description */
@media (max-width: 720px) {
    .main-container-description {
        font-size: 15px;
    }
}

/* Extra Small Mobile Support - Main Container Description */
@media (max-width: 320px) {
    .main-container-description {
        font-size: 1rem;
    }
}

/* Main Container Content Left */
.main-container-content-left {
    flex: 0 1 auto;
    position: inherit;
    top: 1.5rem;
    text-align: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* Mobile Support - Main Container Content Right */
@media (max-width: 720px) {
    .main-container-content-left {
        flex: 1 1 100%;
        max-width: 100%;
        text-align: center;
        top: unset;
        flex: unset;
    }
}

/* Main Container Logo Container */
.main-container-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    margin-top: 1rem;
    position: relative;
    overflow: visible;
}

/* Main Container Logo Container Logo */
.main-container-logo {
    width: 360px;
    max-width: 100%;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

@keyframes floatWiggle {
    0% {
        transform: translateX(-50%) translateY(0) rotate(-1.5deg);
    }

    25% {
        transform: translateX(-50%) translateY(-4px) rotate(1deg);
    }

    50% {
        transform: translateX(-50%) translateY(2px) rotate(-1deg);
    }

    75% {
        transform: translateX(-50%) translateY(-2px) rotate(1.5deg);
    }

    100% {
        transform: translateX(-50%) translateY(0) rotate(-1.5deg);
    }
}

/* Mobile Support - Main Container Logo */
@media (max-width: 720px) {
    .main-container-logo {
        width: 245px;
    }
}

/* Main Container Logo Background Layer */
.main-container-logo-background-layer {
    position: absolute;
    top: calc(6% - 100px);
    left: calc(50% + 20px);
    transform: translateX(-50%);
    width: 700px;
    height: auto;
    z-index: 2;
    opacity: 100;
    pointer-events: none;
    animation: floatWiggle 6s ease-in-out infinite;
}

/* Mobile Support - Main Container Logo Background Layer */
@media (max-width: 720px) {
    .main-container-logo-background-layer {
        top: calc(23% - 90px);
        left: 55%;
        transform: translateX(-50%);
        width: 445px;
    }
}

/* Extra Small Mobile Support - Main Container Content Right and Left */
@media (max-width: 320px) {

    .main-container-content-left,
    .main-container-content-right {
        flex: 1 1 100%;
        max-width: 100%;
        text-align: center;
    }
}

/* Main Container Socials Container */
.main-container-socials-container {
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    gap: 1.5rem;
}

/* GitHub, Instagram, LinkedIn, Discord, X */
.github,
.instagram,
.linkedin,
.discord,
.x {
    position: relative;
    display: inline-block;
}

.github img.icon,
.instagram img.icon,
.linkedin img.icon,
.discord img.icon,
.x img.icon {
    width: 30px;
    height: 30px;
    vertical-align: middle;
    transition: transform 0.2s ease, filter 0.2s ease;
    filter: brightness(0) invert(1);
}

.github::after,
.instagram::after,
.linkedin::after,
.discord::after,
.x::after {
    position: absolute;
    top: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #111;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

.github::before,
.instagram::before,
.linkedin::before,
.discord::before,
.x::before {
    content: "";
    position: absolute;
    top: 115%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #111 transparent transparent transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.github::after {
    content: "GitHub";
}

.instagram::after {
    content: "Instagram";
}

.linkedin::after {
    content: "LinkedIn";
}

.discord::after {
    content: "Discord";
}

.x::after {
    content: "X";
}

.github:hover img.icon,
.x:hover img.icon {
    transform: scale(1.1);
}

.instagram:hover img.icon,
.linkedin:hover img.icon,
.discord:hover img.icon {
    transform: scale(1.1);
    filter: none;
}

.github:hover::after,
.instagram:hover::after,
.linkedin:hover::after,
.discord:hover::after,
.x:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.github:hover::before,
.instagram:hover::before,
.linkedin:hover::before,
.discord:hover::before,
.x:hover::before {
    opacity: 1;
}

/* Mobile Support - Main Container Socials Container */
@media (max-width: 720px) {
    .main-container-socials-container {
        justify-content: center;
    }
}

/* Second Section */
.second-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin: auto;
    max-width: 1330px;
    min-height: 100svh;
    height: auto;
    padding: 5rem 2rem;
    align-content: space-evenly;
}

/* Mobile Support - Second Section */
@media (max-width: 720px) {
    .second-section {
        padding: 1rem;
    }
}

/* Mobile Support - Second Section */
@media (max-width: 1024px) {
    .second-section {
        grid-template-columns: 1fr;
        height: auto;
        margin-top: 3rem;
    }
}

/* Second Section About Me Content */
.second-section-about-me-content {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    text-align: center;
    margin-bottom: 1rem;
    row-gap: .5rem;
    line-height: 1.5rem;
    padding: 0 1rem;
}

/* Mobile Support - Second Section About Me Content */
@media (max-width: 720px) {
    .second-section-about-me-content {
        padding: 0 1rem;
        row-gap: .1rem;
        margin-bottom: 0.5rem;
    }
}

/* Second Section Education and Tech Content */
.second-section-education-content,
.second-section-tech-content {
    display: flex;
    align-items: stretch;
    justify-content: center;
    color: white;
    max-width: 100%;
    padding: 1rem;
}

/* Mobile Support - Second Section Education and Tech Content */
@media (max-width: 1024px) {

    .second-section-education-content,
    .second-section-tech-content {
        text-align: center;
    }
}

/* Second Section Education and Tech Inner Wrappers */
.second-section-education-inner,
.second-section-tech-inner {
    width: 100%;
    max-width: 100%;
}

/* Mobile Support - Second Section Education and Tech Inner Wrappers */
@media (max-width: 1024px) {

    .second-section-education-inner,
    .second-section-tech-inner {
        width: 100%;
        max-width: 90%;
        margin: 0 auto;
    }
}

/* Second Section About Me Glass Panel */
.second-section-about-me-inner.glass-panel {
    position: relative;
    z-index: 1;
    padding: 2rem 3.5rem;
    border-radius: 12px;
    background-image: url('/assets/img/aboutme.webp');
    background-size: cover;
    background-color: rgba(0, 0, 0, 0.67);
    background-blend-mode: darken;
    background-position: center;
    background-repeat: no-repeat;
    border: 0.5px solid rgb(136 136 136 / 18%);
    box-shadow: 0 4px 12px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 14%);
    overflow: hidden;
}

/* Mobile Support - Second Section About Me Glass Panels */
@media (max-width: 720px) {
    .second-section-about-me-inner.glass-panel {
        padding: 1.5rem;
        text-align: center;
        height: auto;
    }
}

/* Second Section Education and Tech Glass Panels */
.second-section-education-inner.glass-panel,
.second-section-tech-inner.glass-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    padding: 2rem 3.5rem;
    border-radius: 12px;
    background: rgb(32 32 32);
    border: 0.5px solid rgb(136 136 136 / 18%);
    box-shadow: 0 4px 12px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 14%);
    overflow: hidden;
}

/* Mobile Support - Second Section Education and Tech Glass Panels */
@media (max-width: 720px) {

    .second-section-education-inner.glass-panel,
    .second-section-tech-inner.glass-panel {
        padding: 1.5rem;
        text-align: center;
        height: auto;
    }
}

/* Second Section About Me Title */
.second-section-about-me-inner.glass-panel h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

/* Mobile Support - Second Section About Me Title */
@media (max-width: 720px) {
    .second-section-about-me-inner.glass-panel h2 {
        font-size: 17px;
    }
}

/* Second Section About Me Details */
.second-section-about-me-details {
    line-height: 1.5;
    color: #ffffff;
}

/* Mobile Support - Second Section About Me Details */
@media (max-width: 720px) {
    .second-section-about-me-details {
        font-size: 12px;
    }
}

/* Second Section Education Title */
.second-section-education-inner.glass-panel h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

/* Mobile Support - Second Section Education Title */
@media (max-width: 720px) {
    .second-section-education-inner.glass-panel h2 {
        font-size: 17px;
    }
}

/* Second Section Education Details */
.second-section-education-details {
    line-height: 1.5;
    color: #ffffff;
    font-size: 14.5px
}

/* Mobile Support - Second Section Education Details */
@media (max-width: 720px) {
    .second-section-education-details {
        font-size: 12px;
    }
}

/* Second Section Education Year */
.second-section-education-year {
    color: #9c9c9c;
}

/* Second Section Tech Details */
.second-section-tech-details {
    color: #fff;
}

/* Second Section Tech Details Title */
.second-section-tech-details h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

/* Mobile Support - Second Section Tech Details Title */
@media (max-width: 720px) {
    .second-section-tech-details h2 {
        font-size: 17px;
    }
}

/* Second Section Tech Details Subtitle */
.second-section-tech-details h4 {
    font-size: 14.5px;
}

/* Mobile Support - Second Section Tech Details Subtitle */
@media (max-width: 720px) {
    .second-section-tech-details h4 {
        font-size: 13px;
    }
}

/* Second Section Tech Grid */
.second-section-tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    margin: 1rem 0;
}

/* Mobile Support - Second Section Tech Grid */
@media (max-width: 720px) {
    .second-section-tech-grid {
        display: grid;
        grid-template-columns: unset;
        gap: 0.5rem;
        margin: 1rem 0;
    }
}

/* Second Section Tech Card */
.second-section-tech-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    background: rgb(45 45 45);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.second-section-tech-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Mobile Support - Second Section Tech Card */
@media (max-width: 720px) {
    .second-section-tech-card {
        transition: none;
    }

    .second-section-tech-card:hover {
        transform: none;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }
}

/* Second Section Tech Icon */
.second-section-tech-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Mobile Support - Second Section Tech Icon */
@media (max-width: 720px) {
    .second-section-tech-icon {
        width: 19px;
        height: 19px;
    }
}

/* Second Section Tech Card Text */
.second-section-tech-card small {
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
}

/* Mobile Support - Second Section Tech Card Text */
@media (max-width: 720px) {
    .second-section-tech-card small {
        font-size: 10px;
    }
}

/* Fourth Section */
.fourth-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin: auto;
    max-width: 1330px;
    min-height: 100svh;
    height: auto;
    padding: 5rem 2rem;
    align-content: center;
}

/* Mobile Support - Fourth Section */
@media (max-width: 1024px) {
    .fourth-section {
        grid-template-columns: 1fr;
        height: auto;
    }
}

/* Fourth Section Header Wrapper */
.fourth-section-header {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    text-align: center;
    margin-bottom: 2rem;
    row-gap: .5rem;
    line-height: 1.5rem;
    padding: 0 1rem;
}

/* Mobile Support - Fourth Section Header Wrapper */
@media (max-width: 720px) {
    .fourth-section-header {
        padding: 0 1rem;
        row-gap: .1rem;
        margin-bottom: 0.5rem;
    }
}

/* Fourth Section Featured Text */
.fourth-section-header .header-featured {
    font-size: 1rem;
    font-weight: 600;
    color: #bbbbbb;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: .025em;
}

/* Mobile Support - Fourth Section Featured Text */
@media (max-width: 720px) {
    .fourth-section-header .header-featured {
        font-size: .875rem;
    }
}

/* Fourth Section Title with Icon */
.fourth-section-header .header-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    line-height: 2.5rem;
}

/* Mobile Support - Fourth Section Title with Icon */
@media (max-width: 720px) {
    .fourth-section-header .header-title {
        font-size: 1.4rem;
    }
}

/* Fourth Section Description Text */
.fourth-section-header .header-description {
    font-size: 1.1rem;
    font-weight: 500;
    color: #cccccc;
    margin: 0;
}

/* Mobile Support - Fourth Section Description Text */
@media (max-width: 720px) {
    .fourth-section-header .header-description {
        font-size: 13px;
    }
}

/* Fourth Section Project Container */
.fourth-section-project-container {
    display: flex;
    align-items: stretch;
    justify-content: center;
    color: white;
    max-width: 100%;
    padding: 1rem;
}

/* Fourth Section Project Card Glass Panel */
.fourth-section-project-card.glass-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    background: rgb(32 32 32);
    border: 0.5px solid rgb(136 136 136 / 18%);
    box-shadow: 0 4px 12px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 14%);
    overflow: hidden;
}

/* Fourth Section Project Image */
.fourth-section-project-image {
    width: 100%;
    height: 310px;
    object-fit: cover;
    display: block;
    border-radius: 12px 12px 0 0;
}

/* Mobile Support - Fourth Section Project Image */
@media (max-width: 720px) {
    .fourth-section-project-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
        display: block;
        border-radius: 12px 12px 0 0;
    }
}

/* Fourth Section Project Details */
.fourth-section-project-details {
    padding: 2rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Mobile Support - Fourth Section Project Details */
@media (max-width: 720px) {
    .fourth-section-project-details {
        padding: 1.5rem 1.5rem;
    }
}

/* Fourth Section Project Header */
.fourth-section-project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Fourth Section Project Title */
.fourth-section-project-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    letter-spacing: -0.03em;
}

/* Mobile Support - Fourth Section Project Title */
@media (max-width: 720px) {
    .fourth-section-project-title {
        font-size: 1rem;
    }
}

/* Fourth Section Project Type */
.fourth-section-project-type {
    background: rgb(38 38 39);
    padding: 0.3rem 0.6rem;
    border: 0.5px solid rgb(136 136 136 / 37%);
    border-radius: 6px;
    font-size: 13px;
    color: #ccc;
    margin: 0;
}

/* Mobile Support - Fourth Section Project Type */
@media (max-width: 720px) {
    .fourth-section-project-type {
        font-size: 10px;
    }
}

/* Fourth Section Project Description */
.fourth-section-project-description {
    font-size: 14px;
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 1rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Mobile Support - Fourth Section Project Description */
@media (max-width: 720px) {
    .fourth-section-project-description {
        font-size: 12px;
    }
}

/* Fourth Section Project Program Language */
.fourth-section-project-program-language {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0;
}

/* Fourth Section Project Program Language List Items */
.fourth-section-project-program-language li {
    background: rgb(38 39 39);
    border: 0.5px solid rgb(136 136 136 / 37%);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 11px;
}

/* Mobile Support - Fourth Section Project Program Language List */
@media (max-width: 720px) {
    .fourth-section-project-program-language li {
        font-size: 10px;
    }
}

/* Fourth Section Project Links */
.fourth-section-project-links-redirect {
    display: flex;
    gap: 14px;
    width: 100%;
    margin-top: auto;
}

/* Fourth Section Project Button */
.fourth-section-project-button {
    flex: 1 1 0;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 10px;
    font-size: 12px;
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    background: rgb(255, 255, 255);
    border-radius: 7px;
    border: 1px solid rgb(122 122 122 / 25%);
    transition: all 0.25s ease;
}

/* Mobile Support - Fourth Section Project Button */
@media (max-width: 720px) {
    .fourth-section-project-button {
        font-size: 10px;
        padding: 8px 8px;
    }
}

/* Fourth Section Project Button Icon */
.fourth-section-project-button i {
    font-size: 16px;
}

/* Mobile Support - Fourth Section Project Button Icon */
@media (max-width: 720px) {
    .fourth-section-project-button i {
        font-size: 12px;
    }
}

.fourth-section-project-button:hover {
    background: rgba(255, 255, 255, 0.85);
}

/* Fourth Section Disabled Button */
@media (max-width: 720px) {
    .fourth-section-project-button[aria-disabled="true"] {
        pointer-events: none;
    }
}

/* Footer */
.footer-container {
        display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 1rem 3rem;
    font-size: 0.9rem;
    width: 100%;
    margin-top: 1rem;
    box-sizing: border-box;
    z-index: 2;
    backdrop-filter: blur(12px);
    background: rgba(31, 33, 36, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
    justify-content: center;
}

/* Mobile Support - Footer Container */
@media (max-width: 720px) {
    .footer-container {
        padding-bottom: 120px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0.5rem 1rem;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }
}

.footer-content {
    display: flex;
    align-items: center;
}

/* Mobile Support - Footer Content */
@media (max-width: 720px) {
    .footer-content {
        text-align: center;
        font-size: 11px;
    }
}

/* Important */
/* Main Responsive */
/* Responsive Height for Main Container, Second, and Fourth Sections */
.main-container,
.second-section,
.fourth-section {
    min-height: 100vh;
    height: auto;
    box-sizing: border-box;
}

/* Responsive Height for Mobile Support */
@media (max-width: 1024px) {

    .main-container,
    .second-section,
    .fourth-section {
        min-height: 100svh;
        height: auto;
    }
}

/* Responsive Height for Mobile Support */
@media (max-width: 720px) {

    .main-container,
    .second-section,
    .fourth-section {
        min-height: 100svh;
        height: auto;
        padding: 2rem 1rem;
    }
}

/* Base hidden state for container sections */
.scroll-animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate-fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate-fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.scroll-animate-fade-in.active {
    opacity: 1;
}

/* Page Container */
.page-container {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Widget Sticky Wrapper */
.widget-sticky-wrapper {
    position: sticky;
    bottom: 20px;
    height: 0;
    align-self: flex-end;
    margin-right: 20px;
    z-index: 9999;
}

/* Chat Widget */
#chat-widget {
    position: relative;
    bottom: 60px;
    width: fit-content;
}

/* Chat Toggle */
#chat-toggle {
    background: rgb(36, 36, 36);
    color: #fff;
    border: 0.5px solid rgb(255 255 255 / 10%);
    width: 60px;
    height: 60px;
    border-radius: 20%;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    transition: transform 0.25s ease, background 0.25s ease;
}

/* Chat Toggle Hover */
#chat-toggle:hover {
    background: #3d3d3d;
}

/* Mobile Support - Chat Toggle Hover */
@media (max-width: 720px) {
    #chat-toggle:hover {
        background: rgb(36, 36, 36);
    }
}

/* Mobile Support - Chat Toggle */
@media (max-width: 720px) {
    #chat-toggle {
        background: rgb(36 36 36 / 90%);
        color: #ffffffd4;
        width: 50px;
        height: 50px;
        font-size: 17px;
    }
}

#chat-toggle.active {
    background: #3d3d3d;
}

/* Chat Toggle Icon */
#chat-toggle i {
    pointer-events: none;
    position: absolute;
    top: 21.5px;
    right: 20px;
}

/* Mobile Support - Chat Toggle Icon */
@media (max-width: 720px) {
    #chat-toggle i {
        top: 18px;
        right: 16.5px;
    }
}

/* Chat Close Icon */
.chat-close-icon {
    top: 21.5px !important;
    right: 22px !important;
}

/* Mobile Support - Chat Close Icon */
@media (max-width: 720px) {
    .chat-close-icon {
        top: 17.2px !important;
        right: 18.6px !important;
    }
}

/* Chat Box */
#chat-box {
    position: absolute;
    bottom: 75px;
    right: 0px;
    width: clamp(18rem, 90vw, 24rem);
    height: clamp(420px, 70vh, 560px);
    max-height: 520px;
    background: rgb(36, 36, 36);
    border-radius: 18px;
    border: 0.5px solid rgb(255 255 255 / 10%);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: chatIn 0.25s ease;
}

/* Mobile Support - Chat Box */
@media (max-width: 720px) {
    #chat-box {
        height: calc(80vh - env(safe-area-inset-bottom, 0px));
        bottom: 70px;
        width: calc(100vw - (2.7rem + env(safe-area-inset-left, 0px) + env(safe-area-inset-right, 0px)));
        max-width: 100vw;
        max-height: unset;
    }
}

/* Chat Header */
#chat-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Chat Profile */
.chat-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 0.5rem 0 0;
}

/* Chat Profile Image */
.chat-profile img {
    width: 42px;
    height: 42px;
    border-radius: 20%;
    object-fit: cover;
}

/* Mobile Support - Chat Profile Image */
@media (max-width: 720px) {
    .chat-profile img {
        width: 36px;
        height: 36px;
    }
}

/* Chat Meta */
.chat-meta {
    display: flex;
    flex-direction: column;
}

/* Chat Name */
.chat-name {
    color: #f9fafb;
    font-weight: 600;
    font-size: 14px;
}

/* Mobile Support - Chat Name */
@media (max-width: 720px) {
    .chat-name {
        font-size: 12.5px;
    }
}

/* Chat Username */
.chat-username {
    font-size: 12px;
    color: #9ca3af;
}

/* Mobile Support - Chat Username */
@media (max-width: 720px) { 
    .chat-username {
        font-size: 11px;
    }
}

/* Chat Status */
.chat-status {
    margin-left: auto;
    position: absolute;
    right: 25px;
    transform: none;
    z-index: 2;
    pointer-events: none;
    width: 10px;
    height: 10px;
    border-radius: 9999px;
}

/* Mobile Support Chat Status */
@media (max-width: 720px) {
    .chat-status {
        width: 9px;
        height: 9px;
    }
}

/* Chat Messages */
#chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: thin;
    scrollbar-color: #414141 #242424;
}

/* Chat Messages Typing Indicator */
.bot-msg.typing {
    font-style: italic;
    opacity: 0.7;
    animation: blink 1.2s infinite;
}

@keyframes blink {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0.3;
    }
}

/* Chat Bubble Base */
#chat-messages div {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Mobile Support - Chat Bubble Base */
@media (max-width: 720px) {
    #chat-messages div {
        max-width: 80%;
        padding: 10px 14px;
        font-size: 12px;
    }
}

/* Chat Bot Bubble */
.bot-msg {
    background: #3a3a3a;
    color: #e5e7eb;
    align-self: flex-start;
}

/* Chat User Bubble */
.user-msg {
    background: #2563eb;
    color: #fff;
    align-self: flex-end;
}

/* Chat Form */
#chat-form {
    display: flex;
    align-items: baseline;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Chat Input */
#chat-input {
    flex: 1;
    padding: 13px;
    background: #333333;
    border: 1px solid #333333;
    color: #f3f4f6;
    outline: none;
    font-size: 14px;
    border-radius: 12px;
    margin: 1rem 0.5rem 0.5rem 1rem;
    transition: all 0.2s ease;
}

/* Mobile Support - Chat Input */
@media (max-width: 720px) {
    #chat-input {
        padding: 11px;
        font-size: 12px;
        margin: 1rem 0.5rem 0.5rem 1rem;
    }
}

#chat-input:focus {
    border: 1px solid #444444;
    background: #2e2e2e;
}

/* Chat Form Button */
#chat-form button {
    background: transparent;
    border: none;
    color: #9ca3af;
    padding: 13px 14px;
    margin: 0 1rem 0.5rem 0;
    cursor: pointer;
    background: #333333;
    border: 1px solid #333333;
    border-radius: 12px;
    transition: color 0.2s ease;
}

/* Mobile Support - Chat Form Button */
@media (max-width: 720px) {
    #chat-form button {
        padding: 10.1px 12px;
        margin: 0 1rem 0.5rem 0;
    }
}

#chat-form button:hover {
    color: #fff;
}

#chat-form button.disabled-hover:hover {
    color: #9ca3af !important;
}

#chat-submit:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    /* optional: visually show it's disabled */
}

/* Chat Footer */
#chat-footer {
    padding: 0 5px 5px;
    margin: 0 1rem 1rem;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    color: #9ca3af;
}

@keyframes chatIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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

/* Mobile Support - Chat Status */
@media (max-width: 720px) {
#chat-status-text {
    font-size: 9px;
}
}

/* Mobile Support - Chat Character Counter */
@media (max-width: 720px) {
    #chat-char-count {
        font-size: 9px;
    }
}
