:root {
    --bg-color: #f0f2f5;
    --text-color: #000000;
    --muted-text-color: #6c757d;
    --primary-color: #0087cf;
    --surface-color: #ffffff;
    --surface-border-color: #dee2e6;
    --transition-duration: 0.6s;
}

[data-theme="dark"] {
    --bg-color: #181818;
    --text-color: #e0e0e0;
    --muted-text-color: #aeb7c1;
    --primary-color: #0087cf;
    --surface-color: #242424;
    --surface-border-color: #3a3a3a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Roboto", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition:
        background-color 0.3s,
        color 0.3s;
    padding-top: 0;
}

.main-content {
    position: relative;
}

.main-content > .container {
    margin-left: max(15px, calc((100vw - 1140px) / 2));
    margin-right: 320px;
    max-width: 1140px;
    width: auto;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color var(--transition-duration), box-shadow var(--transition-duration);
}

.navbar.bg-light,
header.bg-white {
    background-color: var(--surface-color) !important;
    color: var(--text-color);
}

.navbar .navbar-brand,
.navbar-light .navbar-brand,
.navbar-light .navbar-toggler {
    color: var(--text-color) !important;
}

.navbar-light .navbar-toggler {
    border-color: var(--surface-border-color);
}

.navbar a.nav-link {
    color: var(--text-color) !important;
    margin: 0 15px;
    font-weight: 500;
    transition: color var(--transition-duration);
}

.navbar a.nav-link:hover {
    color: var(--primary-color) !important;
    text-decoration: none;
}

.section-title {
    margin-top: 40px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: "";
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    position: absolute;
    bottom: -10px;
    left: 0;
}

.profile-img {
    max-width: 200px;
    border: 5px solid var(--primary-color);
    animation: pulse 3s infinite;
    transition: transform 0.3s;
}

.profile-img:hover {
    transform: scale(1.05);
}

.experience h5,
.education h5 {
    font-weight: bold;
    color: var(--primary-color);
}

.skills p {
    margin-bottom: 10px;
}

.skills strong {
    color: var(--primary-color);
}

.footer {
    margin-top: 40px;
    padding: 20px 0;
    background-color: #181818;
    color: #fff;
}

.icon {
    color: var(--primary-color);
}

.list-unstyled li {
    margin-bottom: 10px;
}

.list-unstyled li i {
    color: #28a745;
    margin-right: 10px;
}

a {
    color: var(--primary-color);
}

a:hover {
    text-decoration: none;
    color: #0056b3;
}

.hero-header {
    border-bottom: 1px solid var(--surface-border-color);
    overflow: hidden;
    padding: 56px 0 48px;
    position: relative;
}

