@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', 'Noto Sans JP', sans-serif;
}

/* ── Who We Are ring-label counter-rotation ──────────────────────── */
@keyframes counter-spin-20s {
            from { transform: rotate(0deg); }
            to   { transform: rotate(-360deg); }
}

@keyframes counter-spin-25s {
        from { transform: rotate(0deg); }
        to   { transform: rotate(360deg); }
}

@keyframes counter-spin-30s {
            from { transform: rotate(0deg); }
            to   { transform: rotate(-360deg); }
}

.ring-label-20s {
        animation: counter-spin-20s 20s linear infinite;
        display: inline-block;
}

.ring-label-25s {
        animation: counter-spin-25s 25s linear infinite;
        display: inline-block;
}

.ring-label-30s {
        animation: counter-spin-30s 30s linear infinite;
        display: inline-block;
}


.perspective-1000 {
    perspective: 1000px;
}

.transform-style-3d {
    transform-style: preserve-3d;
}

.backface-hidden {
    backface-visibility: hidden;
}

.rotate-y-180 {
    transform: rotateY(180deg);
}

/* Custom scrollbar for a cleaner look */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dark ::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal[data-direction="left"] {
    transform: translateX(-30px);
}

.scroll-reveal[data-direction="right"] {
    transform: translateX(30px);
}

.scroll-reveal.visible[data-direction="left"],
.scroll-reveal.visible[data-direction="right"] {
    transform: translateX(0);
}

/* Phone Animations */
@keyframes scanDown {
    0% {
        transform: translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: translateY(240px);
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        opacity: 0.5;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleCheck {
    0% {
        transform: scale(0);
    }

    60% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-scanDown {
    animation: scanDown 2s ease-in-out infinite;
}

.animate-fadeOut {
    animation: fadeOut 0.5s ease-in-out 3s forwards;
}

.animate-fadeInOut {
    animation: fadeInOut 5s ease-in-out 3s forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-out 7.5s forwards;
}

.animate-scaleCheck {
    animation: scaleCheck 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 7.5s both;
}

.animate-slideUp {
    animation: slideUp 0.8s ease-out 8s both;
}

/* Marquee Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll {
    animation: scroll 40s linear infinite;
    width: max-content;
    /* Ensure container fits content */
}

/* Pause on hover if desired */
.hover\:pause:hover {
    animation-play-state: paused;
}


/* Team Cards */
.bg-team-blue {
    background-color: #5f93ba;
}

.shadow-text {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.team-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* ===== Member Circle Component ===== */
.member-circle-wrapper {
    position: relative;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f3f4f6;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

/* Top 60% — photo cutout */
.member-circle-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 62%;
    overflow: hidden;
}

.member-circle-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Bottom 42% — blue info panel */
.member-circle-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 42%;
    background-color: #7aa7c7;
    /* steel blue matching the design */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 12px;
}

.member-circle-name {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}

.member-circle-divider {
    width: 40px;
    height: 1.5px;
    background-color: rgba(255, 255, 255, 0.6);
    margin: 3px 0;
}

.member-circle-designation {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    font-weight: 400;
    text-align: center;
    margin: 0;
    letter-spacing: 0.03em;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .member-circle-wrapper {
        background-color: #374151;
    }

    .member-circle-info {
        background-color: #5a8aad;
    }

}
