﻿/* ========================================
   font styling
======================================== */

#about-me h1,
#about-me h3 {
    font-family: var(--profile-font);
    font-weight: 700;
    font-size: 1.3rem;
}

#about-me p {
    font-family: var(--profile-font);
    font-weight: 400;
    line-height: 1.8;
    font-size: 1.2rem;
    font-weight: 600;
    color: #bababa;
}

#work-experience-content h5 {
    font-size: 1.9rem;
    color: var(--profile-title);
}

#work-experience-content ul li {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #bababa;
}

#work-experience-content .text-muted {
    font-size: 1.05rem;
    font-weight: 600;
}

#work-experience-content .profile-header {
    font-size: 2.3rem;
}

#work-experience-content > p {
    font-size: 1.15rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    #about-me p {
        font-size: 1.05rem;
        line-height: 1.8;
    }

    #about-me h2,
    #professional-experience h2,
    #technical-skills h2 {
        font-size: 1.7rem;
    }
}

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

    .architecture-image-container:hover .architecture-overlay {
        opacity: 1;
    }

#architectureModal {
    left: 0;
    width: 100%;
}

    #architectureModal .modal-dialog {
        width: auto;
        max-width: 1140px;
        margin: 1.75rem auto;
    }

    #architectureModal .modal-content {
        max-height: calc(100dvh - 3.5rem);
        overflow-y: auto;
    }

.architecture-modal-image {
    display: block;
    max-width: 100%;
    max-height: 60vh;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 12px;
}

@media (max-width: 991.98px) {
    #architectureModal .modal-dialog {
        margin: 1rem;
    }

    #architectureModal .modal-content {
        max-height: calc(100dvh - 2rem);
    }

    #architectureModal .modal-header,
    #architectureModal .modal-footer {
        padding: 0.75rem;
    }

    .portfolio-architecture-modal-title {
        font-size: 1.5rem;
    }

    .portfolio-architecture-modal-button {
        font-size: 0.9rem;
    }
}

.architecture-modal-image {
    border-radius: 12px;
}

.architecture-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.25);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    border-radius: 12px;
    transition: .25s;
    pointer-events: none;
}

.architecture-preview {
    cursor: zoom-in;
    padding-top: 5px;
    transition: all .25s ease;
}

    .architecture-preview:hover {
        transform: scale(1.02);
        box-shadow: 0 10px 25px rgba(0,0,0,.15);
    }

.architecture-wrapper {
    margin-top: 0.1rem;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.profile-page .contact-item {
    width: 130px;
    padding: 1.5rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--profile-card);
    border: 1px solid var(--profile-border);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
    text-align: center;
    text-decoration: none;
    transform: translate3d(0, 0, 0);
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

    .profile-page .contact-item:hover {
        transform: translate3d(0, -5px, 0);
        background-color: var(--profile-card-hover);
        border-color: var(--profile-accent);
        box-shadow: 0 12px 30px rgba(59, 130, 246, 0.15);
    }

.profile-page .contact-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    color: var(--profile-accent);
    transform: none;
    transition: color 0.3s ease;
}

.profile-page .contact-name {
    color: var(--profile-title);
    font-weight: 600;
    transition: color 0.3s ease;
}

.profile-page .contact-item:hover .contact-icon,
.profile-page .contact-item:hover .contact-name {
    transform: none;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.contact-name {
    color: var(--profile-accent);
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-item:hover .contact-icon,
.contact-item:hover .contact-name {
    color: var(--profile-accent);
}

.custom-intro {
    font-family: var(--profile-font);
    font-size: 1.3rem;
    line-height: 1.6;
}

.discord-toast-floating {
    transform: translate(-50%, -100%) translateY(-70px);
    padding: 4px 9px;
    font-size: 0.8rem;
    border-radius: 6px;
}

    .discord-toast-floating.show {
        opacity: 0.9;
        transform: translate(-50%, -100%) translateY(-60px);
    }

.experience-hr-color {
    color: #adaeaf9c;
    opacity: 0.5;
}

.experience-icon {
    height: 50px;
    object-fit: contain;
    width: 50px;
}

.featured-project-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 16px;
    background: white;
    border: 1px solid #dbeafe;
    box-shadow: 0 4px 12px rgba(59,130,246,.12);
    transition: transform .3s ease, box-shadow .3s ease;
}

.featured-project-item {
    border-radius: 30px;
    border: 1px solid #dbeafe;
    background: #f8fbff;
    overflow: hidden;
    padding: 1.5rem;
    transition: all .3s ease;
}

@media (min-width: 991.98px) {
    .featured-project-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(59,130,246,.15);
    }
}

