:root {
    --cryptica-primary: #f79520;
    --cryptica-primary-bg: #191923;
    --cryptica-primary-light: #f9b563;
    --cryptica-primary-dark: #bd6a07;
    --cryptica-secondary: #20b4f7;
    --cryptica-secondary-bg: #192319;
    --cryptica-secondary-light: #63dbf9;
    --cryptica-secondary-dark: #0789bd;

    --green-light: #d8f3dc;
    --green-dark: #1b4332;

    --neutral-light: #F2F2F2;
    --neutral-dark: #333333;
    --neutral-900: #1A1A1A;
    --neutral-800: #2C2C2C;
    --neutral-700: #404040;
    --neutral-200: #E0E0E0;
    --neutral-100: #F5F5F5;
    --neutral-50: #FAFAFA;
    --white: #FFFFFF;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 60px;
}

@font-face {
    font-display: swap;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/Inter/inter-v18-latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/Inter/inter-v18-latin-600.woff2') format('woff2');
}


body {
    font-family: 'Inter', sans-serif;
    background: var(--neutral-50);
    color: var(--neutral-900);
    line-height: 1.5;
}

.container-xl {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section.bg-light {
    border-block: 1px solid rgba(0, 0, 0, 0.1);
}

.tech-sphere {
    position: relative;
    width: 500px;
    height: 500px;
}

.sphere-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--cryptica-primary);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(247, 149, 32, 0.2);
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #ddd;
    border-radius: 50%;
}

.orbit-1 {
    width: 200px;
    height: 200px;
    animation: orbit 8s linear infinite;
    z-index: 3;
}

.orbit-2 {
    width: 300px;
    height: 300px;
    animation: orbit 16s linear infinite reverse;
    z-index: 2;
}

.orbit-3 {
    width: 400px;
    height: 400px;
    animation: orbit 28s linear infinite;
    z-index: 1;
}

.tech-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--cryptica-primary-bg);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.tech-icon:hover {
    transform: scale(1.3);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    background: var(--cryptica-primary);
}

.orbit-1 .tech-icon:nth-child(1) {
    top: -20px;
    /* Half of tech-icon height */
    left: calc(50% - 20px);
    /* 50% - half of tech-icon width */
}

.orbit-1 .tech-icon:nth-child(2) {
    bottom: -20px;
    left: calc(50% - 20px);
}

.orbit-2 .tech-icon:nth-child(1) {
    top: calc(50% - 20px);
    right: -20px;
}

.orbit-2 .tech-icon:nth-child(2) {
    top: calc(50% - 20px);
    left: -20px;
}

.orbit-3 .tech-icon:nth-child(1) {
    top: -20px;
    left: calc(50% - 20px);
}

.orbit-3 .tech-icon:nth-child(2) {
    bottom: -20px;
    left: calc(50% - 20px);
}

@keyframes orbit {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.card {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--neutral-200);
    transition: all 0.3s var(--ease);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.card:not(.no-effect):hover {
    transform: translateY(-2px);
    border-color: var(--cryptica-primary-bg);
    background-color: #fffcf8;
}

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

.text-highlight {
    padding: 0.1em 0.3em;
    border-bottom: 1px solid var(--cryptica-primary);
}

@media (max-width: 768px) {
    .tech-sphere {
        width: 300px;
        height: 300px;
    }

    .orbit-1 {
        width: 120px;
        height: 120px;
    }

    .orbit-2 {
        width: 200px;
        height: 200px;
    }

    .orbit-3 {
        width: 250px;
        height: 250px;
    }

    .tech-icon {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: rgba(247, 149, 32, 0.1);
    color: var(--cryptica-primary-dark);
    border: 1px solid rgba(247, 149, 32, 0.3);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease-in;
}

.tag:hover {
    background: var(--green-light);
    border-color: var(--green-dark);
    color: var(--green-dark);
    box-shadow: 0 4px 6px rgba(247, 149, 32, 0.1);
    cursor: default;
}

.navbar {
    height: var(--header-height);
}

.navbar-bg {
    background: rgba(255, 255, 255, 0.9);
}

.navbar-shadow {
    box-shadow: 0 1px 10px #ccc;
}

.nav-link {
    color: black;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    margin: 0 0.5em;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

footer a {
    color: black;
}

.nav-link:hover,
footer a:hover {
    color: var(--cryptica-primary) !important;
}

#about {
    margin-top: calc(var(--header-height) * -1);
}

.bg-cryptica {
    background: rgb(254, 246, 235);
    background: linear-gradient(180deg, rgba(254, 246, 235, 1) 0%, rgba(255, 255, 255, 1) 40%);
}

.btn-primary {
    background-color: var(--cryptica-primary-bg);
    border-color: var(--cryptica-primary-bg);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--cryptica-primary);
    border-color: var(--cryptica-primary);
}

.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show>.btn-primary.dropdown-toggle {
    background-color: var(--cryptica-primary-light);
    border-color: var(--cryptica-primary-light);
}

.btn-outline-primary {
    color: var(--cryptica-primary-bg);
    border: 2px solid var(--cryptica-primary-bg);
    background-color: transparent;
    transition: all 0.3s var(--ease);
}

.btn-outline-primary:hover {
    color: var(--cryptica-primary);
    background-color: transparent;
    border-color: var(--cryptica-primary);
}

.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.show>.btn-outline-primary.dropdown-toggle {
    color: var(--cryptica-primary-light);
    background-color: transparent;
    border-color: var(--cryptica-primary-light);
}

.btn-secondary {
    background-color: var(--cryptica-secondary-bg);
    border-color: var(--cryptica-secondary-bg);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--cryptica-secondary);
    border-color: var(--cryptica-secondary);
}