.hero-header::before {
    background:
        radial-gradient(circle at 18% 20%, rgba(0, 135, 207, 0.18), transparent 32%),
        linear-gradient(135deg, rgba(0, 135, 207, 0.08), transparent 52%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.hero-layout {
    align-items: center;
    display: grid;
    gap: 42px;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.6fr);
    position: relative;
}

.hero-profile {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-profile .profile-img {
    background-color: var(--surface-color);
    max-width: 220px;
    width: 100%;
}

.hero-meta {
    display: grid;
    gap: 8px;
    max-width: 260px;
    text-align: center;
}

.hero-meta span,
.hero-stats span,
.profile-sidebar span,
.profile-sidebar a {
    color: var(--text-color);
}

.hero-meta i,
.hero-contact i,
.profile-sidebar i {
    color: var(--primary-color);
}

.hero-copy {
    max-width: 790px;
}

.hero-kicker {
    color: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hero-copy h1 {
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    line-height: 0.96;
    margin-bottom: 12px;
}

.hero-copy h5 {
    color: var(--muted-text-color);
    font-size: 1.25rem;
    margin-bottom: 18px;
}

.hero-summary {
    font-size: 1.08rem;
    line-height: 1.65;
    margin-bottom: 18px;
    max-width: 720px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.hero-stats span {
    align-items: center;
    background-color: rgba(0, 135, 207, 0.1);
    border: 1px solid rgba(0, 135, 207, 0.18);
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 700;
    min-height: 32px;
    padding: 7px 12px;
}

.hero-stats .badge-info {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.hero-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-bottom: 22px;
}

.hero-contact a {
    font-weight: 600;
    white-space: nowrap;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-actions .btn {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.hero-actions .download-btn {
    margin-top: 0;
}

.language-btn {
    background-color: var(--surface-color);
}

.profile-sidebar {
    background-color: var(--surface-color);
    border: 1px solid var(--surface-border-color);
    border-radius: 8px 0 0 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    margin: 0;
    padding: 18px;
    position: absolute;
    right: 0;
    top: 24px;
    width: 280px;
    z-index: 900;
}

.sidebar-section {
    border-bottom: 1px solid var(--surface-border-color);
    display: grid;
    gap: 9px;
    padding: 14px 0;
}

.sidebar-section:first-child {
    padding-top: 0;
}

.sidebar-section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.sidebar-head strong {
    color: var(--primary-color);
    font-size: 1.12rem;
}

.sidebar-head small {
    color: var(--muted-text-color);
    line-height: 1.45;
}

.sidebar-label {
    background-color: rgba(40, 167, 69, 0.14);
    border-radius: 999px;
    color: #1f7a3a !important;
    font-size: 0.76rem;
    font-weight: 700;
    justify-self: start;
    padding: 4px 9px;
    text-transform: uppercase;
}

.profile-sidebar h6 {
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}

.profile-sidebar a,
.profile-sidebar span {
    font-size: 0.94rem;
}

.profile-sidebar a:hover {
    color: var(--primary-color);
}

.sidebar-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sidebar-nav h6 {
    grid-column: 1 / -1;
}

.download-btn {
    margin-top: 20px;
}

.floating-actions {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 9px;
    z-index: 1001;
}

.floating-action {
    align-items: center;
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    font-weight: 700;
    gap: 3px;
    height: 54px;
    justify-content: center;
    min-height: 54px;
    min-width: 54px;
    padding: 7px;
    transition:
        background-color 0.3s,
        box-shadow 0.3s,
        transform 0.3s;
    width: 54px;
}

.floating-action:hover,
.floating-action:focus {
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 135, 207, 0.28);
    text-decoration: none;
    transform: scale(1.1);
}

.floating-action.dark-mode-toggle {
    font-family: inherit;
}

.language-option {
    background-color: var(--surface-color);
    border-color: var(--surface-border-color);
    border-radius: 999px;
    color: var(--primary-color);
}

.language-option:hover,
.language-option:focus {
    background-color: rgba(0, 135, 207, 0.12);
    color: var(--primary-color);
    text-decoration: none;
}

.language-option.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    pointer-events: none;
}

.flag-icon {
    font-size: 1.08rem;
    line-height: 1;
}

.floating-action span:not(.flag-icon) {
    font-size: 0.72rem;
    line-height: 1;
}

.testimonial {
    align-items: center;
    background: linear-gradient(135deg, var(--surface-color), rgba(0, 135, 207, 0.05));
    border: 1px solid var(--surface-border-color);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.1);
    display: grid;
    gap: 10px 28px;
    grid-template-columns: 126px minmax(0, 1fr);
    min-height: 260px;
    padding: 36px 46px;
    position: relative;
    text-align: left;
    transition:
        transform 0.3s,
        box-shadow 0.3s,
        border-color 0.3s;
}

.testimonial:hover {
    border-color: rgba(0, 135, 207, 0.35);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.14);
    transform: translateY(-6px);
}

.testimonial::before {
    align-items: center;
    background-color: rgba(0, 135, 207, 0.12);
    border-radius: 50%;
    color: var(--primary-color);
    content: "\f10d";
    display: flex;
    font-family: "Font Awesome 6 Free";
    font-size: 18px;
    font-weight: 900;
    height: 44px;
    justify-content: center;
    left: 32px;
    position: absolute;
    top: 24px;
    width: 44px;
}

.testimonial > br {
    display: none;
}

.testimonial a {
    grid-row: 1 / span 3;
    justify-self: center;
    position: relative;
    text-decoration: none;
    z-index: 1;
}

.testimonial img {
    animation: borderPulse 2.4s infinite;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 10px 22px rgba(0, 135, 207, 0.18);
    height: 96px;
    margin: 0;
    object-fit: cover;
    transition:
        transform 0.3s,
        border-color 0.3s,
        box-shadow 0.3s;
    width: 96px;
}

.testimonial img:hover {
    border-color: #ffc107;
    box-shadow: 0 12px 28px rgba(0, 135, 207, 0.26);
    transform: scale(1.06);
}

.testimonial p,
.testimonial .user,
.testimonial .job {
    grid-column: 2;
}

.testimonial p {
    color: var(--text-color);
    font-size: 1.03rem;
    font-style: normal;
    line-height: 1.75;
    margin: 0 0 12px;
    transition: color 0.3s;
}

.testimonial p:hover {
    color: var(--text-color);
}

.testimonial .user {
    color: var(--primary-color);
    font-size: 1.04rem;
    font-weight: 700;
    margin-bottom: 0;
}

.testimonial .job {
    color: var(--muted-text-color);
    font-size: 0.92em;
    line-height: 1.45;
}

.dropdown-menu {
    background-color: var(--surface-color);
    border-color: var(--surface-border-color);
}

.dropdown-item {
    color: var(--text-color);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(0, 135, 207, 0.12);
    color: var(--primary-color);
}

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

#testimonials {
    margin-top: 48px;
}

#testimonialCarousel {
    margin: 12px auto 0;
    max-width: 980px;
}

#testimonialCarousel .carousel-inner {
    overflow: visible;
}

.carousel-item {
    padding: 26px 72px 50px;
    transition: transform var(--transition-duration) ease-in-out;
}

#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
    opacity: 0.9;
    width: 48px;
}

#testimonialCarousel .carousel-control-prev {
    left: 2px;
}

