/* Custom CSS for Who We Are - Jupiter */

/* Additional background gradients */
.fixed.inset-0.z-\[-1\]:after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(251, 191, 36, 0.25) 0%, transparent 50%),
                radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.2) 0%, transparent 50%);
}

/* Soft-Focus Background Orbits */
.fixed.inset-0.z-\[-1\]:before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle 384px at 85% 10%, rgba(139, 92, 246, 0.3) 0%, rgba(139, 92, 246, 0.15) 40%, transparent 70%),
        radial-gradient(circle 256px at 8% 40%, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0.10) 40%, transparent 70%),
        radial-gradient(circle 192px at 45% 80%, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.08) 40%, transparent 70%);
    filter: blur(40px);
    animation: orbitPulse 8s ease-in-out infinite;
}

/* Floating Elements Animations */
.floating-orb-1 {
    animation: floatY1 4s ease-in-out infinite;
}

.floating-orb-2 {
    animation: floatXY1 6s ease-in-out infinite 1s;
}

.floating-orb-3 {
    animation: floatY2 8s ease-in-out infinite 2s;
}

.orbit-line-1 {
    animation: rotate 60s linear infinite;
}

.orbit-line-2 {
    animation: rotateReverse 45s linear infinite;
}

/* Hero Section Animations */
.hero-content {
    animation: heroFadeIn 1s ease-out 0.5s both;
}

.hero-content h1 {
    animation: heroTitleFadeIn 1s ease-out 0.8s both;
}

.hero-content p {
    animation: heroSubtitleFadeIn 1s ease-out 1.1s both;
}

.hero-dot-1 {
    animation: heroDotPulse1 3s ease-in-out infinite;
}

.hero-dot-2 {
    animation: heroDotPulse2 4s ease-in-out infinite 1s;
}

/* Theme Section Animations */
.theme-accent {
    animation: floatY3 5s ease-in-out infinite;
}

.theme-item {
    opacity: 0;
    transform: translateY(50px);
    animation: themeItemFadeIn 0.8s ease-out forwards;
}

.theme-item:nth-child(2) {
    animation-delay: 0.2s;
}

.theme-item:nth-child(3) {
    animation-delay: 0.4s;
}

/* Organic Shape Animations */
.organic-shape-stay svg path {
    animation: stayShapeMove 8s ease-in-out infinite;
}

.pulse-stay {
    animation: stayPulse 3s ease-in-out infinite;
}

.stay-underline {
    width: 0;
    animation: underlineGrow 0.8s ease-out 0.3s forwards;
}

.orbit-ellipse-1 {
    animation: rotate 20s linear infinite;
    transform-origin: center;
}

.orbit-ellipse-2 {
    animation: rotateReverse 15s linear infinite;
    transform-origin: center;
}

.orbit-center {
    animation: orbitCenterMove 10s ease-in-out infinite;
}

.orbit-dot-1 {
    transform-origin: 0 0;
    animation: orbitDot1 8s ease-in-out infinite;
}

.orbit-dot-2 {
    transform-origin: 0 0;
    animation: orbitDot2 15s linear infinite;
}

.orbit-underline {
    width: 0;
    animation: underlineGrow 0.8s ease-out 0.5s forwards;
}

.move-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: movePathDraw 2s ease-in-out infinite;
}

.move-arrow {
    animation: moveArrowPulse 2s ease-in-out infinite;
}

.move-circle {
    animation: moveCircleFloat 3s ease-in-out infinite;
}

.move-dot-1 {
    animation: moveDot1 4s ease-in-out infinite;
}

.move-dot-2 {
    animation: moveDot2 4s ease-in-out infinite 0.5s;
}

.move-underline {
    width: 0;
    animation: underlineGrow 0.8s ease-out 0.7s forwards;
}

.floating-accent {
    animation: floatingAccent 6s ease-in-out infinite 2s;
}

/* About Section Animations */
.about-micro-graphic {
    animation: aboutMicroGraphic 4s ease-in-out infinite;
}

.about-card {
    opacity: 0;
    transform: translateY(30px);
    animation: aboutCardFadeIn 0.8s ease-out forwards;
}

.about-accent {
    animation: aboutAccentPulse 3s ease-in-out infinite 1s;
}

