* {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

body {
    background: #000000;
    color: #E0E0E0;
    font-family: "proxima-nova", sans-serif;
    margin: 0;
    line-height: 1.6;
    zoom: 1.1;
    overflow-x: hidden;
    min-height: 100vh;
}

#space-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at bottom, #111 0%, #000 100%);
}

a, a[data-href] {
    cursor: pointer;
    -webkit-user-drag: none;
}

img {
    pointer-events: none;
    -webkit-user-drag: none;
    user-drag: none;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 80px;
    position: relative;
    z-index: 10;
    background: rgba(10, 10, 10, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

a {
    color: #cccccc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3 {
    color: #FFFFFF;
    margin-top: 0;
}

header {
    text-align: center;
}

.banner {
    position: relative;
    margin-bottom: 80px;
    width: 1255px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.banner-img {
    width: 1240px;
    height: 500px;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    pointer-events: none;
    -webkit-user-drag: none;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.profile-pic {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    bottom: -60px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid #222;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    pointer-events: none;
    -webkit-user-drag: none;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    object-fit: cover;
    object-position: center;
}

header .intro {
    text-align: center;
}

#contact {
    margin-top: 50px;
}

.red-text {
    color: #d1040d;
    text-shadow: 0 0 10px rgba(209, 4, 13, 0.5);
}

section {
    background: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 60px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

section h2 {
    margin-bottom: 25px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    display: inline-block;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

section > p {
    color: #A0A0A0;
    margin-top: 0;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.contact-link {
    background: rgba(25, 25, 25, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    color: #E0E0E0;
    font-size: 1em;
}

.contact-link:hover {
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.contact-link div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.repo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.repo-card {
    background: rgba(25, 25, 25, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 8px;
    border-left: 3px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.repo-card:hover {
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 3px solid #777;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.project-logo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    flex-shrink: 0;
    pointer-events: none;
    -webkit-user-drag: none;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.repo-card h3 {
    margin: 0 0 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.repo-card h3 a {
    color: #FFFFFF;
    text-decoration: none;
}

.repo-card h3 a span {
  position: relative;
  display: inline-block;
}

.repo-card h3 a span::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #555;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
  transform-origin: bottom right;
  transform: scaleX(0);
  transition: transform 0.5s ease;
}

.repo-card h3 a:hover span::before {
  transform-origin: bottom left;
  transform: scaleX(1);
}

.public-badge {
    border: 1px solid #A0A0A0;
    color: #A0A0A0;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: normal;
}

.repo-stats {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
    color: #A0A0A0;
    margin-top: 15px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.tech-item {
    background: rgba(25, 25, 25, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tech-item i {
    font-size: 1.5em;
}

.discord-handle {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.discord-handle:hover {
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.discord-handle div {
}

.discord-text {
    position: relative;
    transition: color 0.2s ease-in-out;
}

.discord-handle:hover .discord-text {
    color: transparent;
}

.discord-text::after {
    content: '.sakuii';
    color: #E0E0E0;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease-in-out;
    pointer-events: none;
    font-weight: normal;
}

.discord-handle:hover .discord-text::after {
    opacity: 0.7;
}

.discord-handle.is-copying:hover .discord-text {
    color: #E0E0E0;
}

.discord-handle.is-copying:hover .discord-text::after {
    opacity: 0;
}

@media screen and (max-width: 1280px) {
    .banner {
        width: 100%;
        max-width: 1240px;
    }

    .banner-img {
        width: 100%;
        height: auto;
        aspect-ratio: 1240 / 500;
    }
}

@media screen and (max-width: 768px) {
    body {
        zoom: 1;
    }

    .container {
        padding: 15px;
        padding-top: 40px;
        margin: 10px;
        border-radius: 10px;
    }

    .banner {
        margin-bottom: 60px;
        width: 100%;
    }

    .banner-img {
        width: 100%;
        height: auto;
        aspect-ratio: 1240 / 500;
        max-height: 400px;
    }

    .profile-pic {
        width: 100px;
        height: 100px;
        bottom: -50px;
        border: 4px solid #222;
    }

    header .intro h1 {
        font-size: 1.5em;
    }

    header .intro p {
        font-size: 0.9em;
    }

    #contact {
        margin-top: 30px;
    }

    .contact-links {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-link {
        padding: 12px;
        font-size: 0.95em;
    }

    .repo-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .repo-card {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .repo-content {
        width: 100%;
    }

    .project-logo {
        width: 120px;
        height: 120px;
        margin-top: 15px;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .tech-item {
        padding: 12px 15px;
        font-size: 0.9em;
    }

    section {
        padding: 15px;
        margin-bottom: 40px;
    }

    section h2 {
        font-size: 1.3em;
        margin-bottom: 15px;
    }

    section > p {
        font-size: 0.9em;
    }
}

@media screen and (max-width: 480px) {
    .container {
        margin: 5px;
        padding: 10px;
        padding-top: 30px;
    }

    .banner {
        width: 100%;
    }

    .banner-img {
        width: 100%;
        height: auto;
        aspect-ratio: 1240 / 500;
        max-height: 300px;
    }

    .profile-pic {
        width: 80px;
        height: 80px;
        bottom: -40px;
        border: 3px solid #222;
    }

    header .intro h1 {
        font-size: 1.2em;
    }

    header .intro p {
        font-size: 0.8em;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .contact-link {
        padding: 10px;
        font-size: 0.9em;
    }

    section h2 {
        font-size: 1.1em;
    }

    .project-logo {
        width: 100px;
        height: 100px;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
