/* ==========================
    GLOBAL STYLES
=========================== */
body {
    font-family: Arial, sans-serif;
    background-color: black;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Background Image */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('Website_background_dark.png') no-repeat center;
    filter:opacity(100%);
    background-size: cover;
    z-index: -1;
    transition: background-image 0.5s ease-in-out;
}

.grey-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('Member\ Background\ Dark.png') no-repeat center;
    filter:opacity(100%);
    background-size: cover;
    z-index: -1;
}

.seira-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('SeiraBackground.png') no-repeat center;
    filter:opacity(100%);
    background-size: cover;
    z-index: -1;
    filter:contrast(100%);
}

.background-background{
    background-color:rgb(34, 41, 94);
    width:100vw;
    height:100vh;
    position:fixed;
    background-size:cover;
    z-index: -2;
    margin-top:-2vh;
}

/* ==========================
    HEADER (NAVIGATION BAR)
=========================== */
header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 85vw;
    height: 8vh; /* Fixed height */
    margin: 2vh auto;
    padding: 0.8vh 2vw;
    background: linear-gradient(to top, #1f1a3b, #373f64); 
    border-radius: 1.7vw;
    box-shadow: 0 0 1vw rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Small VSYNCRA Icon (Top Left) */
.logo-small {
    height: 6vh; 
    position: absolute;
    left: 2vw;
    top: 50%;
    transform: translateY(-50%); 
}

/* Center VSYNCRA Logo */
.logo-center {
    height: 33vh; 
    position: absolute;
    left: 56%;
    transform: translate(-56%);
}

/* Navigation Container */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
    margin: 0 10vw; 
}

/* Left & Right Navigation Menus */
.nav-left,
.nav-right {
    display: flex;
    gap: 1.5vw;
}

.nav-right{
    margin-right:4vw;
}

/* Navigation Buttons */
nav ul {
    display: flex;
    list-style: none;
    gap: 2vw;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    padding: 1vh 1.5vw;
    border-radius: 0.4vw;
    background: #2c2c2c;
    transition: 0.3s;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0.8vw rgba(255, 255, 255, 0.5);
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 1vw;
    position: absolute;
    right: 2vw;
    top: 50%;
    transform: translateY(-50%);
    transition: background-image 0.5s ease-in-out;
}

.theme-icon {
    height: 2.5vh;
    width: 2.5vh;
    cursor: pointer;
}



/* ==========================
    Welcome SECTION
=========================== */
.welcome {
    text-align: center;
    max-width: 60vw;
    margin: auto;
    margin-top: 5vh;
}

/* Welcome Image Box */
.welcome-image-container {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 2vw;
    display: inline-block;
}

.welcome-image {
    width: 90%;
    max-width: 60vw;
    height: auto;
    display: block;
    margin: auto;
    border-radius: 1vw;
    box-shadow: hsla(231, 81%, 51%, 0.349) 0px -50px 36px -28px inset;
}


.welcome button {
    padding: 1.2vh 7vw;
    border: none;
    background: white;
    color: black;
    font-size: 1rem;
    border-radius: 1vw;
    cursor: pointer;
    transition: 0.3s;
    position:relative;
    margin-top:-1vh;
}

.welcome button:hover {
    background: #7c5aff;
}

/* ==========================
    NEWS SECTION (CAROUSEL)
=========================== */
.news {
    text-align: center;
    padding: 5vh 5vw;
    max-width: 60vw;
    margin: auto;
}

/* Carousel Container */
.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1vw;
    position: relative;
    max-width: 60vw;
    margin: auto;
}

/* Carousel */
.carousel {
    overflow: hidden;
    width: 100%;
    border-radius: 1vw;
    background: rgb(255, 255, 255);
}

/* Inner container to hold sliding items */
.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* Carousel Items */
.carousel-item {
    min-width: 100%;
    height: 26vh;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: rgb(0, 0, 0);
    border-radius: 1vw;
}

/* Navigation Arrows */
.carousel-arrow {
    background: rgb(57,59,105);
    border: none;
    height: 20vh;
    width: 1.6vw;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 2vw;
    transition: 0.3s;
    margin-top: 1.5vh;
}

.carousel-arrow:hover {
    background: rgb(64, 75, 121);
}

/* Positioning */
.left {
    position: absolute;
    left: -2vw;
}

.right {
    position: absolute;
    right: -2vw;
}

  


