/* Hero Section */
.characters-hero-section {
    height: 100vh;
    background-image: url('../images/characters/bh.jpg');
    background-position: center 50%;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    transform: translate(0px, 0px);
    transition: opacity 500ms;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.mb-show {
    display: none;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.characters-hero-subtitle {
    font-size: 1.2em;
    font-weight: bold;
    color: white;
    margin-bottom: 0px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.characters-hero-title {
    font-size: 8em;
    font-weight: normal;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    line-height: 1.2;
    opacity: 0;
    animation: fadeInUp 1s ease 1s forwards;
}

.characters-hero-person {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 80%;
    background-image: url('../images/characters/jake.png');
    background-repeat: no-repeat;
}




@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Character Section Base */
.character-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.character-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    padding: 0 50px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.character-content .character-image-name {
    margin-bottom: 10em;
}

.character-image-name .character-image {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    left: 50%;
    top: 35%;
    transform: translate(-50%, -50%);
}

.character-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.character-name {
    font-size: 20em;
    font-weight: normal;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.character-description {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    line-height: 1.6;
    opacity: 0;
    text-align: center;
    transform: translateY(30px);
    transition: all 0.8s ease 0.3s;
}


/* Social Icons */
.select-social-icons {
    position: absolute;
    left: 10%;
    top: 30%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 3;
}

.select-social-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
}

.select-social-icon:hover {
    transform: scale(1.1);
}

.select-social-icon.active {
    border: 4px solid rgba(255, 255, 255, 1);
}

.select-social-icon .icon-number {
    position: absolute;
    top: 0px;
    right: -5px;
    background-color: rgba(255, 255, 255, 1);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-style: normal;
    color: #333;
    font-size: 12px;
}

/* Character-specific backgrounds */
.jake-section {
    /* background: linear-gradient(135deg, #2196F3, #03A9F4); */
    background-image: url("../images/characters/tokyo.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
}

.tricky-section {
    background-image: url("../images/characters/sanfrancisco.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    /* background: linear-gradient(135deg, #FF9800, #FF5722); */
}

.fresh-section {
    background-image: url("../images/characters/sanfrancisco_2.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    /* background: linear-gradient(135deg, #4CAF50, #2E7D32); */
}

.yutani-section {
    background-image: url("../images/characters/miami.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    /* background: linear-gradient(135deg, #8BC34A, #689F38); */
}

/* Animation classes for scroll trigger */
.character-section.animate .character-name {
    opacity: 1;
    transform: translateX(0);
}

.character-section.animate .character-description {
    opacity: 1;
    transform: translateY(0);
}

/* Canvas responsive sizing */
.character-image canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .characters-hero-title {
        font-size: 5em;
    }

    .character-name {
        font-size: 8em;
    }

    .character-content {
        padding: 0 40px;
    }

    .character-image canvas {
        width: 500px;
        height: 500px;
    }
}

@media (max-width: 1024px) {
    .characters-hero-title {
        font-size: 4.5em;
    }

    .character-name {
        font-size: 6em;
    }

    .character-content {
        padding: 0 30px;
    }

    .character-image canvas {
        width: 400px;
        height: 400px;
    }

    .character-description {
        font-size: 1em;
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .characters-hero-section {
        background-attachment: scroll;
        padding: 20px;
    }

    .characters-hero-title {
        font-size: 3.5em;
        margin-bottom: 20px;
    }

    .characters-hero-subtitle {
        font-size: 1em;
        margin-bottom: 15px;
    }

    .character-section {
        height: auto;
        min-height: 100vh;
        padding: 60px 0;
    }

    .character-content {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        max-width: 100%;
    }

    .character-content .character-image-name {
        margin-bottom: 1em;
        position: relative;
    }

    .character-image-name .character-image {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin-bottom: 30px;
        width: auto;
        height: auto;
    }

    .character-name {
        font-size: 4em;
        margin-bottom: 0;
        position: relative;
        z-index: 1;
    }

    .character-description {
        max-width: 100%;
        text-align: center;
        margin-bottom: 30px;
        font-size: 0.95em;
        line-height: 1.5;
    }

    .character-image canvas {
        width: 300px;
        height: 300px;
    }

    /* .select-social-icons {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        flex-direction: row;
        justify-content: center;
        margin-top: 20px;
        gap: 15px;
    } */

    .select-social-icon {
        width: 45px;
        height: 45px;
    }

    /* Background images for mobile */
    .jake-section,
    .tricky-section,
    .fresh-section,
    .yutani-section {
        background-attachment: scroll;
        background-position: center;
    }
}

@media (max-width: 640px) {
    .characters-hero-title {
        font-size: 3em;
    }

    .character-name {
        font-size: 3.5em;
    }

    .character-image canvas {
        width: 280px;
        height: 280px;
    }

    .character-content {
        padding: 30px 15px;
    }
}

@media (max-width: 480px) {
    .pc-show {
        display: none;
    }

    .mb-show {
        display: block;
    }

    .characters-hero-section-wz {
        position: absolute;
        bottom: 100px;
        width: 100%;
        text-align: center;

    }

    .characters-hero-section {
        padding: 15px;
        background-image: url('../images/characters/game_hero_mobile.jpg');
    }

    .characters-hero-title {
        font-size: 2.5em;
        text-align: center;
    }

    .characters-hero-subtitle {
        font-size: 0.9em;
    }

    .character-section {
        padding: 40px 0;
    }

    .character-content {
        padding: 20px 10px;
    }

    .character-name {
        font-size: 4.5em;
        line-height: 1;
    }

    .character-description {
        font-size: 0.9em;
        line-height: 1.4;
        padding: 0 10px;
    }

    .character-image canvas {
        width: 250px;
        height: 250px;
    }

    .select-social-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .select-social-icons {
        gap: 12px;
    }

    /* Menu adjustments for mobile */
    .menu-toggle {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }

    .side-menu {
        max-width: 100%;
    }

    .menu-content {
        padding: 70px 20px 20px;
    }

    .menu-link {
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .characters-hero-title {
        font-size: 2.2em;
    }

    .character-name {
        font-size: 2.5em;
    }

    .character-image canvas {
        width: 220px;
        height: 220px;
    }

    .character-description {
        font-size: 0.85em;
    }

    .select-social-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .characters-hero-section {
        height: 100vh;
        padding: 10px;
    }

    .characters-hero-title {
        font-size: 3em;
    }

    .character-section {
        height: auto;
        min-height: 100vh;
        padding: 40px 0;
    }

    .character-name {
        font-size: 3em;
    }

    .character-image canvas {
        width: 200px;
        height: 200px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .character-image canvas {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Scroll indicator */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    animation: bounce 2s infinite;
    z-index: 2;
}

.scroll-arrow {
    width: 50px;
    height: 50px;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    margin-left: -25px;
}

.scroll-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

@-webkit-keyframes zoomIn {
    from {
        opacity: 0;
        -webkit-transform: scale3d(0.3, 0.3, 0.3);
        transform: scale3d(0.3, 0.3, 0.3);
    }

    50% {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        -webkit-transform: scale3d(0.3, 0.3, 0.3);
        transform: scale3d(0.3, 0.3, 0.3);
    }

    50% {
        opacity: 1;
    }
}

/* Character image opacity transitions */
.character-image {
    transform-origin: center center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.character-image.active {
    opacity: 1;
}