/* Community Section Animations */
.community-header {
    opacity: 0;
    transform: translateY(30px);
    animation: communityHeaderFadeIn 0.8s ease-out forwards;
}

.community-orbit-accent {
    animation: communityOrbitPulse 2.5s ease-in-out infinite;
}

.community-underline {
    width: 0;
    animation: underlineGrow 0.8s ease-out 0.3s forwards;
}

.community-card {
    opacity: 0;
    transform: translateY(30px);
    animation: communityCardFadeIn 0.8s ease-out 0.2s forwards;
}

.community-accent {
    animation: communityAccentPulse 3s ease-in-out infinite 0.5s;
}

.community-img-1:hover,
.community-img-2:hover,
.community-img-3:hover,
.community-img-4:hover {
    transform: scale(1.05);
    transition: transform 0.4s ease-out;
}

/* Principles Section Animations */
.principles-micro-graphic {
    animation: principlesMicroGraphic 5s ease-in-out infinite 1s;
}

.principles-card {
    opacity: 0;
    transform: translateY(30px);
    animation: principlesCardFadeIn 0.8s ease-out forwards;
}

.principles-accent {
    animation: principlesAccentPulse 3s ease-in-out infinite 0.5s;
}

.principles-underline {
    width: 0;
    animation: underlineGrow 1s ease-out 0.3s forwards;
}

.principle-item {
    opacity: 0;
    transform: translateX(-20px);
    animation: principleItemFadeIn 0.6s ease-out forwards;
}

.principle-item:nth-child(1) { animation-delay: 0.05s; }
.principle-item:nth-child(2) { animation-delay: 0.10s; }
.principle-item:nth-child(3) { animation-delay: 0.15s; }
.principle-item:nth-child(4) { animation-delay: 0.20s; }
.principle-item:nth-child(5) { animation-delay: 0.25s; }
.principle-item:nth-child(6) { animation-delay: 0.30s; }
.principle-item:nth-child(7) { animation-delay: 0.35s; }
.principle-item:nth-child(8) { animation-delay: 0.40s; }
.principle-item:nth-child(9) { animation-delay: 0.45s; }
.principle-item:nth-child(10) { animation-delay: 0.50s; }
.principle-item:nth-child(11) { animation-delay: 0.55s; }
.principle-item:nth-child(12) { animation-delay: 0.60s; }

/* Contact Section Animations */
.contact-floating-1 {
    animation: contactFloating1 5s ease-in-out infinite;
}

.contact-floating-2 {
    animation: contactFloating2 6s ease-in-out infinite 2s;
}

.contact-header {
    opacity: 0;
    transform: translateY(30px);
    animation: contactHeaderFadeIn 0.8s ease-out forwards;
}

.contact-underline {
    width: 0;
    animation: underlineGrow 1s ease-out 0.3s forwards;
}

.contact-card {
    opacity: 0;
    transform: translateY(30px);
    animation: contactCardFadeIn 0.8s ease-out 0.2s forwards;
}

.contact-orbit-detail {
    animation: contactOrbitDetail 4s ease-in-out infinite 1s;
}

.contact-button-container {
    opacity: 0;
    transform: translateY(20px);
    animation: contactButtonFadeIn 0.6s ease-out 0.4s forwards;
}

.contact-btn:hover {
    transform: scale(1.05);
}

.contact-btn:active {
    transform: scale(0.95);
}

.contact-btn:hover .contact-arrow {
    transform: translateX(3px);
}

.contact-footer-text {
    opacity: 0;
    animation: contactFooterTextFadeIn 0.6s ease-out 0.6s forwards;
}

/* Scroll-based animations */
.hero-section {
    transition: opacity 0.3s ease-out;
}

/* Custom Gradients */
.bg-gradient-radial {
    background: radial-gradient(circle, var(--tw-gradient-stops));
}

/* Keyframes */
@keyframes orbitPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

@keyframes floatY1 {
    0%, 100% { transform: translateY(0); opacity: 0.15; }
    50% { transform: translateY(-20px); opacity: 0.3; }
}

@keyframes floatXY1 {
    0%, 100% { transform: translate(0, 0); opacity: 0.1; }
    50% { transform: translate(10px, -15px); opacity: 0.25; }
}

