:root {
    --background-color: #000000;
    --card-background: #1a1a1a;
    --text-color: #ffffff;
    --highlight-color: #4CAF50;
    --link-color: #666666;
    --active-link-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    background: radial-gradient(circle at center, #0a0a0a 0%, #000000 100%);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 100vh;
}

/* Row 1: Navigation */
.navbar {
    padding: 8px 0;
}

.navbar ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 32px;
}

.navbar a {
    color: var(--link-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar a.active {
    color: var(--active-link-color);
}

/* Row 2: Profile Section */
.row {
    display: flex;
    gap: 24px;
}

.profile-row {
    background-color: var(--card-background);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.profile-image {
    flex: 0 0 auto;
    width: 200px;
}

.profile-image img {
    width: 200px;
    height: 200px;
    border-radius: 16px;
    object-fit: cover;
}

.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-info p {
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.game-icon {
    display: inline;
    vertical-align: middle;
}

.game-icon img {
    width: 30px;
    height: 30px;
    margin: 0 2px;
    vertical-align: middle;
}

.spotify-icon {
    display: inline;
    vertical-align: middle;
}

.spotify-icon img {
    width: 30px;
    height: 30px;
    margin: 0 2px;
    vertical-align: middle;
}

.spotify-section {
    display: block;
    margin-top: 1rem;
    color: rgb(105, 105, 105);
}

.highlight {
    color: #e67e22;
}

.name-highlight {
    color: #4CAF50;
}

.social-link {
    color: white;
    text-decoration: underline;
}

.note {
    display: block;
    margin-top: 1rem;
    color: rgb(105, 105, 105);
}

/* Row 3: Content Row */
.content-row {
    height: 180px;
    display: flex;
    gap: 24px;
}

.now-playing {
    flex: 1.2;
    background-color: var(--card-background);
    border-radius: 16px;
    height: 100%;
}

.song-card {
    background-color: transparent;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
}

.song-image {
    width: 108px; /* Larger album cover */
    height: 108px; /* Larger album cover */
    border-radius: 8px;
    object-fit: cover;
}

.song-info h2 {
    font-size: 20px;
    margin-bottom: 4px;
    font-weight: 600;
}

.song-info p {
    color: #888;
    font-size: 14px;
}

/* Gallery Carousel */
.gallery {
    flex: 1.3;
    position: relative;
    background-color: var(--card-background);
    border-radius: 16px;
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 108px;  /* Added fixed height */
}

.gallery-slide {
    display: flex;
    width: 200%;
    height: 100%;
    transition: transform 0.3s ease;
    gap: 8px;
}

.gallery-slide img {
    width: calc(16.666% - 8px);
    height: 140px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--text-color);
}

/* Manga Carousel */
.manga-row {
    position: relative;
    background-color: var(--card-background);
    border-radius: 16px;
    padding: 24px;
    overflow: hidden;
    height: 280px;  /* Increased from 220px */
    margin-bottom: 24px;
}

.manga-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.manga-slide {
    display: flex;
    width: 200%;
    height: 100%;
    transition: transform 0.3s ease;
    align-items: center;
}

.manga-card {
    display: flex;
    width: calc(50% - 8px);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    height: 240px;  /* Increased from 190px */
}

.manga-card img {
    width: 160px;  /* Increased from 120px */
    height: 100%;
    object-fit: cover;
    border-radius: 20px 0 0 20px;
}

.manga-info {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.manga-info h3 {
    margin-bottom: 14px;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

.manga-info p {
    color: #aaa;
    font-size: 14px;
    line-height: 1.4;
}

.manga-page {
    display: flex;
    width: 50%;
    gap: 16px;
    flex-direction: row;
    padding: 0 16px;  /* Removed vertical padding */
    justify-content: center;
    align-items: center;  /* Center cards vertically */
    height: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        gap: 16px;
    }

    .row {
        flex-direction: column;
    }

    .profile-image {
        width: 100%;
    }

    .profile-image img {
        width: 100%;
        height: 300px;
    }

    .content-row {
        height: auto;
        min-height: 140px;
        flex-direction: column;
    }

    .now-playing {
        height: 140px;
    }

    .gallery {
        height: 100px;  /* Adjusted for square images */
    }

    .gallery-container {
        height: 100%;
    }

    .gallery-slide {
        width: 200%;
        height: 100%;
        gap: 8px;
    }

    .gallery-slide img {
        width: calc(16.666% - 8px);
        height: 100%;  /* Make images square by using full height */
        aspect-ratio: 1/1;  /* Ensure square aspect ratio */
    }

    .manga-row {
        height: 180px;
        padding: 12px;
    }

    .manga-container {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .manga-slide {
        display: flex;
        width: 200%;
        height: 100%;
        flex-direction: row;  /* Keep horizontal layout */
        transition: transform 0.3s ease;
    }

    .manga-page {
        width: 50%;
        display: flex;
        flex-direction: row;  /* Keep horizontal layout */
        gap: 12px;
        padding: 0 8px;
        height: 100%;
    }

    .manga-card {
        width: calc(50% - 6px);
        height: 100%;
        margin: 0;
        display: flex;
        flex-direction: column;
        border-radius: 12px;
        background-color: rgba(255, 255, 255, 0.1);
        position: relative;
        overflow: hidden;
    }

    .manga-card img {
        width: 100%;
        height: 80px;
        object-fit: cover;
        border-radius: 12px 12px 0 0;
    }

    .manga-info {
        flex: 1;
        padding: 10px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .manga-info h3 {
        font-size: 15px;
        margin-bottom: 4px;
        line-height: 1.2;
        color: #fff;
    }

    .manga-info p {
        font-size: 13px;
        line-height: 1.3;
        color: #ccc;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .gallery {
        height: 80px;  /* Smaller height for very small screens */
    }

    .gallery-slide img {
        width: calc(16.666% - 8px);
        height: 100%;
        aspect-ratio: 1/1;
    }

    .manga-row {
        height: 180px;
        padding: 8px;
    }

    .manga-card img {
        height: 70px;
    }

    .manga-info {
        padding: 8px;
    }

    .manga-info h3 {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .manga-info p {
        font-size: 12px;
        line-height: 1.2;
        -webkit-line-clamp: 4;
    }
}

.box {
    display: flex;
    flex: 1;
    height: 100%;
}

.profile-text {
    padding: 0;
    line-height: 1.7;
    font-size: 1rem;
    font-weight: normal;
    color: #fff;
    margin: 0;
}

#span1 {
    color: rgb(255, 255, 255);
    text-shadow: 0px 0px 25px rgb(255, 255, 255);
  }

  #span1 {
    animation: rgbChange 3s infinite alternate;
  }

  @keyframes rgbChange {
    0% {
      color: rgb(255, 105, 105);
      text-shadow: 0px 0px 25px rgb(255, 105, 105, 0.473);
    }
    33% {
      color: rgb(118, 255, 118);
      text-shadow: 0px 0px 25px rgb(118, 255, 118, 0.473);
    }
    66% {
      color: rgb(100, 100, 255);
      text-shadow: 0px 0px 25px rgb(100, 100, 255, 0.473);
    }
    100% {
      color: rgb(255, 255, 125);
      text-shadow: 0px 0px 25px rgba(255, 255, 125, 0.473);
    }
  }

#span2{
    color: rgb(124, 255, 124);
    text-shadow: rgba(124, 255, 124, 0.432);
}

/* Gallery Grid Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 24px;
    background-color: var(--card-background);
    border-radius: 16px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-caption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-caption p {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    padding: 20px;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 16px;
    }

    .gallery-caption p {
        font-size: 1rem;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }

    .gallery-caption p {
        font-size: 0.9rem;
        padding: 12px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 40px;
    box-sizing: border-box;
}

/* When modal is open */
.modal.show {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modal-content {
    display: block;
    max-width: 70%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-caption {
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    padding: 20px 0;
    margin-top: 10px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
}

.modal-close:hover {
    color: #999;
}

/* Animation for modal opening */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content {
    animation: modalFadeIn 0.3s ease-out;
}

@media (max-width: 768px) {
    .modal {
        padding: 20px;
    }

    .modal-content {
        max-width: 85%;
        max-height: 60vh;
    }

    .modal-caption {
        font-size: 1rem;
        padding: 15px 0;
    }
}

@media (max-width: 480px) {
    .modal-content {
        max-width: 95%;
        max-height: 50vh;
    }

    .modal-caption {
        font-size: 0.9rem;
        padding: 10px 0;
    }
}

/* Social Media Grid */
.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 24px;
    background-color: var(--card-background);
    border-radius: 16px;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.social-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

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

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.social-info {
    flex: 1;
}

.social-info h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
    font-weight: 500;
}

.social-info p {
    color: #888;
    font-size: 0.9rem;
}

/* Responsive Social Grid */
@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }

    .social-card {
        padding: 16px;
        gap: 16px;
    }

    .social-icon {
        width: 50px;
        height: 50px;
    }

    .social-info h3 {
        font-size: 1.1rem;
    }

    .social-info p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .social-grid {
        gap: 12px;
        padding: 12px;
    }

    .social-card {
        padding: 12px;
        gap: 12px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .social-info h3 {
        font-size: 1rem;
    }

    .social-info p {
        font-size: 0.8rem;
    }
}