.featured-project-link {
    text-decoration: none;
    color: inherit;
}

    .featured-project-link:hover {
        text-decoration: none;
        color: inherit;
    }

.featured-project-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.featured-project-skill {
    align-items: center;
    background: #eaf2ff;
    border-radius: 20px;
    border: 1px solid #b0d4ffab;
    color: #3876c1;
    display: inline-flex;
    font-weight: 500;
    gap: 6px;
    padding: 6px 12px;
}

.featured-project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--profile-title);
    transition: transform 0.3s ease;
    transform-origin: left center;
}

.featured-project-item:hover .featured-project-title {
    transform: scale(1.03);
}

.featured-project-wrapper {
    padding: 15px;
}

.portfolio-architecture-modal-button {
    font-family: var(--profile-font);
    transition: all .25s ease;
}

@media (min-width: 991.98px) {
    .portfolio-architecture-modal-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(59,130,246,.35);
    }
}

.portfolio-architecture-modal-button i {
    transition: transform .25s ease;
}

@media (min-width: 991.98px) {
    .portfolio-architecture-modal-button:hover i {
        transform: translateX(3px);
    }
}

@media (max-width: 991.98px) {
    .portfolio-architecture-modal-button:focus,
    .portfolio-architecture-modal-button:focus-visible {
        outline: none !important;
        box-shadow: none !important;
    }

    .btn:focus,
    .btn-primary:focus {
        box-shadow: none !important;
    }
}

.portfolio-architecture-modal-title {
    color: #3876c1;
    font-family: var(--profile-font);
    font-size: 2rem;
}

.country-flag {
    display: inline-block;
    flex-shrink: 0;
    width: 24px;
    height: 18px;
    background-image: url('/images/showcases/countries/country-flags-sprite.png');
    background-repeat: no-repeat;
    background-size: 1300% 1500%;
}

.profile-card {
    border: 1px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    scroll-margin-top: 200px;
    min-height: 360px;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

@media (min-width: 991.98px) {
    .profile-card:hover {
        transform: translateY(-5px);
        border-color: #b6c8f5;
        box-shadow: 0 12px 35px rgba(59,130,246,.18) !important;
    }
}

.profile-header {
    color: #3876c1;
    font-family: var(--profile-font);
}

.profile-page {
    position: relative;
    min-height: 100vh;
    overflow-x: clip;
}

.profile-section-active {
    background-color: #3b82f6;
    border-left: 4px solid #2563eb;
    border-radius: 15px;
    color: #fff !important;
    font-weight: 600;
}

#sidenavAccordion .nav-link.profile-section-active {
    transform: scale(1.04);
    transform-origin: left center;
    transition: transform 0.25s ease, text-shadow 0.25s ease;
}

/* ========================================
   waveform
======================================== */

.profile-page {
    position: relative;
    isolation: isolate;
    overflow-x: clip;
}

.profile-container {
    width: 47%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

@media (max-width: 1499.98px) {
    .profile-container {
        width: 60%;
    }
}

@media (max-width: 991.98px) {
    .profile-container {
        width: 75%;
    }
}

@media (max-width: 767.98px) {
    .profile-container {
        width: 90%;
    }
}

@media (max-width: 479.98px) {
    .profile-container {
        width: 94%;
    }
}

.profile-wave-wrapper {
    position: relative;
    width: 100%;
    --wave-amplitude: 1;
    --dot-size: 1px;
    --dot-spacing: 11px;
}

/* waveform amplitude */
@media (max-width: 1499.98px) {
    .profile-wave-wrapper {
        --wave-amplitude: 0.6;
        --dot-size: 1.1px;
        --dot-spacing: 10px;
    }
}

@media (max-width: 991.98px) {
    .profile-wave-wrapper {
        --wave-amplitude: 0.4;
        --dot-size: 1.2px;
        --dot-spacing: 9px;
    }
}

@media (max-width: 767.98px) {
    .profile-wave-wrapper {
        --wave-amplitude: 0.2;
        --dot-size: 1.3px;
        --dot-spacing: 8px;
    }
}

@media (max-width: 479.98px) {
    .profile-wave-wrapper {
        --wave-amplitude: 0;
        --dot-size: 1.4px;
        --dot-spacing: 8px;
    }
}

.profile-wave-wrapper::before,
.profile-wave-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: -73px;
    width: clamp(100px, 25vw, 380px);
    pointer-events: none;
    z-index: -1;
    --dot-size: 1px;
    --dot-spacing: 11px;
    background-image: radial-gradient( circle, rgba(56, 118, 193, 0.3) var(--dot-size), transparent calc(var(--dot-size) + 0.2px) );
    background-size: var(--dot-spacing) var(--dot-spacing);
    background-repeat: repeat;
}

