@font-face {
    font-family: 'Orbitron';
    src: url('../fonts/Orbitron.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-VariableFont_opsz,wght.ttf") format("truetype");
}

/* Variables */
:root {
    --color-dark: rgb(10, 10, 10);
    --color-dark-lighter: rgb(42, 42, 42);
    --color-neon-blue: rgba(0, 255, 255, 1);
    --color-neon-green: rgb(0, 255, 157);
    --color-neon-orange: rgba(255, 118, 6, 1);
    --color-neon-orange-border: rgba(253, 151, 51, 1);
    --color-neon-red: rgba(236, 73, 7, 1);
    --color-neon-purple: rgba(237, 93, 198, 1);
    --font-cyber: 'Share Tech Mono', monospace;
    --font-sans: 'Inter', sans-serif;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    background-color: var(--color-dark);
    color: white;
    font-family: var(--font-sans);
    box-shadow: inset 10px 24px 40px 0px color-mix(in srgb, var(--color-neon-blue), transparent 90%),
        inset -10px -24px 40px 0px color-mix(in srgb, var(--color-neon-blue), transparent 90%),
        inset 20px -10px 40px 0px color-mix(in srgb, var(--color-neon-blue), transparent 90%),
        inset -20px 10px 40px 0px color-mix(in srgb, var(--color-neon-blue), transparent 90%);
    min-height: 100%;
}

body {
    height: 100%;
    line-height: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 2rem 0rem 2rem;
    justify-content: space-between;
}

.background {
    z-index: -1;
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    background-image: url('../images/background.png');
    background-repeat: repeat;
    opacity: 0.5;
    /*filter: blur(15px);*/
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-cyber);
    font-weight: normal;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Layout */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
header {
    display: inline-flex;
    width: 100%;
    max-width: 75vw;
    flex-wrap: wrap;
    align-items: center;
    justify-content: end;
}

.logo {
    flex-grow: 2;
    flex-shrink: 2;
}

.logo-wrapper {
    position: relative;
    overflow: visible;
    width: 7rem;
    height: 7rem;
}

.logo img {
    width: 7rem;
    backdrop-filter: blur(5px);
    padding: 10px 0px 10px 0px;
}

.logo .glow-mask {
    background-repeat: no-repeat;
    background-size: 7rem;
    background-image: url(../images/logo.png);
    position: absolute;
    width: 7rem;
    height: 7rem;
    top: 10px;
}

.nav {
    top: 0;
    width: 100%;
    z-index: 50;
    flex-grow: 2;
}

.nav-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem;
    gap: 2rem;
}

.nav-link {
    font-size: 1rem;
    color: var(--color-neon-purple);
    font-family: var(--font-cyber);
    transition: color 0.3s;
}

.nav-link:hover {}

.nav-divider {
    width: 100%;
    height: 1px;
    background-color: var(--color-neon-blue);
    position: relative;
    box-shadow: 0 0 10px color-mix(in srgb, var(--color-neon-blue), transparent 60%);
}

/* Main Section */
.main {
    max-width: 75vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 0rem;
    overflow-x: hidden;
}

.main-wrapper {
    width: 60%;
}

.main-title {
    font-size: 3.75rem;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

/* Sections */
.about-text {
    color: rgba(0, 243, 255, 0.7);
    font-size: 1.2rem;
    line-height: 1.5rem;
    margin-top: 0.5rem;
}

.section {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem 0rem;
}

.section-title {
    font-size: 2.25rem;
    color: var(--color-neon-orange);
    margin-right: 2rem;
}

.section-title-wrapper {
    display: inline-flex;
    align-items: center;
    width: 100%;
    margin-bottom: 2rem;
}

.filters {
    display: inline-flex;
    flex-direction: row;
    gap: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-neon-blue);
    margin: 3px 10px;
}

.section-subtitle.red {
    color: var(--color-neon-red);
}

