/* Modern VRChat Portfolio Styles */

:root {
    --bg-color: #010409;
    /* Deepest Ocean Blue */
    --text-color: #e6f7ff;
    /* Pale Cyan Text */
    --primary-color: #00f7ff;
    /* Bioluminescent Cyan */
    --secondary-color: #0077be;
    /* Ocean Blue */
    --accent-color: #7d41ff;
    /* Deep Abyssal Purple */
    --glass-bg: rgba(0, 40, 60, 0.3);
    --glass-border: rgba(100, 255, 255, 0.1);
    --card-bg: rgba(5, 20, 35, 0.8);
    --font-heading: 'Exo 2', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Slider */
.bg-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.bg-slide.active {
    opacity: 1;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 20, 40, 0.4), rgba(1, 4, 9, 0.95));
    z-index: -1;
    pointer-events: none;
}

/* Typography & Utils */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.glass {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Navbar */
/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    position: fixed;
    width: 95%;
    max-width: 1200px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    /* Override .glass border-bottom */
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 8px rgba(0, 119, 190, 0.8);
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content .highlight {
    color: transparent;
    -webkit-text-stroke: 1px var(--primary-color);
    position: relative;
}

.hero-content .highlight::before {
    content: 'VRCHAT GALLERY';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    animation: fill-text 3s ease-in-out infinite alternate;
    border-right: 2px solid var(--primary-color);
}

@keyframes fill-text {
    to {
        width: 100%;
    }
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.scroll-indicator {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.arrow-down {
    width: 20px;
    height: 20px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Section Common */
.section {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.underline {
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    margin: 0 auto;
    border-radius: 2px;
}

/* Profile */
.profile-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 2rem;
}

.avatar-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.4);
    transition: transform 0.5s;
}

.avatar-circle:hover {
    transform: scale(1.05) rotate(5deg);
}

.bio {
    flex: 1;
}

.bio h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.role {
    font-size: 1rem;
    color: #ccc;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.description {
    margin-bottom: 2rem;
}

.btn-social {
    display: inline-block;
    padding: 0.8rem 2rem;
    margin-right: 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s;
}

.btn-social:hover {
    background: var(--primary-color);
    color: black;
    box-shadow: 0 0 15px var(--primary-color);
}

/* Recommended Worlds */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    overflow: hidden;
    transition: transform 0.4s, box-shadow 0.4s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--secondary-color);
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s;
}

.card:hover .card-image {
    transform: scale(1.1);
}

.card-info {
    padding: 1.5rem;
}

.card-info h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.card-info p {
    font-size: 0.9rem;
    color: #ddd;
    margin-bottom: 1.5rem;
}

.btn-card {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-color);
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 3px;
}

.btn-card:hover {
    color: var(--secondary-color);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    aspect-ratio: 16 / 9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Modal */
/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    /* Flex centering */
    justify-content: center;
    align-items: center;
}

.modal-content {
    margin: 0;
    display: block;
    width: auto;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    animation: zoomIn 0.3s;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Adjust for smaller screens where keeping icons separate is hard */
@media (max-width: 900px) {
    .modal-content {
        max-width: 80%;
    }

    .prev,
    .next {
        width: 60px;
        height: 60px;
    }

    .close {
        width: 50px;
        height: 50px;
        top: 10px;
        right: 10px;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* Modal Controls */
.modal-control-bar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 5px 2rem;
    border-radius: 50px;
    background: rgba(0, 20, 40, 0.6);
    backdrop-filter: blur(10px);
    z-index: 2002;
    border: 1px solid var(--glass-border);
    transition: opacity 0.3s;
}

.modal-control-bar:hover {
    background: rgba(0, 20, 40, 0.8);
}

.ctrl-btn {
    width: 60px;
    height: 60px;
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s, filter 0.2s;
}

.ctrl-btn:hover {
    transform: scale(1.1);
}

/* Specific Icons */
.ctrl-btn.prev {
    background-image: url('Static/Icon/Fish.png');
    filter: invert(1);
}

.ctrl-btn.prev:hover {
    background-image: url('Static/Icon/Fish2.png');
    filter: none;
    /* Show color */
}

.ctrl-btn.close {
    background-image: url('Static/Icon/FishExit.png');
    width: 50px;
    height: 50px;
    filter: invert(1);
    margin: 0 5px;
}

.ctrl-btn.close:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px var(--secondary-color)) invert(1);
}

.ctrl-btn.next {
    background-image: url('Static/Icon/Fish.png');
    transform: scaleX(-1);
    filter: invert(1);
}

.ctrl-btn.next:hover {
    background-image: url('Static/Icon/Fish2.png');
    transform: scaleX(-1) scale(1.1);
    filter: none;
}

.date-display {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-color);
    margin: 0 1rem;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    min-width: 160px;
    text-align: center;
    padding-bottom: 5px;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    color: #888;
    background-color: black;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px var(--primary-color));
    transition: transform 0.3s;
}

.back-to-top:hover img {
    transform: translateY(-5px);
    filter: drop-shadow(0 0 10px var(--secondary-color));
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 2rem;
    }

    .nav-links {
        display: none;
        /* Mobile menu implementation usually requires JS toggle, currently hiding for simplicity or use simplified stacked view */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .profile-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .avatar-circle {
        margin: 0 auto;
    }
}