.profile-wave-wrapper::before {
    left: 0;
    transform: scaleX(var(--wave-amplitude));
    transform-origin: left center;
    clip-path: polygon( 0 0, 52% 0, 53% 2%, 54% 4%, 56% 6%, 58% 8%, 60% 10%, 62% 12%, 64% 14%, 66% 16%, 67% 18%, 68% 20%, 68% 22%, 67% 24%, 65% 26%, 63% 28%, 61% 30%, 59% 32%, 57% 34%, 55% 36%, 54% 38%, 53% 40%, 53% 42%, 54% 44%, 56% 46%, 58% 48%, 60% 50%, 62% 52%, 64% 54%, 66% 56%, 67% 58%, 68% 60%, 68% 62%, 67% 64%, 65% 66%, 63% 68%, 61% 70%, 59% 72%, 57% 74%, 55% 76%, 53% 78%, 52% 80%, 52% 82%, 53% 84%, 54% 86%, 56% 88%, 58% 90%, 60% 92%, 62% 94%, 64% 96%, 65% 98%, 66% 100%, 0 100% );
}

.profile-wave-wrapper::after {
    right: 0;
    transform: scaleX(var(--wave-amplitude));
    transform-origin: right center;
    clip-path: polygon( 48% 0, 47% 2%, 46% 4%, 44% 6%, 42% 8%, 40% 10%, 38% 12%, 36% 14%, 34% 16%, 33% 18%, 32% 20%, 32% 22%, 33% 24%, 35% 26%, 37% 28%, 39% 30%, 41% 32%, 43% 34%, 45% 36%, 46% 38%, 47% 40%, 47% 42%, 46% 44%, 44% 46%, 42% 48%, 40% 50%, 38% 52%, 36% 54%, 34% 56%, 33% 58%, 32% 60%, 32% 62%, 33% 64%, 35% 66%, 37% 68%, 39% 70%, 41% 72%, 43% 74%, 45% 76%, 47% 78%, 48% 80%, 48% 82%, 47% 84%, 46% 86%, 44% 88%, 42% 90%, 40% 92%, 38% 94%, 36% 96%, 35% 98%, 34% 100%, 100% 100%, 100% 0 );
}

.profile-wave-wrapper > .mx-auto {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .profile-wave-wrapper::before,
    .profile-wave-wrapper::after {
        width: 90px;
        opacity: 0.45;
    }
}

/* ========================================
   profile styling
======================================== */

.profile-page {
    position: relative;
    overflow-x: clip;
}

section {
    scroll-margin-top: 100px;
}

.section-content {
    flex: 1;
    font-family: var(--profile-font);
    overflow: hidden;
    position: relative;
    transition: max-height .3s ease;
}

.section-content-visible-about-me {
    max-height: 81px;
}

.section-content-visible-featured-projects {
    max-height: 160px;
}

.section-content-visible-portfolio-architecture {
    max-height: 160px;
}

.section-content-visible-technical-skills {
    max-height: 165px;
}

.section-content-visible-travel-journey {
    max-height: 160px;
}

.section-content-visible-working-experience {
    max-height: 158px;
}

.section-content.expanded {
    max-height: 4800px;
}

.section-content:not(.expanded)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient( transparent, white );
    pointer-events: none;
}

.section-content:not(.expanded) .architecture-image-container {
    pointer-events: none;
    cursor: default;
}

