/* Custom CSS for Coherent Strategy Homepage */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
    padding-top: env(safe-area-inset-top); /* for iOS */
}

/* Base text styling overrides to ensure plenty of whitespace */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 
 * Hero Background - Geometric/Wave Representation 
 * Represents "Coherence" and "Strategic Focus"
 */
.hero-bg-gradient {
    /* Deep Navy base with subtle radial gradient towards Laser Blue */
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
}

.wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    background-image: radial-gradient(circle, transparent 40%, rgba(56, 189, 248, 0.03) 45%, transparent 50%);
    border-radius: 50%;
    animation: expand 15s infinite linear;
    pointer-events: none;
}

.wave2 {
    animation-delay: -5s;
    background-image: radial-gradient(circle, transparent 40%, rgba(56, 189, 248, 0.05) 45%, transparent 50%);
}

.wave3 {
    animation-delay: -10s;
    background-image: radial-gradient(circle, transparent 40%, rgba(56, 189, 248, 0.02) 45%, transparent 50%);
}

@keyframes expand {
    0% {
        transform: translate(-50%, -50%) scale(0.1);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Service Card Hover Effects */
.service-card {
    @apply bg-white p-8 lg:p-10 rounded-sm border border-gray-100 shadow-sm transition-all duration-500 relative overflow-hidden h-full flex flex-col;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: #38BDF8; /* Accent Laser Blue */
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.service-card:hover {
    @apply shadow-xl border-gray-200 -translate-y-2;
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-card .icon-wrapper {
    @apply w-16 h-16 rounded-full bg-bgOffWhite flex items-center justify-center mb-8 transition-colors duration-500 relative overflow-hidden;
}

.service-card:hover .icon-wrapper {
    @apply bg-primary/5;
}

/* Intersection Observer Animations (Initial states) */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 1s ease-out, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 1s ease-out, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure font weight mapping for Noto Sans JP on Mac/Windows */
b, strong {
    font-weight: 700;
}

/* Custom Scrollbar for elegant look */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F8FAFC;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