#testimonialCarousel .carousel-control-next {
    right: 2px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-color);
    background-size: 54%;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 135, 207, 0.28);
    height: 38px;
    width: 38px;
}

#testimonialCarousel .carousel-indicators {
    bottom: 10px;
    margin-bottom: 0;
}

.carousel-indicators li {
    background-color: var(--primary-color);
    border-radius: 999px;
    height: 8px;
    opacity: 0.35;
    width: 8px;
}

.carousel-indicators .active {
    opacity: 1;
    width: 24px;
}

@keyframes pulse {
    0% {
        border-color: var(--primary-color);
    }
    50% {
        border-color: #ffc107;
    }
    100% {
        border-color: var(--primary-color);
    }
}

@keyframes borderPulse {
    0% {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        border-color: #ffc107;
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.experience,
.testimonial,
.skill-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.experience:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 135, 207, 0.15);
}

.skill-progress {
    height: 6px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
    position: relative;
}

.skill-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #00c6ff);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease-out;
    box-shadow: 0 2px 8px rgba(0, 135, 207, 0.4);
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

.glow {
    box-shadow: 0 0 20px rgba(0, 135, 207, 0.5);
    transition: box-shadow 0.3s ease;
}

.glow:hover {
    box-shadow: 0 0 30px rgba(0, 135, 207, 0.8);
}

.badge {
    transition: all 0.3s ease;
}

.badge:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.navbar.scrolled {
    background-color: var(--surface-color) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.skill-item {
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(0, 135, 207, 0.05);
    transform: translateX(10px);
}

.list-unstyled li {
    transition: all 0.3s ease;
}

.list-unstyled li:hover {
    transform: translateX(5px);
    color: var(--primary-color);
}

.icon-spin:hover {
    animation: spin 0.6s ease-in-out;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.parallax {
    transition: transform 0.5s ease-out;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.btn,
.nav-link,
.dropdown-item {
    position: relative;
    overflow: hidden;
}

@media (min-width: 1200px) {
    .hero-header {
        padding-right: 290px;
    }

    .main-content > .container {
        margin-left: calc((100vw - 1140px) / 2);
        margin-right: 308px;
    }
}

@media (max-width: 1199px) {
    .hero-header {
        padding-right: 244px;
    }

    .main-content > .container {
        margin-left: 24px;
        margin-right: 244px;
    }

    .profile-sidebar {
        padding: 14px;
        top: 16px;
        width: 212px;
    }

    .sidebar-nav {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .floating-actions {
        bottom: 14px;
        gap: 8px;
        right: 14px;
    }

    .floating-action {
        border-radius: 999px;
        height: 46px;
        justify-content: center;
        min-height: 46px;
        min-width: 46px;
        padding: 5px;
        width: 46px;
    }

    .floating-action span:not(.flag-icon) {
        display: none;
    }

    .language-option {
        min-height: 46px;
        min-width: 46px;
    }

    .flag-icon {
        font-size: 0.95rem;
    }

    .hero-header {
        padding-right: 82px;
    }

    .main-content > .container {
        margin-left: 14px;
        margin-right: 82px;
    }

    .profile-sidebar {
        align-items: center;
        border-radius: 8px 0 0 8px;
        padding: 8px 6px;
        top: 12px;
        width: 64px;
    }

    .sidebar-section {
        border-bottom: 0;
        gap: 6px;
        justify-items: center;
        padding: 8px 0;
    }

    .sidebar-head small,
    .sidebar-head strong,
    .sidebar-section h6,
    .profile-sidebar span,
    .profile-sidebar a {
        font-size: 0;
    }

    .sidebar-label {
        height: 10px;
        padding: 0;
        width: 10px;
    }

    .profile-sidebar a {
        align-items: center;
        border-radius: 8px;
        display: flex;
        height: 38px;
        justify-content: center;
        width: 38px;
    }

    .profile-sidebar a i {
        font-size: 1.05rem;
        margin: 0;
    }

    .profile-sidebar a:hover {
        background-color: rgba(0, 135, 207, 0.12);
    }

    .contact-info p {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 8px;
    }

    .experience .d-flex {
        align-items: flex-start !important;
        flex-direction: column;
    }

    .skill-item {
        padding: 14px 0;
    }

    #testimonials {
        margin-top: 34px;
    }

    #testimonialCarousel {
        max-width: 100%;
    }

    .carousel-item {
        padding: 18px 0 44px;
    }

    .testimonial {
        gap: 12px;
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 34px 22px 28px;
        text-align: center;
    }

    .testimonial::before {
        height: 38px;
        left: 18px;
        top: 18px;
        width: 38px;
    }

    .testimonial a,
    .testimonial p,
    .testimonial .user,
    .testimonial .job {
        grid-column: 1;
        grid-row: auto;
    }

    .testimonial img {
        height: 82px;
        width: 82px;
    }

    .testimonial p {
        font-size: 0.96rem;
        line-height: 1.65;
    }

    #testimonialCarousel .carousel-control-prev,
    #testimonialCarousel .carousel-control-next {
        display: none;
    }
}