.section-content:not(.expanded) .featured-project-item {
    pointer-events: none;
    cursor: default;
}

.section-content:not(.expanded) .skill-item {
    pointer-events: none;
    cursor: default;
}

.section-content.expanded .skill-item {
    pointer-events: auto;
}

.skill-badge {
    display: inline-block;
    background-color: #3876c1;
    color: white;
    padding: 6px 12px;
    margin: 4px 6px 4px 0;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

@media (min-width: 991.98px) {
    .skill-badge:hover {
        background-color: #2c5aa0;
        color: white !important;
        text-decoration: none !important;
    }
}

.skills-category-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: var(--profile-title);
}

.skill-icon {
    font-size: 3rem;
    color: #5a78bd;
    margin-bottom: 12px;
}

@media (min-width: 991.98px) {
    .skill-icon:hover {
        box-shadow: 0 12px 35px rgba(72, 79, 177, 0.8) !important;
    }
}

.skill-item:not(:has(.fa-star)) {
    cursor: default;
}

.skill-item {
    align-items: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all .3s ease;
}

.profile-page .skill-item {
    transition: transform 0.3s ease;
}

@media (min-width: 991.98px) {
    .profile-page .skill-item:hover {
        transform: translateY(-5px);
    }
}

.profile-page .skill-icon,
.profile-page .skill-name {
    transition: color 0.3s ease;
}

@media (min-width: 991.98px) {
    .skill-item:hover {
        transform: translateY(-5px);
    }
}

.skill-name {
    color: #555;
    font-weight: 600;
}

.toggle-btn {
    color: #3b82f6;
    font-size: 1.4rem;
    background: transparent;
    border: none;
}

    .toggle-btn,
    .toggle-btn:focus,
    .toggle-btn:active,
    .toggle-btn:focus-visible {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }

@media (min-width: 991.98px) {
    .toggle-btn:hover {
        color: #2563eb;
    }
}

.toggle-btn i {
    transition: transform 0.3s ease;
}

.toggle-btn.expanded i {
    transform: rotate(180deg);
}

#travel-journey-content:not(.expanded)
.travel-journey-location-label {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 3s;
}

#travel-journey-content:not(.expanded)
#travel-journey-world-map {
    pointer-events: none;
}

#travel-journey-content.expanded
.travel-journey-current-home {
    display: block;
}

#travel-journey-world-map {
    pointer-events: auto;
}

#travel-journey-country-tooltip {
    position: fixed;
    display: none;
    background: rgba(30, 58, 138, 0.95);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

.travel-journey-legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.travel-journey-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.travel-journey-map-container {
    width: 100%;
    overflow-x: auto;
}

.travel-journey-travel-legend {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
}

.travel-journey-visited .travel-journey-legend-color {
    background: #3b82f6;
}

.travel-journey-wishlist .travel-journey-legend-color {
    background: #ffd581;
}

#travel-journey-world-map path {
    cursor: pointer;
    transition: all .2s ease;
}

    #travel-journey-world-map path:hover {
        fill: #3b82f6;
        stroke: #1e3a8a;
        stroke-width: 1;
    }

@media (max-width: 768px) {
    .skills-table th,
    .skills-table td {
        display: block;
        width: 100%;
    }
}


/* ========================================
   Profile page — dark navy theme
======================================== */

.profile-page {
    --profile-bg: #0b1220;
    --profile-card: #111c2e;
    --profile-card-hover: #1a2a40;
    --profile-border: #263449;
    --profile-title: #dadada;
    --profile-text: #bababa;
    --profile-muted: #94a3b8;
    --profile-accent: #3876c1;
    background: var(--profile-bg);
    color: var(--profile-text);
    min-height: 100vh;
    padding-bottom: 3rem;
}

    .profile-page .profile-card {
        background: var(--profile-card) !important;
        color: var(--profile-text);
        border: 1px solid var(--profile-border) !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
    }

@media (min-width: 991.98px) {
    .profile-page .profile-card:hover {
        border-color: #3b5473 !important;
        box-shadow: 0 12px 35px rgba(72, 79, 177, 0.3) !important;
    }
}