/* ==========================
    FOOTER
=========================== */
footer {
    text-align: center;
    padding: 3vh;
    padding-bottom: 10vh;
    background: #393b69;
    color: white;
    font-size: 1rem;
    width: 90%;
    max-width: 75vw;
    margin: auto;
    margin-top: 15vh;
    border-radius: 1.5vw 1.5vw 0 0; /* Rounded corners */
    box-shadow: 0 0 1vw rgba(0, 0, 0, 0.5);
}

/* ==========================
    MEMBERS PAGE STYLES
=========================== */

/* Generation Toggle */
.gen-toggle {
    display: flex;
    justify-content: center;
    gap: 12vw;
    margin: 5vh 0;
}

.gen-btn {
    background: linear-gradient(to right, #5b42f3, #8d5afc);
    color: white;
    font-size: 1.2rem;
    padding: 1.5vh 3vw;
    border: none;
    border-radius: 3vw;
    cursor: pointer;
    width:12vw;
    height: 5vh;
    background-size: cover;
    justify-content: center;
}

.gen-btn.active {
    background: linear-gradient(to right, #8d5afc, #5b42f3);
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.3);
}

.gen-btn:hover {
    background: #8c6cf7;
}

#gen-btnImg {
    width:130%;
    height:auto;
    background-size: cover;
    position: relative;
    margin-top:-14%;
    margin-left:-10%;
}

/* ==========================
    MEMBERS GRID
=========================== */
.members-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns for the top row */
    column-gap: 3vw;
    row-gap: 12vh;
    justify-content: center;
    padding: 4vh 10vw;
    max-width: 20vw;
    max-height:auto;
    margin: auto;
    margin-top: -3vh;
}

.members-grid2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns for the top row */
    column-gap: 3vw;
    row-gap: 12vh;
    justify-content: center;
    padding: 4vh 10vw;
    max-width: 20vw;
    max-height:auto;
    margin: auto;
    margin-top: -3vh;
}

/* Center Bottom Row (Row of 3) */
.members-grid > .member:nth-child(n+5) {
    grid-column: span 1;
    justify-self: center;
}

.members-grid > .member:nth-child(5) {
    grid-column-start: 1;
    transform:translateX(65%);
}

.members-grid > .member:nth-child(6) {
    transform:translateX(65%); 
}

.members-grid > .member:nth-child(7) {
    transform:translateX(65%); 
}
/* Standardized Member Card */
.member {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1.5vw;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: 0.3s;
    height: 22vh;
    width: 10.5vw;
    position: relative;
}

/* Hover Effect */
.member:hover {
    transform: scale(1.05);
    box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.3);
}

/* ==========================
    MEMBER IMAGE CONTAINER (Prevents Overflow)
=========================== */
.member-image-container {
    width: 100%;
    height: 100%;
    overflow: hidden; 
    border-radius: 1vw;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
}

/* ==========================
    MEMBER IMAGES (Scaling & Cropping)
=========================== */
.member-image {
    margin-top:10vh;
    width: 150%; 
    height: 150%; 
    object-fit: cover; 
    object-position: center top; 
    transition: transform 0.3s ease-in-out;
}

/* Hover Effect - Smooth Scale */
.member-image:hover {
    transform: scale(1.1); /* Enlarges while staying inside the box */
}

/* Special Case for Kosmiyu (Full Body) */
.member[data-name="Kosmiyu"] .member-image {
    width: 100%;
    height: auto;
    object-fit: contain; 
}


/* Nameplate Styling */
.member-name {
    font-size: 1.1rem;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.8vh 2vw;
    border-radius: 2vw;
    position: absolute;
    bottom: -4vh; 
    left: 50%;
    transform: translateX(-50%);
    width: 6vw;
    text-align: center;
    white-space: nowrap;
    font-weight: bold;
}

/* Social Media Section - Fully Outside the Box */
.socials-container {
    position: absolute;
    bottom: -6vh; 
    left: 50%;
    transform: translateX(-50%);
    width: 30%; 
    display: flex;
    justify-content: center;
}

/* Socials Box */
.socials {
    background: linear-gradient(to right, #5b42f3, #8d5afc);
    border-radius: 2vw;
    width: 7vw;
    padding: 0.3vh;
    display: flex;
    justify-content: center;
    gap: 0.75vw;
    margin-top: 25vh;
}

/* Social Media Icons */
.socials img {
    width: 1.4vw;
    height: auto;
    transition: 0.3s;
}

/* Hover Effect */
.socials img:hover {
    transform: scale(1.1);
}

/* Hide Inactive Generations */
.hidden {
    display: none;
}


.main-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 5vh 5vw;
}

