:root {
    --accent: #4da3ff;
    --bg-dark: #141418;
    --bg-dark-2: #141418;
    --bg-dark-3: #1a1a1f;
    --text-light: #e6e6e6;
    --text-muted: #ccc;
}

html {
    scroll-behavior: auto !important;
}

body {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-light);
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    overflow-anchor: none;
    padding-top: 76px;
}

body.page-loaded {
    opacity: 1;
}

.accent {
    color: var(--accent);
}

.lang-toggle input {
    visibility: hidden;
}

.hero-header p.lead {
    font-size: 1.5rem;
    font-weight: 400;
}

.hero-header h1 {
    font-size: 4.3rem;
}

.navbar-brand {
    color: var(--accent) !important;
}

.navbar .nav-link {
    font-family: "Poppins", sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: #ddd;
    transition: color 0.25s ease;
}

.navbar .nav-link:hover {
    color: #4da3ff;
}

.parallax {
    position: relative;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.parallax-overlay {
    background: rgba(0, 0, 0, 0.55);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-header {
    height: 100vh;
    background-image: url('../images/main/main.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
    text-align: center;
}

.hero-header-about {
    height: 60vh;
    background-image: url('../images/main/about.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.short-hero {
    height: 100%;
}

@media (max-width: 768px) {
    .hero-header-about {
        height: 40vh;
    }
}

.section-block {
    padding-bottom: 60px;
}

.section-whoiam {
    padding-top: 60px;
}

.section-techstack {
    padding-top: 60px;
    padding-bottom: 40px;
}

.section-projects {
    padding-top: 50px;
}

.card {
    background-color: var(--bg-dark-3);
    border: 1px solid #2a2a33;
    color: var(--text-light);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.project-card {
    border-left: 4px solid var(--accent);
}

.project-img {
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.skill-card {
    animation: fadeInUp 0.6s ease both;
    background: var(--bg-dark-3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.skill-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.skill-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.skill-card p {
    flex-grow: 1;
}

.btn-outline-primary {
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline-primary:hover {
    background-color: var(--accent);
    color: #000;
}

.btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
}

.btn-primary:hover {
    background-color: #6bb4ff;
    border-color: #6bb4ff;
}

[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

h1,
h2,
h3,
h4 {
    text-shadow: 0 0 12px rgba(77, 163, 255, 0.25);
}

.filter-sidebar {
    padding: 1rem;
    border-radius: 8px;
    background: #111;
    color: #fff;
    border: 1px solid rgba(0, 170, 255, 0.25);
    box-shadow: 0 0 12px rgba(0, 170, 255, 0.25);
}

.filter-sidebar .form-control {
    background: #222 !important;
    color: #fff !important;
    border: 1px solid #444;
}

.filter-sidebar .form-check-input {
    accent-color: var(--accent);
}

.form-check-input:checked+label {
    font-weight: bold;
    color: var(--accent);
}

#projectList>.project-card {
    transition:
        opacity .25s ease,
        transform .25s ease,
        height .25s ease,
        margin .25s ease;
}

.hidden {
    opacity: 0;
    transform: scale(.95);
    pointer-events: none;
    height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    flex: 0 0 0 !important;
}

img.rounded {
    border-radius: 8px;
}

.shadow {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.text-muted {
    color: #fff !important;
}

.edu-logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 80px;
}

.cookie-widget {
    position: fixed;
    left: 20px;
    bottom: 40px;
    z-index: 999;
    cursor: pointer;
}

.cookie-box {
    background: #fff;
    border-radius: 50%;
    height: 56px;
    width: 56px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s ease, padding 0.3s ease, border-radius 0.3s ease;
}

.cookie-icon {
    font-size: 1.6rem;
    color: var(--accent);
    filter: drop-shadow(0 2px 4px rgba(108, 99, 255, 0.25));
}

.cookie-label {
    opacity: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: opacity 0.25s ease, width 0.25s ease;
    color: black;
}

@media (hover: hover) and (pointer: fine) {
    .cookie-widget:hover .cookie-box {
        width: 180px;
        border-radius: 40px;
        padding: 0 0.8rem;
    }

    .cookie-widget:hover .cookie-label {
        opacity: 1;
        width: auto;
        margin-left: 0.4rem;
    }
}

.cookie-content {
    position: absolute;
    left: 0;
    bottom: 0;
    background: #fff;
    padding: 1.2rem 1.4rem;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    width: 260px;
    display: none;
    opacity: 0;
    transform: scale(0.7) translateY(20px);
    transition: all 0.35s ease;
    text-align: center;
    color: black;
}

.cookie-widget.open .cookie-content {
    display: block;
    opacity: 1;
    transform: scale(1) translateY(0);
}

.cookie-widget.open .cookie-box {
    display: none;
}

.cookie-close {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    position: absolute;
    top: 6px;
    right: 8px;
    cursor: pointer;
    color: #444;
    transition: 0.2s ease;
}

.cookie-close:hover {
    transform: scale(1.2);
}

.badge-frontend,
.tag-frontend {
    background-color: #0d6efd;
    color: #fff;
}

.badge-backend,
.tag-backend {
    background-color: #198754;
    color: #fff;
}

.badge-health,
.tag-health {
    background-color: #b14dff;
    color: #fff;
}

.badge-mobile,
.tag-mobile {
    background-color: #fd7e14;
    color: #fff;
}

.badge-tech,
.tag-tech {
    background-color: #ced4da;
    color: #000;
}

.icon-wrapper {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.project-icon {
    width: 120px;
    height: 120px;
    opacity: 0.9;
}

.project-icon-colored {
    filter: invert(36%) sepia(98%) saturate(2476%) hue-rotate(203deg) brightness(96%) contrast(101%);
}

.project-hero {
    height: 300px;
    position: relative;
}

.project-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.badge-lg {
    font-size: 1rem;
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    font-weight: 600;
}

.tag-pill {
    display: inline-block;
    padding: 0.55rem 1rem;
    font-size: 0.95rem;
    border-radius: 50px;
    font-weight: 600;
}

#project-carousel .carousel-control-prev,
#project-carousel .carousel-control-next {
    width: 48px !important;
    height: 48px !important;
    background: rgba(0, 170, 255, 0.25) !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    transition: background 0.2s ease !important;
}

#project-carousel .carousel-control-prev:hover,
#project-carousel .carousel-control-next:hover {
    background: rgba(0, 170, 255, 0.45) !important;
}

#project-carousel .carousel-control-prev-icon,
#project-carousel .carousel-control-next-icon {
    filter: invert(1) !important;
}

.skill-animate {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.skill-animate:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 170, 255, 0.15);
    border-color: rgba(0, 170, 255, 0.25);
}

.skill-icon {
    color: var(--accent);
    transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.85;
}

.skill-animate:hover .skill-icon {
    color: #33cfff;
    text-shadow: 0 0 12px rgba(0, 170, 255, 0.6);
    transform: scale(1.08);
    opacity: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-techstack .skill-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.section-techstack .skill-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 170, 255, 0.15);
    border-color: rgba(0, 170, 255, 0.25);
}

.section-techstack .skill-card i {
    color: var(--accent);
    transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.85;
}

.section-techstack .skill-card:hover i {
    color: #33cfff;
    text-shadow: 0 0 12px rgba(0, 170, 255, 0.6);
    transform: scale(1.08);
    opacity: 1;
}

.section-techstack .skill-card {
    animation: fadeInUp 0.6s ease both;
}

@media (max-width: 991px) {
    .section-techstack .skill-card {
        height: 450px;
    }
}

@media (max-width: 775px) {
    .section-techstack .skill-card {
        height: auto;
    }
}

.flag-icon {
    width: 40px;
    height: 29px;
    border-radius: 4px;
    object-fit: cover;
}

.flag-iconNS {
    width: 40px;
    height: 29px;
    border-radius: 4px;
    object-fit: cover;
    opacity: 0.4;
    filter: alpha(opacity=40);
}

.imgborder {
    object-fit: fill;
    border: solid 3px #0dd9fd00;
    border-radius: 6px;
    margin-right: 1px;

}

.imgborder:hover {
    border: solid 3px #4da3ff;
    border-radius: 6px;
}

input:checked+.slider {
    background-color: #4da3ff;
}

input:checked+.slider:before {
    transform: translateX(22px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .mobile-lang-toggle {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 10px;
    }
}

@media (max-width: 991px) {
    .lang-toggle {
        transform: scale(0.9);
    }
}

.banner {
    position: relative;
    min-height: 320px;
    background-size: 200px;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: scroll;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.55);
}

.banner-api {
    background-image: url('../images/gear.svg');
    filter: invert(36%) sepia(98%) saturate(2476%) hue-rotate(203deg) brightness(96%) contrast(101%);
}

.banner-circle {
    background-image: url('../images/arrow-repeat.svg');
    filter: invert(36%) sepia(98%) saturate(2476%) hue-rotate(203deg) brightness(96%) contrast(101%);
}

.banner-activity {
    background-image: url('../images/activity.svg');
    filter: invert(36%) sepia(98%) saturate(2476%) hue-rotate(203deg) brightness(96%) contrast(101%);
}

.banner-mobile {
    background-image: url('../images/phone.svg');
    filter: invert(36%) sepia(98%) saturate(2476%) hue-rotate(203deg) brightness(96%) contrast(101%);
}
    html, body {
        height: 100%;
        margin: 0;
    }
    body {
        display: flex;
        flex-direction: column;
    }
    footer {
        margin-top: auto;
    }