.profile-page .profile-card.active {
    transform: translateY(-5px);
    border-color: #3b5473 !important;
    box-shadow: 0 12px 35px rgba(72, 79, 177, 0.3) !important;
}

.profile-page .hr-color,
.profile-page hr {
    border-color: var(--profile-border);
    opacity: 1;
}

.profile-page .featured-project-item {
    background: var(--profile-card-hover);
    border: 1px solid var(--profile-border);
}

@media (min-width: 991.98px) {
    .profile-page .featured-project-item:hover {
        border-color: #3b5473;
        box-shadow: 0 12px 30px rgba(49, 34, 156, 0.25);
    }
}

.profile-page .featured-project-skill {
    background: #1e293b;
    border-color: #334155;
    color: #93c5fd;
}

.profile-page .skill-icon,
.profile-page .contact-icon {
    color: var(--profile-accent);
}

.profile-page .skill-name {
    color: var(--profile-text);
}

.profile-page .toggle-btn {
    color: var(--profile-accent);
}

@media (min-width: 991.98px) {
    .profile-page .toggle-btn:hover {
        color: #93c5fd;
    }
}

.profile-page .section-content:not(.expanded)::after {
    background: linear-gradient( to bottom, transparent, var(--profile-card) );
}

.profile-page .architecture-preview {
    border-radius: 22px;
    border-color: var(--profile-border);
}

.profile-page .profile-wave-left,
.profile-page .profile-wave-right {
    background-image: radial-gradient( circle, rgba(96, 165, 250, 0.25) 1px, transparent 1px );
}

.profile-page a {
    transition: color 0.25s ease;
}

    .profile-page a:hover {
        color: #93c5fd;
    }

.sidebar {
    background-color: #111827;
    color: #cbd5e1;
    border-right: 1px solid #263449;
}

    .sidebar a {
        color: #94a3b8;
        transition: color 0.25s ease, background-color 0.25s ease;
    }

        .sidebar a:hover,
        .sidebar a.active {
            color: #60a5fa;
            background-color: #1e293b;
        }

main,
.main-content {
    background-color: #0b1220;
    color: #cbd5e1;
}


/* ========================================
   Profile page — light theme
======================================== */

.content-bg-light .profile-page {
    --profile-bg: #f8fafc;
    --profile-card: #ffffff;
    --profile-card-hover: #f0f6ff;
    --profile-border: #dbe3ee;
    --profile-text: #334155;
    --profile-muted: #64748b;
    --profile-accent: #3876c1;
}

.profile-page .profile-card {
    background: var(--profile-card) !important;
    color: var(--profile-text);
    border-color: var(--profile-border) !important;
}

.profile-page .profile-header,
.profile-page .skill-icon,
.profile-page .contact-icon {
    color: var(--profile-accent);
    font-size: 2.2rem;
}

.profile-page .featured-project-item {
    background: var(--profile-card-hover);
    border-color: var(--profile-border);
    color: var(--profile-text);
}

.profile-page .featured-project-skill {
    background: var(--profile-card-hover);
    border-color: var(--profile-border);
    color: var(--profile-accent);
}

.profile-page .text-muted {
    color: var(--profile-muted) !important;
}

.profile-page .section-content:not(.expanded)::after {
    background: linear-gradient( to bottom, transparent, var(--profile-card) );
}

.sb-sidenav-light {
    background: #f8fafc !important;
    color: #334155 !important;
    border-right: 1px solid #e2e8f0;
}

    .sb-sidenav-light .sb-sidenav-menu,
    .sb-sidenav-light .sb-sidenav-menu .nav {
        background: #f8fafc !important;
    }

.content-bg-light,
.content-bg-light main,
.content-bg-light .main-content {
    background-color: #f8fafc !important;
    color: #334155;
}

    .content-bg-light .profile-page {
        background-color: #f8fafc !important;
    }

    .content-bg-light .profile-wave-left,
    .content-bg-light .profile-wave-right {
        background-image: radial-gradient( circle, rgba(56, 118, 193, 0.18) 1px, transparent 1px ) !important;
    }

    .content-bg-light .profile-card.active {
        border-color: rgb(144, 189, 244) !important;
    }

@media (min-width: 991.98px) {
    .content-bg-light .profile-card:hover {
        border-color: rgb(144, 189, 244) !important;
    }
}