.clipped-border-box {
    position: relative;
    padding: 2px;
    color: var(--color-neon-blue);
    text-align: center;
    border: 1px solid color-mix(in srgb, var(--color-neon-blue), transparent 0%);
    box-shadow: 0 0 20px color-mix(in srgb, var(--color-neon-blue), transparent 60%);
    text-shadow: 0 0 20px color-mix(in srgb, var(--color-neon-blue), transparent 60%);
    border-radius: 15px;
    width: fit-content;
    margin-bottom: 0.75rem;
}
.clipped-border-box.red {
    color: var(--color-neon-red);
    border: 1px solid color-mix(in srgb, var(--color-neon-red), transparent 0%);
    box-shadow: 0 0 20px color-mix(in srgb, var(--color-neon-red), transparent 60%);
    text-shadow: 0 0 20px color-mix(in srgb, var(--color-neon-red), transparent 60%);
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Project Cards */
.project-card {
    background-color: var(--color-dark-lighter);
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 0 200px rgba(0,0,0,0.9) inset;
    cursor: pointer;
}

.project-card-image {
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    flex-grow: 2;
}

.project-card-content {
    width: 100%;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    border: 2px double var(--color-dark-lighter);
}

.project-card-title {
    color: var(--color-neon-blue);
    font-size: 1.125rem;
    margin-top: 1rem;
    transition: color 0.3s;
    text-align: center;
}

.project-card-description {
    width: 100%;
    padding: 0.2rem;
    opacity: 0;
}
.project-card:hover .project-card-description {
    opacity: 1;
}

.project-card-tags {
    list-style: none;
    width: 100%;
    display: inline-flex;
    flex-direction: row;
    justify-content: space-evenly;
    font-size: 0.7rem;
    color: white;
}

/* Code Cards */
.code-card {
    background-color: var(--color-dark-lighter);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.code-card pre {
    color: var(--color-neon-green);
    font-family: var(--font-cyber);
    font-size: 0.875rem;
    overflow-x: auto;
}

/* AI Assistant */
.ai-assistant-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 300px;
    height: 300px;
    animation: float 6s ease-in-out infinite;
}

.ai-orb {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    backdrop-filter: blur(4px);
    animation: orb-glow 4s ease-in-out infinite alternate;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes orb-glow {
    0% {
        box-shadow: 0 0 20px 2px rgba(0, 243, 255, 0.3);
    }

    100% {
        box-shadow: 0 0 40px 5px rgba(0, 243, 255, 0.5);
    }
}

@keyframes glow {

    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 10px var(--color-neon-blue),
            0 0 20px var(--color-neon-blue),
            0 0 30px var(--color-neon-blue);
    }

    50% {
        opacity: 0.8;
        text-shadow: 0 0 15px var(--color-neon-blue),
            0 0 25px var(--color-neon-blue),
            0 0 35px var(--color-neon-blue);
    }
}

.animate-glow {
    animation: glow 4s ease-in-out infinite;
}

/* Utilities */
.neon-text-cyan {
    font-family: 'Orbitron', sans-serif;
    color: var(--color-dark-lighter);
    text-shadow: 0px 0px 50px color-mix(in srgb, var(--color-neon-blue), transparent 60%);
    -webkit-text-stroke: 2px;
    -webkit-text-stroke-color: var(--color-neon-blue);
}

.neon-border {
    border: 2px solid var(--color-neon-blue);
    box-shadow: 0 0 10px var(--color-neon-blue),
        inset 0 0 5px var(--color-neon-blue);
}

.text-neon-border {
    text-shadow: 0 0 20px color-mix(in srgb, var(--color-neon-blue), transparent 60%);
}

.text-neon-border-orange {
    -webkit-text-stroke-color: var(--color-neon-orange-border);
    -webkit-text-stroke-width: 0.1px;
    text-shadow: 0 0 20px color-mix(in srgb, var(--color-neon-orange), transparent 50%);
}

.text-neon-border-purple {
    -webkit-text-stroke-color: var(--color-neon-purple);
    -webkit-text-stroke-width: 0.1px;
    text-shadow: 0 0 20px color-mix(in srgb, var(--color-neon-purple), transparent 50%);
}

.text-neon-border-red {
    -webkit-text-stroke-color: var(--color-neon-red);
    -webkit-text-stroke-width: 0.1px;
    text-shadow: 0 0 20px color-mix(in srgb, var(--color-neon-red), transparent 50%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 0.5rem;
}

::-webkit-scrollbar-track {
    background-color: var(--color-dark-lighter);
}

::-webkit-scrollbar-thumb {
    border-radius: 9999px;
    background-color: var(--color-neon-blue);
}

/* FOOTER */
footer {
    padding-bottom: 1rem;
    margin-top: 2rem;
    color: #555;
    font-size: 0.9rem;
    width: 80vw;
    margin-bottom: 1rem;
    flex-grow: 5;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
}

footer .divider {
    padding-bottom: 1rem;
    width: 100%;
    border-top: 1px solid #222;
}

/* SMALLER SCREENS IN PORTRAIT MODE */
@media (min-width: 768px) {
    .project-grid.grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .project-grid.grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1001px) {
    .main-title {
        font-size: 6rem;
    }

    .project-grid.grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-grid.grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1000px) {
    body {
        padding: 1rem 3rem 0rem 3rem;
    }

    .nav-link {
        font-size: 3rem;
    }

    .main {
        padding: 2rem 0rem;
        max-width: 100%;
    }

    .main-wrapper {
        width: 100%;
    }

    .logo-wrapper,
    .logo img {
        width: 5rem;
    }

    .logo .glow-mask {
        background-size: 5rem;
    }

    header {
        padding: 0rem;
        max-width: 100%;
    }

    .neon-text-cyan {
        -webkit-text-stroke: 1px;
        -webkit-text-stroke-color: var(--color-neon-blue);
    }
}

@media (min-width: 1300px) {
    .project-grid.grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .project-grid.grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (orientation: portrait) {
    .main-wrapper {
        width: 100%;
    }
}