.info-box {
    flex: 1;
    max-width: 40vw;
    display: flex;
    flex-direction: column;
    gap: 2vh;
}

.full-body-container {
    flex: 1;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    margin-top:-4vh;
    margin-bottom:2.5vh;
}

.full-body-container img {
    height: 85vh;
    max-height: 90vh;
    object-fit: contain;
}

.persona-switcher {
    position: absolute;
    top: 20vh;
    right: 6vw;
    display: flex;
    flex-direction: column;
    gap: 2vh;
}

.persona {
    background-color: #BCECF5;
    max-width: 3vw;
    max-height: 3vw;
    border-radius: 15%;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-right:5vw;
    object-fit: contain;
}

.persona.active {
    filter: none;
    transform: scale(1.1);
}

.schedule-tab {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 999;
}

#schedule-toggle {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    background: rgb(224, 224, 224);
    color: #000000;
    padding: 2vh;
    padding-top: 30vh;
    padding-bottom: 30vh;
    border: none;
    cursor: pointer;
}


.member-socials{
    width:2.5vw;
    height:14vh;
    border-radius: 1vw;
    margin-left:44.8vw;
    margin-top: -32vh;
    background-color: #2e2e2ea4;
    justify-content: center;
    z-index: 0;
}

#social-image{
    max-width:1.75vw; 
    height:auto;
    margin-top: 0.6vh;
    margin-left:0.38vw;
    z-index: 2;
}

.member-banner{
    margin-top:-4vh;
    margin-left: 17vw;
    width:22vw;
    height:5vh;
}

.fb{
    width:22vw;
    height:5vh;
    background-color: white;
}

.member-description{
    z-index: 1;
    margin-top:-0.5vh;
    margin-left: 10vw;
    width:35vw;
    height:35vh;
    background-color: rgba(255, 255, 255, 0.575);
    border-radius:1vw;
    text-align: center;
}

.extra-links{
    margin-left:23.7vw;
    margin-top:14.5vh;
}

/* Member Carousel Style */

.carousel-wrapper {
    position: relative;
    width: fit-content;
    margin-top:-50vh;
    margin-left:19vw;
    margin-bottom:0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2vw;
  }

.video-carousel {
    position: relative;
    margin: 5vh auto;
    width: 25vw;
    height: 50vh;
    overflow: hidden;
    border-radius: 1vw;
  }
  
  /* Carousel track stays in line */
  .carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
  }
  
  /* Each carousel item takes full container width */
  .carousel-item {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Scaled iframe inside item */
  .carousel-item iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 1vw;
    max-width: 100%;
  }
  
  
/* Carousel controls */
.carousel-control {
    position: absolute;
    height:22vh;
    width: 0.4vw;
    top: 19vh;
    transform: translateY(-50%);
    background: #BCECF5;
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0.2rem 0.7rem;
    border-radius: 1vw;
    cursor: pointer;
    z-index: 100;
  }
  

.carousel-control.left {
    left: -2vw; 
  }

  .carousel-control.right {
    right: 0;
  }

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.6);
}

/* Dots Navigation */
.carousel-dots {
    position: relative;
    left: 50%;
    bottom: 1vh;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5vw;
    justify-content: center;
    align-items: center;
    z-index: 100;
  }
  
  .carousel-dots .dot {
    width: 1vh;
    height: 1vh;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    transition: background-color 0.3s ease;
    cursor: pointer;
  }
  
  .carousel-dots .dot.active {
    background-color: white;
  }

  
  /* Schedule Content */
  .schedule-content {
    display: none;
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 1vh;
    width: 250px;
    position: absolute;
    top: 0;
    right: 100%;
    border-radius: 1vw 0 0 1vw;
  }
  .schedule-content.show {
    display: block;
  }
  

.footer2{
    text-align: center;
    padding: 3vh;
    padding-bottom: 10vh;
    background: #BCECF5;
    color: white;
    font-size: 1rem;
    width: 100vw;
    margin: auto;
    box-shadow: 0 0 1vw rgba(0, 0, 0, 0.5);
    outline:1vh auto white;
    margin-top:-10vh;
}

.voiceline-button{
    border-radius: 5vw;
    width:2vw;
    height: 2vw;
    font-size: 1.2rem;
    text-align: center;
    padding: auto;
}