.btn-secondary:not(:disabled):not(.disabled):active,
.btn-secondary:not(:disabled):not(.disabled).active,
.show>.btn-secondary.dropdown-toggle {
    background-color: var(--cryptica-secondary-light);
    border-color: var(--cryptica-secondary-light);
}

.btn-outline-secondary {
    color: var(--cryptica-secondary-bg);
    border: 2px solid var(--cryptica-secondary-bg);
    background-color: transparent;
    transition: all 0.3s var(--ease);
}

.btn-outline-secondary:hover {
    color: var(--cryptica-secondary);
    background-color: transparent;
    border-color: var(--cryptica-secondary);
}

.btn-outline-secondary:not(:disabled):not(.disabled):active,
.btn-outline-secondary:not(:disabled):not(.disabled).active,
.show>.btn-outline-secondary.dropdown-toggle {
    color: var(--cryptica-secondary-light);
    background-color: transparent;
    border-color: var(--cryptica-secondary-light);
}

.checkmark::before {
    content: "✓ ";
    color: var(--green-dark);
}

.scroller-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.scroller-track {
    display: flex;
    gap: 4rem;
    position: relative;
    white-space: nowrap;
}

.scroller-item {
    flex: 0 0 auto;
    filter: grayscale(100%) brightness(100%) opacity(0.6);
    transition: filter 0.3s ease;
    cursor: pointer;
}

.scroller-item:hover {
    filter: none;
}

.scroller-item img {
    height: 80px;
    object-fit: contain;
}

.fade-item {
    filter: grayscale(100%) brightness(100%) opacity(0.6);
    transition: filter 0.3s ease;
}

.fade-item:hover {
    filter: none;
}

.inset-shadow {
    box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.15);
}

.form-floating>.form-control-plaintext~label::after,
.form-floating>.form-control:focus~label::after,
.form-floating>.form-control:not(:placeholder-shown)~label::after,
.form-floating>.form-select~label::after {
    background-color: transparent;
}

.form-control:focus {
    box-shadow: 0 0 0 .2rem rgba(25, 25, 35, 0.65);
    background-color: white !important;
}

.icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: rgba(255, 255, 255, 0.1);
}

@media (min-width: 992px) {
    .dropdown-menu {
        position: absolute;
        /* Ensure positioning so the pseudo-elements can be placed absolutely */
        padding: 1rem;
        background-color: var(--cryptica-primary-bg);
        border-radius: 0.5rem;
        border: none;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        /* soft shadow */
        margin-top: 1rem;
        /* space between toggle and dropdown */
    }

    /* Create the arrow "notch" using two pseudo-elements:
         - ::before is the white triangle (matching the .dropdown-menu background)
         - ::after is a slightly larger, semi-transparent triangle for a subtle shadow behind the white arrow.
      */
    .dropdown-menu::before,
    .dropdown-menu::after {
        content: "";
        position: absolute;
        left: 2rem;
        width: 0;
        height: 0;
        border-style: solid;
    }

    /* Arrow */
    .dropdown-menu::before {
        top: -10px;
        border-width: 0 10px 10px 10px;
        border-color: transparent transparent var(--cryptica-primary-bg) transparent;
    }

    .dropdown-menu .dropdown-item {
        color: white;
    }

    .dropdown-menu .dropdown-item:hover {
        color: var(--cryptica-primary);
        background-color: transparent;
    }
}

@media (max-width: 992px) {
    .navbar {
        background: white;
        box-shadow: 0 1px 10px #ccc;
    }

    #navbarNav {
        width: 100%;
        margin: 0;
        padding: 1rem;
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        box-shadow: 0 10px 10px #ccc;
        border-top: 1px solid #ccc;
    }

    #navbarNav .navbar-nav .btn {
        background: none;
        color: black;
        border: none;
        padding: 0.5rem 1rem;
        margin: 0 0.5em;
        font-weight: 600;
    }

    #navbarNav .navbar-nav .btn:hover,
    #navbarNav .navbar-nav a:hover {
        color: var(--cryptica-primary);
    }

    #navbarNav .navbar-nav .dropdown {
        margin-left: 0 !important;
    }

    #navbarNav ul.dropdown-menu {
        border: none;
        margin-left: 2em;
    }

    #navbarNav ul.dropdown-menu li a {
        color: black;
        font-weight: 600;
    }

    #navbarNav ul.dropdown-menu li a.active {
        color: var(--cryptica-primary)
    }
}
