body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    font-family: 'Poppins', Arial, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    width: 90%;
    height: 80vh;
    max-height: 800px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding-top: 60px;
}

.profile-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    height: 100%;
    box-sizing: border-box;
    padding-top: 1rem;
}


.profile-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}



.profile-picture-wrapper {
    width: 210px;
    height: 210px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.profile-picture-wrapper::before {
    content: '';
    position: absolute;
    width: 300%;
    height: 300%;
    background: conic-gradient(
        from 0deg,
        #ffffff,
        #6a0ae9,
        #ffffff,
        #6a0ae9,
        #ffffff
    );
    animation: rotate 8s linear infinite;
}

.profile-picture {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.title-container {
    text-align: center;
    color: #ffffff;
}

h1 {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 4em;
    margin-bottom: 0.2em;
}

.subtitle {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 1.5em;
}

.subtitle a {
    color: #ffffff;
    text-decoration: none;
}

.typewrite > .wrap {
    border-right: 0.08em solid #fff;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #fff; }
}

.spotify-wrapper {
    width: 100%;
    margin-top: 1rem;
    flex-shrink: 0;
}


.spotify-iframe {
    width: 100%;
    height: 80px;
    border: none;
}



.platforms-section {
    flex: 3;
    padding: 2rem 2rem 2rem 0;  /* Removed left padding */
    overflow-y: auto;
    height: 100%;
    box-sizing: border-box;
}

.platform-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.platform-link {
    transition: all 0.3s ease;
      
}

.platform-link:hover {
    transform: scale(1.05);
    z-index: 1;  
}

.platform-icon {
    width: 30px;
    height: 30px;
    transition: filter 0.3s ease;
}

/* Default state: white icons */
.platform-icon {
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

/* Platform-specific hover styles */
/* Discord: blue */
.platform-link[data-id="druxt"][data-platform="discord"]:hover .platform-icon,
.platform-link[data-id="druxt"][data-platform="discord"]:hover .platform-name {
    filter: brightness(0) saturate(100%) invert(38%) sepia(77%) saturate(902%) hue-rotate(207deg) brightness(94%) contrast(103%);
}

/* Steam: blue */
.platform-link[data-id="Druxt"][data-platform="steam"]:hover .platform-icon,
.platform-link[data-id="Druxt"][data-platform="steam"]:hover .platform-name {
    filter: brightness(0) saturate(100%) invert(10%) sepia(29%) saturate(2720%) hue-rotate(195deg) brightness(97%) contrast(111%);
}

/* Ubisoft: white */
.platform-link[data-id="Druxt"][data-platform="ubisoft"]:hover .platform-icon,
.platform-link[data-id="Druxt"][data-platform="ubisoft"]:hover .platform-name {
    filter: brightness(0) saturate(100%) invert(12%) sepia(1%) saturate(7489%) hue-rotate(359deg) brightness(90%) contrast(78%);
}

/* Activision: white */
.platform-link[data-id="Druxt#7175389"][data-platform="activision"]:hover .platform-icon,
.platform-link[data-id="Druxt#7175389"][data-platform="activision"]:hover .platform-name {
    filter: brightness(0) saturate(100%) invert(12%) sepia(1%) saturate(7489%) hue-rotate(359deg) brightness(90%) contrast(78%);
}

/* Battle.net: blue */
.platform-link[data-id="Druxt#2557"][data-platform="battlenet"]:hover .platform-icon,
.platform-link[data-id="Druxt#2557"][data-platform="battlenet"]:hover .platform-name {
    filter: brightness(0) saturate(100%) invert(38%) sepia(77%) saturate(902%) hue-rotate(207deg) brightness(94%) contrast(103%);
}

/* Epic Games: gray */
.platform-link[data-id="Druxt_"][data-platform="epicgames"]:hover .platform-icon,
.platform-link[data-id="Druxt_"][data-platform="epicgames"]:hover .platform-name {
    filter: brightness(0) saturate(100%) invert(12%) sepia(1%) saturate(7489%) hue-rotate(359deg) brightness(90%) contrast(78%);
}

/* Riot Games: red */
.platform-link[data-id="Druxt#3403"][data-platform="riotgames"]:hover .platform-icon,
.platform-link[data-id="Druxt#3403"][data-platform="riotgames"]:hover .platform-name {
    filter: brightness(0) saturate(100%) invert(15%) sepia(88%) saturate(6449%) hue-rotate(357deg) brightness(97%) contrast(115%);
}

/* Rockstar Games: yellow */
.platform-link[data-id="Druxt_"][data-platform="rockstar"]:hover .platform-icon,
.platform-link[data-id="Druxt_"][data-platform="rockstar"]:hover .platform-name {
    filter: brightness(0) saturate(100%) invert(88%) sepia(43%) saturate(1877%) hue-rotate(321deg) brightness(98%) contrast(89%);
}

/* Electronic Arts: orange */
.platform-link[data-id="Druxtt"][data-platform="origin"]:hover .platform-icon,
.platform-link[data-id="Druxtt"][data-platform="origin"]:hover .platform-name {
    filter: brightness(0) saturate(100%) invert(67%) sepia(51%) saturate(5977%) hue-rotate(355deg) brightness(100%) contrast(95%);
}

/* Add transition for smooth color change */
.platform-name {
    transition: filter 0.3s ease;
}

.platforms-list {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 1rem;
    margin-right: -1rem;
    padding-bottom: 2rem;
}

.platforms-list {
    padding-left: 2rem;  /* Added left padding here instead */
    padding-right: 1rem;
    overflow-x: visible;  /* Allow horizontal overflow */
}

/* Ensure the last item is fully visible */
.platforms-list::after {
    content: '';
    display: block;
    height: 2rem;
}

.platform-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.platform-link:hover::before {
    left: 100%;
}

.platform-link:hover {
    transform: scale(1.05);
}

.platform-info {
    flex-grow: 1;
    margin-right: 1rem;
}

.platform-name {
    font-weight: 600;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.platform-id-container {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.platform-id {
    font-weight: 400;
    font-size: 0.9em;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 15px;
    display: inline-block;
    transition: color 0.3s ease;
}

.platform-link:hover .platform-id {
    color: #ffd700;
}

.copy-icon {
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    margin-left: 8px;
}

.platform-link:hover .copy-icon {
    opacity: 1;
    transform: scale(1.1);
}

.copy-icon svg {
    width: 16px;
    height: 16px;
    fill: white;
    vertical-align: middle;
}

#toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 2;
    left: 50%;
    bottom: 30px;
}

#toast.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

#cursorCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
}

@keyframes fadein {
    from { bottom: 0; opacity: 0; }
    to { bottom: 30px; opacity: 1; }
}

@keyframes fadeout {
    from { bottom: 30px; opacity: 1; }
    to { bottom: 0; opacity: 0; }
}








/* NAV BAR */


.main-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin-right: 1rem;
}

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #ffd700;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}


@media (max-width: 768px) {
    .main-nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(5px);
    }

    .main-nav ul.show {
        display: flex;
    }

    .main-nav li {
        margin: 0;
        text-align: center;
    }

    .main-nav a {
        display: block;
        padding: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}


/* NAV BAR */












@media (max-width: 768px) {
    body {
        padding: 0;
        align-items: flex-start;
    }

    .container {
        flex-direction: column;
        width: 100%;
        height: auto;
        max-height: none;
        border-radius: 0;
        overflow: visible;
    }

    .profile-section {
        width: 100%;
        height: auto;
        padding: 2rem 1rem;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .profile-picture-wrapper {
        width: 150px;
        height: 150px;
    }

    .profile-picture {
        width: 140px;
        height: 140px;
    }

    h1 {
        font-size: 1.5em;
        text-align: center;
    }

    .spotify-wrapper {
        width: 100%;
        max-width: 300px;
        margin-top: 1rem;
    }

    .platforms-section {
        width: 100%;
        height: auto;
        padding: 1rem;
        box-sizing: border-box;
        overflow-y: visible;
        display: flex;
        justify-content: center;
    }

    .platforms-list {
        overflow-y: visible;
        padding-right: 0;
        padding-left: 0;
        margin-right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 300px;
    }

    .platform-link {
        margin-bottom: 0.5rem;
        width: 100%;
    }

    .platform-name {
        font-size: 1em;
    }

    .platform-id {
        font-size: 0.8em;
    }

    .platform-icon {
        width: 25px;
        height: 25px;
    }

    .platforms-list::after {
        display: none;
    }
}








/* ABOUT PAGE  */

.about-container {
    display: flex;
    flex-direction: column;
    height: 80vh;
    max-height: 800px;
}

.about-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    overflow-y: auto;
}


.about-content h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.top-games, .stats {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.game-list {
    list-style-type: none;
    padding: 0;
}

.game-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.game-list li:hover {
    transform: translateY(-5px);
}

.game-list img {
    width: 80px;
    height: 80px;
    object-fit: contain; /* Changed from cover to contain */
    border-radius: 5px;
    margin-right: 1rem;
    background-color: rgba(255, 255, 255, 0.1); /* Optional: adds a slight background */
    padding: 5px; /* Optional: adds some padding inside the image container */
}

.game-info {
    flex: 1; /* This allows the text to take up remaining space */
}

.game-info h3 {
    font-size: 1.1em; /* Adjust as needed */
    margin: 0 0 0.3rem 0;
}

.game-info p {
    font-size: 0.9em; /* Adjust as needed */
    margin: 0;
    opacity: 0.8;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.stat-item h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1em;
}

.stat-item p {
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
}

@media (max-width: 768px) {
    .container, .about-container {
        height: auto;
        max-height: none;
        border-radius: 0;
    }

    .about-content {
        padding: 1rem;
    }

    .game-list img {
        width: 60px; /* Smaller size for mobile */
        height: 60px;
    }

    .game-info h3 {
        font-size: 1em;
    }

    .game-info p {
        font-size: 0.8em;
    }

    
}








/* GALLERY PAGE */


.gallery-container {
    display: flex;
    flex-direction: column;
    height: 80vh;
    max-height: 800px;
}

.gallery-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    overflow-y: auto;
}

.gallery-content h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
    max-width: 800px; /* Adjust this value to control the maximum width of images */
    margin: 0 auto; /* Center the grid */
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item:hover .caption {
    transform: translateY(0);
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.full-size-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.full-size-btn svg {
    width: 20px;
    height: 20px;
    color: #333;
}

.gallery-item:hover .full-size-btn {
    opacity: 1;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 768px) {
    .gallery-container {
        height: auto;
        max-height: none;
    }

    .gallery-content {
        padding: 1rem;
    }

    .gallery-grid {
        gap: 1rem;
    }
}












/* CURSOR ANIMATION TOGGLE */


.cursor-toggle {
    display: flex;
    align-items: center;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin-right: 30px;
    margin-left: 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

@media (max-width: 768px) {
    .cursor-toggle {
        display: none;
    }
}