/* Reset and Base Styles */
* {
    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, #1B2735 0%, #090A0F 100%);
}

a, a[data-href] {
    cursor: pointer;
    -webkit-user-drag: none;
}

img {
    pointer-events: none;
    -webkit-user-drag: none;
    user-drag: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 80px; /* Add padding to prevent content from hiding under the widget */
    position: relative;
    z-index: 10;
    background: rgba(30, 50, 90, 0.01);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(100, 149, 255, 0.03);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(34, 36, 43, 0.8);
}

a {
    color: #ff0000;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3 {
    color: #FFFFFF;
    margin-top: 0;
}

/* Header */
header {
    text-align: center;
}

.banner {
    position: relative;
    margin-bottom: 80px;
    /* max-width: 540px; */
    margin-left: auto;
    margin-right: auto;
}

.banner-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    pointer-events: none;
    -webkit-user-drag: none;
}

.profile-pic {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -60px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid #500092;
    box-shadow: 0 0 30px #9412ff;
    pointer-events: none;
    -webkit-user-drag: none;
}

header .intro {
    text-align: center;
}

#contact {
    margin-top: 50px;
}

.red-text {
    color: #500092;
    text-shadow: 0 0 10px #500092;
}

/* Sections */
section {
    background: #0B0B1A;
    backdrop-filter: blur(10px);
    border: 1px solid #13132A;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 60px;
    box-shadow: 0 8px 32px 0 #8B5CF6;
}

section h2 {
    margin-bottom: 25px;
    border-bottom: 2px solid #A78BFA;
    padding-bottom: 10px;
    display: inline-block;
    text-shadow: 0 0 10px #9CA3AF;
}

section > p {
    color: #A0A0A0;
    margin-top: 0;
}

/* Contact */
.contact-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.contact-link {
    background: rgba(34, 36, 43, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(100, 150, 255, 0.15);
    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: #1F2937;
    border: 1px solid rgba(34, 36, 43, 0.8);
    text-decoration: none;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(100, 149, 255, 0.4);
}

.contact-link div {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Repositories */
.repo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.repo-card {
    background: rgba(34, 36, 43, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(100, 150, 255, 0.15);
    padding: 25px;
    border-radius: 8px;
    border-left: 3px solid rgba(109, 0, 139, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.repo-card:hover {
    background: rgba(30, 40, 60, 0.8);
    border: 1px solid #1F2937;
    border-left: 3px solid rgba(109, 0, 139, 0.8);
    box-shadow: 0 0 30px rgba(100, 149, 255, 0.3);
    transform: translateY(-2px);
}

.project-logo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    pointer-events: none;
    -webkit-user-drag: none;
}

.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: #C084FC;
  box-shadow: 0 0 8px rgba(100, 149, 255, 0.6);
  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 */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.tech-item {
    background: rgba(34, 36, 43, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(100, 150, 255, 0.15);
    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(100, 149, 255, 0.4);
    background: rgba(30, 40, 70, 0.8);
    border: 1px solid rgba(100, 149, 255, 0.5);
}

.tech-item i {
    font-size: 1.5em;
}

.discord-handle {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.discord-handle:hover {
    background:rgba(34, 36, 43, 0.8);
    border: 1px solid rgba(34, 36, 43, 0.8);
    text-decoration: none;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(34, 36, 43, 0.8);
}

.discord-handle div {
    /* transition: opacity 0.2s ease-in-out; */
}

/* .discord-handle:hover div {
    opacity: 0;
} */

.discord-text {
    position: relative;
    transition: color 0.2s ease-in-out;
}

.discord-handle:hover .discord-text {
    color: transparent;
}

.discord-text::after {
    content: 'kiiwas';
    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;
}

/* Responsive Design - Mobile Optimization */
@media screen and (max-width: 768px) {
    body {
        zoom: 1;
    }

    .container {
        padding: 15px;
        padding-top: 40px;
        margin: 10px;
        border-radius: 10px;
    }

    /* Banner and Profile */
    .banner {
        margin-bottom: 60px;
    }

    .banner-img {
        height: 200px;
    }

    .profile-pic {
        width: 100px;
        height: 100px;
        bottom: -50px;
        border: 4px solid rgba(34, 36, 43, 0.8);
    }

    /* Intro Text */
    header .intro h1 {
        font-size: 1.5em;
    }

    header .intro p {
        font-size: 0.9em;
    }

    /* Contact Section */
    #contact {
        margin-top: 30px;
    }

    .contact-links {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-link {
        padding: 12px;
        font-size: 0.95em;
    }

    /* Repo Cards */
    .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 */
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .tech-item {
        padding: 12px 15px;
        font-size: 0.9em;
    }

    /* Section Headings */
    section {
        padding: 15px;
        margin-bottom: 40px;
    }

    section h2 {
        font-size: 1.3em;
        margin-bottom: 15px;
    }

    section > p {
        font-size: 0.9em;
    }
}

/* Extra Small Devices */
@media screen and (max-width: 480px) {
    .container {
        margin: 5px;
        padding: 10px;
        padding-top: 30px;
    }

    .banner-img {
        height: 150px;
    }

    .profile-pic {
        width: 80px;
        height: 80px;
        bottom: -40px;
        border: 3px solid rgba(109, 0, 139, 0.8);
    }

    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;
    }
}