@keyframes floatY2 {
    0%, 100% { transform: translateY(0); opacity: 0.1; }
    50% { transform: translateY(-25px); opacity: 0.2; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateReverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroTitleFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroSubtitleFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroDotPulse1 {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

@keyframes heroDotPulse2 {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

@keyframes floatY3 {
    0%, 100% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(-15px); opacity: 0.6; }
}

@keyframes themeItemFadeIn {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes stayShapeMove {
    0%, 100% { d: path("M100 20 C 150 20, 180 50, 180 100 C 180 150, 150 180, 100 180 C 50 180, 20 150, 20 100 C 20 50, 50 20, 100 20"); }
    50% { d: path("M100 25 C 155 25, 175 55, 175 100 C 175 145, 155 175, 100 175 C 45 175, 25 145, 25 100 C 25 55, 45 25, 100 25"); }
}

@keyframes stayPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.4); opacity: 0.7; }
}

@keyframes underlineGrow {
    from { width: 0; }
    to { width: 32px; }
}

@keyframes orbitCenterMove {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(80px, 0); }
    50% { transform: translate(0, 0); }
    75% { transform: translate(-80px, 0); }
}

@keyframes orbitDot1 {
    0%, 100% { transform: rotate(0deg) translate(80px, 0) rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) translate(80px, 0) rotate(-90deg) scale(1.2); }
    50% { transform: rotate(180deg) translate(80px, 0) rotate(-180deg) scale(1); }
    75% { transform: rotate(270deg) translate(80px, 0) rotate(-270deg) scale(1.1); }
}

@keyframes orbitDot2 {
    0%, 100% { transform: rotate(0deg) translate(60px, 0) rotate(0deg); }
    25% { transform: rotate(-90deg) translate(60px, 0) rotate(90deg); }
    50% { transform: rotate(-180deg) translate(60px, 0) rotate(180deg); }
    75% { transform: rotate(-270deg) translate(60px, 0) rotate(270deg); }
}

@keyframes movePathDraw {
    0%, 100% { stroke-dashoffset: 200; }
    50% { stroke-dashoffset: 0; }
}

@keyframes moveArrowPulse {
    0%, 100% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(10px); opacity: 0.8; }
}

@keyframes moveCircleFloat {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(-20px); opacity: 0.7; }
}

@keyframes moveDot1 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.85; }
    20% { transform: translate(30px, -20px) scale(1.2); opacity: 1; }
    40% { transform: translate(70px, 0) scale(1); opacity: 0.85; }
    60% { transform: translate(110px, -15px) scale(1.1); opacity: 1; }
    100% { transform: translate(160px, 0) scale(1); opacity: 0.85; }
}

@keyframes moveDot2 {
    0% { transform: translate(0, 0); opacity: 0.6; }
    20% { transform: translate(25px, -15px); opacity: 0.8; }
    40% { transform: translate(60px, 5px); opacity: 0.6; }
    60% { transform: translate(95px, -10px); opacity: 0.8; }
    100% { transform: translate(140px, 5px); opacity: 0.6; }
}

@keyframes floatingAccent {
    0%, 100% { transform: translate(0, 0); opacity: 0.4; }
    50% { transform: translate(5px, -10px); opacity: 0.7; }
}

@keyframes aboutMicroGraphic {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 0.8; }
}

@keyframes aboutCardFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes aboutAccentPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

@keyframes communityHeaderFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes communityOrbitPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 0.9; }
}

@keyframes communityCardFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes communityAccentPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 0.8; }
}

@keyframes principlesMicroGraphic {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(-15px); opacity: 0.7; }
}

@keyframes principlesCardFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes principlesAccentPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

@keyframes principleItemFadeIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes contactFloating1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    50% { transform: translate(0, -15px) scale(1.2); opacity: 0.7; }
}

@keyframes contactFloating2 {
    0%, 100% { transform: translate(0, 0); opacity: 0.3; }
    50% { transform: translate(8px, -10px); opacity: 0.6; }
}

@keyframes contactHeaderFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes contactCardFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes contactOrbitDetail {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.4); opacity: 0.7; }
}

@keyframes contactButtonFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes contactFooterTextFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Intersection Observer animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .orbit-line-1,
    .orbit-line-2 {
        width: 200px;
        height: 200px;
    }
    
    .floating-orb-1,
    .floating-orb-2,
    .floating-orb-3 {
        animation-duration: 6s;
    }
}